:root {
  --bg: #060f1c;
  --bg-elev: #0c1a2e;
  --bg-card: #11223a;
  --border: rgba(125, 168, 219, 0.14);
  --border-strong: rgba(125, 168, 219, 0.28);
  --text: #e8f0fb;
  --text-muted: #8fa6c2;
  --text-dim: #62799a;
  --accent: #4fb3ff;
  --accent-2: #7fd1ff;
  --accent-deep: #1f4b78;
  --navy: #0d2339;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1140px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a.dim, .dim a { color: var(--text-dim); cursor: not-allowed; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 15, 28, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--accent-2); }

.brand-logo {
  /* Logo dominates the header bar. Negative vertical margin lets it
     visually fill the bar without making the header taller. Header
     padding is 16px top/bottom; -14px margin leaves 2px clearance. */
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: block;
  margin: -14px 0;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 30px 60px -20px rgba(79, 179, 255, 0.45);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

.site-nav a { color: var(--text-muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav a.ext::after {
  content: ' \2197';
  font-size: 0.8em;
  color: var(--text-dim);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 179, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(31, 75, 120, 0.35), transparent 50%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 880px; }

.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.hero-accent { color: var(--accent); display: block; }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 36px;
}

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

.hero-meta {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #4fb3ff 0%, #2680c2 100%);
  color: #04111f;
  box-shadow: 0 12px 30px -12px rgba(79, 179, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px -12px rgba(79, 179, 255, 0.75);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-elev { background: var(--bg-elev); }

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 18px;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 44px;
}

.section-lede.big {
  font-size: 1.25rem;
  color: var(--text);
}

/* ---------- Card grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(79, 179, 255, 0.1);
  border: 1px solid rgba(79, 179, 255, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.card-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 6px;
}

/* ---------- Flow ---------- */
.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.flow li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
}

.flow-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  background: var(--accent);
  color: #04111f;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.flow-body { display: flex; flex-direction: column; gap: 4px; }
.flow-body strong { color: var(--text); }
.flow-body span { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Download ---------- */
.download-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.download-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.download-card .btn { margin-top: 4px; }

.download-card .hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.download-card.dim { opacity: 0.7; }

.dl-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.dl-row .btn { width: 100%; max-width: 280px; }

.download-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Compare table ---------- */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 18px 22px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-row:last-child { border-bottom: 0; }
.compare-row > div:first-child { color: var(--text-dim); font-weight: 500; }
.compare-row > div { color: var(--text-muted); }
.compare-row > div:last-child { color: var(--text); }

.compare-head {
  background: var(--bg-elev);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.compare-head > div { color: var(--text-dim); font-weight: 600; }
.compare-head > div:last-child { color: var(--accent); }

@media (max-width: 720px) {
  .compare-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.88rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 36px 0;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.footer-brand img { display: block; border-radius: 6px; }

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.footer-copy { font-size: 13px; }
