/* autoLingo — design tokens + base styles
   Aesthetic: clean SaaS × editorial premium. Indigo/violet on toned white.
   Type: Newsreader (editorial serif display) + Hanken Grotesk (UI sans). */

:root {
  /* Surfaces — subtly violet-toned whites */
  --bg:        oklch(0.992 0.004 290);
  --bg-2:      oklch(0.975 0.006 290);
  --surface:   #ffffff;
  --surface-2: oklch(0.985 0.005 290);

  /* Ink */
  --ink:    oklch(0.23 0.028 285);
  --ink-2:  oklch(0.42 0.02 285);
  --muted:  oklch(0.56 0.018 285);
  --faint:  oklch(0.70 0.012 285);

  /* Lines */
  --line:   oklch(0.915 0.01 288);
  --line-2: oklch(0.95 0.008 288);

  /* Indigo / violet brand ramp */
  --indigo:     oklch(0.52 0.205 280);
  --indigo-600: oklch(0.47 0.215 280);
  --indigo-700: oklch(0.41 0.20 280);
  --violet:     oklch(0.58 0.20 295);
  --tint:       oklch(0.955 0.028 290);
  --tint-2:     oklch(0.93 0.045 290);
  --tint-ink:   oklch(0.40 0.16 285);

  /* Secondary accent (same chroma/lightness family, different hue) */
  --accent:     oklch(0.62 0.16 200); /* cool teal-cyan for "languages" */

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Geometry */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px oklch(0.4 0.05 285 / 0.05), 0 2px 8px oklch(0.4 0.05 285 / 0.04);
  --shadow:    0 4px 14px oklch(0.4 0.05 285 / 0.07), 0 18px 50px oklch(0.4 0.08 285 / 0.08);
  --shadow-lg: 0 10px 30px oklch(0.4 0.06 285 / 0.10), 0 40px 90px oklch(0.4 0.10 285 / 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

#root { overflow-x: clip; }

h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--tint-2); color: var(--indigo-700); }

/* Layout helpers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 500;
}

/* Serif display */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.0;
}
.display em { font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: 11px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-indigo {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-600) 100%);
  color: #fff;
  box-shadow: 0 6px 18px oklch(0.52 0.205 280 / 0.32);
}
.btn-indigo:hover { transform: translateY(-2px); box-shadow: 0 10px 28px oklch(0.52 0.205 280 / 0.42); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-2px); }

/* Section rhythm */
section { position: relative; }
.section-pad { padding: 110px 0; }

/* Pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
}
