/* ==========================================================================
   matricula+ | Design tokens
   Layout: navy hero com board animado, faixa marquee em verde-limão,
   seções alternando areia/navy/azul, funil horizontal pinado, bento, stack.
   ========================================================================== */
:root {
  --blue: #1050d8;
  --blue-deep: #0b3aa0;
  --navy: #07142b;
  --navy-2: #0c1d3d;
  --lime: #aeec74;
  --lime-deep: #8fd84e;
  --sand: #ece8e5;
  --sand-2: #e2ddd8;
  --ink: #0e0e0e;
  --white: #ffffff;
  --mute: rgba(7, 20, 43, 0.62);
  --mute-on-dark: rgba(255, 255, 255, 0.64);

  /* seabass-variable é o nome que o Adobe Fonts dá à Seabass Var; sem o kit, cai na Unbounded */
  --font-display: 'seabass-variable', 'Unbounded', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --gutter: clamp(20px, 5vw, 72px);
  --container: 1320px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--white);
  background: var(--navy);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section-sand { background: var(--sand); color: var(--navy); }
.section-navy { background: var(--navy); color: var(--white); }
.section-blue { background: var(--blue); color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.section-sand .eyebrow { color: var(--blue); }
.section-blue .eyebrow { color: var(--lime); }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  margin-top: 18px;
  max-width: 18ch;
}
.section-lead { max-width: 56ch; margin-top: 18px; font-size: 1.125rem; color: var(--mute); }
.section-navy .section-lead, .section-blue .section-lead { color: var(--mute-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform; white-space: nowrap;
}
.btn .btn-plus {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 1.1rem; line-height: 1; transition: transform 0.4s var(--ease-out);
}
.btn:hover .btn-plus { transform: rotate(90deg); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime .btn-plus { background: var(--navy); color: var(--lime); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue .btn-plus { background: var(--white); color: var(--blue); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.28); color: var(--white); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy .btn-plus { background: var(--lime); color: var(--navy); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy); display: grid; place-items: center;
}
.loader-icon { width: clamp(96px, 14vw, 150px); height: auto; overflow: visible; }
.loader-icon .sq { transform-box: fill-box; transform-origin: center; }
.loader-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.loader-rings span {
  position: absolute; width: 220px; height: 220px; border: 1.5px solid var(--lime);
  border-radius: 48px; opacity: 0;
}
.loader.is-done { pointer-events: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
    width: 22px; height: 22px; margin: -11px 0 0 -11px;
    mix-blend-mode: difference; opacity: 0;
    transition: transform 0.25s var(--ease-out), opacity 0.2s;
  }
  .cursor::before, .cursor::after {
    content: ''; position: absolute; background: var(--lime); border-radius: 2px;
  }
  .cursor::before { left: 50%; top: 0; width: 4px; height: 100%; transform: translateX(-50%); }
  .cursor::after { top: 50%; left: 0; height: 4px; width: 100%; transform: translateY(-50%); }
  .cursor.is-hover { transform: scale(2.2) rotate(90deg); }
  .cursor.is-down { transform: scale(0.7); }
}

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px var(--gutter); transition: padding 0.4s var(--ease-out); }
.nav-inner {
  width: min(100%, var(--container)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(7, 20, 43, 0.55); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled { padding-block: 10px; }
.nav.is-scrolled .nav-inner { background: rgba(7, 20, 43, 0.82); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6); }
.brand { display: inline-flex; align-items: center; color: var(--white); }
.brand svg { height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--mute-on-dark); transition: color 0.3s, background-color 0.3s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav .btn { padding: 13px 20px; font-size: 0.78rem; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.nav-toggle span { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s, top 0.3s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  padding: calc(var(--nav-h) + 20px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(-100%); transition: transform 0.6s var(--ease-in-out); visibility: hidden;
}
.nav-mobile.is-open { transform: translateY(0); visibility: visible; }
.nav-mobile .menu-label { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.nav-mobile a:not(.btn) { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: clamp(1.05rem, 4.6vw, 1.5rem); padding: 11px 0; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile a:not(.btn)::after { content: '+'; font-size: 1rem; color: var(--lime); opacity: 0.8; }
.nav-mobile .btn { margin-top: 20px; align-self: flex-start; font-size: 0.82rem; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 96px; min-height: 100svh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-rings { position: absolute; right: -12%; top: 50%; width: 74vw; max-width: 1100px; height: auto; transform: translateY(-50%); opacity: 0.9; }
.hero-rings rect { fill: none; stroke: var(--lime); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0.22; animation: ring-pulse 7s var(--ease-in-out) infinite; }
.hero-rings rect:nth-child(1) { animation-delay: 0s; }
.hero-rings rect:nth-child(2) { animation-delay: 0.5s; }
.hero-rings rect:nth-child(3) { animation-delay: 1s; }
.hero-rings rect:nth-child(4) { animation-delay: 1.5s; }
.hero-rings rect:nth-child(5) { animation-delay: 2s; }
.hero-rings rect:nth-child(6) { animation-delay: 2.5s; }
.hero-rings rect:nth-child(7) { animation-delay: 3s; }
.hero-rings rect:nth-child(8) { animation-delay: 3.5s; }
@keyframes ring-pulse {
  0% { opacity: 0.05; transform: scale(0.96); }
  40% { opacity: 0.4; }
  100% { opacity: 0.05; transform: scale(1.04); }
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  left: -20%; bottom: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,80,216,0.55) 0%, rgba(16,80,216,0) 65%);
  filter: blur(20px);
}
.plus-field { position: absolute; inset: 0; }
.plus-field span {
  position: absolute; font-family: var(--font-display); font-weight: 300; color: var(--white);
  opacity: 0.35; font-size: 2rem; line-height: 1; animation: float 9s ease-in-out infinite;
}
.plus-field span:nth-child(1) { left: 6%; top: 18%; font-size: 1.6rem; animation-delay: -2s; }
.plus-field span:nth-child(2) { left: 42%; top: 12%; font-size: 2.4rem; animation-delay: -5s; }
.plus-field span:nth-child(3) { left: 30%; top: 78%; font-size: 1.4rem; animation-delay: -1s; }
.plus-field span:nth-child(4) { left: 90%; top: 20%; font-size: 1.8rem; animation-delay: -7s; }
.plus-field span:nth-child(5) { left: 62%; top: 88%; font-size: 2.2rem; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(90deg); } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 4.7vw, 3.5rem); line-height: 1.0; margin-top: 22px; font-weight: 700; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line-inner { display: block; }
.hero-title em { font-style: normal; color: var(--lime); }
.hero-sub { margin-top: 28px; max-width: 48ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--mute-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 0.92rem; color: var(--mute-on-dark); }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy); margin-left: -8px;
  display: grid; place-items: center; font-weight: 700; font-size: 0.72rem; color: var(--navy);
  font-family: var(--font-display);
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* Board */
.hero-board-wrap { position: relative; perspective: 1600px; }
.hero-board {
  position: relative; border-radius: var(--radius-lg); padding: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d; will-change: transform;
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 16px; }
.board-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; }
.board-title small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--mute-on-dark); font-size: 0.8rem; margin-top: 2px; }
.board-counter {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--lime); color: var(--navy); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
}
.board-counter b { font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.board-counter .pop { display: inline-block; }
.board-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.board-col { position: relative; height: 332px; overflow: hidden; border-radius: var(--radius-md); background: rgba(7,20,43,0.55); border: 1px solid rgba(255,255,255,0.06); padding: 10px; display: flex; flex-direction: column; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--mute-on-dark); padding: 2px 4px 10px; }
.col-head span { white-space: nowrap; display: inline-flex; align-items: center; min-width: 0; }
.col-head b { font-family: var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; flex: none; }
.col-head .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--white); opacity: 0.4; margin-right: 6px; display: inline-block; }
.board-col[data-stage="3"] .col-head .dot { background: var(--lime); opacity: 1; }
.board-col[data-stage="3"] .col-head { color: var(--lime); }
.col-body { position: relative; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.lead-card {
  position: relative; background: var(--white); color: var(--navy); border-radius: 12px; padding: 10px 10px 10px;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.5); will-change: transform;
}
.lead-card .av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; color: var(--white); background: var(--blue); }
.lead-card .txt { min-width: 0; }
.lead-card .nm { display: block; font-weight: 700; font-size: 0.74rem; line-height: 1.15; overflow-wrap: normal; }
.lead-card .mt { display: block; font-size: 0.66rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.lead-card .tag { grid-column: 1 / -1; display: inline-flex; width: max-content; font-size: 0.6rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--sand); color: var(--navy); letter-spacing: 0.02em; }
.lead-card.is-won { outline: 2px solid var(--lime); }
.lead-card.is-won .av { background: var(--lime); color: var(--navy); }
.lead-card.is-won .tag { background: var(--lime); }
.board-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; background: var(--white); color: var(--navy);
  font-weight: 700; font-size: 0.78rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
}
.board-chip .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--lime); font-family: var(--font-display); font-size: 0.8rem; }
.board-chip.c1 { top: -18px; left: -26px; animation: chip-float 7s ease-in-out infinite; }
.board-chip.c2 { bottom: -16px; right: -20px; animation: chip-float 8s ease-in-out -3s infinite; }
@keyframes chip-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.board-chip.c2 .ic { background: var(--blue); color: var(--white); }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; background: var(--lime); color: var(--navy); overflow: hidden; transform: rotate(-1.5deg); width: 104%; margin: -28px 0 0 -2%; padding-block: 16px; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.35rem); white-space: nowrap; }
.marquee-item svg { width: 26px; height: 26px; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problem { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.scrub-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2.9rem); line-height: 1.2; letter-spacing: -0.015em; margin-top: 28px; max-width: 28ch; }
.scrub-text .w { display: inline-block; opacity: 0.16; transition: none; }
.scrub-text .w.hl { color: var(--blue); }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 72px; }
.stat { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid rgba(7,20,43,0.06); position: relative; overflow: hidden; }
.stat::after { content: '+'; position: absolute; right: 18px; top: 10px; font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; color: var(--blue); opacity: 0.18; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; color: var(--blue); line-height: 1; letter-spacing: -0.03em; }
.stat p { margin-top: 12px; color: var(--mute); font-size: 0.98rem; max-width: 24ch; }
.stat:nth-child(3) { background: var(--navy); color: var(--white); }
.stat:nth-child(3) b { color: var(--lime); }
.stat:nth-child(3) p { color: var(--mute-on-dark); }
.stat:nth-child(3)::after { color: var(--lime); opacity: 0.6; }

/* ---------- Funnel (horizontal) ---------- */
.funnel { position: relative; overflow: clip; }
.funnel-head { padding: clamp(80px, 10vw, 140px) 0 24px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.funnel-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--mute-on-dark); font-size: 0.9rem; }
.funnel-hint i { display: inline-block; width: 40px; height: 2px; background: var(--lime); animation: hint 1.6s ease-in-out infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(0.2); opacity: 0.3; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.funnel-pin { position: relative; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.funnel-track { display: flex; width: max-content; padding-left: var(--gutter); gap: 24px; will-change: transform; }
.panel {
  flex: none; width: min(78vw, 980px); min-height: min(62vh, 560px);
  border-radius: var(--radius-xl); padding: clamp(28px, 3.5vw, 48px);
  background: var(--navy-2); border: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.panel:last-child { margin-right: var(--gutter); }
.panel-num { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--lime); letter-spacing: -0.04em; }
.panel h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); margin-top: 18px; max-width: 16ch; }
.panel p { margin-top: 16px; color: var(--mute-on-dark); max-width: 40ch; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.panel-tags span { font-size: 0.74rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); }
.panel-art { position: relative; min-height: 300px; border-radius: var(--radius-lg); background: var(--navy); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; display: grid; place-items: center; }
.panel-art .ui { width: 82%; }
.panel.is-final { background: var(--blue); }
.panel.is-final .panel-num { -webkit-text-stroke-color: var(--white); }
.panel.is-final .panel-art { background: var(--blue-deep); }

/* Mini UI pieces */
.ui-card { background: var(--white); color: var(--navy); border-radius: 14px; padding: 14px 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7); }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; font-weight: 600; }
.ui-field { height: 12px; border-radius: 6px; background: var(--sand); margin-top: 10px; }
.ui-field.short { width: 55%; }
.ui-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ui-sources span { padding: 6px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: var(--navy); color: var(--white); transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.6s; }
.panel.is-active .ui-sources span { transform: none; opacity: 1; }
.panel.is-active .ui-sources span:nth-child(2) { transition-delay: 0.08s; }
.panel.is-active .ui-sources span:nth-child(3) { transition-delay: 0.16s; }
.panel.is-active .ui-sources span:nth-child(4) { transition-delay: 0.24s; }
.panel.is-active .ui-sources span:nth-child(5) { transition-delay: 0.32s; }

.chat { display: flex; flex-direction: column; gap: 10px; width: 82%; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.82rem; line-height: 1.4; background: var(--white); color: var(--navy); transform: translateY(14px) scale(0.98); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.5s; }
.bubble.me { align-self: flex-end; background: var(--lime); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: 0.64rem; opacity: 0.55; margin-top: 4px; }
.panel.is-active .bubble, .card.is-active .bubble { transform: none; opacity: 1; }
.panel.is-active .bubble:nth-child(2), .card.is-active .bubble:nth-child(2) { transition-delay: 0.35s; }
.panel.is-active .bubble:nth-child(3), .card.is-active .bubble:nth-child(3) { transition-delay: 0.8s; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.cal { width: 82%; background: var(--white); color: var(--navy); border-radius: 14px; padding: 14px; }
.cal-head { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 0.72rem; font-weight: 600; background: var(--sand); }
.cal-grid span.off { background: transparent; opacity: 0.3; }
.cal-grid span.sel { background: var(--blue); color: var(--white); position: relative; }
.cal-grid span.sel::after { content: ''; position: absolute; inset: -4px; border-radius: 10px; border: 2px solid var(--lime); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.cal-slot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--lime); font-size: 0.78rem; font-weight: 700; }

.price { width: 82%; }
.price .ui-row { font-size: 0.86rem; }
.price .amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-top: 8px; letter-spacing: -0.03em; }
.price .amount s { font-size: 1rem; opacity: 0.4; margin-right: 8px; font-weight: 500; }
.price .disc { display: inline-flex; margin-top: 10px; padding: 5px 10px; border-radius: 999px; background: var(--lime); font-size: 0.7rem; font-weight: 800; }
.price .bar { height: 8px; border-radius: 4px; background: var(--sand); margin-top: 16px; overflow: hidden; }
.price .bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.2s var(--ease-out) 0.2s; }
.panel.is-active .price .bar i { width: 72%; }

.contract { width: 82%; }
.contract .lines i { display: block; height: 8px; border-radius: 4px; background: var(--sand); margin-top: 8px; }
.contract .lines i:nth-child(2) { width: 80%; } .contract .lines i:nth-child(3) { width: 60%; }
.contract .sig { margin-top: 18px; height: 54px; position: relative; border-bottom: 1.5px dashed rgba(7,20,43,0.3); }
.contract .sig svg { position: absolute; left: 0; bottom: 4px; width: 60%; height: 50px; overflow: visible; }
.contract .sig path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s var(--ease-in-out) 0.3s; }
.panel.is-active .contract .sig path { stroke-dashoffset: 0; }
.contract .stamp { position: absolute; right: 0; bottom: 6px; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--navy); transform: scale(0) rotate(-20deg); transition: transform 0.6s var(--ease-out) 1.4s; }
.panel.is-active .contract .stamp { transform: scale(1) rotate(0); }

.funnel-progress { position: relative; margin: 36px var(--gutter) 0; height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.funnel-progress-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--lime); border-radius: 2px; }
.funnel-progress-dot { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 10px; background: var(--lime); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.funnel-progress-labels { display: flex; justify-content: space-between; margin: 20px var(--gutter) 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-on-dark); font-weight: 700; }
.funnel-stack { display: none; }

/* ---------- Features (bento) ---------- */
.features { padding: clamp(96px, 12vw, 160px) 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.card {
  position: relative; border-radius: var(--radius-lg); padding: 28px; background: var(--white); color: var(--navy);
  border: 1px solid rgba(7,20,43,0.06); overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(7,20,43,0.45); }
.card h3 { font-size: 1.25rem; line-height: 1.2; }
.card p { color: var(--mute); font-size: 0.98rem; max-width: 36ch; }
.card .art { flex: 1; min-height: 140px; margin-bottom: 14px; position: relative; display: grid; place-items: center; }
.card.c-a { grid-column: span 7; }
.card.c-b { grid-column: span 5; background: var(--navy); color: var(--white); }
.card.c-b p { color: var(--mute-on-dark); }
.card.c-c, .card.c-d, .card.c-e { grid-column: span 4; }
.card.c-e { background: var(--blue); color: var(--white); }
.card.c-e p { color: var(--mute-on-dark); }
.card.c-f { grid-column: span 12; min-height: 200px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; background: var(--lime); }
.card.c-f .txt { max-width: 46ch; }
.card.c-f p { color: rgba(7,20,43,0.7); }
.card .chat { width: 100%; }
.card .chat .bubble { max-width: 70%; background: var(--sand); }
.card .chat .bubble.me { background: var(--lime); }
.roulette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.roulette span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); transition: background-color 0.3s, color 0.3s, transform 0.3s; }
.roulette span.on { background: var(--lime); color: var(--navy); transform: scale(1.08); }
.timeline { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.timeline > div { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; }
.timeline > div > i { width: 12px; height: 12px; border-radius: 4px; background: var(--sand-2); flex: none; }
.timeline > div.done > i { background: var(--lime); }
.timeline > div.now > i { background: var(--blue); animation: ping-dot 1.4s infinite; }
@keyframes ping-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,80,216,0.5); } 50% { box-shadow: 0 0 0 6px rgba(16,80,216,0); } }
.timeline > div > span { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; background: var(--sand); }
.timeline > div.now > span { background: rgba(16,80,216,0.1); }
.timeline em { font-style: normal; font-size: 0.78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline small { font-size: 0.68rem; font-weight: 500; line-height: 1.3; opacity: 0.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline > div:not(.done):not(.now) em, .timeline > div:not(.done):not(.now) small { opacity: 0.5; }
.timeline > div > b { font-size: 0.7rem; opacity: 0.6; width: 30px; text-align: right; flex: none; }
.timeline .tl-kpi { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; margin: 0 0 4px; border-radius: 10px; background: var(--navy); color: var(--white); }
.timeline .tl-kpi span { font-size: 0.74rem; font-weight: 600; color: var(--mute-on-dark); }
.timeline .tl-kpi strong { font-family: var(--font-display); font-size: 1rem; color: var(--lime); white-space: nowrap; }
.cal-week span { aspect-ratio: auto; padding: 8px 0 6px; display: grid; gap: 2px; line-height: 1; }
.cal-week small { font-size: 0.62rem; font-weight: 700; opacity: 0.6; }
.cal-week span.sel small { opacity: 1; color: var(--lime); }
.cal-slot.is-next { margin-top: 6px; background: var(--white); }
.card .cal { width: 100%; background: var(--sand); }
.bars { display: flex; align-items: flex-end; gap: 10px; width: 100%; height: 150px; }
.bars i { flex: 1; height: 100%; border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,0.22); transform-origin: bottom; transform: scaleY(0.1); }
.bars i:nth-child(2) { background: rgba(255,255,255,0.4); }
.bars i:nth-child(4) { background: var(--lime); }
.bars i:nth-child(6) { background: var(--white); }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { padding: 10px 16px; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; }

/* ---------- Segments (stack) ---------- */
.segments { padding: clamp(96px, 12vw, 160px) 0 0; }
.stack { margin-top: 48px; }
.seg {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center;
  border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 56px); min-height: 60vh; margin-bottom: 24px;
  transform-origin: top center; will-change: transform; --dim: 0; overflow: hidden;
}
.seg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--navy); opacity: var(--dim); pointer-events: none; }
.seg:last-child { margin-bottom: 0; }
.seg-1 { background: var(--blue); color: var(--white); }
.seg-2 { background: var(--lime); color: var(--navy); }
.seg-3 { background: var(--sand); color: var(--navy); }
.seg-4 { background: var(--white); color: var(--navy); }
.seg .kicker { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.seg h3 { font-size: clamp(1.7rem, 3.4vw, 3rem); margin-top: 16px; max-width: 14ch; }
.seg p { margin-top: 18px; max-width: 44ch; opacity: 0.8; font-size: 1.05rem; }
.seg .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.seg .chips span { padding: 8px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1.5px solid currentColor; }
.seg-art { position: relative; min-height: 260px; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; }
.seg-1 .seg-art { background: var(--blue-deep); }
.seg-2 .seg-art { background: rgba(7,20,43,0.08); }
.seg-3 .seg-art { background: var(--white); }
.seg-4 .seg-art { background: var(--sand); }
.seg-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 14vw, 12rem); line-height: 1; letter-spacing: -0.05em; opacity: 0.16; }
.seg-art .ui-card { position: absolute; width: 60%; }
.seg-art .ui-card.p1 { left: 8%; top: 14%; transform: rotate(-4deg); }
.seg-art .ui-card.p2 { right: 8%; bottom: 14%; transform: rotate(3deg); }
.segments-end { height: 12vh; }

/* ---------- Numbers ---------- */
.numbers { padding: clamp(96px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.numbers::before { content: '+'; position: absolute; right: -4vw; top: -10vw; font-family: var(--font-display); font-weight: 800; font-size: 40vw; line-height: 1; color: var(--white); opacity: 0.06; pointer-events: none; }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.num { padding: 32px 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.num b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.num p { margin-top: 14px; color: var(--mute-on-dark); font-size: 0.98rem; }
.num-note { margin-top: 20px; font-size: 0.8rem; color: var(--mute-on-dark); }

/* ---------- Quote ---------- */
.quote { padding: clamp(96px, 12vw, 160px) 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; }
.quote blockquote::before { content: '“'; color: var(--blue); }
.quote blockquote::after { content: '”'; color: var(--blue); }
.quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--mute); font-weight: 600; }
.quote figcaption i { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; color: var(--white); font-style: normal; font-family: var(--font-display); font-size: 0.8rem; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: var(--white); padding: clamp(56px, 9vw, 140px) 0; }
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--lime); color: var(--navy); padding: clamp(28px, 5vw, 72px); }
.cta-frames { position: absolute; right: -22%; top: -10%; width: 78%; max-width: 760px; height: auto; pointer-events: none; }
.cta-frames rect { fill: none; stroke: var(--navy); stroke-width: 1.2; opacity: 0.14; transform-box: fill-box; transform-origin: center; animation: ring-pulse 7s var(--ease-in-out) infinite; }
.cta-frames rect:nth-child(2) { animation-delay: 0.6s; } .cta-frames rect:nth-child(3) { animation-delay: 1.2s; } .cta-frames rect:nth-child(4) { animation-delay: 1.8s; } .cta-frames rect:nth-child(5) { animation-delay: 2.4s; } .cta-frames rect:nth-child(6) { animation-delay: 3s; }
.cta-body { position: relative; max-width: 640px; }
.cta-mark { width: 56px; height: 56px; margin-bottom: 24px; filter: drop-shadow(0 12px 24px rgba(7,20,43,0.25)); }
.cta .eyebrow { color: var(--navy); opacity: 0.7; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; margin-top: 14px; max-width: 13ch; }
.cta-text { margin-top: 18px; max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(7,20,43,0.78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-outline-navy { border: 1.5px solid rgba(7,20,43,0.35); color: var(--navy); }
.btn-outline-navy:hover { border-color: var(--navy); background: rgba(7,20,43,0.06); }
.cta-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.88rem; font-weight: 600; color: rgba(7,20,43,0.75); }
.cta-points li { display: flex; align-items: center; gap: 8px; }
.cta-points li::before { content: '+'; width: 18px; height: 18px; border-radius: 6px; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; }
@media (max-width: 640px) {
  .cta-frames { right: -40%; top: auto; bottom: -18%; width: 120%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-points { flex-direction: column; gap: 10px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer .brand svg { height: 34px; }
.footer-about { margin-top: 18px; color: var(--mute-on-dark); max-width: 32ch; font-size: 0.95rem; }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.footer ul { margin-top: 16px; display: grid; gap: 10px; }
.footer ul a { color: var(--mute-on-dark); transition: color 0.3s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--mute-on-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rings { right: -30%; width: 110vw; top: 60%; }
  .bento .card.c-a { grid-column: span 12; }
  .bento .card.c-b { grid-column: span 12; }
  .bento .card.c-c, .bento .card.c-d, .bento .card.c-e { grid-column: span 6; }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: grid; }
  .funnel-pin { height: auto; }
  .funnel-track { display: grid; width: auto; padding-inline: var(--gutter); grid-template-columns: 1fr; }
  .panel { width: 100%; grid-template-columns: 1fr; margin-right: 0 !important; }
  .funnel-progress, .funnel-progress-labels { display: none; }
  .funnel-hint { display: none; }
  .seg { grid-template-columns: 1fr; min-height: auto; }
  .seg-art { min-height: 220px; }
  .stats-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .board-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-col { height: 344px; }
  .board-chip.c1 { left: 6px; top: -14px; } .board-chip.c2 { right: 6px; }
  .bento .card.c-c, .bento .card.c-d, .bento .card.c-e { grid-column: span 12; }
  .num-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee { transform: none; margin-top: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .loader { display: none; }
  .cursor { display: none; }
  .scrub-text .w { opacity: 1; }
}
