/*
 * Stampaa color system
 * Cobalt drives actions and interaction; deep navy anchors type and dark surfaces.
 */
:root {
  --brand: #155eef;
  --brand-ink: #ffffff;
  --primary: #155eef;
  --primary-foreground: #ffffff;
  --secondary: #eef4ff;
  --secondary-foreground: #0b1f4d;
  --muted: #f4f7fc;
  --muted-foreground: #52617a;
  --accent: #e8f0ff;
  --accent-foreground: #0b1f4d;
  --border: #d5dfef;
  --input: #c7d4e8;
  --ring: #155eef;
  --info: #155eef;
  --background: #f8faff;
  --foreground: #0b1f4d;
  --paper: #eef4ff;
  --ink: #071b3d;
  --ink-foreground: #f8fbff;
  --chart-1: #8eb2ff;
  --chart-2: #4f83f1;
  --chart-3: #155eef;
  --chart-4: #1746a2;
  --chart-5: #0b2b68;
}

.marketing,
.mk-scope {
  --mk-canvas: #f8faff;
  --mk-canvas-2: #eef4ff;
  --mk-surface: #ffffff;
  --mk-ink: #0b1f4d;
  --mk-ink-2: #344767;
  --mk-ink-3: #60708b;
  --mk-line: #b8c7df80;
  --mk-lime: #155eef;
  --mk-lime-ink: #ffffff;
  --mk-hand: #155eef;
  --mk-screen: #071b3d;
  --mk-screen-fg: #f8fbff;
  --mk-card-fg: #ffffff;
  --mk-card-peacock: #155eef;
  --mk-card-rani: #1746a2;
  --mk-card-marigold: #2f6fed;
  --mk-card-indigo: #0f3f99;
  --mk-card-chai: #15376f;
  --mk-card-gold: #3f75db;
  --mk-card-gold-hi: #73a0f7;
  --mk-card-gold-lo: #1746a2;
  --mk-card-gold-ink: #071b3d;
  --mk-card-forest: #0c347c;
  --mk-card-royal: #155eef;
  --mk-card-onyx: #071b3d;
  --mk-paper: #f3f7ff;
  --mk-paper-2: #e6eefb;
  --mk-client-cha: #dce8ff;
  --mk-client-jessy: #edf3ff;
  --mk-client-vow: #7997c8;
  --mk-client-awake: #0b2b68;
  --mk-client-brown: #ffffff;
  --mk-client-crimson: #e8f0ff;
  --mk-client-khanas: #dbe7fb;
  --mk-client-north: #ffffff;
  --mk-client-bot: #e4ecf8;
  --mk-client-eatfit: #ffffff;
  --mk-stain: #1746a22e;
  --mk-glow-1: #155eef33;
  --mk-glow-2: #70a1ff24;
  --mk-glow-3: #0b2b6817;
  --mk-titanium: #91a3bf;
  --mk-titanium-hi: #dbe4f1;
  --mk-titanium-lo: #536783;
  --mk-phone-frame: #132a52;
  --mk-bezel: #04122d;
  --mk-wallpaper-1: #155eef;
  --mk-wallpaper-2: #071b3d;
  --mk-shadow-sm: 0 1px 2px #0b1f4d0a, 0 6px 18px #1746a20d;
  --mk-shadow: 0 1px 2px #0b1f4d0a, 0 18px 44px #1746a214;
  --mk-shadow-lg: 0 2px 6px #0b1f4d0d, 0 40px 90px #1746a21f;
  --mk-highlight: #ffffffcc;
  --mk-sheen: #ffffff70;
  --mk-gloss-hi: #ffffff38;
  --mk-gloss-lo: #04122d29;
  --mk-scrim: #f8faffe6;
}

::selection {
  background: #155eef;
  color: #ffffff;
}

/* Reference-led hero: layered loyalty cards with restrained, isolated motion. */
.stampaa-hero {
  position: relative;
  min-height: min(920px, 100svh);
  overflow: hidden;
  padding: clamp(8.5rem, 14vw, 11rem) 1rem clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 14% 18%, #c9d9ff 0, transparent 35%),
    radial-gradient(circle at 80% 50%, #dfe8ff 0, transparent 42%),
    linear-gradient(135deg, #f5f8ff 0%, #ffffff 54%, #eef3ff 100%);
}

.stampaa-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#1746a208 1px, transparent 1px),
    linear-gradient(90deg, #1746a208 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent);
  content: "";
  pointer-events: none;
}

.stampaa-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1440px);
  margin-inline: auto;
  align-items: center;
  gap: clamp(3rem, 6vw, 7rem);
}

.stampaa-hero__copy {
  max-width: 690px;
}

.stampaa-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #bfd0ee;
  border-radius: 999px;
  background: #ffffffb8;
  box-shadow: 0 8px 24px #1746a20d;
  color: #344767;
  font-family: var(--font-geist-mono);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.stampaa-hero__eyebrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 3px solid #c5d7ff;
  border-radius: 50%;
  background: #155eef;
  box-sizing: content-box;
  content: "";
}

.stampaa-hero__title {
  max-width: 12ch;
  color: #071b3d;
  font-family: var(--font-heading);
  font-size: clamp(3.35rem, 7.5vw, 7.3rem);
  font-stretch: 75%;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.84;
  text-transform: uppercase;
}

.stampaa-hero__title span {
  color: #155eef;
}

.stampaa-hero__lede {
  max-width: 610px;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  color: #344767;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  text-wrap: balance;
}

.stampaa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stampaa-hero__button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 1.4rem;
  border: 1px solid #cfdaec;
  border-radius: 999px;
  background: #ffffffc7;
  color: #0b1f4d;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.stampaa-hero__button:hover {
  border-color: #9bb7e8;
  box-shadow: 0 12px 30px #1746a217;
  transform: translateY(-2px);
}

.stampaa-hero__button--primary {
  border-color: #155eef;
  background: #155eef;
  box-shadow: 0 14px 34px #155eef38;
  color: #ffffff;
}

.stampaa-hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 1.75rem;
  color: #52617a;
  font-size: 0.88rem;
}

.stampaa-hero__checks li::before {
  margin-right: 0.45rem;
  color: #155eef;
  font-weight: 900;
  content: "✓";
}

.stampaa-card-scene {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0px;
  --py: 0px;
  --cyan-px: 0px;
  --cyan-py: 0px;
  --violet-px: 0px;
  --violet-py: 0px;
  position: relative;
  width: min(100%, 650px);
  min-height: 600px;
  margin-inline: auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.stampaa-card-glow {
  position: absolute;
  inset: 16% 8% 6%;
  border-radius: 50%;
  background: #155eef24;
  filter: blur(54px);
}

.stampaa-card-shell {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: stampaa-card-float 7s ease-in-out infinite;
  will-change: transform;
}

.stampaa-card-shell--cyan {
  animation-delay: -1.7s;
}

.stampaa-card-shell--violet {
  animation-delay: -3.8s;
}

.stampaa-card-shell--front {
  animation-delay: -0.4s;
}

.stampaa-loyalty-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: clamp(255px, 30vw, 370px);
  aspect-ratio: 0.72;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid #ffffff4d;
  border-radius: clamp(26px, 3vw, 40px);
  box-shadow:
    0 50px 90px #0b2b6830,
    inset 0 1px #ffffff42;
  color: #ffffff;
  transform-style: preserve-3d;
  transition: box-shadow 240ms ease;
  will-change: transform;
}

.stampaa-loyalty-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, #ffffff30, transparent 35%),
    radial-gradient(circle at 80% 15%, #ffffff1f, transparent 30%);
  content: "";
  pointer-events: none;
}

.stampaa-loyalty-card--cyan {
  z-index: 1;
  background: linear-gradient(145deg, #12b9ec, #087ccf);
  transform: translate3d(calc(-75% + var(--cyan-px)), calc(-45% + var(--cyan-py)), -60px) rotateZ(-13deg);
}

.stampaa-loyalty-card--violet {
  z-index: 2;
  background: linear-gradient(145deg, #6548e8, #3524a1);
  transform: translate3d(calc(-20% + var(--violet-px)), calc(-53% + var(--violet-py)), -25px) rotateZ(10deg);
}

.stampaa-loyalty-card--front {
  z-index: 3;
  background: linear-gradient(145deg, #3478f6, #1345b9);
  transform: translate3d(calc(-48% + var(--px)), calc(-49% + var(--py)), 55px) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-3deg);
}

.stampaa-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.stampaa-card-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stampaa-card-monogram {
  display: grid;
  width: 3.2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ffffff4d;
  border-radius: 1rem;
  background: #ffffff1f;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: inset 0 1px #ffffff30;
}

.stampaa-card-name {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stampaa-card-place,
.stampaa-card-label {
  color: #ffffffb8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stampaa-card-count {
  text-align: right;
}

.stampaa-card-count strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1;
}

.stampaa-stamps {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.55rem, 1.25vw, 0.9rem);
}

.stampaa-stamp {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #ffffff57;
  border-radius: 50%;
  color: transparent;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  font-weight: 900;
}

.stampaa-stamp--filled {
  background: #ffffff12;
  color: #ffffff;
  opacity: 0;
  animation: stampaa-stamp-reveal 480ms cubic-bezier(0.2, 0.9, 0.25, 1.25) forwards;
  animation-delay: calc(700ms + var(--stamp-index) * 130ms);
  transform: scale(0.6);
}

.stampaa-stamp--static {
  background: #ffffff12;
  color: #ffffff;
}

.stampaa-card-reward {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.stampaa-card-mark {
  display: grid;
  width: 3.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.85rem;
  background: #ffffff;
  color: #0b1f4d;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px #071b3d26;
}

.stampaa-notice {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #d8e1f0;
  border-radius: 999px;
  background: #ffffffed;
  box-shadow: 0 18px 45px #0b2b6824;
  color: #0b1f4d;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  animation: stampaa-notice-float 5.5s ease-in-out infinite;
}

.stampaa-notice--reward {
  top: 19%;
  right: -2%;
}

.stampaa-notice--nearby {
  bottom: 10%;
  left: -1%;
  animation-delay: -2.3s;
}

@keyframes stampaa-card-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotateZ(0.45deg);
  }
}

@keyframes stampaa-notice-float {
  0%,
  100% {
    transform: translate3d(0, 0, 80px);
  }
  50% {
    transform: translate3d(0, -5px, 80px);
  }
}

@keyframes stampaa-stamp-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* The brief intentionally limits ambient motion to the card area. */
.stampaa-hero ~ section * {
  animation: none !important;
}

@media (min-width: 960px) {
  .stampaa-hero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  }
}

@media (max-width: 959px) {
  .stampaa-hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .stampaa-hero__copy {
    margin-inline: auto;
    text-align: center;
  }

  .stampaa-hero__title {
    margin-inline: auto;
  }

  .stampaa-hero__actions,
  .stampaa-hero__checks {
    justify-content: center;
  }

  .stampaa-card-scene {
    min-height: 540px;
  }
}

@media (max-width: 560px) {
  .stampaa-hero {
    padding-bottom: 2rem;
  }

  .stampaa-hero__title {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .stampaa-hero__button {
    width: 100%;
  }

  .stampaa-hero__checks {
    display: grid;
    justify-content: start;
    text-align: left;
  }

  .stampaa-card-scene {
    min-height: 440px;
    transform: scale(0.82);
    transform-origin: center top;
  }

  .stampaa-loyalty-card {
    width: 270px;
  }

  .stampaa-notice--reward {
    right: 0;
  }

  .stampaa-notice--nearby {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stampaa-card-shell,
  .stampaa-notice,
  .stampaa-stamp--filled {
    animation: none !important;
  }

  .stampaa-stamp--filled {
    opacity: 1;
    transform: none;
  }

  .stampaa-loyalty-card {
    transition: none;
  }
}
