:root {
  --bg: #0A0E1A;
  --surface: #141929;
  --surface-hover: #1C2137;
  --primary: #00D4AA;
  --primary-dim: rgba(0, 212, 170, 0.15);
  --secondary: #6E7191;
  --text: #E8ECF4;
  --text-muted: #8890A6;
  --text-dim: #555B73;
  --border: #1E2338;
  --warning: #FFD93D;
  --error: #FF6B6B;
  --max-w: 880px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease-out;
}

a:hover {
  border-bottom-color: var(--primary);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  border: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.18);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  border: none;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 96px 0 64px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h1 .accent {
  color: var(--primary);
}

.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 120ms ease-out, background 120ms ease-out;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: transparent;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border: none;
  transition: transform 120ms ease-out;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  border: none;
}

.app-store-badge img {
  height: 100%;
  width: auto;
  display: block;
}

/* Sections */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-lede {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.card .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.stat .value {
  font-family: "JetBrains Mono", monospace;
  font-size: 36px;
  font-weight: 600;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}

.stat .label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: block;
}

/* Disclaimer box */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.disclaimer strong {
  color: var(--text);
}

/* Footer */
footer {
  padding: 40px 0 64px;
  font-size: 13px;
  color: var(--text-dim);
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-muted);
  border: none;
  margin-right: 16px;
}

footer a:hover {
  color: var(--text);
}

/* Legal pages */
.legal {
  padding: 64px 0;
}

.legal h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 40px;
  font-family: "JetBrains Mono", monospace;
}

.legal h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal h3 {
  font-size: 16px;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 14.5px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal li {
  margin-bottom: 4px;
}

/* Language: data-lang sections */
[data-lang] { display: none; }
[data-lang].active { display: block; }

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 3l3 4 3-4' fill='none' stroke='%2300D4AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.lang-switch select:focus {
  outline: none;
  border-color: var(--primary);
}

.lang-switch select option {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .site-header .container { flex-direction: row; }
  .nav { gap: 16px; }
}
