:root {
  --bg: #07090e;
  --bg-soft: #0e1118;
  --bg-card: #11151e;
  --line: #1c2230;
  --line-strong: #2a3244;
  --text: #eef0f5;
  --muted: #98a0b3;
  --dim: #5f6880;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

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

main { flex: 1; }

.gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}

.header-right { display: flex; align-items: center; gap: 32px; }

.nav { display: flex; gap: 28px; }

.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b8cff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover { box-shadow: 0 14px 36px rgba(124, 92, 255, 0.5); }

.btn-light { background: var(--text); color: var(--bg); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

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

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -120px;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-top: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

.hero-points span { display: inline-flex; align-items: center; gap: 8px; }

.hero-points svg { width: 16px; height: 16px; color: var(--accent-2); }

/* Code window */

.code-window {
  position: relative;
  background: linear-gradient(180deg, #121724, #0c1019);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 92, 255, 0.08);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.code-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}

.code-bar i:nth-child(1) { background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }

.code-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-window pre {
  margin: 0;
  padding: 24px 22px 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.85;
  color: #c9d1e4;
  overflow-x: auto;
}

.code-window .ln { color: var(--dim); display: inline-block; width: 26px; user-select: none; }
.code-window .k { color: #c792ea; }
.code-window .f { color: #82aaff; }
.code-window .s { color: #c3e88d; }
.code-window .p { color: #89ddff; }
.code-window .c { color: var(--dim); }

.float-card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 600;
}

.float-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(40, 200, 64, 0.14);
  color: #3ddc6a;
}

.float-card small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin-bottom: 56px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 18px;
}

/* Cards */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: #a893ff;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 15px; }

.card ul {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.card li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.card li + li { margin-top: 8px; }

.card li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent-2);
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* Process */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.5;
}

.step { position: relative; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
}

.section-alt .step-num { background: var(--bg-soft); }

.step-num::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.step h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }

.step p { color: var(--muted); font-size: 15px; }

/* Split */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.split .section-head { margin-bottom: 0; }

.feature-list { display: grid; gap: 16px; }

.feature {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature .check {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-2);
}

.feature .check svg { width: 18px; height: 18px; }

.feature h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }

.feature p { color: var(--muted); font-size: 15px; }

/* CTA band */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 72px 64px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, rgba(124, 92, 255, 0.35), transparent 70%),
    #10131c;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 { max-width: 560px; }

.cta p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 520px; }

.cta .actions { margin-top: 0; flex: none; }

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { max-width: 860px; font-size: clamp(38px, 5.6vw, 62px); }

.page-hero .lead { max-width: 680px; }

.prose p { color: var(--muted); font-size: 17px; }

.prose p + p { margin-top: 18px; }

.facts {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 28px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 15px;
}

.facts div + div { border-top: 1px solid var(--line); }

.facts dt { color: var(--muted); }

.facts dd { font-weight: 600; text-align: right; }

.facts dd a:hover { color: var(--accent-2); }

.quote {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.contact-main {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(124, 92, 255, 0.22), transparent 70%),
    var(--bg-card);
}

.contact-main .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-main .email {
  display: inline-block;
  margin: 12px 0 28px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-all;
  transition: color 0.15s;
}

.contact-main .email:hover { color: var(--accent-2); }

.contact-main p { color: var(--muted); font-size: 16px; max-width: 460px; margin-bottom: 32px; }

.side-stack { display: grid; gap: 24px; }

.side-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.side-card h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 16px; }

.side-card .facts { background: none; border: 0; padding: 0; }

.side-card .facts div { padding: 12px 0; font-size: 14px; }

.next-steps { list-style: none; display: grid; gap: 18px; }

.next-steps li { display: flex; gap: 14px; color: var(--muted); font-size: 15px; }

.next-steps b {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text);
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.3);
}

.next-steps strong { display: block; color: var(--text); font-size: 15px; }

/* Legal */

.legal { max-width: 760px; }

.legal h2 { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 12px; }

.legal p, .legal ul { color: var(--muted); font-size: 16px; }

.legal p + p { margin-top: 14px; }

.legal ul { padding-left: 20px; margin: 12px 0; }

.legal li + li { margin-top: 6px; }

.legal a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

.legal a:hover { border-color: var(--text); }

.legal .updated { font-size: 14px; color: var(--dim); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 64px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-top p { max-width: 340px; margin-top: 16px; }

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer ul { list-style: none; display: grid; gap: 10px; }

.footer a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--dim);
}

.footer-bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 600px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .process::before { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; padding: 56px 40px; }
}

@media (max-width: 760px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 96px; }
  .page-hero { padding: 72px 0 56px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .header-right .btn { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .contact-main { padding: 32px 24px; }
  .float-card { right: 12px; bottom: -26px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .process { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
  .card, .side-card { padding: 26px 22px; }
  .cta { padding: 44px 24px; border-radius: 22px; }
  .code-window pre { font-size: 12.5px; padding: 20px 16px 26px; }
  .facts { padding: 4px 20px; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}

/* ---------- Mobile menu ---------- */

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  padding: 24px 16px 32px;
  background: rgba(7, 9, 14, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu nav a {
  padding: 18px 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.mobile-menu nav a[aria-current="page"] { color: var(--text); }

.mobile-menu .btn { margin-top: 32px; width: 100%; }

.mobile-menu .menu-email { margin-top: 20px; text-align: center; color: var(--muted); font-size: 15px; }

.menu-open { overflow: hidden; }

.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 760px) {
  .header-right { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
}

/* Prevent grid children from overflowing on small screens */
.hero-grid > *, .split > *, .contact-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .process > * { min-width: 0; }
