/* ============ Design tokens ============ */
:root {
  --bg: #f4f4f5;
  --ink: #101014;
  --ink-soft: #3a3a42;
  --card-radius: 10px;
  --blue: #a9c7f0;
  --blue-2: #bcd2f2;
  --gap: 30px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.06), 0 6px 20px rgba(16, 16, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 16, 20, 0.16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.page {
  max-width: 2100px;
  margin: 0 auto;
  padding: 32px 40px 64px;
}

/* ============ Header ============ */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  /* extend the header a tiny smidge wider than the content column */
  margin: 0 -5px;
  padding: 14px 28px;
  border: 1.5px solid #ffffff;
  border-radius: 18px;
  /* clip the prism continuation canvas to the rounded bar */
  overflow: hidden;
  /* a slice of the hero card's top edge: the same mint (left) and peach
     (right) washes over the same warm base, so header and hero read as one
     continuous surface */
  background:
    radial-gradient(140% 260% at 10% 40%, rgba(170, 236, 190, 0.62), transparent 60%),
    radial-gradient(140% 260% at 88% 35%, rgba(255, 206, 134, 0.92), transparent 60%),
    linear-gradient(120deg, #dccebc, #d8c4d6);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(1.2);
}

/* window onto the hero's prism animation — same scene, aligned per frame */
.topbar-prism {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.topbar .brand,
.topbar .actions {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #14100a;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #14100a;
}

.brand-mark svg,
.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.022em;
}

/* Small "Backed by YC" under the company name — wide screens only */
.brand-badge {
  display: none;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #16305e;
}

@media (min-width: 900px) {
  .brand-badge {
    display: block;
  }
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Larger header buttons */
.topbar .btn {
  padding: 15px 32px;
  font-size: 1.1rem;
  white-space: nowrap;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navlinks a {
  color: #17110b;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  transition: opacity 0.18s ease;
}

.navlinks a:hover {
  opacity: 0.65;
}

/* ============ Buttons (modern) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ico {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  background: #ffffff;
  color: #17110b;
  border-color: transparent;
}

.btn-ghost:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-primary {
  background: #17110b;
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 17, 11, 0.28);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(23, 17, 11, 0.34);
}

.btn-dark {
  background: #2b2b2f;
  color: #fff;
  padding: 18px 44px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.btn-dark:hover {
  background: #17171b;
  transform: translateY(-1px);
}

/* Hero call-to-action pair — very visible */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.btn-xl {
  padding: 14px 26px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.btn-hero-light {
  background: #ffffff;
  color: #141018;
}

.btn-hero-light:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* ============ Shared card ============ */
.card {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.hero-lead {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
  color: #111;
  background:
    radial-gradient(120% 90% at 12% 18%, rgba(170, 236, 190, 0.62), transparent 55%),
    radial-gradient(120% 90% at 85% 12%, rgba(255, 206, 134, 0.92), transparent 55%),
    radial-gradient(130% 120% at 78% 88%, rgba(188, 196, 250, 0.92), transparent 55%),
    radial-gradient(140% 120% at 20% 90%, rgba(168, 222, 190, 0.68), transparent 60%),
    linear-gradient(120deg, #dccebc, #d8c4d6);
  box-shadow: var(--shadow-sm);
}

/* animated prism canvas sits behind the hero copy, filling the card */
.hero-prism {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-lead h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0c0c0e;
}

.hero-lead p {
  margin: 0 auto 20px;
  max-width: 42ch;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  color: #17171b;
}

/* ============ Blue placeholder panels ============ */
.panel-blue {
  background: linear-gradient(160deg, var(--blue-2), var(--blue));
  box-shadow: var(--shadow-sm);
}

.hero .panel-blue {
  min-height: 410px;
}

.triptych .panel-blue {
  display: none;
}

/* content inside blue panels */
.panel-content {
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  color: #0d1c33;
}

.panel-content h3 {
  margin: 0 0 22px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps span {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(13, 28, 51, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-stats {
  justify-content: center;
  gap: 26px;
}

.stat b {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #29426b;
}

/* ============ Media cards ============ */
.media {
  box-shadow: var(--shadow-sm);
  background-color: #05070a;
  background-size: cover;
  background-position: center;
}

.media-armor {
  height: 410px; /* 410px wide (grid) x 410 = 1:1, the case-board image's ratio */
  background: #b98f52;
}

.media-armor img,
.media-board img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.92) contrast(1.35) saturate(1.08);
}

.media-armor::after,
.media-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* soft light glow from the top-left, like a window reflection */
    radial-gradient(
      150% 95% at 10% -12%,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0) 48%
    ),
    /* main sheen — wide, feathered edges */
    linear-gradient(
      122deg,
      rgba(255, 255, 255, 0) 26%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.17) 48%,
      rgba(255, 255, 255, 0.05) 57%,
      rgba(255, 255, 255, 0) 74%
    ),
    /* faint secondary sheen, softly feathered */
    linear-gradient(
      122deg,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.09) 68%,
      rgba(255, 255, 255, 0) 78%
    ),
    /* subtle purple veil */
    linear-gradient(
      150deg,
      rgba(120, 88, 178, 0.16),
      rgba(150, 122, 205, 0.1) 50%,
      rgba(52, 36, 88, 0.26)
    );
  pointer-events: none;
}

/* bottom-right glare comes from the opposite angle */
.media-board::after {
  background:
    radial-gradient(
      150% 95% at 90% -12%,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0) 48%
    ),
    linear-gradient(
      60deg,
      rgba(255, 255, 255, 0) 26%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.17) 48%,
      rgba(255, 255, 255, 0.05) 57%,
      rgba(255, 255, 255, 0) 74%
    ),
    linear-gradient(
      60deg,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.09) 68%,
      rgba(255, 255, 255, 0) 78%
    ),
    linear-gradient(
      150deg,
      rgba(120, 88, 178, 0.16),
      rgba(150, 122, 205, 0.1) 50%,
      rgba(52, 36, 88, 0.26)
    );
}

.media-board {
  height: 240px;
  background: #cfc7b8;
}

.media-board img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-jet {
  height: 240px;
  background: #010703;
}

.media-jet img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Quote card ============ */
.quote {
  aspect-ratio: 5 / 6;
  background: #050505;
  color: #f3f0e9;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.quote blockquote {
  margin: 0;
  max-width: 20ch;
  font-family: "Space Grotesk", var(--font);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.quote .drop {
  color: #f4b23c;
}

.quote cite {
  margin-top: 22px;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 240, 233, 0.55);
}

.quote-bust {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 200px;
  height: 260px;
  background:
    radial-gradient(55% 45% at 50% 35%, rgba(210, 214, 220, 0.5), transparent 60%),
    radial-gradient(45% 55% at 55% 70%, rgba(150, 156, 165, 0.35), transparent 65%);
  filter: blur(1px);
  pointer-events: none;
}

/* ============ Statement (scroll reveal) ============ */
.reveal {
  /* line the text up with the quote inside the customers panel below:
     banner pad (16px) + inner pad + head pad, minus the page's 40px pad */
  margin: calc(var(--gap) * 1.8) 0 0;
  max-width: 1300px;
  padding: 24px calc(clamp(1rem, 3vw, 2.5rem) + clamp(2.25rem, 4.5vw, 3.5rem) - 24px);
}

/* the customers panel's own padding shrinks at 768px — track it */
@media (max-width: 768px) {
  .reveal {
    padding-left: calc(clamp(1rem, 3vw, 2.5rem) + clamp(1.5rem, 5vw, 2.25rem) - 24px);
    padding-right: calc(clamp(1rem, 3vw, 2.5rem) + clamp(1.5rem, 5vw, 2.25rem) - 24px);
  }
}

.reveal-eyebrow {
  margin: 0 0 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #9a9aa2;
}

.reveal-text {
  margin: 0;
  /* match the hero h1: same family, weight, and tracking */
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  /* fallback color before the script wraps the words */
  color: #0c0c0e;
}

.reveal-text .w {
  color: #c6c6cc;
  transition: color 0.35s ease;
}

.reveal-text .w.lit {
  color: #0c0c0e;
}

@media (max-width: 620px) {
  .reveal {
    margin-top: calc(var(--gap) * 1.6);
    /* page padding is 14px on phones, so the offset math shifts by +26px */
    padding: 12px calc(clamp(1rem, 3vw, 2.5rem) + clamp(1.5rem, 5vw, 2.25rem) + 2px);
  }
  .reveal-eyebrow {
    margin-bottom: 18px;
  }
}

/* ============ Floating icon band ============ */
/* vertical padding gives the chips headroom for their ±26px wave travel */
.float-band {
  padding: 68px 0 40px;
}

.float-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floaty {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(48px, 5vw, 70px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fbfbfc;
  color: #17171b;
  box-shadow: 0 1px 2px rgba(16, 16, 20, 0.05);
  will-change: transform;
}

.floaty svg {
  width: 42%;
  height: 42%;
}

/* fewer chips on smaller screens so the row never crowds */
@media (max-width: 900px) {
  .float-row .floaty:nth-child(n + 10) {
    display: none;
  }
}

@media (max-width: 620px) {
  .float-band {
    padding: 52px 0 30px;
  }
  .float-row .floaty:nth-child(n + 7) {
    display: none;
  }
}

/* ============ Section header (above the game gallery) ============ */
.section-head {
  margin: calc(var(--gap) * 1.6) auto 0;
  max-width: 820px;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b74;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ============ Triptych layout ============ */
.triptych {
  display: flex;
  gap: 14px;
  margin-top: var(--gap);
}

/* tighter gap when the gallery header sits right above the row */
.section-head + .triptych {
  margin-top: 20px;
}

/* justified row: each card's width follows its image aspect (set inline
   via flex-grow/shrink + aspect-ratio), giving all cards an equal height
   that fills the row — every image stays fully visible, one line */
.tri-card {
  flex-basis: 0;
  min-width: 0;
  background: #0b0b0d;
  box-shadow: var(--shadow-sm);
  /* the cards are <button>s now — clear UA button chrome, keep the card look */
  border: 0;
  padding: 0;
  font: inherit;
  cursor: zoom-in;
}

.tri-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tri-card:hover img,
.tri-card:focus-visible img {
  transform: scale(1.04);
}

.tri-card:focus-visible {
  outline: 3px solid #7ea6df;
  outline-offset: 3px;
}

/* expand hint in the corner — appears on hover/focus */
.tri-expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(10, 12, 14, 0.66);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tri-expand svg {
  width: 16px;
  height: 16px;
}

.tri-card:hover .tri-expand,
.tri-card:focus-visible .tri-expand {
  opacity: 1;
}


/* ============ About / slabs ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: var(--gap);
}

/* stack the About slabs on narrower screens */
@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
  }
  /* on phones the five screenshots become a standard swipeable carousel:
     uniform 16:10 cards, one mostly in view with the next peeking at the
     edge, snapping card-by-card. The peek makes swipeability obvious. */
  .triptych {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* let card shadows breathe; hide the scrollbar for a clean look */
    padding: 4px 4px 10px;
    scrollbar-width: none;
  }
  .triptych::-webkit-scrollbar {
    display: none;
  }
  .tri-card {
    /* uniform size — override the desktop per-image inline flex/aspect */
    flex: 0 0 80% !important;
    aspect-ratio: 16 / 11 !important;
    scroll-snap-align: center;
  }
  /* no hover on touch — keep the expand hint always visible */
  .tri-expand {
    opacity: 1;
    width: 26px;
    height: 26px;
    right: 8px;
    bottom: 8px;
    border-radius: 7px;
  }
  .tri-expand svg {
    width: 13px;
    height: 13px;
  }
}

/* styled to match the bento cards above: cream surface, hairline border,
   soft 20px radius */
.slab {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  min-height: 260px;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fbf9f6;
  border: 1px solid rgba(10, 10, 11, 0.07);
  border-radius: 20px;
  overflow: hidden;
}

/* the old gradient cards had an animated grain layer — not part of the
   bento look, so keep the mount point but hide it */
.slab-prism {
  display: none;
}

/* ============ Customers (assessment evidence) ============ */
/* full-bleed video band, ported from the user's source site */
.customers {
  position: relative;
  z-index: 1;
  background-color: #f4f4f4;
  margin: calc(var(--gap) * 1.6) calc(50% - 50vw) 0;
}

.customers-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) 16px clamp(2rem, 4vw, 3rem);
}

.customers-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.customers-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.customers-inner {
  position: relative;
  z-index: 2;
  max-width: 2020px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.customers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  border-radius: 1.25rem;
  background: rgba(248, 248, 248, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px rgba(10, 10, 11, 0.12);
}

.customers-head-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.customers-head-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.head-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.head-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(70px, 8vw, 100px);
  height: clamp(70px, 8vw, 100px);
  background: #fff;
  border: 1px solid rgba(10, 10, 11, 0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(10, 10, 11, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.head-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 10, 11, 0.1);
}

.head-logo img {
  max-width: 62%;
  max-height: 32px;
  object-fit: contain;
}

.head-logo img.head-logo-wide {
  max-width: 84%;
}

.head-logo-stack {
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.head-logo-stack img {
  max-width: 56%;
  max-height: 36px;
}

.head-logo-caption {
  font-size: 0.58rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  color: #0a0a0b;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  border: 1.5px solid transparent;
  border-radius: 5rem;
  background:
    linear-gradient(#ececec, #ececec) padding-box,
    linear-gradient(180deg, #5b8cff 0%, #ff6b6b 48%, #ffc46b 72%, #5fd18b 100%) border-box;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0a0a0b;
}

.eyebrow-icon {
  flex-shrink: 0;
  margin-top: -1px;
}

.customers-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0a0a0b;
  max-width: 22ch;
}

.customers-attr {
  margin: -0.35rem 0 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #6b6660;
}

.customers-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(87, 84, 255, 0.35);
  background: #fff;
  color: #4b48e6;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.customers-cta:hover {
  border-color: rgba(87, 84, 255, 0.7);
  background: rgba(87, 84, 255, 0.04);
}

@media (max-width: 900px) {
  .customers-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .customers-head-right {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .customers-head {
    padding: clamp(1.5rem, 5vw, 2.25rem);
  }
}

/* dark lead + warm grey body, echoing the bento card titles */
.slab h2 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #15110d;
}

.slab p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #8a857f;
}

.slab p + p {
  margin-top: 16px;
}

/* ============ Lightbox (expanded game screenshots) ============ */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1400px, 94vw);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(8, 10, 13, 0.85);
  backdrop-filter: blur(5px);
}

.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox img {
  max-width: 94vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-chip {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #101014;
  font-size: 1.5rem;
  line-height: 1;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  background: #eaeaea;
}

@media (max-width: 620px) {
  .lightbox-close {
    top: 6px;
    right: 6px;
  }
}

/* ============ Bento (evidence) ============ */
/* recreated from the user's own site (main-mu-tan-70.vercel.app);
   full-bleed cream band via viewport breakout since .page is padded */
.bento {
  position: relative;
  z-index: 1;
  background: #f4f1ec;
  padding: clamp(2.5rem, 5vw, 4rem) 16px clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(10, 10, 11, 0.08);
  margin: calc(var(--gap) * 2) calc(50% - 50vw) 0;
}

.bento-inner {
  /* span the same column as the sections above (page max 2100 − 2×40 padding)
     instead of the source site's narrower 1280 cap */
  max-width: 2020px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 1.5vw, 1.5rem);
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  /* ease the heading off the hard left edge of the widened column */
  padding: 0 clamp(0.75rem, 2.5vw, 3rem);
}

/* pull the heading further in on wide screens only */
@media (min-width: 1400px) {
  .bento-top {
    padding: 0 clamp(2rem, 4vw, 5rem);
  }
}

.bento-heading {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #15110d;
}

.bento-explore {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  background: #0a0a0b;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.bento-explore:hover {
  background: #2a2733;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.bento-card {
  display: flex;
  flex-direction: column;
  background: #fbf9f6;
  border: 1px solid rgba(10, 10, 11, 0.07);
  border-radius: 20px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
  color: #9a938b;
  max-width: 42ch;
}

.bento-card-title strong {
  color: #15110d;
  font-weight: 600;
}

.bento-visual {
  position: relative;
  flex: 1;
  margin-top: 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  min-height: 250px;
}

.bento-visual--connect {
  background: url("bento-know-contact.png") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  min-height: 290px;
}

.ask-bar {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: 9999px;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  box-shadow: 0 12px 32px rgba(20, 15, 45, 0.14);
}

.ask-plus {
  display: inline-flex;
  color: #15110d;
}

.ask-text {
  flex: 1;
  color: #8a857f;
  font-size: 0.95rem;
}

.ask-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #6b6660;
}

.ask-mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a0a0b;
}

.bento-visual--action {
  background: linear-gradient(150deg, #e9f1e2 0%, #e6eef4 55%, #efe9f6 100%);
  padding: clamp(1rem, 1.8vw, 1.4rem);
}

.flow {
  display: flex;
  flex-direction: column;
}

.flow-step {
  background: #fff;
  border: 1px solid rgba(10, 10, 11, 0.06);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 14px rgba(20, 15, 45, 0.05);
}

.flow-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #8a857f;
}

.flow-num {
  color: #b0aaa2;
}

.flow-ico {
  font-size: 0.72rem;
}

.flow-ico--play {
  color: #4caf7d;
}

.flow-warn {
  color: #e0a23b;
  margin-left: auto;
}

.flow-title {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: #15110d;
}

.flow-arrow {
  width: 1px;
  height: 20px;
  background: rgba(10, 10, 11, 0.18);
  margin: 0.45rem 0 0.45rem 1.45rem;
}

/* Watch how they think */
.bento-visual--context {
  background: linear-gradient(160deg, #eef1ed, #e9eef0);
  padding: clamp(1rem, 1.8vw, 1.4rem);
}

.ctx-card {
  background: #fff;
  border: 1px solid rgba(10, 10, 11, 0.06);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(20, 15, 45, 0.06);
}

.ctx-bubble {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: #15110d;
  font-size: 0.8rem;
  line-height: 1.4;
  width: fit-content;
  margin-left: auto;
}

.ctx-sources {
  margin: 0.7rem 0 0.6rem;
  font-size: 0.75rem;
  color: #8a857f;
}

.ctx-caret {
  font-size: 0.6rem;
}

.ctx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ctx-kind {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #aaa49c;
  margin-bottom: 0.1rem;
}

.ctx-steps p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #3a352f;
}

.ctx-fade {
  opacity: 0.4;
}

/* Designed for hiring teams */
.bento-visual--apps {
  /* dark wash dims the artwork so it doesn't glare */
  background:
    linear-gradient(rgba(18, 10, 42, 0.32), rgba(18, 10, 42, 0.32)),
    url("assets/bento-purple.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 300px;
}

.apps-text {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.75rem);
  /* no veil — just a soft shadow to lift the two lines off the artwork */
  text-shadow: 0 2px 18px rgba(20, 10, 50, 0.55);
}

.apps-text-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.apps-text-sub {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}


@media (max-width: 900px) {
  .bento-top {
    flex-direction: column;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--wide {
    grid-column: span 1;
  }
}

/* ============ CTA ============ */
.cta {
  margin-top: var(--gap);
  padding: 74px 46px;
  text-align: center;
  color: #fff;
  /* cool charcoal with faint blue/green casts matching the aurora */
  background:
    radial-gradient(90% 140% at 20% 0%, rgba(169, 199, 240, 0.16), transparent 55%),
    radial-gradient(90% 140% at 90% 100%, rgba(169, 215, 182, 0.12), transparent 55%),
    linear-gradient(120deg, #12161b, #141a18);
  box-shadow: var(--shadow-sm);
}

/* aurora waves + grain behind the CTA content (grain layer sits on top of
   the aurora via DOM order) */
.cta-aurora,
.cta-prism {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  pointer-events: none;
}

/* let the dark card ground the aurora so the white copy stays readable */
.cta-aurora {
  opacity: 0.6;
}

.cta > h2,
.cta > p,
.cta .cal-inline {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin: 0 auto 14px;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.cta p {
  margin: 0 auto 30px;
  max-width: 46ch;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inline Cal.com calendar embed */
.cal-inline {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 8px auto 0;
  min-height: 560px;
  /* match the embed's dark theme so it reads as part of the CTA card,
     framed by a soft hairline instead of a white box */
  background: #161b1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  /* never clip the calendar — Cal resizes the iframe to fit its content
     (in the "mobile" layout the full time list stacks below the calendar,
     so times are never cut off); we just reserve space before it loads */
  overflow: visible;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.cal-inline iframe {
  width: 100%;
  border: 0;
  border-radius: 16px;
  /* reserve height before load; Cal grows this to fit all time slots */
  min-height: 560px;
}

.btn-light {
  background: #fff;
  color: #17110b;
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.btn-light .btn-ico {
  transition: transform 0.2s ease;
}

.btn-light:hover .btn-ico {
  transform: translateX(3px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ============ Legal pages (privacy / terms) ============ */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 8px 40px;
}

.legal h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: #6b6b74;
}

.legal h2 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: #17110b;
}

.legal-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 8px 0;
  border-top: 1px solid rgba(16, 16, 20, 0.1);
  font-size: 0.9rem;
  color: #6b6b74;
}

.legal-footer a {
  color: #17110b;
}

/* ============ Endcap (gradient) ============ */
/* full-bleed band; the gradient artwork sits behind both the closing
   statement and the footer card, like the fixed backdrop on the source site */
.endcap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: calc(var(--gap) * 2) calc(50% - 50vw) -64px;
  /* same mint/peach/lavender washes as the header + hero, so the page
     closes on the palette it opened with */
  background:
    radial-gradient(120% 90% at 12% 18%, rgba(170, 236, 190, 0.62), transparent 55%),
    radial-gradient(120% 90% at 85% 12%, rgba(255, 206, 134, 0.92), transparent 55%),
    radial-gradient(130% 120% at 78% 88%, rgba(188, 196, 250, 0.92), transparent 55%),
    radial-gradient(140% 120% at 20% 90%, rgba(168, 222, 190, 0.68), transparent 60%),
    linear-gradient(120deg, #dccebc, #d8c4d6);
}

.endcap-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 5rem;
}

.endcap-title {
  margin: 0 0 2.25rem;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0a0a0b;
  max-width: 22ch;
}

.endcap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  color: #fff;
  background: #0a0a0b;
  border: 1px solid rgba(17, 17, 17, 0.2);
  transition: background 0.15s, border-color 0.15s;
}

.endcap-btn:hover {
  background: #363636;
}

.endcap-btn .arrow {
  display: block;
}

/* ============ Footer ============ */
.footer {
  background-color: #111;
  border-radius: 1rem;
  /* match the page column (max 2100 − 2×40 padding) like the rest of the site */
  width: calc(100% - 80px);
  max-width: 2020px;
  margin: -1.875rem auto 16px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 3vw, 2.5rem);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.footer-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vw, 3rem);
  min-width: 0;
}

.footer-links-wrapper {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
}

.logo-mark svg {
  display: block;
  height: 26px;
  width: 26px;
}

.logo-word {
  line-height: 1;
}

.footer-logo-word {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  width: 100%;
  min-width: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.footer-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.footer-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.footer-link {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-link:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-social-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-copyright {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
  .footer-links-wrapper {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer {
    width: calc(100% - 24px);
  }
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* ============ Responsive ============ */
@media (max-width: 940px) {
  /* smaller header buttons so labels never wrap or overflow on tablets */
  .topbar .btn {
    padding: 11px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 620px) {
  .page {
    padding: 14px 14px 40px;
  }
  /* swallow the page's smaller bottom padding so the gradient stays flush */
  .endcap {
    margin-bottom: -40px;
  }
  /* match the page's 14px side padding on phones */
  .footer {
    width: calc(100% - 28px);
  }
  .hero-lead {
    padding: 34px 28px;
    min-height: 480px;
  }
  /* trim the CTA's wide side padding on phones so the calendar isn't
     squeezed into a narrow column — gives the embed a much wider viewport */
  .cta {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cal-inline {
    min-height: 480px;
    /* sit the calendar just inside the CTA card on phones: slightly narrower
       than the card's padding box and centered, so there's a small but
       visible gap on both sides. (mobile only — non-mobile is untouched.) */
    width: calc(100% - 12px);
  }
  .topbar {
    padding: 10px 10px 10px 14px;
    gap: 8px;
  }
  /* header shows only Schedule Demo on mobile; Call Now is hidden */
  .actions .btn-ghost {
    display: none;
  }
  .topbar .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .actions {
    gap: 6px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-mark,
  .brand-mark svg,
  .brand-mark img {
    width: 30px;
    height: 30px;
  }
}
