:root {
  --bg: #070918;
  --surface: #0e1230;
  --surface-2: #141a40;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef0ff;
  --muted: #9aa3c9;
  --violet: #8b7bff;
  --blue: #5aa9ff;
  --teal: #5eead4;
  --grad: linear-gradient(100deg, var(--teal) 0%, var(--blue) 45%, var(--violet) 100%);
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 32%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 46%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 58%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 74%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 88%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(900px 600px at 85% -10%, rgba(139,123,255,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(94,234,212,.10), transparent 60%);
  background-repeat: repeat-y, repeat-y, repeat-y, repeat-y, repeat-y, repeat-y, repeat-y, no-repeat, no-repeat;
  background-size: 100% 1400px, 100% 1400px, 100% 1400px, 100% 1400px, 100% 1400px, 100% 1400px, 100% 1400px, auto, auto;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 9, 24, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em;
  text-decoration: none;
}
.star {
  width: 14px; height: 14px; flex-shrink: 0;
  background: var(--grad);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(139,123,255,.9));
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6.6vw, 80px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.hl {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 24px;
  background: rgba(255,255,255,.03);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
}
.eyebrow.light { border: none; background: none; padding: 0; color: var(--teal); }
.eyebrow.light::before { display: none; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.lead strong { color: var(--text); }
p + p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #070918; text-decoration: none;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 12px;
  border: none;
  box-shadow: 0 8px 30px -8px rgba(90,169,255,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px rgba(139,123,255,.7); }
.btn.ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-row.centered { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
section.soft { background: linear-gradient(180deg, rgba(20,26,64,.55), rgba(20,26,64,.15)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { padding: 0; margin: 100px 0; }
section.dark .wrap {
  padding: 80px 48px;
  max-width: calc(var(--max) - 48px);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(139,123,255,.35), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 52px; }
.section-head h2 { margin-bottom: 16px; }

.hero { padding: 120px 0 90px; }
.hero h1 { max-width: 920px; }
.hero .lead { margin-top: 26px; font-size: 20px; }

/* ---------- Glass cards ---------- */
.offer, .cell, .plan, .step {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Offer cards (home) ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 72px; }
.offer { padding: 32px; display: flex; flex-direction: column; transition: border-color .2s ease; }
.offer:hover { border-color: rgba(139,123,255,.45); }
.offer .eyebrow { align-self: flex-start; }
.offer h3 { font-size: 28px; }
.offer details summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.offer details summary::-webkit-details-marker { display: none; }
.plus {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong);
  display: inline-grid; place-items: center; font-size: 18px; line-height: 1; color: var(--muted);
  transition: transform .2s ease, background .2s ease; flex-shrink: 0;
}
details[open] .plus { transform: rotate(45deg); background: rgba(255,255,255,.08); color: var(--text); }
.offer .more { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.offer ul { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; }
.offer li { padding-left: 26px; position: relative; color: #c9cdea; }
.offer li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: var(--grad);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.offer .fit { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.offer .fit strong { color: var(--text); }
.card-foot { margin-top: auto; padding-top: 28px; }
.textlink { font-weight: 600; text-decoration: none; color: var(--blue); }
.textlink:hover { color: var(--teal); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 400px; gap: 72px; align-items: center; }
.founder img {
  order: 2;
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 22%;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.05);
  border: 6px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(139,123,255,.6), 0 0 80px -10px rgba(90,169,255,.55);
}
.founder > div { order: 1; }
.founder h2 { margin-bottom: 22px; }
.founder p { color: #c9cdea; font-size: 17px; }
.socials { display: flex; gap: 24px; margin-top: 30px; }

/* ---------- Grid of systems ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.cell { padding: 30px; }
.cell h3 { margin-bottom: 16px; }
.cell ul { list-style: none; display: grid; gap: 12px; }
.cell li { color: var(--muted); font-size: 15px; }
.cell li strong { color: var(--text); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 30px; }
.step .num {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 12px 0 10px; }
.step p { color: var(--muted); }
.note {
  margin-top: 28px; padding: 26px 30px; border-radius: var(--radius);
  border: 1px solid rgba(94,234,212,.25);
  background: rgba(94,234,212,.05);
  font-size: 16px; color: #c9cdea;
}

/* ---------- Accordion (modules) ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.modules details {
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.03);
  transition: border-color .2s ease;
}
.modules details[open] { border-color: rgba(139,123,255,.45); }
.modules summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 18px 20px;
}
.modules summary::-webkit-details-marker { display: none; }
.modules .num { font-family: var(--display); font-weight: 600; color: var(--violet); font-size: 15px; }
.modules .title { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; }
.modules .body { padding: 0 20px 20px 78px; color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.plan { padding: 38px; position: relative; display: flex; flex-direction: column; }
.plan.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 80px -30px rgba(139,123,255,.6);
}
.plan .tag { position: absolute; top: -14px; left: 34px; }
.plan .tag .eyebrow { margin: 0; background: var(--bg); }
.plan .label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan .price { font-family: var(--display); font-weight: 600; font-size: 60px; letter-spacing: -.04em; line-height: 1; margin: 14px 0 8px; }
.plan .term { font-size: 13px; letter-spacing: .06em; color: var(--teal); margin-bottom: 26px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.plan li { padding-left: 26px; position: relative; color: #c9cdea; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--teal); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

.callout { max-width: 760px; margin: 56px auto 0; text-align: center; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.4; letter-spacing: -.01em; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .brand { font-family: var(--display); font-weight: 600; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .founder { grid-template-columns: 1fr; gap: 40px; }
  .founder img { order: 0; max-width: 300px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  section.dark { margin: 72px 16px; }
  section.dark .wrap { padding: 56px 20px; }
  .hero { padding: 80px 0 56px; }
  .offers, .grid, .grid.two, .steps, .pricing { grid-template-columns: 1fr; }
  .offer, .cell, .plan, .step { padding: 24px; }
  .modules summary { grid-template-columns: 34px 1fr auto; padding: 16px; }
  .modules .body { padding: 0 16px 18px 64px; }
  .callout { font-size: 20px; }
}
