:root {
  --bg: oklch(98% 0.005 150);
  --surface: oklch(100% 0 0);
  --fg: oklch(16% 0.02 150);
  --muted: oklch(48% 0.015 150);
  --border: oklch(90% 0.008 150);
  --accent: oklch(52% 0.14 155);
  --accent-2: oklch(58% 0.16 155);
  --accent-soft: oklch(96% 0.02 155);
  --danger: oklch(55% 0.18 25);
  --warn: oklch(65% 0.14 85);
  --success: oklch(55% 0.14 145);

  --font-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --max-w: 1200px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--fg);
  line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav.nav-on-light.scrolled {
  background: rgba(255,255,255,0.85);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.logo {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--fg); display: flex; align-items: center; gap: 10px;
  transition: color .3s;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  color: var(--fg); transition: background .25s, color .25s;
}
.nav-links a:hover { background: var(--accent-soft); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 8px 18px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: filter .25s;
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; }
.nav-mob {
  display: none; background: none; border: none; cursor: pointer; font-size: 20px;
  color: var(--fg); transition: color .3s;
}

/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; font-family: var(--font-mono); margin-left: 8px; }
.lang-switch a { padding: 4px 8px; border-radius: var(--radius); color: var(--muted); transition: color .3s; }
.lang-switch a.active { color: var(--accent); background: var(--accent-soft); }
.lang-switch a:hover { text-decoration: none; color: var(--fg); }

/* Page hero */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 24px 64px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.page-hero .wrap { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px;
}
.page-hero p { font-size: 17px; color: var(--muted); max-width: 720px; line-height: 1.55; }
.page-hero .meta {
  display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--border);
  color: var(--fg); font-family: var(--font-mono);
}

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sec { padding: 64px 0; }
.sec-title {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px;
}
.sec-sub { font-size: 16px; color: var(--muted); max-width: 640px; line-height: 1.55; margin-bottom: 32px; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .25s, box-shadow .25s;
}
.card:hover { border-color: oklch(78% 0.04 155); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table {
  width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-family: var(--font-mono);
}
.pill-green { background: oklch(95% 0.03 145); color: oklch(40% 0.1 145); }
.pill-blue { background: oklch(95% 0.02 250); color: oklch(40% 0.1 250); }
.pill-amber { background: oklch(96% 0.03 80); color: oklch(45% 0.1 80); }
.pill-red { background: oklch(95% 0.03 25); color: oklch(45% 0.12 25); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; border: none; cursor: pointer; transition: transform .15s, filter .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 32px; margin-top: auto; }
.footer-grid { display: flex; justify-content: flex-start; align-items: flex-start; gap: 56px; margin-bottom: 48px; }
.footer-brand-col { max-width: 320px; }
.footer-brand { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-logo-img { height: 36px; width: auto; display: block; }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 320px; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 0; }
.footer-qr img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.footer-qr span { font-size: 12px; color: var(--muted); }
.footer-col { min-width: 120px; }
.footer-col + .footer-col { margin-left: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  text-align: center; line-height: 1.8;
}
.footer-bottom p {
  font-size: 13px; color: var(--muted); margin: 0;
}
.footer-bottom a {
  font-size: 13px; color: var(--muted); margin: 0 6px;
}
.footer-bottom a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mob { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { flex-wrap: wrap; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { flex-direction: column; gap: 32px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
