/* ==========================================================================
   Purpose — Landing Page Styles
   Structure:
     1. Tokens & reset
     2. Top banner
     3. Hero (video background)
     4. Payouts carousel
     5. Footer
     6. Responsive breakpoints
   ========================================================================== */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --green:        #1fa95c;   /* Purpose brand green */
  --green-bright: #35d17c;
  --green-deep:   #12813f;   /* darker end of the CTA gradient */
  --green-glow:   rgba(53, 209, 124, 0.5);
  --red:          #c40f24;   /* urgency banner red */
  --bg:           #030604;   /* near-black page background */
  --bg-soft:      #071009;
  --text:         #ffffff;
  --text-dim:     rgba(255, 255, 255, 0.72);
  --text-faint:   rgba(255, 255, 255, 0.45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- 2. Top banner ---------- */
.top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  text-align: center;
  background: linear-gradient(90deg, #6e0812 0%, var(--red) 50%, #6e0812 100%);
  box-shadow: 0 2px 18px rgba(196, 15, 36, 0.45);
  position: relative;
  z-index: 10;
}

.top-banner p {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.banner-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 8px #ff4d5e;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}

/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Framed, clickable video player above the text */
.hero-player {
  width: min(860px, 100%);
  margin-bottom: 30px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(53, 209, 124, 0.35);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(31, 169, 92, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.65);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: radial-gradient(ellipse at 50% 30%, #0d2f1c 0%, #000 75%);
}

/* Ambient dark grade behind the content */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(3, 6, 4, 0.35) 0%,
      rgba(3, 6, 4, 0.10) 35%,
      rgba(3, 6, 4, 0.55) 70%,
      var(--bg) 100%
    ),
    radial-gradient(ellipse at 50% 0%, #0a1f13 0%, var(--bg) 72%);
}

/* Green stage-light wash */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 78%, rgba(31, 169, 92, 0.28) 0%, transparent 70%),
    radial-gradient(28% 40% at 8% 0%,   rgba(31, 169, 92, 0.20) 0%, transparent 70%),
    radial-gradient(28% 40% at 92% 0%,  rgba(31, 169, 92, 0.20) 0%, transparent 70%);
  mix-blend-mode: screen;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(48px, 7vh, 90px);
  padding-bottom: clamp(80px, 13vh, 170px);
}

.hero-logo {
  width: clamp(130px, 15vw, 165px);
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(53, 209, 124, 0.55);
  border-radius: var(--radius-pill);
  background: rgba(3, 12, 6, 0.65);
  backdrop-filter: blur(6px);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 8px #ff4d5e;
  animation: pulse 1.6s ease-in-out infinite;
}

.pill-label { color: var(--green-bright); font-weight: 600; }
.event-pill strong { color: var(--text); font-weight: 800; }

.hero-title {
  font-size: clamp(1.3rem, 2.9vw, 2rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
  max-width: 780px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.hero-title .hl { color: var(--green-bright); }

.hero-sub {
  margin-top: 12px;
  max-width: 620px;
  font-size: clamp(0.8rem, 1.25vw, 0.88rem);
  font-weight: 600;
  color: var(--text-dim);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 17px 46px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #4ee393 0%, var(--green) 52%, var(--green-deep) 100%);
  color: #03170c;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 0 0 6px rgba(53, 209, 124, 0.12),
    0 0 42px var(--green-glow),
    0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 8px rgba(53, 209, 124, 0.18),
    0 0 58px rgba(53, 209, 124, 0.65),
    0 14px 32px rgba(0, 0, 0, 0.55);
}

.cta-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.cta-arrow { transition: transform 0.18s ease; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

/* ---------- 4. Payouts carousel ---------- */
.payouts {
  padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 110px);
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(31, 169, 92, 0.10) 0%, transparent 70%),
    var(--bg);
  text-align: center;
}

.payouts-title {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.payouts-title .accent { color: var(--green-bright); }

.payouts-sub {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.95rem;
  font-weight: 500;
}

.carousel {
  margin-top: clamp(30px, 5vw, 48px);
  overflow: hidden;
  position: relative;
  /* Fade the edges so slides appear/disappear smoothly */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: scroll-loop var(--carousel-duration, 40s) linear infinite;
  will-change: transform;
}

/* Pause when hovered or when a slide is focused via keyboard */
.carousel:hover .carousel-track,
.carousel:focus-within .carousel-track {
  animation-play-state: paused;
}

@keyframes scroll-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--loop-width, 50%))); }
}

.carousel-slide {
  flex: 0 0 auto;
}

.carousel-slide img {
  height: clamp(200px, 26vw, 300px);
  width: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.carousel-slide img:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(53, 209, 124, 0.55);
}

/* ---------- 5. Footer ---------- */
.site-footer {
  padding: clamp(48px, 7vw, 72px) 0 40px;
  background: linear-gradient(to bottom, var(--bg) 0%, #010302 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 22px;
  opacity: 0.95;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-bright);
}

.footer-links .sep { color: rgba(255, 255, 255, 0.2); }

.disclaimer {
  max-width: 680px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-faint);
  font-weight: 600;
}

.copyright {
  margin-top: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* ---------- 6. Responsive breakpoints ---------- */
@media (max-width: 720px) {
  .br-desktop { display: none; }

  .top-banner p { font-size: 0.82rem; }

  .hero-content {
    padding-top: 36px;
    padding-bottom: clamp(60px, 10vh, 110px);
  }

  .hero-player {
    margin-bottom: 24px;
    border-radius: 14px;
  }

  .hero-title { line-height: 1.38; }

  .event-pill {
    font-size: 0.72rem;
    padding: 8px 14px;
  }

  .cta-btn {
    width: 100%;
    max-width: 380px;
    justify-content: center;
    padding: 18px 28px;
    font-size: 0.98rem;
  }

  .carousel-track { gap: 14px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.4rem; }
  .footer-links { gap: 8px; }
  .footer-links .sep { display: none; }
  .footer-links a { padding: 4px 8px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .banner-dot,
  .pill-dot {
    animation: none;
  }

  .carousel-track {
    animation: none;
    overflow-x: auto;
  }

  .carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .cta-btn,
  .carousel-slide img {
    transition: none;
  }
}

/* ---------- 7. Signup modal ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(1, 4, 2, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: min(480px, 100%);
  padding: 34px 30px 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #0a130d 0%, #060b08 100%);
  box-shadow:
    0 0 70px rgba(31, 169, 92, 0.15),
    0 30px 70px rgba(0, 0, 0, 0.7);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s ease;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-sub {
  margin-top: 8px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field::placeholder { color: rgba(255, 255, 255, 0.38); }

.field:focus {
  outline: none;
  border-color: var(--green-bright);
  background: rgba(53, 209, 124, 0.05);
}

/* Phone number with country selector */
.phone-row {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease;
}

.phone-row:focus-within { border-color: var(--green-bright); }

.country-select { display: flex; }

.country-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.country-btn:hover { background: rgba(255, 255, 255, 0.04); }

.country-iso {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.country-btn .caret {
  color: var(--text-faint);
  transition: transform 0.15s ease;
}

.country-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.phone-field {
  border: 0;
  background: transparent;
  border-radius: 0 12px 12px 0;
  flex: 1;
  min-width: 0;
}

.phone-field:focus { background: transparent; }

.country-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(340px, 90vw);
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a120d;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
}

.country-list::-webkit-scrollbar { width: 8px; }
.country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.country-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.country-list li:hover,
.country-list li.active {
  background: rgba(53, 209, 124, 0.12);
}

.country-list li .dial { color: var(--text-faint); }

.form-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff6b7a;
}

.modal-submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  padding: 17px 28px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 420px) {
  .modal { padding: 28px 20px 24px; }
  .country-btn { padding: 0 10px 0 12px; }
  .country-iso { display: none; }
}

/* Consent checkbox */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1.5;
  text-align: left;
}
.consent-row input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--green);
  cursor: pointer;
}

/* Who This Is For */
.who-for {
  padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 110px);
  background:
    radial-gradient(55% 60% at 50% 100%, rgba(31, 169, 92, 0.08) 0%, transparent 70%),
    var(--bg);
}

.whofor-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.whofor-title .accent { color: var(--green-bright); }

.whofor-grid {
  margin-top: clamp(28px, 5vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.whofor-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.whofor-card:hover {
  border-color: rgba(53, 209, 124, 0.4);
  transform: translateY(-2px);
}


.whofor-card .check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(53, 209, 124, 0.16);
  color: var(--green-bright);
  font-weight: 800;
  font-size: 0.85rem;
}

.whofor-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dim);
}


/* Add-to-calendar buttons after signup */
.cal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(53, 209, 124, 0.45);
  background: rgba(53, 209, 124, 0.1);
  color: var(--green-bright);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cal-btn:hover {
  background: rgba(53, 209, 124, 0.2);
  transform: translateY(-1px);
}

.whofor-sub {
  text-align: center;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
}

.whofor-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 5vw, 44px);
}


/* Privacy Policy / Terms popup (opened from the footer links) */
.legal-modal {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding-right: 14px;
}

.legal-modal .modal-title { padding-right: 44px; }

.legal-body {
  margin-top: 18px;
  padding-right: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
  text-align: left;
}

.legal-body:focus { outline: none; }

.legal-body .effective-date {
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.legal-body h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.legal-body p { margin-bottom: 14px; }

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li { margin-bottom: 6px; }

.legal-body a {
  color: var(--green-bright);
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .legal-modal { padding-right: 8px; }
  .legal-body { padding-right: 12px; }
}
