:root {
  --bg: #070b16;
  --bg-soft: #0c1322;
  --card: #101a30;
  --line: rgba(148, 163, 209, 0.14);
  --line-strong: rgba(148, 163, 209, 0.28);
  --text: #e8eefc;
  --muted: #97a3c0;
  --accent: #5b8cff;
  --accent-2: #9d6bff;
  --ok: #35d0a0;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
section { scroll-margin-top: 76px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: #fff; background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 500;
}
.nav-links .nav-cta:hover { background: #6f9aff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 18% 0%, rgba(91, 140, 255, 0.16), transparent 70%),
    radial-gradient(560px 300px at 88% 12%, rgba(157, 107, 255, 0.14), transparent 70%),
    linear-gradient(rgba(148, 163, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 209, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 55%, transparent 100%);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 96px 24px 72px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-block; font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(157, 107, 255, 0.4); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ticks { margin-top: 34px; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--muted); }
.hero-ticks li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 10px; vertical-align: 2px; }
.hero-visual svg { width: 100%; max-width: 380px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; padding: 12px 22px; border-radius: 10px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6f9aff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-inner {
  max-width: 1120px; margin: 0 auto; padding: 30px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stat strong { display: block; font-size: 30px; font-weight: 700; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.015em; margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-head .btn { margin-top: 26px; }

/* ---------- Cards ---------- */
.grid-4 { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(91, 140, 255, 0.5); transform: translateY(-3px); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(91, 140, 255, 0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card-lg { display: flex; flex-direction: column; }
.card-lg .text-link { margin-top: auto; padding-top: 16px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.badge { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); border: 1px solid rgba(91, 140, 255, 0.45); border-radius: 999px; padding: 4px 11px; }
.badge-beta { color: var(--accent-2); border-color: rgba(157, 107, 255, 0.45); }
.text-link { color: var(--accent); font-size: 14.5px; font-weight: 500; }
.text-link:hover { color: #8fb1ff; }

/* ---------- Process ---------- */
.steps { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { border-left: 1px solid var(--line); padding-left: 22px; }
.step-num { font-size: 13px; font-weight: 600; color: var(--accent); font-family: "SF Mono", ui-monospace, Menlo, monospace; }
.step h3 { font-size: 17px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 12px 0 18px; letter-spacing: -0.015em; }
.about-inner p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 44px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  font-family: inherit; font-size: 14.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; padding: 11px 13px;
  outline: none; transition: border-color 0.15s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--ok); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 52px 24px 30px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom p { max-width: 1120px; margin: 0 auto; padding: 18px 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px 24px; border-top: 1px solid var(--line); }
  .nav-links .nav-cta { border-radius: 0; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { display: none; }
  .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 24px; }
}
