/* ============================================
   THEME VARIABLES
   NOTE: These variables are duplicated in try/proto-wiki.css
   Any changes here MUST be synced there manually
   ============================================ */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a1f2e;
  --accent-hot: #ff5e1a;
  --accent-teal: #00d4aa;
  --accent-gold: #f5c542;
  --text-primary: #e8e6e1;
  --text-muted: #8a8d96;
  --text-dark: #0a0e17;
}

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

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* --- HEADER --- */
.page-header {
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  position: relative;
}

.back-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.back-link:hover { color: var(--accent-hot); }

.header-nav {
  display: flex;
  gap: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.header-nav a:hover { color: var(--accent-hot); }

/* --- HERO SECTION --- */
.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 8rem;
  position: relative;
  background: var(--bg-primary);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--accent-hot);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero-tagline {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out;
}

.vs-carousel {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.vs-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  animation: fadeIn 0.6s ease-out;
}

.vs-text .vs-word {
  color: var(--accent-hot);
  font-size: 0.5em;
  letter-spacing: 0.05em;
}

.vs-rotating {
  display: block;
  color: var(--accent-teal);
  position: relative;
  height: 1.1em;
  overflow: visible;
  clip-path: inset(0 -100vw 0 -100vw);
  text-align: center;
  width: 100%;
}

.vs-rotating span {
  position: absolute;
  left: 50%;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(-100%);
  white-space: nowrap;
}

.vs-rotating span.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vs-rotating span.exit-down {
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* --- CHOICES SECTION --- */
.choices-section {
  background: var(--accent-hot);
  padding: 0;
  position: relative;
}

.choices-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--accent-hot);
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .choices-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.choice-card {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.choice-card:nth-child(1) { background: var(--bg-secondary); }
.choice-card:nth-child(2) { background: var(--bg-tertiary); }
.choice-card:nth-child(3) { background: var(--bg-primary); }

.choice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.choice-card:hover::before,
.choice-card.expanded::before {
  transform: scaleX(1);
}

.choice-card:nth-child(2)::before { background: var(--accent-teal); }
.choice-card:nth-child(3)::before { background: var(--accent-gold); }

.choice-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.choice-chevron {
  transition: transform 0.3s ease;
  transform-origin: center;
  display: inline-block;
}

.choice-card:hover .choice-chevron,
.choice-card.expanded .choice-chevron {
  transform: rotate(90deg);
}

.choice-card:nth-child(1) .choice-label { color: var(--accent-hot); }
.choice-card:nth-child(2) .choice-label { color: var(--accent-teal); }
.choice-card:nth-child(3) .choice-label { color: var(--accent-gold); }

.choice-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.choice-details {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease;
}

.choice-card:hover .choice-details,
.choice-card.expanded .choice-details {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1rem;
}

.choice-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 0.6em 1.5em;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.2s;
}

.choice-card:nth-child(1) .choice-cta { background: var(--accent-hot); }
.choice-card:nth-child(2) .choice-cta { background: var(--accent-teal); }
.choice-card:nth-child(3) .choice-cta { background: var(--accent-gold); }

.choice-cta:hover {
  transform: scale(1.04);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-primary);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-primary);
  clip-path: polygon(0 0, 100% 80%, 100% 100%, 0 100%);
  margin-top: -79px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent-hot);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE --- */
@media (max-width: 767px) {
  .choice-label {
    width: 100%;
  }

  .choice-chevron {
    margin-left: auto;
  }
}
