:root {
  --brand-purple: #9789CD;
  --deep-purple: #A37EF2;
  --darkest-navy: #090C1D;
  --gold-accent: #FFD22E;
  --bright-gold: #FFC83D;
  --bright-amber: #FFCE00;
  --luminous-yellow: #FFEA2F;
  --electric-blue: #3B82F6;
  --promo-pink: #EC4899;
  --red-alert: #EF4444;
  --btn-gold: #FFD22E;
  --btn-hover-gold: #FFC83D;
  --dark-navy-btn: #2C2852;
  --medium-purple: #463E7A;
  --white: #FFFFFF;
  --soft-white: #F2F3F8;
  --mid-gray: #8087A3;
  --muted-gray: #9295B8;
  --dark-slate: #191939;
  --medium-slate: #2C2852;
  --border-slate: #45406A;
  --light-lavender: #D9D1F4;
  --heading-white: #FFFFFF;
  --body-text: #CBD0E8;
  --muted-text: #9295B8;
  --link-gold: #FFD22E;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1140px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--darkest-navy);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bright-gold);
}

a:focus-visible,
button:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========== HEADER ========== */
.site-masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 12, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-slate);
  height: var(--header-h);
}

.masthead-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-sm);
}

.brand-logo img {
  height: 36px;
  width: auto;
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.nav-anchor {
  color: var(--muted-gray);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-anchor:hover,
.nav-anchor.active {
  color: var(--white);
  background: var(--medium-slate);
}

.masthead-cta {
  background: var(--btn-gold);
  color: var(--darkest-navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.masthead-cta:hover {
  background: var(--btn-hover-gold);
  color: var(--darkest-navy);
  transform: translateY(-1px);
}

.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}

.burger-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-toggle span:nth-child(1) { top: 8px; }
.burger-toggle span:nth-child(2) { top: 15px; }
.burger-toggle span:nth-child(3) { top: 22px; }

.burger-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 15px;
}
.burger-toggle.open span:nth-child(2) { opacity: 0; }
.burger-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 15px;
}

/* ========== BREADCRUMBS ========== */
.crumb-trail ol {
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted-gray);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.crumb-trail a {
  color: var(--muted-gray);
}

.crumb-trail a:hover {
  color: var(--link-gold);
}

.crumb-trail li:not(:last-child)::after {
  content: '›';
  margin-left: 0.4rem;
  color: var(--border-slate);
}

.crumb-trail li[aria-current] {
  color: var(--body-text);
}

/* ========== HERO ========== */
.hero-stage {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--darkest-navy) 0%, var(--dark-slate) 50%, var(--medium-slate) 100%);
  border-bottom: 1px solid var(--border-slate);
}

.hero-content {
  max-width: 780px;
}

.hero-stage h1 {
  color: var(--heading-white);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--body-text);
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero-compact {
  padding: var(--space-lg) 0;
}

.hero-compact h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.hero-legal {
  background: linear-gradient(135deg, var(--darkest-navy) 0%, var(--dark-slate) 100%);
}

.hero-crash {
  background: linear-gradient(135deg, var(--darkest-navy) 0%, #1a1245 50%, var(--medium-slate) 100%);
}

.hero-warning .warning-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--red-alert);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
}

.warning-banner p {
  font-size: 0.9rem;
  color: #fca5a5;
}

/* ========== CTA BUTTONS ========== */
.cta-primary {
  display: inline-block;
  background: var(--btn-gold);
  color: var(--darkest-navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 210, 46, 0.2);
}

.cta-primary:hover {
  background: var(--btn-hover-gold);
  color: var(--darkest-navy);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 210, 46, 0.35);
}

.cta-accent {
  display: inline-block;
  background: var(--btn-gold);
  color: var(--darkest-navy);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(255, 210, 46, 0.25);
}

.cta-accent:hover {
  background: var(--btn-hover-gold);
  color: var(--darkest-navy);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255, 210, 46, 0.4);
}

.cta-small {
  display: inline-block;
  background: var(--btn-gold);
  color: var(--darkest-navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cta-small:hover {
  background: var(--btn-hover-gold);
  color: var(--darkest-navy);
  transform: translateY(-1px);
}

.cta-secondary {
  display: inline-block;
  background: var(--dark-navy-btn);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-slate);
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.cta-secondary:hover {
  background: var(--medium-slate);
  color: var(--white);
  border-color: var(--brand-purple);
}

.legal-cta-wrap {
  margin-top: var(--space-lg);
  text-align: center;
}

/* ========== CONTENT BLOCKS ========== */
.content-block {
  padding: var(--space-xl) 0;
}

.content-block.alt-surface {
  background: var(--dark-slate);
}

.content-block h2 {
  color: var(--heading-white);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.content-block h3 {
  color: var(--heading-white);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content-block p {
  margin-bottom: var(--space-sm);
  max-width: 780px;
}

.legal-content p {
  max-width: 820px;
}

/* ========== TABLES ========== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-slate);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-slate);
}

th {
  background: var(--medium-slate);
  color: var(--heading-white);
  font-weight: 600;
  white-space: nowrap;
}

td {
  background: var(--dark-slate);
  color: var(--body-text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(151, 137, 205, 0.06);
}

.promo-table td:first-child,
.promo-table th:first-child {
  min-width: 120px;
}

.code-tag {
  display: inline-block;
  background: var(--medium-purple);
  color: var(--gold-accent);
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.status-active {
  color: #4ade80;
  font-weight: 600;
  white-space: nowrap;
}

/* ========== FEATURE GRID ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.feature-item {
  background: var(--dark-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.alt-surface .feature-item {
  background: var(--medium-slate);
}

.feature-item:hover {
  border-color: var(--brand-purple);
  transform: translateY(-2px);
}

.feature-item strong {
  color: var(--gold-accent);
}

/* ========== CHECKLISTS ========== */
.checklist-panel {
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist-panel li {
  background: var(--dark-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  position: relative;
  font-size: 0.93rem;
}

.alt-surface .checklist-panel li {
  background: var(--medium-slate);
}

.checklist-panel li::before {
  content: '✓';
  position: absolute;
  left: 0.9rem;
  top: 0.75rem;
  color: var(--gold-accent);
  font-weight: 700;
}

/* ========== INFO POINTS ========== */
.info-points {
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-points li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(69, 64, 106, 0.4);
}

.info-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-purple);
  font-size: 1.2rem;
}

.info-points li:last-child {
  border-bottom: none;
}

.warning-list li::before {
  color: var(--red-alert);
}

.support-orgs li {
  padding: 0.75rem 0 0.75rem 1.5rem;
}

.support-orgs li strong {
  color: var(--heading-white);
}

/* ========== STEP SEQUENCE ========== */
.step-sequence {
  counter-reset: step-count;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-sequence li {
  counter-increment: step-count;
  background: var(--dark-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.85rem 3rem;
  position: relative;
  font-size: 0.93rem;
}

.alt-surface .step-sequence li {
  background: var(--medium-slate);
}

.step-sequence li::before {
  content: counter(step-count);
  position: absolute;
  left: 0.85rem;
  top: 0.75rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--brand-purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-sequence li strong {
  color: var(--heading-white);
}

/* ========== PROMO RIBBON ========== */
.promo-ribbon {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--medium-slate) 0%, #2d1f5e 50%, var(--medium-slate) 100%);
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
}

.ribbon-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.ribbon-content h2 {
  color: var(--heading-white);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: var(--space-sm);
}

.ribbon-content p {
  color: var(--body-text);
  margin-bottom: var(--space-md);
  max-width: none;
}

/* ========== QUICK NAV CARDS ========== */
.quick-nav-cards {
  padding: var(--space-xl) 0;
  background: var(--dark-slate);
}

.quick-nav-cards h2 {
  color: var(--heading-white);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.nav-card {
  background: var(--medium-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-card:hover {
  border-color: var(--brand-purple);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(151, 137, 205, 0.15);
}

.card-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.nav-card h3 {
  color: var(--heading-white);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.nav-card p {
  color: var(--muted-gray);
  font-size: 0.88rem;
}

/* ========== FAQ ACCORDION ========== */
.faq-panel {
  padding: var(--space-xl) 0;
  background: var(--darkest-navy);
}

.faq-panel h2 {
  color: var(--heading-white);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-lg);
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 820px;
}

.accordion-item {
  background: var(--dark-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item[open] {
  border-color: var(--brand-purple);
}

.accordion-item summary {
  padding: 1rem var(--space-md);
  cursor: pointer;
  color: var(--heading-white);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
  user-select: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--brand-purple);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform 0.3s ease;
}

.accordion-item[open] summary::after {
  content: '−';
}

.accordion-item summary:hover {
  background: rgba(151, 137, 205, 0.06);
}

.accordion-body {
  padding: 0 var(--space-md) 1rem;
  font-size: 0.93rem;
  color: var(--body-text);
}

.accordion-body p {
  max-width: none;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark-slate);
  border-top: 1px solid var(--border-slate);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--red-alert);
  color: var(--red-alert);
  font-weight: 800;
  font-size: 0.85rem;
}

.footer-links h4 {
  color: var(--heading-white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--muted-gray);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--link-gold);
}

.support-note {
  color: var(--muted-gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
  margin-bottom: var(--space-md);
}

.badge-item {
  background: var(--medium-slate);
  color: var(--muted-gray);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-slate);
}

.footer-disclaimer {
  max-width: 780px;
}

.footer-disclaimer p {
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.copyright {
  color: var(--mid-gray);
  font-size: 0.78rem;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--btn-gold);
  color: var(--darkest-navy);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--btn-hover-gold);
  transform: translateY(-2px);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(9, 12, 29, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .primary-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .nav-anchor {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }

  .masthead-cta {
    display: none;
  }

  .burger-toggle {
    display: block;
    z-index: 1001;
  }

  .hero-stage {
    padding: var(--space-lg) 0;
  }

  .hero-stage h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .hero-intro {
    font-size: 0.95rem;
  }

  .content-block {
    padding: var(--space-lg) 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-badges {
    justify-content: center;
  }

  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  table {
    font-size: 0.84rem;
  }

  th, td {
    padding: 0.65rem 0.75rem;
  }

  .step-sequence li {
    padding-left: 2.75rem;
  }

  .step-sequence li::before {
    left: 0.6rem;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .promo-table td,
  .promo-table th {
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
  }

  .code-tag {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
  }

  .cta-primary,
  .cta-accent {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
  }

  .ribbon-content {
    padding: 0 var(--space-xs);
  }
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .content-block,
  .faq-panel,
  .quick-nav-cards,
  .promo-ribbon {
    animation: fadeInUp 0.4s ease-out both;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0.85;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}