:root {
  --bg: #090b10;
  --bg-soft: #111624;
  --bg-card: rgba(15, 21, 39, 0.72);
  --border: rgba(129, 153, 255, 0.2);
  --text: #f7f9ff;
  --muted: rgba(222, 231, 255, 0.72);
  --primary: #4d85ff;
  --secondary: #6b52ff;
  --tertiary: #9d5bff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(65, 97, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(108, 69, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #090b10 0%, #0a0c14 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 18px 0 36px;
}
.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,0));
  opacity: .35;
}
a { color: inherit; text-decoration: none; }
.container {
  width: min(1180px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 32px 0;
}
.container > * + * {
  margin-top: 28px;
}
.nav-shell,
.card,
.doc-card,
.news-card,
.plan-card,
.info-card,
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.25);
}
.topbar-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border-radius: 22px;
  background: rgba(17, 22, 36, 0.84);
  border: 1px solid rgba(120, 146, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 45px rgba(0,0,0,.28);
}
.nav-link,
.nav-cta,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-ghost {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.nav-link:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}
.nav-link {
  color: rgba(235, 241, 255, 0.82);
  font-size: .93rem;
}
.nav-cta,
.btn-primary {
  border-radius: 999px;
  padding: 12px 18px;
  color: white;
  background: linear-gradient(90deg, rgba(53, 110, 255, .85), rgba(120, 70, 255, .92));
  border: 1px solid rgba(130, 168, 255, .26);
  box-shadow: 0 10px 26px rgba(59, 87, 204, .26);
}
.btn-secondary,
.btn-outline,
.btn-ghost {
  border-radius: 18px;
  padding: 11px 16px;
  border: 1px solid rgba(119, 146, 255, .24);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.page-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 18px;
}
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #a9c0ff;
  border: 1px solid rgba(123, 148, 255, .24);
  background: rgba(54, 83, 188, .16);
}
.page-subtext,
.placeholder-text,
.doc-placeholder {
  color: var(--muted);
}
.section-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
}
.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card,
.doc-card,
.news-card,
.plan-card,
.info-card,
.faq-item {
  border-radius: 24px;
  padding: 22px;
}
.card:hover,
.doc-card:hover,
.plan-card:hover,
.news-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 55px rgba(0,0,0,.32);
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.faq-answer {
  display: none;
  margin-top: 14px;
  color: var(--muted);
}
.faq-item.open .faq-answer { display: block; }
.doc-meta {
  display: flex;
  gap: 10px;
  color: #9cb4ff;
  font-size: .78rem;
}
.muted-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(122,148,255,.24), rgba(122,148,255,0));
  margin: 16px 0;
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .topbar-shell { padding: 12px 14px; }
}

/* Fallback gutters for pages without the .page-shell/.container wrapper
   (e.g. about.html, faq.html) — content sits directly in <body>.
   Excluded from index.html by targeting only bodies that lack .page-shell. */
body:not(:has(.page-shell)) > *:not(script) {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 28px;
  box-sizing: border-box;
}
body:not(:has(.page-shell)) > *:not(script):last-of-type {
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  body:not(:has(.page-shell)) > *:not(script) {
    padding: 0 20px;
  }
}