:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #0f172a;
  --muted: #5b6478;
  --border: #e2e6f0;
  --primary: #5b5bf0;
  --primary-ink: #ffffff;
  --accent: #06b6d4;
  --hero-1: #0b1020;
  --hero-2: #1b1f4b;
  --hero-text: #f8fafc;
  --hero-muted: #b8c0de;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #131a31;
    --surface-2: #1a2240;
    --text: #e8ecf8;
    --muted: #9aa4c4;
    --border: #253058;
    --primary: #7c7cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 64px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.lang select { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #3b3bbf55, transparent), linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--hero-text); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-block: 88px; }
.hero .lead { color: var(--hero-muted); font-size: 1.15rem; max-width: 36em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.hero-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 360px; justify-self: end; transform: rotate(-6deg); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--hero-text); border: 1px solid #ffffff40; }
.btn-ghost:hover { background: #ffffff14; }

/* App icons */
.app-icon { --g1: #6366f1; --g2: #06b6d4; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 22%; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon--md { width: 72px; height: 72px; font-size: 36px; }
.app-icon--sm { width: 100%; aspect-ratio: 1; font-size: clamp(28px, 5vw, 44px); }
.app-icon--xs { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.app-card { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 88px; }
.app-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-head h3 { margin: 0; }
.app-cat { font-size: .8rem !important; font-weight: 600; color: var(--primary) !important; margin: 2px 0 6px !important; }
.badge { font-size: .72rem; font-weight: 700; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 0; }
.value { padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.value p { margin: 0; color: var(--muted); }
.contact { padding-top: 0; }

/* Legal */
.legal { max-width: 820px; padding-block: 56px 80px; }
.legal-head { border-bottom: 1px solid var(--border); margin-bottom: 32px; padding-bottom: 16px; }
.legal .lead { font-size: 1.08rem; }
.legal section { scroll-margin-top: 88px; margin-top: 40px; }
.legal h2 { font-size: 1.35rem; }
.legal li { margin-bottom: .4em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.data-table { display: grid; gap: 10px; }
.data-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); scroll-margin-top: 88px; }
.data-row p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 24px; background: var(--surface); }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 56px; }
  .hero-icons { justify-self: center; max-width: 300px; transform: rotate(-4deg); }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .lang { margin-left: auto; }
  .hero-icons { max-width: 220px; gap: 12px; }
  .app-grid { grid-template-columns: 1fr; }
  .section { padding-block: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
