:root {
  color-scheme: dark;
  --bg-deep: #060814;
  --bg-mid: #0c1230;
  --ink: #eef2ff;
  --muted: #a8b4d4;
  --line: rgba(168, 190, 255, 0.18);
  --glass: rgba(12, 18, 48, 0.62);
  --brand: #9b7dff;
  --brand-bright: #c4b0ff;
  --accent: #5ec8ff;
  --gold: #e8c27a;
  --ok: #6dffb5;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(120, 80, 220, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(50, 140, 220, 0.2), transparent 50%),
    linear-gradient(180deg, #0a0f28 0%, var(--bg-deep) 45%, #04060f 100%);
  pointer-events: none;
}

#galaxy-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

a {
  color: var(--brand-bright);
  text-decoration-color: rgba(196, 176, 255, 0.45);
}

a:hover {
  color: #fff;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 8, 20, 0.92), rgba(6, 8, 20, 0.55));
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 40px;
  align-items: start;
  padding: 48px 0 36px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 10px 0 18px;
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: #fff;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  color: #fff;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--brand-bright);
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #6e4fd8);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(120, 90, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 48px rgba(120, 90, 255, 0.45);
}

.button.secondary {
  background: transparent;
  color: var(--brand-bright);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--brand-bright);
  background: rgba(155, 125, 255, 0.08);
}

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  padding: 26px;
  backdrop-filter: blur(12px);
}

.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

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

.section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding: 52px 0 20px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pillar {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 36, 0.5);
}

.pillar strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 36, 0.45);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #0a0f28;
}

.sample-edition {
  margin-top: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 24, 0.65);
  overflow: hidden;
}

.sample-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(155, 125, 255, 0.08);
}

.sample-header h3 {
  margin: 0;
  color: var(--gold);
}

.sample-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

.sample-body {
  padding: 8px 22px 22px;
}

.sample-section {
  padding: 18px 0;
  border-bottom: 1px solid rgba(168, 190, 255, 0.1);
}

.sample-section:last-child {
  border-bottom: 0;
}

.sample-section h4 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.sample-card {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--brand);
}

.sample-card strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sample-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}

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

.card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 36, 0.45);
}

.card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-bright);
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  font-weight: 600;
  padding: 0 0 8px;
  font-size: 0.92rem;
}

input,
select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: rgba(4, 8, 24, 0.8);
}

input:focus,
select:focus {
  outline: 2px solid rgba(155, 125, 255, 0.5);
  border-color: var(--brand);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkbox input {
  min-height: auto;
  margin-top: 5px;
}

.lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.lookup-row input {
  flex: 1 1 220px;
}

.lookup-result {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(94, 200, 255, 0.08);
  border: 1px solid rgba(94, 200, 255, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
}

.lookup-result.ok {
  color: var(--ok);
  border-color: rgba(109, 255, 181, 0.35);
}

.lookup-result.error {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.35);
}

.quiz-panel h2 {
  font-size: 1.65rem;
}

.quiz-lead {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}

.sun-intro-card .sun-sign-label {
  color: var(--gold);
  font-style: italic;
}

.sun-intro-card .sun-primer {
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--brand);
  background: rgba(155, 125, 255, 0.08);
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 24, 0.55);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--brand-bright);
  background: rgba(155, 125, 255, 0.08);
}

.quiz-option input {
  margin-top: 4px;
  min-height: auto;
}

.quiz-actions {
  margin-top: 8px;
}

.prob-bars {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.prob-row {
  display: grid;
  grid-template-columns: auto 88px 1fr 48px;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: rgba(4, 8, 24, 0.45);
}

.prob-time {
  grid-column: 2 / -1;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.prob-row:hover {
  border-color: var(--accent);
}

.prob-sign {
  font-weight: 700;
  color: var(--gold);
}

.prob-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.prob-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.prob-pct {
  text-align: right;
  font-size: 0.88rem;
  color: var(--muted);
}

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

  .prob-track {
    grid-column: 1 / -1;
  }

  .prob-pct {
    grid-column: 2;
    grid-row: 1;
  }

  .prob-time {
    grid-column: 1 / -1;
  }
}

.coming-soon {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(155, 125, 255, 0.1);
  color: var(--muted);
}

.notice.ok {
  color: var(--ok);
  background: rgba(109, 255, 181, 0.08);
}

.legal {
  max-width: 760px;
  padding: 40px 0 72px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .hero,
  .pillars,
  .grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #galaxy-canvas {
    display: none;
  }
}
