/* ─── tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg: #07070a;
  --bg-deep: #050507;
  --surface: #0e0e12;
  --surface-2: #15161c;
  --border: #1d1f27;
  --border-strong: #2a2c36;
  --fg: #ecedf2;
  --fg-mid: #b6bac6;
  --fg-dim: #80858f;
  --fg-faint: #50545d;
  --accent: #6a97fb;
  --accent-2: #4670d1;
  --accent-soft: rgba(106, 151, 251, 0.18);
  --accent-glow: rgba(106, 151, 251, 0.55);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;

  --container: 1180px;
  --section-pad: clamp(72px, 12vh, 140px);
}

/* ─── reset ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--fg); }

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.12em 0.45em;
  border-radius: 5px;
  color: var(--fg-mid);
}

/* ─── reusable ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.2s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 30px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 40px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--fg);
}

.btn-ghost {
  height: 38px;
  padding: 0 14px;
  background: transparent;
  color: var(--fg-mid);
  font-weight: 500;
  border-radius: 8px;
}
.btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 720px;
}
.section-head p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-mid);
  max-width: 620px;
}

/* ─── nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 7, 10, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 10, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--fg); }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--fg-mid); }

/* ─── hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(72px, 10vh, 130px);
  overflow: hidden;
}
.hero::before {
  /* radial accent glow behind the headline */
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 90%;
  background:
    radial-gradient(60% 60% at 50% 30%,
      rgba(106, 151, 251, 0.22),
      rgba(106, 151, 251, 0) 70%),
    radial-gradient(80% 60% at 50% 0%,
      rgba(70, 112, 209, 0.16),
      rgba(70, 112, 209, 0) 80%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 .grad {
  background: linear-gradient(95deg, var(--accent) 10%, #a8c1ff 60%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--fg-mid);
  max-width: 620px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.hero-note {
  font-size: 13px;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #6ad08d;
  box-shadow: 0 0 10px rgba(106, 208, 141, 0.6);
}

/* mockup */
.hero-mockup-wrap {
  margin-top: clamp(56px, 8vh, 90px);
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-mockup-wrap::before {
  content: "";
  position: absolute;
  inset: 30% 8% -15% 8%;
  background: radial-gradient(closest-side,
    rgba(106, 151, 251, 0.4),
    rgba(106, 151, 251, 0) 70%);
  filter: blur(48px);
  z-index: -1;
}
.app-mockup {
  width: min(100%, 1080px);
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.7),
    0 24px 60px -16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* ─── feature grid ──────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-pad);
}
.section.alt {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 30%, var(--bg-deep) 70%, var(--bg) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(106, 151, 251, 0.04), rgba(255, 255, 255, 0));
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--fg);
}
.feature p {
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.6;
}

/* ─── showcase ──────────────────────────────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.showcase + .showcase { margin-top: clamp(72px, 10vh, 120px); }
.showcase.reverse { grid-template-columns: 1.2fr 1fr; }
.showcase.reverse .showcase-art,
.showcase.reverse .kbd-panel { order: -1; }

.showcase-text h3 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-block: 16px 18px;
}
.showcase-text p {
  font-size: 17px;
  color: var(--fg-mid);
  line-height: 1.7;
}
.showcase-text p + p { margin-top: 14px; }
.showcase-text ul {
  margin-top: 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-text li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg);
}
.showcase-text li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

.showcase-art {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.showcase-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 60%,
    rgba(7, 7, 10, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─── privacy / anti-features ───────────────────────────────────────── */
.privacy-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.privacy-block h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 760px;
}
.privacy-block h2 .strike {
  position: relative;
  display: inline-block;
  color: var(--fg-faint);
}
.privacy-block h2 .strike::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 4px;
  background: var(--accent);
  transform: rotate(-2deg);
  border-radius: 2px;
}
.privacy-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.privacy-item {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.privacy-item .x {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.1);
  color: #ff7077;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.privacy-item h4 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.privacy-item p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
}

/* ─── keyboard panel (HTML, replaces SVG mock) ──────────────────────── */
.kbd-panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 80% at 50% 0%,
      rgba(106, 151, 251, 0.08),
      rgba(7, 7, 10, 0) 70%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.kbd-panel::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 22px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff6058;
  box-shadow:
    14px 0 0 #ffbd2d,
    28px 0 0 #28c93f;
}
.kbd-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-top: 32px;
}
.kbd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.kbd-row:nth-last-child(-n+2) { border-bottom: none; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  background: linear-gradient(180deg, #1a1c24 0%, #0f1018 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 4px -1px rgba(0, 0, 0, 0.5);
  letter-spacing: 0;
}
.kbd-row .kbd-meaning {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kbd-row .kbd-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.kbd-row .kbd-sub {
  font-size: 12px;
  color: var(--fg-dim);
}
.kbd-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-dim);
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 560px) {
  .kbd-rows { grid-template-columns: 1fr; }
}

/* ─── compare list (struck-through ladder) ───────────────────────── */
.compare-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--border);
  max-width: 920px;
}
.compare-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(110px, auto) 2fr;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: 22px 6px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.compare-row:hover { background: rgba(255, 255, 255, 0.015); }

/* The strike — a hand-drawn-feel line that runs across the row, slightly
   tilted so it doesn't read as a generic strikethrough. Hover lifts and
   fades it so the user sees the row whole. */
.compare-row::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255, 112, 119, 0) 0%,
    rgba(255, 112, 119, 0.85) 8%,
    rgba(255, 112, 119, 0.85) 92%,
    rgba(255, 112, 119, 0) 100%);
  border-radius: 2px;
  transform: translateY(-50%) rotate(-0.6deg);
  filter: drop-shadow(0 0 8px rgba(255, 112, 119, 0.35));
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.compare-row:nth-child(2)::after { transform: translateY(-50%) rotate(0.5deg); }
.compare-row:nth-child(3)::after { transform: translateY(-50%) rotate(-0.4deg); }
.compare-row:nth-child(4)::after { transform: translateY(-50%) rotate(0.7deg); }
.compare-row:nth-child(5)::after { transform: translateY(-50%) rotate(-0.3deg); }
.compare-row:nth-child(6)::after { transform: translateY(-50%) rotate(0.4deg); }
.compare-row:hover::after { opacity: 0.18; }

.cr-name {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cr-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cr-price {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg-mid);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.cr-price span {
  font-size: 0.65em;
  color: var(--fg-faint);
  margin-left: 2px;
}
.cr-quip {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .compare-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "quip quip";
    row-gap: 6px;
  }
  .cr-name { grid-area: name; }
  .cr-price { grid-area: price; justify-self: end; }
  .cr-quip { grid-area: quip; }
}

.compare-cursus {
  position: relative;
  margin-top: clamp(56px, 7vh, 88px);
  margin-bottom: clamp(40px, 6vh, 72px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: 0 30px 80px -30px var(--accent-glow);
}
.compare-cursus-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 100% at 50% 0%,
      rgba(106, 151, 251, 0.28),
      rgba(106, 151, 251, 0) 80%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}
.compare-cursus-inner {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  flex-wrap: wrap;
}
.compare-cursus-inner img {
  flex-shrink: 0;
  filter: drop-shadow(0 8px 28px var(--accent-glow));
}
.compare-cursus-inner > div {
  flex: 1;
  min-width: 240px;
}
.compare-cursus-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.compare-cursus-price {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.compare-cursus-price .dim { color: var(--fg-dim); }
.compare-cursus-inner p {
  font-size: 15px;
  color: var(--fg-mid);
  margin-top: 10px;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-cursus-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ─── stack row ─────────────────────────────────────────────────────── */
.stack {
  text-align: center;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
}
.stack-list span {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-mid);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ─── CTA band ──────────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 96px) 32px;
  background:
    radial-gradient(80% 100% at 50% 0%,
      rgba(106, 151, 251, 0.25),
      rgba(7, 7, 10, 0) 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 16px;
  color: var(--fg-mid);
  max-width: 520px;
  margin: 0 auto 28px;
}
.cta-band .hero-cta { justify-content: center; }

/* ─── footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a { color: var(--fg-mid); font-size: 14px; }
.footer-links a:hover { color: var(--fg); }
.footer-copy {
  font-size: 13px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
}

/* ─── reveal animation ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── responsive ────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase.reverse { grid-template-columns: 1fr; }
  .showcase.reverse .showcase-art,
  .showcase.reverse .kbd-panel { order: 0; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}
