:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --surface: #161a23;
  --surface-2: #1c212c;
  --border: #262c3a;
  --text: #e8ecf3;
  --text-soft: #a8b1c2;
  --muted: #6f7889;
  --brand: #5b8cff;
  --brand-2: #7c5cff;
  --accent: #19c39c;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", 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;
}

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: #87a9ff; }

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-soft); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-cta:hover { opacity: .92; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 9px;
  width: 42px; height: 38px; cursor: pointer; font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 11px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(91,140,255,.35); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 12vw, 130px) 0 clamp(50px, 8vw, 90px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 18% 10%, rgba(91,140,255,.18), transparent 60%),
    radial-gradient(50% 50% at 85% 0%, rgba(124,92,255,.16), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.18rem; color: var(--text-soft); max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 60px; max-width: 720px;
}
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat .label { font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #33405c; }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(91,140,255,.2), rgba(124,92,255,.2));
  border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { color: var(--text); }
.card p { margin-bottom: 0; font-size: .96rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.code-window { background: #0d1017; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a4255; }
.code-bar span:nth-child(1){ background:#ff5f57; } .code-bar span:nth-child(2){ background:#febc2e; } .code-bar span:nth-child(3){ background:#28c840; }
.code-window pre { margin: 0; padding: 18px; overflow-x: auto; font-size: .85rem; line-height: 1.7; font-family: "SFMono-Regular", Menlo, Consolas, monospace; color: #c8d3e8; }
.code-window pre .k { color: #7c9eff; } .code-window pre .s { color: #19c39c; } .code-window pre .c { color: #5b6577; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--text-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(25,195,156,.15); color: var(--accent);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.step .n {
  counter-increment: step; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.step .n::before { content: counter(step); }
.step h3 { color: var(--text); margin-bottom: 4px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(91,140,255,.16), rgba(124,92,255,.16));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 60px); text-align: center;
}
.cta-band h2 { color: var(--text); }

/* ---------- Legal / prose ---------- */
.page-hero { padding: clamp(56px, 9vw, 90px) 0 30px; }
.prose { max-width: 820px; }
.prose h2 { color: var(--text); margin-top: 2.2em; }
.prose h3 { color: var(--text); margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: .94rem; }
.prose th { background: var(--surface); color: var(--text); }
.updated { color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.contact-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-card .value { font-size: 1.05rem; color: var(--text); font-weight: 600; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--text-soft); }
.form-field input, .form-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .96rem;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { display: block; color: var(--text-soft); font-size: .94rem; margin-bottom: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px;
  color: var(--muted); font-size: .88rem;
}
.footer-desc { color: var(--text-soft); font-size: .94rem; max-width: 320px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
