:root {
  --bg: #0e0c1f;
  --bg-alt: #151230;
  --panel: #1d1a3d;
  --ink: #ece9ff;
  --muted: #a8a2d0;
  --volt: #ffd83d;
  --volt-dark: #e6b800;
  --storm: #7c6cff;
  --line: rgba(217, 212, 255, 0.12);
  --radius: 14px;
  --display: "Cinzel", Georgia, serif;
  --display-fancy: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--volt); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--display); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.1rem; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }

.eyebrow {
  color: var(--volt);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(14, 12, 31, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav .nav-cta { color: var(--bg); background: var(--volt); }
.nav .nav-cta:hover { color: var(--bg); background: var(--volt-dark); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 600;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-volt { background: var(--volt); color: var(--bg); }
.btn-volt:hover { background: var(--volt-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 3px solid var(--storm); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px 64px;
  background:
    radial-gradient(ellipse at 50% 0%, #2d2766 0%, transparent 60%),
    linear-gradient(var(--bg), var(--bg-alt));
  overflow: hidden;
}
.rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 760px; }
.hero-logo {
  width: min(260px, 60vw);
  filter: drop-shadow(0 0 40px rgba(255, 216, 61, 0.25));
  animation: bob 6s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--display-fancy);
  font-size: clamp(2.4rem, 8vw, 5rem);
  margin: 16px 0 8px;
  text-shadow: 0 0 30px rgba(124, 108, 255, 0.5);
}
.tagline { font-size: clamp(1.05rem, 2.5vw, 1.35rem); color: var(--muted); margin: 0 0 28px; }
.tagline em { color: var(--volt); font-style: normal; font-weight: 800; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.counter { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.counter strong { color: var(--volt); font-size: 1.15rem; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- lightning flash + shake ---------- */
.flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.flash.go { animation: flash 0.7s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  8% { opacity: 0.85; }
  16% { opacity: 0.1; }
  26% { opacity: 0.6; }
  100% { opacity: 0; }
}
body.shake main { animation: shake 0.5s linear; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(5px, -4px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.origin p { font-size: 1.1rem; }
.origin em { color: var(--volt); }

.tenets {
  list-style: none;
  counter-reset: tenet;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.tenets li {
  counter-increment: tenet;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  position: relative;
}
.tenets li::before {
  content: counter(tenet, upper-roman);
  font-family: var(--display);
  font-weight: 900;
  color: var(--volt);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
}
.tenets p { margin: 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0 0 12px; }
.card .req { font-size: 0.9rem; border-top: 1px dashed var(--line); padding-top: 12px; margin: 0; }
.card .req strong { color: var(--ink); }
.card-feature { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt) inset; }
.rank-icon { font-size: 2rem; display: block; margin-bottom: 8px; }

.days { margin-top: 32px; display: grid; gap: 12px; }
.day {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.day-date {
  font-family: var(--display);
  font-weight: 700;
  color: var(--volt);
  line-height: 1.3;
}
.day-date small { color: var(--muted); font-family: var(--body); font-weight: 400; }
.day p { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
  .day { grid-template-columns: 1fr; gap: 6px; }
}

.prophecy {
  margin: 28px auto 0;
  padding: 28px;
  min-height: 110px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.prophecy.reveal { animation: reveal 0.6s ease-out; }
@keyframes reveal {
  from { opacity: 0; transform: scale(0.96); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.quotes figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--storm);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quotes blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.quotes figcaption { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* ---------- join ---------- */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

.join-form { display: grid; gap: 16px; margin-top: 24px; }
.join-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.join-form input[type="text"], .join-form select {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.join-form input:focus, .join-form select:focus { outline: 2px solid var(--storm); border-color: transparent; }
.join-form .check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.join-form .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--volt); }
.join-form .btn { justify-self: start; }

.certificate {
  background: #f6f0dc;
  color: #2a2340;
  border-radius: 6px;
  padding: 36px 28px;
  text-align: center;
  border: 10px double #b8952a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: Georgia, serif;
}
.certificate.reveal { animation: reveal 0.7s ease-out; }
.cert-small { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; margin: 12px 0 4px; }
.cert-name { font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 3.4vw, 1.8rem); margin: 0 0 12px; color: #3b2d8a; }
.cert-body { margin: 0 0 20px; }
.cert-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  border-top: 1px solid #cdbf8f;
  padding-top: 12px;
}
.cert-sig { font-style: italic; font-size: 1.15rem; margin: 20px 0 16px; }
.cert-sig small { font-style: normal; font-size: 0.8rem; }
.certificate .btn-ghost { color: #2a2340; border-color: #b8952a; }
.certificate .btn-ghost:hover { color: #3b2d8a; border-color: #3b2d8a; }

.cert-heading {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  color: #b8952a;
  margin: 10px 0 0;
}
.cert-fine { font-size: 0.75rem; opacity: 0.75; margin: 0 0 16px; }

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 32px;
  max-width: 820px;
}
.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan h3 { font-size: 1.25rem; }
.plan .btn { margin-top: auto; text-align: center; }
.plan-feature { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt) inset, 0 20px 50px rgba(255, 216, 61, 0.08); }
.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--volt);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
}
.price {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  margin: 4px 0 20px;
  color: var(--volt);
}
.price span { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.perks li { padding-left: 28px; position: relative; }
.perks li::before { position: absolute; left: 0; font-weight: 800; }
.perks .yes::before { content: "✓"; color: var(--volt); }
.perks .no { color: var(--muted); text-decoration: line-through; }
.perks .no::before { content: "✗"; color: #ff6b6b; }
.fine-print { color: var(--muted); font-size: 0.85rem; max-width: 820px; margin: 20px 0 0; }

/* ---------- faq ---------- */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "⚡"; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(180deg); }
details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 56px 16px 40px;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 8px 0; }
.site-footer .fine { color: var(--muted); font-size: 0.85rem; }

/* ---------- motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .certificate, .certificate * { visibility: visible; }
  .certificate { position: absolute; inset: 0; margin: auto; height: fit-content; box-shadow: none; }
  .no-print { display: none; }
}
