/* ============================================================
   Aleida — homepage. Restrained palette.
   Cream base · soft-cream cards · warm borders · ink/graphite/stone.
   Strawberry strictly as accent (~5%). No gradients. Lots of air.
   Structure inspired by Cura (numbered process), Tresmares (editorial
   type + whitespace), Enerblock (high-tech detail).
   ============================================================ */

:root {
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --disp: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cream: #FAF7F2;
  --soft: #F2EDE4;
  --ink: #1A1814;
  --graphite: #4A4640;
  --stone: #8A857C;
  --straw: #E14B47;
  --straw-deep: #B73A37;
  --border: #E5DFD3;

  --nav-h: 76px;
  --pad: clamp(22px, 5.5vw, 100px);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--straw); color: var(--cream); }

/* type pairing: Plus Jakarta Sans (display) + DM Sans (body) */
h1, h2, h3, h4, h5, h6,
.hv-d-brand, .sn-brand, .fk-num, .b-state p, .mission-h1 { font-family: var(--disp); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- scroll progress ---------- */
.scrollbar { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--straw); z-index: 200; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 160;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(250,247,242,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand svg { width: 27px; height: 30px; display: block; }
.brand .wm { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.nav-mid { display: flex; align-items: center; gap: 36px; }
.nav-mid a { font-size: 14.5px; color: var(--graphite); transition: color .18s ease; position: relative; }
.nav-mid a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--straw); transform: scaleX(0); transform-origin: left; transition: transform .26s cubic-bezier(.2,.7,.2,1); }
.nav-mid a:hover { color: var(--ink); }
.nav-mid a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--straw); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: transform .2s ease, background .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--straw-deep); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn.lg { font-size: 17px; padding: 17px 30px; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn.ghost:hover { --bg: var(--soft); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stone); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--straw-deep); font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow .tick { width: 26px; height: 1px; background: var(--straw); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 6px) var(--pad) 34px; overflow: hidden; }
#dotfield { position: absolute; inset: 0; z-index: 0; --dot-base: 138,133,124; --dot-glow: 26,24,20; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 68px 68px; opacity: .5;
  mask-image: radial-gradient(120% 100% at 50% 42%, #000 36%, transparent 82%);
}
.corner { position: absolute; z-index: 5; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px 0; }
.tag { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; padding: 8px 16px 8px 12px; border-radius: 40px; background: var(--soft); border: 1px solid var(--border); color: var(--stone); }
.tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--straw); flex: none; position: relative; }
.tag .pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--straw); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tag .pulse::after { animation: none; opacity: 0; } }

.hero h1 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.03; font-size: clamp(42px, 7.6vw, 116px); color: var(--ink); }
.hero h1 .line { display: block; }
.hero h1 .hl { color: var(--straw); position: relative; white-space: nowrap; }
.hero h1 .reveal-word { display: inline-block; opacity: 0; transform: translateY(0.45em); animation: wordIn .72s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * .075s + .12s); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .reveal-word { opacity: 1; transform: none; animation: none; } }

.hero-sub { margin: 36px 0 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--graphite); max-width: 46ch; text-wrap: pretty; }
.hero-cta { margin-top: 44px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.play { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--cream); }
.play svg { width: 9px; height: 9px; margin-left: 1px; }

.hero-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--stone); }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--straw); animation: blink 1.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.scrollcue { display: inline-flex; align-items: center; gap: 10px; color: var(--stone); }
.scrollcue .bar { width: 30px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.scrollcue .bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--straw); animation: slide 1.8s ease-in-out infinite; }
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }

/* =========================================================
   LOGO / TRUST STRIP
   ========================================================= */
.trust { padding: clamp(40px, 5vw, 64px) var(--pad); border-bottom: 1px solid var(--border); }
.trust-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; justify-content: space-between; }
.trust .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); flex: none; }
.trust .logos { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.trust .logos span { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); opacity: .62; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { position: relative; overflow: hidden; background: var(--soft); color: var(--graphite); padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee .track { display: inline-flex; white-space: nowrap; animation: marq 30s linear infinite; will-change: transform; }
.marquee:hover .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
.marquee .item { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; }
.marquee .item::before { content: "✳"; color: var(--straw); margin: 0 30px; font-size: 12px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section { padding: clamp(82px, 11vw, 160px) var(--pad); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(30px, 5vw, 72px); flex-wrap: wrap; margin-bottom: clamp(46px, 6vw, 84px); }
.sec-head .lead { flex: 1 1 480px; max-width: 640px; }
.sec-head h2 { margin: 0; font-weight: 600; letter-spacing: -.038em; line-height: 1.04; font-size: clamp(34px, 4.8vw, 64px); color: var(--ink); text-wrap: balance; }
.sec-head h2 .hl { color: var(--straw); }
.sec-head .aside { flex: 0 1 340px; font-size: 17px; line-height: 1.55; color: var(--graphite); }

/* =========================================================
   PROCESS (Cura-style numbered, auto-advancing)
   ========================================================= */
.proc-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: stretch; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 26px 0; border-top: 1px solid var(--border); cursor: pointer; position: relative; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step .idx { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--stone); padding-top: 6px; transition: color .3s; }
.step h3 { margin: 0; font-size: clamp(21px, 2.1vw, 27px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); transition: color .3s; }
.step p { margin: 9px 0 0; color: var(--graphite); font-size: 16px; line-height: 1.55; max-width: 42ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease, margin .35s ease; }
.step .progress { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--straw); }
.step.active .idx { color: var(--straw); }
.step.active h3 { color: var(--straw-deep); }
.step.active p { max-height: 120px; opacity: 1; }
.step.active .progress { width: 100%; }
.step.active.run .progress { transition: width 5s linear; }

.stage { position: relative; border-radius: 18px; overflow: hidden; min-height: 480px; background: var(--soft); border: 1px solid var(--border); color: var(--ink); display: flex; }
.stage .stage-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 42px 42px; opacity: .6; mask-image: radial-gradient(120% 90% at 70% 20%, #000 28%, transparent 78%); }
.stage .stage-tag { position: absolute; top: 18px; left: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); z-index: 4; }
.stage .stage-no { position: absolute; top: 12px; right: 20px; font-family: var(--mono); font-size: 64px; line-height: 1; font-weight: 500; color: var(--border); z-index: 2; }
.pane { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; transform: scale(.98); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.pane.on { opacity: 1; transform: none; }

.field { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; width: 100%; max-width: 330px; }
.field i { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--border); display: block; transform: scale(.7); }
.field i.lit { background: var(--ink); animation: pop .5s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

.wave { display: flex; align-items: center; gap: 6px; height: 150px; }
.wave span { width: 6px; border-radius: 4px; background: var(--graphite); height: 12%; }
.voicecard { width: 100%; max-width: 360px; }
.voiceline { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 22px; }
.voiceline .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--straw); animation: blink 1.4s steps(1) infinite; }
.voicecard p { margin-top: 24px; font-size: 15px; line-height: 1.55; color: var(--graphite); }

.scores { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 18px; }
.score .lab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.score .lab b { color: var(--ink); }
.score .meter { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; }
.score .meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--ink); transition: width 1s cubic-bezier(.2,.7,.2,1); }

.decide { width: 100%; max-width: 330px; background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.decide .who { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.decide .ava { width: 46px; height: 46px; border-radius: 12px; background: var(--straw); display: grid; place-items: center; flex: none; }
.decide .ava svg { width: 24px; height: 26px; }
.decide .who b { font-size: 18px; font-weight: 600; color: var(--ink); }
.decide .who span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--stone); text-transform: uppercase; margin-top: 3px; }
.decide .rowline { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--graphite); }
.decide .rowline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.decide .stamp { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 8px; background: rgba(225,75,71,.1); color: var(--straw-deep); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* =========================================================
   STATS
   ========================================================= */
.stats-section { padding: 0 var(--pad) clamp(82px, 10vw, 150px); }
.stats-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.stat { background: var(--soft); border: 1px solid var(--border); border-radius: 16px; padding: clamp(28px, 4vw, 52px); }
.stat .num { font-size: clamp(44px, 6vw, 88px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat .num .u { color: var(--straw); }
.stat .cap { margin-top: 16px; color: var(--graphite); font-size: 15.5px; line-height: 1.5; max-width: 28ch; }

/* =========================================================
   ROADMAP (Cura-style staged timeline)
   ========================================================= */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.milestone { border-top: 2px solid var(--border); padding-top: 22px; position: relative; }
.milestone::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.milestone.done::before { background: var(--straw); }
.milestone .when { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.milestone h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.milestone p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--graphite); }

/* =========================================================
   CTA
   ========================================================= */
.cta-sec { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(86px, 12vw, 172px) var(--pad); }
.cta-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-inner h2 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.0; font-size: clamp(40px, 7vw, 98px); color: var(--ink); max-width: 18ch; text-wrap: balance; }
.cta-inner h2 .hl { color: var(--straw); }
.cta-inner p { margin: 30px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--graphite); max-width: 46ch; }
.cta-inner .cta-cta { margin-top: 46px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-inner .micro { margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--cream); color: var(--graphite); padding: clamp(56px, 7vw, 96px) var(--pad) 38px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer .brand .wm { color: var(--ink); }
.footer .f-tag { max-width: 30ch; margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--graphite); }
.footer .cols { display: flex; gap: clamp(34px, 6vw, 88px); flex-wrap: wrap; }
.footer .col h5 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.footer .col a { display: block; padding: 5px 0; font-size: 15px; color: var(--graphite); transition: color .18s; }
.footer .col a:hover { color: var(--straw); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav-mid { display: none; }
  .proc-grid { grid-template-columns: 1fr; }
  .stage { min-height: 380px; order: -1; }
  .stats-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .step p { max-height: none; opacity: 1; margin-top: 9px; }
}
@media (max-width: 560px) {
  .hero-foot .scrollcue { display: none; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
