/* Minimal, responsive, accessible styles - system fonts, light/dark aware */

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --text: #e5e7eb;
  --muted: #9aa3af;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --surface: #ffffff;
  --surface-text: #0b1220;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #0b1220;
    --muted: #4b5563;
    --brand: #4f46e5;
    --brand-2: #0891b2;
    --surface: #ffffff;
    --surface-text: #0b1220;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: color-mix(in oklab, var(--panel) 85%, #fff 15%); }

.skip-link {
  position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus {
  left: 12px; top: 12px; background: var(--panel); color: var(--text);
  padding: 8px 12px; border-radius: 8px; z-index: 1000;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--panel) 92%, #fff 8%);
  border-bottom: 1px solid color-mix(in oklab, var(--panel) 70%, #000 30%);
  backdrop-filter: saturate(120%) blur(6px);
}

.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.menu { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-toggle { display: none; }

.btn, .btn:visited {
  display: inline-block; padding: 10px 16px; border-radius: 12px; font-weight: 600;
  background: var(--brand); color: #fff; border: 1px solid color-mix(in oklab, var(--brand) 70%, #000 30%);
  box-shadow: 0 2px 10px color-mix(in oklab, var(--brand) 25%, #000 10%);
}
.btn:hover { text-decoration: none; filter: saturate(110%); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid color-mix(in oklab, var(--text) 20%, #000 80%);
}
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.btn-lg { padding: 12px 18px; font-size: 18px; }
.btn-block { width: 100%; text-align: center; }

.hero { padding: 80px 0; background:
  radial-gradient(1200px 400px at 10% 10%, color-mix(in oklab, var(--brand) 24%, #000 76%), transparent),
  radial-gradient(1000px 360px at 90% 0%, color-mix(in oklab, var(--brand-2) 18%, #000 82%), transparent);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 28px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0 0 18px; }
.fineprint { font-size: 13px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pricing { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; }

.card {
  background: var(--panel); border: 1px solid color-mix(in oklab, var(--panel) 70%, #000 30%);
  border-radius: 14px; padding: 20px;
}
.card.highlight {
  outline: 2px solid color-mix(in oklab, var(--brand) 60%, #000 40%);
}

.lang-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px; list-style: none; padding: 0; margin: 16px 0 0;
}
.lang-grid li { background: var(--panel); border-radius: 999px; padding: 10px 12px; text-align: center; }

.legal { padding: 40px 0 80px; }
.legal h1 { margin-top: 8px; }

.site-footer { padding: 28px 0; border-top: 1px solid color-mix(in oklab, var(--panel) 70%, #000 30%); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner nav a { margin-left: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(2,1fr); }
  .nav-toggle { display: block; margin-left: auto; }
  .menu { display: none; }
  .menu.open { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 0; }
}
