:root {
  --bg: #0b0d14;
  --bg-soft: #11131d;
  --surface: #161927;
  --surface-2: #1d2132;
  --border: #262b40;
  --text: #e8eaf2;
  --text-soft: #a7adc4;
  --muted: #757c98;
  --brand: #6c5ce7;
  --brand-2: #00cec9;
  --brand-grad: linear-gradient(135deg, #6c5ce7 0%, #4834d4 45%, #00cec9 130%);
  --ring: rgba(108, 92, 231, 0.35);
  --radius: 16px;
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 18px var(--ring);
}
.brand .brand-sub { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-soft); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 30px var(--ring); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 75% -10%, rgba(108,92,231,0.30), transparent 70%),
    radial-gradient(560px 280px at 10% 10%, rgba(0,206,201,0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 0.82rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; font-weight: 800;
}
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-soft); margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-soft); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #34406b; transform: translateY(-3px); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface-2); border: 1px solid var(--border);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 48px; text-align: center;
}
.cta h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: var(--text-soft); margin: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-soft); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal { font-size: 0.85rem; color: var(--muted); }

/* ---------- Legal / document pages ---------- */
.doc { padding: 56px 0 24px; }
.doc-wrap { max-width: 800px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 36px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { text-decoration: underline; }
.note {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--brand); border-radius: 10px;
  padding: 16px 18px; margin: 20px 0; color: var(--text-soft); font-size: 0.95rem;
}
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 24px; margin: 0 0 36px;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--text); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a.nav-hide { display: none; }
  .hero { padding: 64px 0 48px; }
  .cta { padding: 32px 22px; }
}
