/* ===== PROMETHEAN — CORE LAYOUT ===== */
:root {
  --bg: #000;
  --text: #e8f0f2;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --btn-radius: 999px;
  --cascade-top: 210px;
  --cascade-bottom: 240px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Orbitron, system-ui, sans-serif;
  overflow: hidden;
}

/* Video background */
.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Scrim */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(78% 56% at 60% 50%, rgba(0,0,0,.05), rgba(0,0,0,.50) 68%, rgba(0,0,0,.80));
}
.scrim.stronger {
  background: radial-gradient(82% 62% at 58% 48%, rgba(0,0,0,.12), rgba(0,0,0,.74) 70%, rgba(0,0,0,.92));
}

/* ===== LABELS ===== */
.label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  color: #fff;
  font-weight: 800;
  letter-spacing: .05em;
  text-shadow: 0 0 10px rgba(255,255,255,.7), 0 0 26px rgba(255,255,255,.35);
  font-size: clamp(.78rem, 2.2vw, 1.45rem);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  text-align: center;
}
.label-row {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--gap-sm));
  left: var(--gap-sm);
  right: var(--gap-sm);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 6vw, 40px);
  pointer-events: none;
}
.label-group {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 3.2vw, 26px);
}
.label-group-left {
  justify-content: flex-start;
  margin-right: auto;
}
.label-group-right {
  justify-content: flex-end;
  margin-left: auto;
}

/* ===== BODY CASCADE CONTENT ===== */
.body-cascade-shell {
  position: fixed;
  top: var(--cascade-top);
  bottom: var(--cascade-bottom);
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 3 * var(--gap-sm)));
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.body-cascade-scroller {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  pointer-events: auto;
  padding: clamp(18px, 4vw, 56px) clamp(12px, 4vw, 42px);
  background: transparent;
}
.body-cascade-scroller::-webkit-scrollbar { width: 6px; }
.body-cascade-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}
.body-cascade-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.8rem);
  color: var(--text);
}
.cascade-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.08rem 0.2rem;
}
.cascade-line .cascade-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.04rem;
}
.cascade-word {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.08rem;
}
.cascade-letter.is-space {
  min-width: 0.4rem;
  padding: 0;
}
.body-cascade-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.65rem, 1.8vw, 0.92rem);
}
.body-cascade-header h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
}
.body-cascade-kicker { margin: 0; opacity: 0.75; }
.body-cascade-content section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.body-cascade-content h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
}
.body-cascade-content h3 {
  margin: 0;
  letter-spacing: 0.1em;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
}
.body-cascade-content p {
  margin: 0;
  line-height: 1.7;
}
.body-cascade-content ul,
.body-cascade-content ol {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.body-cascade-content ul { list-style: disc; }
.body-cascade-content ol { list-style: decimal; }
.body-cascade-content li {
  line-height: 1.6;
}
.body-cascade-steps > li {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.body-cascade-comparison {
  display: grid;
  gap: clamp(16px, 4vw, 32px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .body-cascade-shell {
    width: min(980px, calc(100vw - 4 * var(--gap-md)));
  }
  .body-cascade-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== DOM-BASED CASCADE ===== */
.cascade-char {
  display: block;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transition: opacity 0.2s linear;
}
.cascade-char.head {
  color: #fff;
  text-shadow: 0 0 12px #fff, 0 0 20px #fff;
}
.cascade-char.final {
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}
.cascade-char.match-pink,
.cascade-letter.match-pink {
  color: #ff4df5;
  text-shadow: 0 0 12px rgba(255, 77, 245, 0.85), 0 0 24px rgba(255, 163, 250, 0.7);
  animation: neonPulsePink 1.4s ease-in-out infinite;
}
.cascade-char.match-teal,
.cascade-letter.match-teal {
  color: #30ffe6;
  text-shadow: 0 0 12px rgba(48, 255, 230, 0.9), 0 0 24px rgba(134, 255, 245, 0.7);
  animation: neonPulseTeal 1.4s ease-in-out infinite;
}
@keyframes neonPulsePink {
  0%, 100% { opacity: 1; text-shadow: 0 0 12px rgba(255, 77, 245, 0.9), 0 0 26px rgba(255, 163, 250, 0.75); }
  50% { opacity: 0.7; text-shadow: 0 0 6px rgba(255, 77, 245, 0.6), 0 0 14px rgba(255, 163, 250, 0.5); }
}
@keyframes neonPulseTeal {
  0%, 100% { opacity: 1; text-shadow: 0 0 12px rgba(48, 255, 230, 0.9), 0 0 26px rgba(134, 255, 245, 0.75); }
  50% { opacity: 0.7; text-shadow: 0 0 6px rgba(48, 255, 230, 0.6), 0 0 14px rgba(134, 255, 245, 0.45); }
}


/* ===== BUTTONS ===== */
.btn-white {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gap-sm));
  z-index: 8;
  transform: translate(-50%, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.25rem;
  border-radius: var(--btn-radius);
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(255,255,255,.95), inset 0 0 10px rgba(255,255,255,.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.donate-form {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gap-sm) + 80px);
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}
.donate-form input[type="image"] {
  max-width: 190px;
  width: 70vw;
  height: auto;
}
.btn-white:hover {
  transform: translate(-50%, -2px);
  box-shadow: 0 0 30px rgba(255,255,255,1), inset 0 0 15px rgba(255,255,255,.9);
}
.btn-white:active { transform: translate(-50%, 0); }

/* ===== LAYOUT TWEAKS ===== */
@media (min-width: 768px) {
  body.home {
    --cascade-top: 230px;
    --cascade-bottom: 260px;
  }
  .label-row {
    top: calc(env(safe-area-inset-top, 0px) + var(--gap-md));
    padding: 0 clamp(20px, 5vw, 48px);
  }
  .btn-white { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gap-md)); }
}
@media (min-width: 1200px) {
  body.home {
    --cascade-top: 250px;
    --cascade-bottom: 280px;
  }
  .label-row {
    top: calc(env(safe-area-inset-top, 0px) + var(--gap-lg));
    padding: 0 clamp(24px, 5vw, 56px);
  }
  .btn-white { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gap-lg)); }
}

@media (max-width: 640px) {
  body.home {
    --cascade-top: 200px;
    --cascade-bottom: 210px;
  }
  .label {
    font-size: clamp(0.48rem, 2.6vw, 0.74rem);
    letter-spacing: 0.026em;
  }
 .label-row {
    display: grid;
    grid-template-columns: repeat(4, auto);
    align-items: center;
    justify-items: center;
    gap: clamp(8px, 2.5vw, 16px);
    width: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .label-group {
    display: inline-flex;
    gap: clamp(4px, 1.8vw, 10px);
  }
.label-group-left {
  justify-content: flex-start;
}
.label-group-right {
  justify-content: flex-end;
}
  .body-cascade-shell {
    top: var(--cascade-top);
    bottom: var(--cascade-bottom);
    width: min(92vw, 540px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .body-cascade-scroller {
    padding: clamp(14px, 5vw, 24px);
    max-width: 100%;
  }
  .body-cascade-content {
    gap: clamp(0.72rem, 3.5vw, 1.1rem);
  }
  .btn-white {
    font-size: 0.74rem;
    padding: 0.5rem 0.9rem;
    letter-spacing: 0.03em;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gap-sm));
  }
}

/* ===== PRIVACY PAGE ===== */
.page-shell {
  position: relative;
  z-index: 4;
  height: 100dvh;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 64px) clamp(16px, 5vw, 96px);
  padding-bottom: 120px;
}
.page-shell h1 { margin: .1em 0 .35em; font-size: clamp(1.6rem, 5vw, 2.6rem); text-shadow: 0 0 20px rgba(232, 240, 242, 0.5); }
.page-shell h2 { margin: 1.1em 0 .5em; font-size: clamp(1.05rem, 2.8vw, 1.35rem); color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
.page-shell p, .page-shell li { margin: 0 0 .8em 0; line-height: 1.6; }
main.page-shell section#policy ul {
  list-style: none; /* Remove default bullet */
  padding-left: 0;
  margin: 0 0 1em 0;
}
main.page-shell section#policy ul li {
  display: flex; /* Use flexbox for alignment */
  align-items: flex-start;
  padding-left: 0;
  text-indent: 0; /* ADDED: This is the critical fix */
  margin-bottom: 0.8em; /* Match paragraph margin */
}
main.page-shell section#policy ul li::before {
  content: '•'; /* Create the bullet */
  color: var(--text);
  font-weight: bold;
  display: inline-block;
  width: 1.5em; /* Provide space for the bullet */
  flex-shrink: 0; /* Prevent bullet from shrinking */
}
.page-shell strong { color: #fff; font-weight: 900; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #fff;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
