:root {
  --bg: #0b0f1a;
  --bg-elev: #11172a;
  --bg-hover: #1a2238;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --glow: #22d3ee;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 10px;
  --radius-lg: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max-w: 1180px;
  --pad-x: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }

.mono { font-family: var(--font-mono); font-weight: 400; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-bottom: 18px;
  display: inline-block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 15, 26, 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 28px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text) !important;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: var(--text);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 200px;
  }
  .nav-links.open a { padding: 10px 14px; border-radius: 8px; }
  .nav-links.open a:hover { background: var(--bg-hover); }
  .nav-links.open .nav-cta { border-color: var(--accent); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.28), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  inset: auto auto -30% -20%;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 65%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  z-index: -2;
}
.hero-inner { max-width: 820px; }
.hero h1 {
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--accent);
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- section ---------- */

.section { padding: 96px 0; }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }
.divider {
  height: 1px;
  background: var(--border);
}

/* ---------- capabilities grid ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } }

.cap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  position: relative;
}
.cap:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px -10px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}
.cap-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.cap-icon svg { width: 18px; height: 18px; }
.cap h3 { font-size: 1.08rem; margin-bottom: 6px; }
.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.cap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.cap.restricted::after {
  content: "restricted";
  position: absolute;
  top: 24px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--glow);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

.tier {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.tier.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 40px -16px rgba(124, 58, 237, 0.5);
}
.tier-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.tier-recommended-pill {
  display: inline-block;
  margin-left: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
}
.tier-price {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.tier-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.tier-desc { color: var(--text-muted); margin-bottom: 22px; }
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-list li {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tier-list li svg { flex: 0 0 16px; margin-top: 4px; color: var(--accent); }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- contact ---------- */

.contact-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 200ms ease;
}
.contact-card:hover { border-color: var(--border-strong); }
.contact-card a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-card a:hover { color: var(--accent-hover); }
.contact-card p { margin: 0; font-size: 0.92rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- article (privacy / terms) ---------- */

.article-wrap { padding: 80px 0 60px; }
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article h1 { font-size: 2.5rem; margin-bottom: 12px; }
.article > .meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  display: block;
}
.article h2 {
  margin-top: 56px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.4rem;
}
.article h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--text);
}
.article p { color: var(--text-muted); }
.article ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 1em;
}
.article ul li {
  padding-left: 18px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}
.article strong { color: var(--text); font-weight: 500; }
.article .callout {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article .callout strong { color: var(--accent); }
.article a.inline { color: var(--accent); border-bottom: 1px solid rgba(124, 58, 237, 0.4); }
.article a.inline:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* ---------- utility ---------- */

.center { text-align: center; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
