:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2fa;
  --ink: #141c2b;
  --muted: #526077;
  --line: #dce3ef;
  --brand-a: #8b3cf7;
  --brand-b: #3b6cf6;
  --accent: #3563eb;
  --accent-hover: #2550d4;
  --accent-soft: #eaf0ff;
  --navy: #0b2540;
  --navy-deep: #07192d;
  --ocean: #0b3954;
  --gold: #ffd166;
  --ok-bg: #e8f7ee;
  --ok-ink: #14633a;
  --warn-bg: #fff6e0;
  --warn-ink: #7a4b06;
  --shadow-sm: 0 2px 8px rgba(13, 27, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 27, 48, 0.09);
  --shadow-lg: 0 24px 60px rgba(7, 20, 38, 0.22);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131c;
    --surface: #161d2b;
    --surface-soft: #1e2739;
    --ink: #edf1f8;
    --muted: #9aa7bd;
    --line: #283347;
    --accent: #6b95ff;
    --accent-hover: #83a7ff;
    --accent-soft: #1d2a47;
    --ok-bg: #112d20;
    --ok-ink: #79e0a6;
    --warn-bg: #2e220f;
    --warn-ink: #f7c76e;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
}
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

/* ---------- Top Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-link img { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-sm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-student {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}
.nav-student:hover {
  color: var(--ink);
  background: var(--surface-soft);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  padding: 7px 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-soft);
  text-decoration: none;
}
.btn.lg {
  padding: 13px 22px;
  font-size: 15.5px;
  border-radius: 12px;
}
.btn.sm {
  padding: 7px 13px;
  font-size: 13.5px;
  border-radius: 8px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(59, 108, 246, 0.28);
}
.btn.primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}
.btn.gold {
  background: var(--gold);
  color: #141c2b;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 209, 102, 0.28);
}
.btn.gold:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.btn.ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}
.btn.ghost-dark:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(139, 60, 247, 0.34), transparent 65%),
    radial-gradient(850px 420px at 88% 8%, rgba(59, 108, 246, 0.32), transparent 60%),
    linear-gradient(170deg, var(--navy-deep) 0%, var(--ocean) 100%);
  color: #ffffff;
  padding: 58px 0 68px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 38px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: #e9efff;
  margin-bottom: 16px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(32px, 4.1vw, 48px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-platforms {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.hero-platforms a {
  color: var(--gold);
  font-weight: 600;
}
.hero-trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Interactive Hero Preview Stage ---------- */
.preview-shell {
  background: #0d1624;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.preview-tabs::-webkit-scrollbar { display: none; }
.preview-tab {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.preview-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.preview-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.preview-panel {
  padding: 16px;
  min-height: 328px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(155deg, #0b3954 0%, #092538 100%);
  color: #ffffff;
}
.preview-panel[hidden] { display: none; }
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
}
.mock-title { font-size: 20px; font-weight: 800; }
.mock-sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.mock-pill {
  display: inline-block;
  background: var(--gold);
  color: #0b2540;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}
.mock-clock { text-align: right; font-variant-numeric: tabular-nums; }
.mock-clock strong { display: block; font-size: 22px; line-height: 1; }
.mock-clock span { font-size: 11.5px; opacity: 0.82; }
.mock-split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 12px;
  flex: 1;
}
.mock-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12.5px;
}
.mock-card h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 7px;
}
.mock-agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mock-agenda li {
  display: flex;
  justify-content: space-between;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}
.mock-agenda li.now {
  background: rgba(255, 209, 102, 0.18);
  border: 1px solid rgba(255, 209, 102, 0.48);
  font-weight: 700;
}
.mock-paper {
  background: #ffffff;
  color: #161d29;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.mock-toolbar {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
}
.mock-chip {
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.mock-caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mock-caption a { color: var(--gold); font-weight: 600; }

/* ---------- Page Hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(720px 300px at 10% -20%, rgba(139, 60, 247, 0.28), transparent 65%),
    linear-gradient(170deg, var(--navy-deep) 0%, var(--ocean) 100%);
  color: #ffffff;
  padding: 46px 0 42px;
}
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 700px;
}
.page-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Sections & Cards ---------- */
.section { padding: 62px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.compact { padding: 42px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
  font-size: 16.5px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.section.alt .card {
  background: var(--bg);
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p.muted, .muted { color: var(--muted); }
.small { font-size: 13.5px; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }

.check-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok-ink);
  font-weight: 800;
}

/* ---------- Pillar Rows ---------- */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.pillar + .pillar { margin-top: 24px; }
.pillar.reverse .pillar-visual { order: -1; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar-visual {
  background: linear-gradient(155deg, var(--navy-deep), var(--ocean));
  border-radius: 14px;
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mini-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
}
.mini-tile strong {
  display: block;
  color: var(--gold);
  font-size: 13.5px;
  margin-bottom: 3px;
}
.mini-tile span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  line-height: 1.4;
}

/* ---------- Comparison & Data Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  border-top: none;
  background: var(--surface-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.yes { color: var(--ok-ink); font-weight: 700; }
.no { color: var(--muted); }

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(59, 108, 246, 0.14);
}
.price-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 4px;
}
.price-num span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Download Tabs & Steps ---------- */
.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.os-tab {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.os-tab.active, .os-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
}
.os-panel[hidden] { display: none; }

.step-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  font-size: 15px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.callout {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.callout.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: color-mix(in srgb, var(--ok-ink) 26%, transparent);
}
.callout.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: color-mix(in srgb, var(--warn-ink) 26%, transparent);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.fld.full { grid-column: 1 / -1; }
.fld label { font-weight: 600; font-size: 13.5px; }
.fld input, .fld select, .fld textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  display: none;
}
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok-ink); }
.form-status.err { display: block; background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .pillar { grid-template-columns: 1fr; }
  .pillar.reverse .pillar-visual { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-actions .nav-student { display: none; }
  .grid-4, .grid-2, .form-grid, .mock-split, .mini-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 38px 0 46px; }
  .section { padding: 44px 0; }
}
