/* ──────────────────────────────────────────────────────────
   ROBUSTA — Landing
   Aesthetic: editorial dataviz, warm beige, organic nodes
   ────────────────────────────────────────────────────────── */

:root {
  --bg: #F9F6F0;
  --bg-2: #F2EDE0;
  --ink: #1A1A1A;
  --ink-soft: #3A3A37;
  --muted: #7A766C;
  --line: #1A1A1A;
  --paper: #FFFFFF;

  --c-cyan:   #00B5C7;
  --c-magenta:#E84A8E;
  --c-yellow: #F5C518;
  --c-navy:   #1F2D5C;
  --c-green:  #4FAE52;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --r: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
}

p, button, input, label, small {
  font-family: var(--font-body);
}

/* canvas behind everything */
#graph {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* subtle paper grain */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 2; }

::selection { background: var(--c-yellow); color: var(--ink); }

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(249, 246, 240, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(26,26,26,.08);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .02em;
}
.brand svg { transform: translateY(3px); }
.brand-name {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.brand em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand em { display: none; }
@media (min-width: 720px) { .brand em { display: inline; } }

.nav-meta { display: inline-flex; align-items: center; gap: 18px; }
.nav-meta .muted { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dot-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 rgba(79,174,82,.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,174,82,.55); }
  70% { box-shadow: 0 0 0 8px rgba(79,174,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,174,82,0); }
}
.nav-meta .muted:not(.small) { display: none; }
@media (min-width: 880px) { .nav-meta .muted:not(.small) { display: inline; } }

.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.cta-pill:hover { background: var(--c-navy); transform: translateY(-1px); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--pad) 60px;
  position: relative;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid rgba(26,26,26,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 28px;
}
.display em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
}
.display.sm {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
/* Legacy alias — same as .display.sm */
.display.geo {
  font-family: var(--font-display);
  font-weight: 600;
}

.word-wrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.word-wrap .strike {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  color: var(--muted);
  font-style: italic;
  opacity: 0;
  animation: strikeIn 1s .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.word-wrap .strike::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 55%;
  height: 4px;
  background: var(--c-magenta);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strikeBar 0.55s 1.4s cubic-bezier(.7,0,.3,1) forwards;
}
.word-wrap .replace {
  opacity: 0;
  display: inline-block;
  transform: translateY(.2em);
  animation: replaceIn .7s 2s cubic-bezier(.2,.7,.2,1) forwards;
  color: var(--ink);
  font-weight: 500;
}
@keyframes strikeIn { to { opacity: 1; } }
@keyframes strikeBar { to { transform: scaleX(1); } }
@keyframes replaceIn { to { opacity: 1; transform: translateY(0); } }

.lede {
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  margin: 0 0 36px;
  line-height: 1.5;
}
.lede u {
  text-decoration: none;
  background-image: linear-gradient(120deg, var(--c-yellow), var(--c-yellow));
  background-size: 100% 8px;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 2px;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 80px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-magenta) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary .arrow { transition: transform .25s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid rgba(26,26,26,.2);
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: rgba(26,26,26,.04); border-color: var(--ink); }

/* ── STAGE: reviews → insights ───────────────────────── */
.stage-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 60px;
}
.stage {
  position: relative;
  border-top: 1px solid rgba(26,26,26,.12);
  padding-top: 24px;
}
.stage-rail {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.rail-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(26,26,26,.25), rgba(26,26,26,.05));
}
.stage-inner {
  position: relative;
  height: clamp(380px, 46vw, 540px);
}

.review, .insight {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r);
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(26,26,26,.04),
    0 10px 30px -12px rgba(26,26,26,.18),
    0 30px 60px -30px rgba(26,26,26,.22);
  width: clamp(240px, 26vw, 320px);
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid rgba(26,26,26,.06);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--rot, 0deg)); }
}

.review header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.review .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.review strong { font-size: 13px; }
.review .stars { color: var(--c-yellow); font-size: 13px; letter-spacing: 1px; line-height: 1; }
.review .stars span { color: rgba(26,26,26,.18); }
.review .when { margin-left: auto; font-family: var(--font-body); font-size: 10px; color: var(--muted); }
.review p { margin: 0; color: var(--ink-soft); }
.review mark { background: rgba(245,197,24,.4); padding: 1px 3px; border-radius: 3px; }

.r1 { top: 6%; left: 2%; --rot: -3deg; animation-delay: -1s; }
.r2 { top: 36%; left: 14%; --rot: 2deg; animation-delay: -3s; }
.r3 { top: 64%; left: 4%; --rot: -1.5deg; animation-delay: -5s; }

.insight {
  background: #FFFDF8;
  width: clamp(220px, 22vw, 280px);
}
.insight .kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}
.bar-lbl { color: var(--ink-soft); }
.bar { height: 6px; background: rgba(26,26,26,.07); border-radius: 99px; position: relative; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c-cyan); border-radius: 99px; animation: barIn 1.4s cubic-bezier(.2,.7,.2,1) forwards; transform-origin: left; transform: scaleX(0); }
@keyframes barIn { to { transform: scaleX(1); } }
.bar-val { font-family: var(--font-body); font-weight: 500; font-size: 11px; }
.insight footer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--c-navy);
  padding-top: 10px;
  border-top: 1px dashed rgba(26,26,26,.15);
}

.donut { width: 100%; height: auto; max-width: 180px; display: block; margin: 0 auto; }
.donut-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; fill: var(--ink); }
.donut-lbl { font-family: var(--font-body); font-weight: 500; font-size: 8px; letter-spacing: .1em; fill: var(--muted); text-transform: uppercase; }

.topics { list-style: none; padding: 0; margin: 0; }
.topics li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(26,26,26,.06);
}
.topics li:last-child { border-bottom: 0; }
.topics .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.topics b { margin-left: auto; font-family: var(--font-body); font-size: 11px; color: var(--ink-soft); font-weight: 500; }

.i1 { top: 4%; right: 16%; --rot: 2deg; animation-delay: -2s; }
.i2 { top: 30%; right: 2%; --rot: -2deg; animation-delay: -4s; }
.i3 { top: 62%; right: 18%; --rot: 1deg; animation-delay: -6s; }

/* connector arrow from reviews to insights (decorative) */
.stage-inner::before {
  content: "";
  position: absolute;
  top: 50%; left: 38%; right: 38%;
  height: 1px;
  background:
    linear-gradient(90deg,
      transparent 0,
      rgba(26,26,26,.18) 20%,
      rgba(26,26,26,.18) 80%,
      transparent 100%);
  pointer-events: none;
}
.stage-inner::after {
  content: "↳";
  position: absolute;
  top: calc(50% - 14px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-magenta);
  background: var(--bg);
  padding: 0 10px;
}

@media (max-width: 820px) {
  .stage-inner { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .review, .insight { position: relative; top: auto; left: auto; right: auto; --rot: 0deg; width: 100%; animation: none; }
  .stage-inner::before, .stage-inner::after { display: none; }
}
@media (max-width: 560px) {
  .stage-inner { grid-template-columns: 1fr; gap: 16px; }
  .review p, .insight { font-size: 15px; }
}

/* ── VALUE SECTION ───────────────────────────────────── */
.value {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--pad) 60px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 760px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(26,26,26,.08);
  border-radius: 18px;
  padding: 28px 24px 26px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.card.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(26,26,26,.25);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 24px;
}
.card-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ── PROCESS LINE ────────────────────────────────────── */
.process {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 60px;
}
.process ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid rgba(26,26,26,.12);
  border-bottom: 1px solid rgba(26,26,26,.12);
  padding: 36px 0;
}
.process li { position: relative; padding-left: 64px; }
.process .step-num {
  position: absolute; top: -2px; left: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--c-magenta);
  font-style: normal;
  font-weight: 700;
}
.process h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 6px;
}
.process p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ── FORM ────────────────────────────────────────────── */
.form-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--pad) 80px;
}
.form-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(232,74,142,.08), transparent 60%),
    radial-gradient(600px 400px at 100% 30%, rgba(0,181,199,.07), transparent 60%),
    var(--paper);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  border: 1px solid rgba(26,26,26,.08);
  box-shadow: 0 30px 80px -40px rgba(26,26,26,.25);
}
.form-header { margin-bottom: 32px; text-align: left; }
.form-header h2 { margin: 0; }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field label span { color: var(--c-magenta); }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26,26,26,.2);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field input::placeholder { color: rgba(26,26,26,.3); }
.field input:focus { border-bottom-color: var(--ink); }
.field input:invalid:not(:placeholder-shown) { border-bottom-color: var(--c-magenta); }
.hint { font-family: var(--font-body); font-size: 10px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }

.btn-submit {
  position: relative;
  margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 20px 28px;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: background .2s ease, transform .2s ease;
  isolation: isolate;
}
.btn-submit::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--c-navy), var(--c-magenta));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.btn-submit:hover { transform: translateY(-1px); }
.btn-submit:hover::before { opacity: 1; }
.btn-submit .btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-submit.loading .btn-spinner { display: inline-block; }
.btn-submit.loading .btn-arrow { display: none; }
.btn-submit.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot { font-size: 12px; color: var(--muted); margin: 8px 0 0; text-align: center; }

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { margin-bottom: 14px; }
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 10px;
}
.form-success p { color: var(--ink-soft); }

/* ── FOOTER ──────────────────────────────────────────── */
.foot {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 30px var(--pad) 60px;
  border-top: 1px solid rgba(26,26,26,.12);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.foot-row.sub { border-top: 1px dashed rgba(26,26,26,.12); }
.brand-foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-foot-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
}
.muted { color: var(--muted); }
.muted.small { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ── REVEAL ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
