/* ──────────────────────────────────────────
   Translator Bot — landing styles
   ────────────────────────────────────────── */

:root {
  --bg: #07080c;
  --bg-soft: #0d0f15;
  --bg-elev: #11141c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f5f6f8;
  --fg-mute: #9aa0ad;
  --fg-dim: #5a606d;
  --accent: oklch(0.74 0.16 235);
  --accent-soft: oklch(0.74 0.16 235 / 0.12);
  --accent-fg: #07080c;
  --tg: #229ED9;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1240px;
  --pad-x: 32px;
  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

[data-theme="light"] {
  --bg: #fafaf7;
  --bg-soft: #f1f1ec;
  --bg-elev: #ffffff;
  --line: rgba(10, 10, 20, 0.08);
  --line-strong: rgba(10, 10, 20, 0.16);
  --fg: #0a0a14;
  --fg-mute: #555a66;
  --fg-dim: #8a909c;
  --accent-fg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ── Nav ───────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-mono);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--fg-mute);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.18s ease, filter 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.lang-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--fg-mute);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
.lang-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}

/* ── Hero ──────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-fg);
  font-size: 11px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero p.lead {
  font-size: 19px;
  color: var(--fg-mute);
  max-width: 520px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, filter 0.2s, background 0.2s;
  background: transparent;
  color: var(--fg);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--bg-soft); }

.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-mute);
  flex-wrap: wrap;
}
.hero-meta strong {
  color: var(--fg);
  font-weight: 600;
}

/* glow behind phone */
.hero-phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 660px;
}
.hero-phone-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* ── Section primitives ────────────── */
section.block {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  max-width: 720px;
  text-wrap: balance;
}
.section-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.section-sub {
  font-size: 17px;
  color: var(--fg-mute);
  max-width: 460px;
  margin: 0;
  text-wrap: pretty;
}

/* ── Feature grid ──────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--line-strong);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.feature .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
}
.feature.span-6 { grid-column: span 6; }
.feature.span-4 { grid-column: span 4; }
.feature.span-8 { grid-column: span 8; }
.feature.span-12 { grid-column: span 12; }

.feature.hero-feat {
  padding: 36px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--bg-elev);
  min-height: 280px;
}
.feature.hero-feat h3 { font-size: 28px; }
.feature.hero-feat p { font-size: 16px; max-width: 520px; }

.feature-visual {
  margin-top: 28px;
  flex: 1;
  display: flex;
  align-items: end;
}

/* dictionary illustration */
.dict-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.dict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.dict-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}

/* OCR illustration */
.ocr-frame {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  width: 100%;
}
.ocr-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  pointer-events: none;
}
.ocr-frame .scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 30%;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
  box-shadow: 0 0 16px var(--accent);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 18%; }
  50% { top: 82%; }
}

/* CEFR pill chart */
.cefr-row {
  display: flex;
  gap: 6px;
  align-items: end;
  margin-top: 12px;
}
.cefr-bar {
  flex: 1;
  border-radius: 6px;
  background: var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  text-align: center;
  padding: 4px 0;
}
.cefr-bar.active {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

/* free badge */
.free-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: oklch(0.85 0.18 145 / 0.12);
  color: oklch(0.85 0.18 145);
  border: 1px solid oklch(0.85 0.18 145 / 0.4);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ── Demo phone ─────────────────────── */
.demo-section {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.demo-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}
.demo-point {
  display: flex;
  gap: 16px;
}
.demo-point .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
  color: var(--fg-mute);
}
.demo-point h4 {
  margin: 4px 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.demo-point p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 14px;
}

/* ── Languages grid ────────────────── */
.langs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.lang-card:hover { border-color: var(--accent); }
.lang-card .flag {
  font-size: 26px;
  line-height: 1;
}
.lang-card .lang-name {
  font-weight: 500;
  font-size: 15px;
}
.lang-card .lang-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  margin-left: auto;
  text-transform: uppercase;
}

/* ── Audience ──────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aud-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.aud-card:hover { border-color: var(--line-strong); }
.aud-icon {
  font-size: 32px;
  line-height: 1;
}
.aud-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.aud-pain, .aud-fix {
  display: flex;
  gap: 12px;
  align-items: start;
}
.aud-pain p, .aud-fix p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.aud-pain p { color: var(--fg-mute); }
.aud-fix p { color: var(--fg); }
.aud-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  line-height: 1.4;
}
.aud-pain .aud-label { color: var(--fg-dim); }
.aud-fix .aud-label { color: var(--accent); }

@media (max-width: 980px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ── Roadmap ───────────────────────── */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.road-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.road-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
}
.tag.live { background: oklch(0.85 0.18 145 / 0.15); color: oklch(0.78 0.18 145); }
.tag.beta { background: var(--accent-soft); color: var(--accent); }
.tag.soon { background: oklch(0.7 0.05 60 / 0.15); color: var(--fg-mute); border: 1px dashed var(--line-strong); }
.road-card h4 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.road-card p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 14px;
}

/* ── Steps (start) ─────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step .step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.step h4 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.step p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 14px;
}

/* ── Final CTA ──────────────────────── */
.final {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: -50% 20%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.final > * { position: relative; z-index: 1; }
.final h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}
.final h2 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.final p {
  font-size: 19px;
  color: var(--fg-mute);
  max-width: 520px;
  margin: 0 auto 40px;
}
.final .btn { height: 60px; padding: 0 32px; font-size: 17px; }

/* ── Footer ────────────────────────── */
footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-dim);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-links {
  display: flex;
  gap: 24px;
}
.foot-links a:hover { color: var(--fg); }

/* ── Responsive ────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .demo-section { grid-template-columns: 1fr; }
  .hero-phone-wrap { min-height: 540px; }
  .features { grid-template-columns: 1fr; }
  .feature.span-4, .feature.span-6, .feature.span-8 { grid-column: 1 / -1; }
  .langs { grid-template-columns: repeat(2, 1fr); }
  .roadmap, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section.block { padding: 64px 0; }
}

/* helpers */
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-mute); }
