/* ============================================
   BETA2 SHARED STYLES
   Palette, reset, grain, halftone, reveals,
   CTA bar, buttons, slashes, game tickets,
   next-section, footer
   ============================================ */

/* PROPERTIES */
:root {
  --deep-purple: #1a0a2e;
  --magenta: #9b4dca;
  --coral: #e8556d;
  --salmon: #F4845F;
  --cream: #faf5ef;
  --dark: #1A0F2E;
  --lavender: #9B5DE5;
  --hot-pink: #F15BB5;
  --midnight: #0d0618;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
  overflow-x: hidden;
  scroll-padding-top: 60px;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--deep-purple);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--salmon); text-decoration: none; }
a:hover { color: var(--hot-pink); }
a:focus-visible { outline: 2px solid var(--salmon); outline-offset: 3px; }

/* ============================================
   GRAIN OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  animation: grain-shift 0.4s steps(4) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, -12px); }
  50% { transform: translate(10px, -6px); }
  75% { transform: translate(-6px, 10px); }
}

/* ============================================
   HALFTONE DOTS
   ============================================ */
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, var(--cream) 1px, transparent 1px);
  background-size: 6px 6px;
}

/* ============================================
   SCROLL REVEALS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-rotate {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-rotate.visible {
  opacity: 1;
}

/* ============================================
   STICKY CTA BAR
   ============================================ */
.cta-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(26, 10, 46, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(155, 93, 229, 0.15);
}

.cta-bar a {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 20px;
  color: var(--cream);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.cta-bar a:hover {
  background: rgba(155, 93, 229, 0.2);
  color: var(--hot-pink);
}

.cta-bar a:first-child {
  background: var(--coral);
  color: white;
}

.cta-bar a:first-child:hover {
  background: var(--hot-pink);
}

.cta-bar a.is-current {
  color: var(--hot-pink);
  border-bottom: 2px solid var(--hot-pink);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 140px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px) rotate(0deg) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.btn--coral { background: var(--coral); color: white; transform: rotate(-1deg); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn--coral:hover { background: var(--hot-pink); color: white; }
.btn--magenta { background: var(--magenta); color: white; transform: rotate(0.5deg); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn--magenta:hover { background: #b366e0; color: white; }
.btn--ghost { background: transparent; color: var(--cream); border: 2px solid rgba(250, 245, 239, 0.3); transform: rotate(-0.5deg); }
.btn--ghost:hover { border-color: var(--hot-pink); color: var(--hot-pink); }
.btn--outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); transform: rotate(-0.5deg); }
.btn--outline:hover { border-color: var(--coral); color: var(--coral); }

/* ============================================
   SLASH DIVIDERS
   ============================================ */
.slash {
  height: 60px;
  position: relative;
  overflow: hidden;
}

.slash--cream-to-dark { background: var(--cream); }
.slash--cream-to-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  clip-path: polygon(0 50%, 100% 0%, 100% 100%, 0% 100%);
}

.slash--dark-to-cream { background: var(--dark); }
.slash--dark-to-cream::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  clip-path: polygon(0 0%, 100% 50%, 100% 100%, 0% 100%);
}

.slash--dark-to-gradient { background: var(--dark); }
.slash--dark-to-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d1150, var(--deep-purple));
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
}

/* ============================================
   GAME TICKET CALLOUT
   ============================================ */
.game-ticket {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--dark);
  border: 2px dashed var(--hot-pink);
  text-decoration: none;
  transform: rotate(-2deg);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 360px;
}

.game-ticket::before,
.game-ticket::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cream);
}

.game-ticket::before { left: -10px; }
.game-ticket::after { right: -10px; }

.game-ticket:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 0 25px rgba(241, 91, 181, 0.25);
}

.game-ticket__icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.game-ticket__text { display: flex; flex-direction: column; }
.game-ticket__label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--hot-pink); margin-bottom: 2px; }
.game-ticket__title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.game-ticket__arrow { font-family: 'Syne', sans-serif; font-size: 20px; color: var(--hot-pink); margin-left: auto; flex-shrink: 0; transition: transform 0.2s ease; }
.game-ticket:hover .game-ticket__arrow { transform: translateX(4px); }

.game-ticket--on-cream { background: var(--cream); border-color: var(--magenta); }
.game-ticket--on-cream .game-ticket__label { color: var(--magenta); }
.game-ticket--on-cream .game-ticket__title { color: var(--dark); }
.game-ticket--on-cream .game-ticket__arrow { color: var(--magenta); }
.game-ticket--on-cream::before,
.game-ticket--on-cream::after { background: var(--cream); }
.game-ticket--on-cream:hover { box-shadow: 0 0 25px rgba(155, 77, 202, 0.2); }

/* Plan deep-dive variant — solid, no punch-holes */
.plan-ticket {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 11px,
      rgba(232, 85, 109, 0.15) 11px,
      rgba(232, 85, 109, 0.15) 12px
    ),
    var(--dark);
  border: none;
  border-left: 4px solid var(--coral);
  text-decoration: none;
  transform: rotate(-0.5deg);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  max-width: 360px;
}

.plan-ticket:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 0 20px rgba(232, 85, 109, 0.2);
  border-color: var(--salmon);
}

.plan-ticket__icon { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: var(--coral); line-height: 1; flex-shrink: 0; }
.plan-ticket__text { display: flex; flex-direction: column; }
.plan-ticket__label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--coral); margin-bottom: 2px; }
.plan-ticket__title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.plan-ticket__arrow { font-family: 'Syne', sans-serif; font-size: 20px; color: var(--coral); margin-left: auto; flex-shrink: 0; transition: transform 0.2s ease; }
.plan-ticket:hover .plan-ticket__arrow { transform: translateX(4px); }

.plan-ticket--on-cream { background: repeating-linear-gradient(to bottom, transparent, transparent 11px, rgba(155, 77, 202, 0.15) 11px, rgba(155, 77, 202, 0.15) 12px), var(--cream); border-color: var(--magenta); }
.plan-ticket--on-cream .plan-ticket__icon { color: var(--magenta); }
.plan-ticket--on-cream .plan-ticket__label { color: var(--magenta); }
.plan-ticket--on-cream .plan-ticket__title { color: var(--dark); }
.plan-ticket--on-cream .plan-ticket__arrow { color: var(--magenta); }
.plan-ticket--on-cream:hover { box-shadow: 0 0 20px rgba(155, 77, 202, 0.15); border-color: var(--hot-pink); }

/* ============================================
   NEXT SECTION LINK
   ============================================ */
.next-section {
  position: relative;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #2d1150, var(--deep-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.2s ease;
}

.next-section:hover {
  background: linear-gradient(135deg, #3d1a6e, #2d1150);
}

.next-section__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.next-section__number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 10vw, 80px);
  color: var(--magenta);
  opacity: 0.25;
  line-height: 0.8;
  transform: rotate(3deg);
}

.next-section__text { display: flex; flex-direction: column; }

.next-section__label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--salmon);
}

.next-section__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 4vw, 32px);
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
}

.next-section__arrow {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--coral);
  transition: transform 0.2s ease;
}

.next-section:hover .next-section__arrow { transform: translateX(8px); }
.next-section:hover .next-section__title { color: var(--hot-pink); }

@media (min-width: 768px) {
  .next-section { padding: 3.5rem 4rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--midnight);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer__district {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--lavender);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.footer__email {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--salmon);
  margin-bottom: 1.5rem;
  display: block;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__social a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--lavender);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  transition: opacity 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.footer__social a:hover {
  opacity: 1;
  color: var(--hot-pink);
}

.footer__legal {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.25;
  margin-bottom: 0.8rem;
}

.footer__built {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--magenta);
  opacity: 0.4;
  transform: rotate(1deg);
  display: inline-block;
}

.footer__arcade {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--lavender);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  transition: opacity 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.footer__arcade:hover {
  opacity: 1;
  color: var(--hot-pink);
}

.footer__arcade svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   HERO GIANT NUMBER (home link pattern)
   ============================================ */
.hero__giant-number {
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--magenta);
  opacity: 0.12;
  mix-blend-mode: screen;
  line-height: 0.8;
  z-index: 4;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.hero__giant-number:hover {
  opacity: 0.22;
  color: var(--coral);
  text-shadow: 0 0 80px rgba(232, 85, 109, 0.3);
}

.hero__giant-number:focus-visible {
  outline: 2px solid var(--salmon);
  outline-offset: 8px;
}
