/* ====== BASE ====== */
:root {
  --bg: #0a0a14;
  --bg-alt: #11111f;
  --card: #161628;
  --card-border: #2a2a45;
  --text: #e8e8f2;
  --text-dim: #9a9ab5;
  --accent1: #ff5e7a;
  --accent2: #ffb454;
  --accent3: #7c5cff;
  --green: #4ade80;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); background: #00000055; padding: 2px 6px; border-radius: 6px; font-size: 0.85em; }

.gradient-text {
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: #0a0a14cc;
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--accent2); }
.logo .tm { font-size: 0.6rem; vertical-align: super; color: var(--text-dim); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--accent2); }

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  border: none;
  color: #fff;
  box-shadow: 0 8px 30px #ff5e7a44;
}
.btn-primary:hover { box-shadow: 0 12px 40px #7c5cff66; }

.btn-ghost { background: transparent; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-huge { font-size: 1.25rem; padding: 20px 40px; }
.btn-tier { width: 100%; margin-top: auto; }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 110px 24px 70px;
  text-align: center;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 20% 10%, #7c5cff22, transparent),
    radial-gradient(700px 350px at 80% 20%, #ff5e7a1e, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent2);
  border: 1px solid #ffb45444;
  background: #ffb45411;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: pulse-badge 2.5s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 #ffb45433; }
  50% { box-shadow: 0 0 0 10px transparent; }
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; text-decoration: underline wavy var(--accent1) 3px; text-underline-offset: 6px; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero-sub strong { color: var(--text); }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* Doom counter */
.doom-counter {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px 36px;
  box-shadow: 0 20px 60px #00000066;
}
.doom-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.doom-digits { display: flex; gap: 22px; justify-content: center; }
.digit-group { display: flex; flex-direction: column; align-items: center; }
.digit-group span {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent1);
  min-width: 2.2ch;
}
.digit-group label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.doom-note { margin-top: 12px; font-size: 0.72rem; color: var(--text-dim); font-style: italic; }

/* ====== SECTIONS ====== */
.section { padding: 90px 24px; max-width: 1100px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 48px;
}
.small-note { font-size: 0.55em; color: var(--text-dim); font-weight: 400; }

/* ====== TERMINAL ====== */
.terminal {
  max-width: 760px;
  margin: 0 auto 60px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 80px #00000088;
  background: #0d0d18;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  background: #1a1a2e;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; } .t-dot.yellow { background: #febc2e; } .t-dot.green { background: #28c840; }
.terminal-title { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); margin-left: 10px; }
.terminal-body {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 22px;
  min-height: 280px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.terminal-body .t-prompt { color: var(--green); }
.terminal-body .t-err { color: var(--accent1); }
.terminal-body .t-warn { color: var(--accent2); }
.terminal-body .t-dim { color: var(--text-dim); }
.t-cursor { display: inline-block; width: 8px; height: 1em; background: var(--text); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ====== STATS ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.stat-num {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: var(--text-dim); }

/* ====== TIERS ====== */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  padding: 0 24px;
}
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent3);
  box-shadow: 0 20px 50px #7c5cff22;
}
.tier-featured { border-color: var(--accent1); box-shadow: 0 0 40px #ff5e7a22; }
.tier-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.tier-emoji { font-size: 2.6rem; margin-bottom: 12px; }
.tier-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tier-price {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 14px;
}
.tier-desc { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 18px; }
.tier-perks { list-style: none; font-size: 0.85rem; margin-bottom: 24px; display: grid; gap: 8px; }
.tiers-footnote { text-align: center; margin-top: 40px; color: var(--text-dim); font-size: 0.85rem; }
.terms-link { color: var(--accent3); text-decoration: underline; text-underline-offset: 3px; }
.terms-link:hover { color: var(--accent2); }

/* Custom severance tier */
.tier-custom { border-style: dashed; }
.custom-input-row {
  display: flex; align-items: center; gap: 8px;
  background: #00000044;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.custom-input-row:focus-within { border-color: var(--accent2); }
.custom-currency { font-family: var(--mono); color: var(--accent2); font-weight: 700; font-size: 1.2rem; }
#customAmount {
  width: 100%;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
}
#customAmount::-webkit-outer-spin-button,
#customAmount::-webkit-inner-spin-button { -webkit-appearance: none; }
#customAmount { -moz-appearance: textfield; appearance: textfield; }
.custom-reaction { min-height: 5.5em; transition: color 0.2s; }
.custom-reaction.reaction-angry { color: var(--accent1); }
.custom-reaction.reaction-happy { color: var(--green); }
.btn-tier:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ====== TESTIMONIALS ====== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.quote-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  font-size: 1rem;
}
.quote-card p { font-style: italic; margin-bottom: 16px; }
.quote-card p::before { content: "“"; color: var(--accent3); font-size: 1.4em; }
.quote-card p::after { content: "”"; color: var(--accent3); font-size: 1.4em; }
.quote-author { font-size: 0.82rem; color: var(--text-dim); }

/* ====== FAQ ====== */
.faq-list { max-width: 760px; display: grid; gap: 14px; padding: 0 24px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--accent2); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--text-dim); font-size: 0.95rem; }

/* ====== FINAL CTA ====== */
.final-cta {
  text-align: center;
  padding: 110px 24px;
  background:
    radial-gradient(500px 250px at 50% 0%, #7c5cff1c, transparent);
}
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 20px; }
.final-cta p { color: var(--text-dim); margin-bottom: 36px; font-size: 1.05rem; }
.final-cta strong, .final-cta em { color: var(--text); }

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--card-border);
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-fine { margin-top: 10px; font-size: 0.72rem; opacity: 0.7; }

/* ====== MODAL ====== */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: #000000aa;
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 40px 36px;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: center;
  box-shadow: 0 30px 100px #000000cc;
  animation: modal-in 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
@keyframes modal-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-emoji { font-size: 3rem; margin-bottom: 14px; }
.modal h3 { font-size: 1.4rem; margin-bottom: 12px; }
.modal p { color: var(--text-dim); margin-bottom: 26px; font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.1rem; cursor: pointer;
}
.modal-close:hover { color: var(--text); }

/* ====== SEVERANCE FUND ====== */
.fund-board {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 48px;
  max-width: 640px;
  margin: 0 auto 18px;
  box-shadow: 0 20px 60px #00000055;
}
.fund-stat { text-align: center; }
.fund-num {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent2);
}
.fund-stat label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.fund-divider { width: 1px; height: 60px; background: var(--card-border); }
.fund-caption {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 0.92rem;
}

.milestones { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.milestone-head {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.milestone-emoji { font-size: 1.2rem; }
.milestone-amount { font-family: var(--mono); font-weight: 700; color: var(--accent2); }
.milestone-label { color: var(--text-dim); flex: 1; }
.milestone-bar {
  height: 8px;
  background: #00000055;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-radius: 100px;
  transition: width 1s ease;
}
.milestone-done .milestone-fill { background: var(--green); }
.milestone-done .milestone-label { color: var(--text); }

/* ====== VOTE ====== */
.vote-box {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.vote-btn {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 18px 30px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; gap: 12px;
}
.vote-btn:hover { transform: translateY(-2px); }
.vote-yes:hover { border-color: var(--green); box-shadow: 0 10px 30px #4ade8022; }
.vote-no:hover { border-color: var(--accent1); box-shadow: 0 10px 30px #ff5e7a22; }
.vote-chosen.vote-yes { border-color: var(--green); background: #4ade8014; }
.vote-chosen.vote-no { border-color: var(--accent1); background: #ff5e7a14; }
.vote-count {
  font-family: var(--mono);
  background: #00000055;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--accent2);
}
.vote-msg { text-align: center; color: var(--text-dim); font-size: 0.88rem; font-style: italic; }

/* ====== LEGAL / TERMS PAGE ====== */
.legal { max-width: 720px; margin: 0 auto; padding: 70px 24px 90px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.legal-sub { color: var(--text-dim); margin-bottom: 48px; }
.legal-date { display: block; font-family: var(--mono); font-size: 0.75rem; margin-top: 8px; }
.legal section { margin-bottom: 36px; }
.legal h2 { font-size: 1.15rem; margin-bottom: 10px; color: var(--accent2); }
.legal p { color: var(--text-dim); font-size: 0.97rem; }
.legal p strong { color: var(--text); }
.legal a { color: var(--accent3); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { margin-top: 20px; text-decoration: none !important; color: #fff !important; }

/* ====== CHECKOUT MODAL ====== */
.checkout-modal { width: 100%; max-width: 420px; text-align: center; }
.checkout-sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 22px; }
.paypal-buttons-box {
  background: #ffffff0d;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  min-height: 120px;
}
.paypal-loading {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 36px 0;
  animation: blink 1.2s steps(1) infinite;
}

/* ====== MONEY RAIN ====== */
.money-drop {
  position: fixed;
  top: -8vh;
  z-index: 200;
  pointer-events: none;
  animation-name: money-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes money-fall {
  to { transform: translateY(115vh) rotate(660deg); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .doom-digits { gap: 14px; }
  .hero { padding-top: 70px; }
}
