/* ============================================================
   ENGARA.AI — Marketing site styles
   Design tokens + components. Mobile-first.
   ============================================================ */

:root {
  /* Brand */
  --ink:        #0b1020;   /* deep ink/navy base */
  --ink-2:      #11182b;   /* slightly lifted ink */
  --ink-soft:   #1b2438;   /* card on dark */
  --teal:       #14c8a8;   /* primary accent */
  --teal-deep:  #0fa98e;
  --blue:       #2f6bff;   /* secondary accent */
  --blue-deep:  #1f4fd6;

  /* Neutrals */
  --paper:      #ffffff;
  --sand:       #f6f3ee;   /* warm neutral section bg */
  --sand-2:     #efe9e0;
  --line:       #e7e2d8;   /* warm hairline */
  --line-cool:  #e6e9f0;

  /* Text */
  --text:       #0d1426;
  --text-2:     #4c5667;
  --text-3:     #7a8496;
  --on-dark:    #eef2f8;
  --on-dark-2:  #9aa7be;

  /* Gradient + glow */
  --grad: linear-gradient(110deg, var(--teal) 0%, var(--blue) 100%);
  --grad-soft: linear-gradient(110deg, rgba(20,200,168,.16) 0%, rgba(47,107,255,.16) 100%);

  /* Shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(13,20,38,.06), 0 2px 8px rgba(13,20,38,.05);
  --sh:    0 4px 14px rgba(13,20,38,.07), 0 16px 40px rgba(13,20,38,.07);
  --sh-lg: 0 10px 30px rgba(13,20,38,.10), 0 30px 80px rgba(13,20,38,.12);
  --sh-glow: 0 20px 60px rgba(20,200,168,.22);

  /* Type */
  --display: "Sora", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3,
.journey h2, .journey h3, .geo h2, .geo h3, .outcomes h2, .outcomes h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section--ink .eyebrow, .journey .eyebrow, .geo .eyebrow, .outcomes .eyebrow { color: var(--teal); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 18px 0 0; }
.section-head .lede { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); }
.section--ink .section-head .lede,
.journey .section-head .lede, .geo .section-head .lede, .outcomes .section-head .lede { color: var(--on-dark-2); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 999px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn--accent { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(20,200,168,.30); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,200,168,.40); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(13,20,38,.02), var(--sh-sm); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.brand-logo { height: 36px; width: auto; flex: none; }

.nav { display: none; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .18s; position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--grad); border-radius:2px; transition: width .22s ease; }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 14px var(--gut) 26px;
  display: grid; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
}
.mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a { padding: 13px 6px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; }

@media (min-width: 940px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .header-cta .btn-mobile-hide { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero::before { /* glow */
  content:""; position:absolute; top:-30%; right:-10%; width:65%; height:120%;
  background: radial-gradient(closest-side, rgba(20,200,168,.20), rgba(47,107,255,.10) 55%, transparent 72%);
  filter: blur(10px); pointer-events:none;
}
.hero::after { /* faint grid */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 13.5px; color: var(--on-dark-2);
  background: rgba(255,255,255,.04); margin-bottom: 26px;
}
.hero-pill b { color: #fff; font-weight: 600; }
.hero-pill .tag { background: var(--grad); color: #fff; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }

.hero h1 { font-size: clamp(36px, 6.2vw, 68px); color: #fff; letter-spacing: -0.035em; }
.hero h1 .grad-text { letter-spacing: -0.035em; }
.hero .sub { margin-top: 22px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--on-dark-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.trust { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.10); }
.trust .label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; font-weight: 600; }
.trust .verticals { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust .verticals span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--on-dark); font-weight: 500; }
.trust .verticals span::before { content:""; width: 6px; height: 6px; border-radius: 999px; background: var(--teal); }

@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Chat mockup ---------- */
.chat-stage { position: relative; perspective: 1600px; }
.chat-stage .float-badge {
  position: absolute; z-index: 5; background: #fff; color: var(--text); border-radius: 14px;
  box-shadow: var(--sh-lg); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.chat-stage .badge-lang { top: -18px; left: -10px; }
.chat-stage .badge-route { bottom: 36px; right: -14px; }
.float-badge .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--teal-deep); flex: none; }
.float-badge .ico svg { width: 16px; height: 16px; }
.float-badge b { display: block; font-weight: 700; font-size: 13.5px; color: var(--text); }
.float-badge small { color: var(--text-3); font-size: 11.5px; }

.chat-card {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  overflow: hidden; transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d;
  transition: transform .5s ease;
}
.chat-stage:hover .chat-card { transform: rotateY(-3deg) rotateX(1deg); }
@media (max-width: 980px){ .chat-card { transform: none; } .chat-stage:hover .chat-card { transform: none; } }

.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-cool); }
.chat-avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-top .who b { font-family: var(--display); font-size: 15px; color: var(--text); }
.chat-top .who .status { display:flex; align-items:center; gap:6px; font-size:12px; color: var(--text-3); }
.chat-top .who .status::before { content:""; width:7px;height:7px;border-radius:999px;background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.18); }
.chat-top .chan { margin-left: auto; display:flex; gap:6px; }
.chat-top .chan i { width: 26px; height: 26px; border-radius: 8px; display:grid; place-items:center; background: var(--sand); color: var(--text-2); }
.chat-top .chan i svg { width: 15px; height: 15px; }

.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg,#fbfbfc,#fff); min-height: 330px; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; opacity: 1; }
.msg.show { animation: msgIn .4s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg.in { align-self: flex-start; background: var(--sand); color: var(--text); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.msg .meta { display:block; margin-top: 6px; font-size: 11px; opacity: .6; }
.msg .translate { display:block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12.5px; opacity: .82; }
.msg.in .translate { border-top-color: var(--line-cool); }
.typing { align-self: flex-start; display:flex; gap:5px; padding: 13px 15px; background: var(--sand); border-radius: 16px; border-bottom-left-radius:5px; }
.typing span { width: 7px; height: 7px; border-radius: 999px; background: var(--text-3); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: .2s; } .typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

.chat-foot { display:flex; align-items:center; gap:10px; padding: 12px 16px; border-top: 1px solid var(--line-cool); }
.chat-foot .field { flex:1; height: 38px; border-radius: 999px; background: var(--sand); display:flex; align-items:center; padding: 0 16px; color: var(--text-3); font-size: 13px; }
.chat-foot .send { width: 38px; height: 38px; border-radius: 999px; background: var(--grad); display:grid; place-items:center; flex:none; }
.chat-foot .send svg { width: 17px; height:17px; color:#fff; }

/* ============================================================
   PROBLEM — stat cards
   ============================================================ */
.stat-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px){ .stat-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 24px; box-shadow: var(--sh-sm); position: relative; overflow:hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.stat-card .num { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 46px); letter-spacing:-.03em; line-height: 1; }
.stat-card .num.grad-text, .stat-card .num { background: var(--grad); -webkit-background-clip:text; background-clip:text; color: transparent; }
.stat-card .num .unit { font-size: .5em; -webkit-text-fill-color: var(--text-3); color: var(--text-3); margin-left: 3px; }
.stat-card .desc { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.stat-card .ic { position:absolute; top: 22px; right: 22px; width: 22px; height: 22px; color: var(--text-3); opacity:.5; }

/* ============================================================
   JOURNEY — connected path
   ============================================================ */
.journey { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.journey .tagline { font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; color:#fff; margin-top: 18px; letter-spacing:-.02em; }
.journey .tagline em { font-style: normal; }
.journey-track { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.journey-svg { position: absolute; top: 0; left: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; display: none; }
@media (min-width: 1080px){ .journey-svg { display: block; } }
.journey-path { fill: none; stroke: url(#journeyGrad); stroke-width: 3; stroke-linecap: round; }
.journey-path.draw { animation: pathDraw 2.4s cubic-bezier(.45,0,.2,1); }
@keyframes pathDraw { from { stroke-dashoffset: var(--jlen); } }
.journey-path-bg { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 3; stroke-linecap: round; }

.stages { display: grid; gap: 26px; grid-template-columns: 1fr; position: relative; z-index: 2; }
@media (min-width: 760px){ .stages { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px){ .stages { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.stage { text-align: center; }
.stage .dot {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display:grid; place-items:center;
  background: var(--ink-soft); border: 1px solid rgba(255,255,255,.12); color: var(--teal);
  position: relative; z-index: 2; transition: transform .3s, box-shadow .3s, background .3s;
}
.stage .dot svg { width: 26px; height: 26px; }
.stage .dot .step { position:absolute; top:-9px; right:-9px; width:24px; height:24px; border-radius:999px; background: var(--grad); color:#fff; font-size:12px; font-weight:700; display:grid; place-items:center; font-family:var(--display); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.stage.lit .dot { background-color: var(--ink-soft); background-image: linear-gradient(rgba(20,200,168,.16), rgba(20,200,168,.16)); border-color: rgba(20,200,168,.4); box-shadow: var(--sh-glow); transform: translateY(-3px); }
.stage h3 { font-size: 18px; color:#fff; }
.stage p { margin-top: 8px; font-size: 14px; color: var(--on-dark-2); line-height: 1.5; }

/* ============================================================
   FEATURES grid
   ============================================================ */
.feat-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px){ .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px){ .feat-grid { grid-template-columns: repeat(3,1fr); } }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.feat::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--grad); transition: width .35s ease; }
.feat:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: transparent; }
.feat:hover::after { width: 100%; }
.feat .ic { width: 50px; height: 50px; border-radius: 14px; display:grid; place-items:center; background: var(--grad-soft); color: var(--teal-deep); margin-bottom: 18px; transition: transform .25s; }
.feat:hover .ic { transform: scale(1.06) rotate(-3deg); }
.feat .ic svg { width: 25px; height: 25px; }
.feat h3 { font-size: 19px; letter-spacing: -.02em; }
.feat p { margin-top: 9px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.feat .num-tag { position:absolute; top: 22px; right: 24px; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--line); }

/* ============================================================
   GEO signature section
   ============================================================ */
.geo { background: var(--ink); color: var(--on-dark); overflow: hidden; position: relative; }
.geo::before { content:""; position:absolute; bottom:-30%; left:-10%; width:60%; height:120%; background: radial-gradient(closest-side, rgba(47,107,255,.18), transparent 70%); pointer-events:none; }
.geo .wrap { position: relative; z-index: 2; display: grid; gap: clamp(40px,5vw,64px); align-items: center; }
@media (min-width: 980px){ .geo .wrap { grid-template-columns: 1fr 1.05fr; } }
.geo .narrative h2 { color:#fff; font-size: clamp(28px,4vw,46px); margin-top: 16px; }
.geo .narrative .lede { margin-top: 20px; color: var(--on-dark-2); font-size: clamp(16px,1.5vw,19px); }
.geo .keypoint { margin-top: 26px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--teal); }
.geo .keypoint b { color: #fff; }
.geo .flow-line { margin-top: 26px; display:flex; align-items:center; gap: 12px; flex-wrap: wrap; font-family: var(--display); font-weight:600; font-size: clamp(15px,1.6vw,19px); color:#fff; }
.geo .flow-line .chip { padding: 7px 14px; border-radius: 999px; border:1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.geo .flow-line .chip.lit { background: var(--grad); border-color: transparent; }
.geo .flow-line svg { width: 22px; height: 22px; color: var(--teal); flex:none; }

/* GEO dashboard mockup */
.geo-card { background: #fff; color: var(--text); border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 26px; }
.geo-card .gc-top { display:flex; align-items:center; justify-content: space-between; gap: 14px; }
.geo-card .gc-top .lbl { font-size: 13px; color: var(--text-3); font-weight:600; letter-spacing:.06em; text-transform: uppercase; }
.geo-card .gc-top .upd { display:flex; align-items:center; gap:6px; font-size:12px; color: var(--text-3); }
.geo-card .gc-top .upd::before { content:""; width:7px;height:7px;border-radius:999px;background:#22c55e; }

.geo-score { display:flex; align-items: center; gap: 22px; margin: 22px 0 8px; }
.geo-ring { position: relative; width: 120px; height: 120px; flex: none; }
.geo-ring svg { transform: rotate(-90deg); }
.geo-ring .val { position:absolute; inset:0; display:grid; place-content:center; text-align:center; }
#geoRingFill.draw { animation: ringDraw 1.6s cubic-bezier(.2,.8,.2,1); }
@keyframes ringDraw { from { stroke-dashoffset: 326.7; } }
.geo-ring .val b { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing:-.03em; }
.geo-ring .val small { display:block; font-size: 12px; color: var(--text-3); margin-top:-2px; }
.geo-score .meta .trend { display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size: 14px; color: var(--teal-deep); background: rgba(20,200,168,.12); padding: 5px 11px; border-radius: 999px; }
.geo-score .meta .trend svg { width: 14px; height: 14px; }
.geo-score .meta p { margin-top: 12px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-width: 230px; }

.geo-bars { margin-top: 18px; display: grid; gap: 13px; }
.geo-bar .br-top { display:flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.geo-bar .br-top .name { color: var(--text-2); font-weight: 500; }
.geo-bar .br-top .pct { font-family: var(--display); font-weight: 700; color: var(--text); }
.geo-bar .track { height: 8px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.geo-bar .fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transform-origin: left center; }
.geo-bar .fill.grow { animation: growBar 1.1s cubic-bezier(.2,.8,.2,1); }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.geo-engines { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-cool); }
.geo-engines .eng-h { font-size: 12px; color: var(--text-3); font-weight:600; letter-spacing:.06em; text-transform: uppercase; margin-bottom: 12px; }
.eng-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.eng { text-align:center; padding: 11px 6px; border-radius: 12px; background: var(--sand); border:1px solid var(--line); }
.eng .lg { width: 26px; height: 26px; margin: 0 auto 7px; border-radius: 8px; display:grid; place-items:center; color:#fff; font-family: var(--display); font-weight:700; font-size: 13px; }
.eng .nm { font-size: 10.5px; color: var(--text-3); line-height:1.1; min-height: 24px; display:flex; align-items:center; justify-content:center; }
.eng .sc { font-family: var(--display); font-weight: 700; font-size: 16px; margin-top: 2px; }

/* ============================================================
   WHO IT'S FOR — tabs
   ============================================================ */
.tabs { display:flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab {
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2);
  background: var(--paper); border: 1px solid var(--line); transition: .2s; display:inline-flex; align-items:center; gap:9px;
}
.tab:hover { border-color: var(--text-3); color: var(--text); }
.tab.active { background: var(--ink); color:#fff; border-color: var(--ink); }
.tab svg { width: 17px; height:17px; }

.tab-panel { display: none; }
.tab-panel.active { display: grid; gap: clamp(28px,4vw,48px); grid-template-columns: 1fr; align-items: center; animation: fadeUp .4s ease; }
@media (min-width: 900px){ .tab-panel.active { grid-template-columns: 1fr 1fr; } }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px);} to { opacity:1; transform:none; } }
.tab-content .v-name { font-family: var(--display); font-weight:700; font-size: clamp(26px,3vw,38px); letter-spacing:-.02em; }
.tab-content .v-line { margin-top: 16px; font-size: clamp(17px,1.6vw,20px); color: var(--text-2); line-height: 1.55; }
.tab-content .v-points { margin-top: 24px; display:grid; gap: 12px; }
.tab-content .v-points li { display:flex; gap: 12px; align-items:flex-start; font-size: 15.5px; color: var(--text); }
.tab-content .v-points svg { width: 20px; height: 20px; color: var(--teal-deep); flex:none; margin-top: 1px; }
.tab-visual { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; min-height: 280px; display:flex; flex-direction:column; justify-content:center; gap: 16px; }
.tab-visual .vchat { background:#fff; border-radius: 14px; box-shadow: var(--sh-sm); padding: 16px; }
.tab-visual .vmsg { font-size: 14.5px; padding: 10px 13px; border-radius: 12px; margin-bottom: 10px; }
.tab-visual .vmsg:last-child { margin-bottom: 0; }
.tab-visual .vmsg.q { background: var(--sand); color: var(--text); }
.tab-visual .vmsg.a { background: var(--ink); color:#fff; }
.tab-visual .vmsg small { display:block; margin-top:6px; opacity:.6; font-size:11px; }

.diaspora { margin-top: 34px; border-radius: var(--r-lg); padding: 30px clamp(24px,4vw,44px); background: var(--grad); color:#fff; box-shadow: var(--sh-glow); position: relative; overflow:hidden; display:grid; gap: 16px; }
.diaspora::after { content:""; position:absolute; right:-40px; top:-40px; width: 220px; height: 220px; border-radius:999px; border: 40px solid rgba(255,255,255,.10); }
.diaspora .d-eyebrow { font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; opacity:.9; }
.diaspora h3 { color:#fff; font-size: clamp(22px,2.6vw,30px); position: relative; z-index:2; max-width: 760px; }
.diaspora p { color: rgba(255,255,255,.92); position: relative; z-index:2; max-width: 720px; font-size: 16px; }
.diaspora .d-langs { display:flex; flex-wrap:wrap; gap: 8px; position: relative; z-index:2; }
.diaspora .d-langs span { background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight:500; }

/* ============================================================
   WHY ENGARA + comparison
   ============================================================ */
.why-grid { display:grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .why-grid { grid-template-columns: 1fr 1fr; } }
.why-card { display:flex; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.why-card .n { font-family: var(--display); font-weight:700; font-size: 17px; width: 42px; height: 42px; flex:none; border-radius: 12px; display:grid; place-items:center; background: var(--ink); color:#fff; }
.why-card h3 { font-size: 18.5px; }
.why-card p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }

.compare { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background:#fff; box-shadow: var(--sh-sm); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; }
.compare-row:not(:last-child){ border-bottom: 1px solid var(--line); }
.compare-row > div { padding: 16px 18px; font-size: 14.5px; }
.compare-row.head > div { font-family: var(--display); font-weight: 700; font-size: 14px; }
.compare-row.head .c-engara { background: var(--ink); color:#fff; }
.compare-row .c-feat { color: var(--text-2); font-weight: 500; }
.compare-row .c-engara { background: rgba(20,200,168,.07); font-weight: 600; color: var(--text); }
.compare-cell { display:flex; align-items:center; gap: 8px; color: var(--text-2); }
.compare-cell svg { width: 18px; height: 18px; flex:none; }
.compare-cell.yes { color: var(--teal-deep); font-weight: 600; }
.compare-cell.no { color: var(--text-3); }
@media (max-width: 720px){
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { padding: 11px 16px; }
  .compare-row.head { display:none; }
  .compare-row .c-feat { background: var(--sand); font-family: var(--display); font-weight:700; color: var(--text); }
  .compare-cell::before { content: attr(data-col); margin-right: auto; color: var(--text-3); font-weight:500; }
}

/* ============================================================
   OUTCOMES band
   ============================================================ */
.outcomes { background: var(--ink); color: var(--on-dark); overflow:hidden; position: relative; }
.outcomes::after { content:""; position:absolute; inset:0; opacity:.4; background-image: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size:48px 48px; mask-image: radial-gradient(100% 100% at 50% 0,#000,transparent 80%); }
.out-grid { display:grid; gap: 1px; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.10); border-radius: var(--r-lg); overflow:hidden; position: relative; z-index:2; }
@media (min-width: 760px){ .out-grid { grid-template-columns: repeat(3,1fr); } }
.out-cell { background: var(--ink); padding: 32px 26px; }
.out-cell .num { font-family: var(--display); font-weight:700; font-size: clamp(38px,5vw,56px); letter-spacing:-.03em; color:#fff; line-height:1; }
.out-cell .num .pre, .out-cell .num .unit { background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.out-cell .lbl { margin-top: 12px; color: var(--on-dark-2); font-size: 15px; }

/* ============================================================
   FINAL CTA + form
   ============================================================ */
.cta { background: var(--sand); }
.cta .wrap { display:grid; gap: clamp(36px,5vw,56px); }
@media (min-width: 940px){ .cta .wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta h2 { font-size: clamp(30px,4.2vw,52px); }
.cta .lede { margin-top: 18px; font-size: clamp(17px,1.6vw,20px); color: var(--text-2); max-width: 480px; }
.cta .reassure { margin-top: 26px; display:grid; gap: 12px; }
.cta .reassure li { display:flex; gap: 11px; align-items:center; font-size: 15.5px; color: var(--text); }
.cta .reassure svg { width: 20px; height: 20px; color: var(--teal-deep); flex:none; }

.form-card { background:#fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: clamp(26px,3vw,40px); border: 1px solid var(--line); }
.form-row { display:grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px){ .form-row.two { grid-template-columns: 1fr 1fr; } }
.field-group label { display:block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field-group input, .field-group select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--body); font-size: 15px; color: var(--text); transition: border-color .18s, box-shadow .18s;
}
.field-group input:focus, .field-group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,200,168,.14); }
.field-group input.invalid, .field-group select.invalid { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.field-group .err { color:#ef4444; font-size:12.5px; margin-top:6px; display:none; }
.field-group .err.show { display:block; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-card .alt { margin-top: 16px; text-align:center; font-size: 13.5px; color: var(--text-3); }
.form-card .alt a { color: var(--teal-deep); font-weight:600; }
.form-success { display:none; text-align:center; padding: 20px 10px; }
.form-success.show { display:block; animation: fadeUp .4s ease; }
.form-success .check { width: 62px; height: 62px; border-radius: 999px; background: var(--grad); display:grid; place-items:center; margin: 0 auto 18px; box-shadow: var(--sh-glow); }
.form-success .check svg { width: 30px; height: 30px; color:#fff; }
.form-success h3 { font-size: 24px; }
.form-success p { margin-top: 10px; color: var(--text-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(48px,6vw,72px) 0 36px; }
.footer .top { display:grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.10); }
@media (min-width: 760px){ .footer .top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { color:#fff; margin-bottom: 14px; }
.footer .tag { max-width: 320px; font-size: 15px; line-height: 1.6; }
.footer .col h4 { color:#fff; font-family: var(--display); font-size: 14px; letter-spacing:.04em; margin-bottom: 16px; }
.footer .col a { display:block; padding: 6px 0; font-size: 14.5px; color: var(--on-dark-2); transition: color .18s; }
.footer .col a:hover { color:#fff; }
.footer .bottom { display:flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items:center; margin-top: 28px; font-size: 13.5px; }
.footer .bottom .ph { color: var(--teal); }

/* ---------- Scroll reveal ----------
   Base state is VISIBLE so content never depends on an animation
   completing (some embedded/throttled contexts pause CSS animations
   while JS keeps running). The entrance is pure enhancement: when JS
   adds .in, the element plays the reveal; if the animation is paused
   or unsupported, the element simply stays visible. No fill-mode, so
   the resting state is always the visible base. */
.reveal { opacity: 1; }
.reveal.in { animation: revealIn .65s cubic-bezier(.2,.7,.2,1); }
.reveal.in.d1 { animation-delay: .07s; }
.reveal.in.d2 { animation-delay: .14s; }
.reveal.in.d3 { animation-delay: .21s; }
.reveal.in.d4 { animation-delay: .28s; }
@keyframes revealIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .reveal.in { animation: none; } }

/* placeholder marker */
.placeholder-note { display:none; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(11,16,32,.8); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: var(--gut);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.modal-content {
  background: var(--paper); border-radius: var(--r-xl); width: 100%; max-width: 480px;
  position: relative; box-shadow: var(--sh-lg); overflow: hidden;
  transform: translateY(20px) scale(0.96); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.is-open .modal-content {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 999px; background: var(--sand); color: var(--text-2);
  display: grid; place-items: center; transition: .2s; cursor: pointer; z-index: 10;
}
.modal-close:hover {
  background: var(--line); color: var(--text);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-body {
  padding: clamp(32px, 5vw, 40px);
}
