/* ===== TOKENS ===== */
:root {
  --bg-base: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --ink: #ffffff;
  --ink-dim: #b3b3b3;
  --ink-mute: #6b6b6b;

  /* Caribbean / World Cup palette derived from flags */
  --gold: #f5c542;
  --gold-deep: #d4a017;
  --red: #e63946;
  --green: #009739;
  --blue: #1a4ba0;

  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --shadow-glow: 0 0 40px rgba(245, 197, 66, 0.15);
  --shadow-card: 0 10px 40px rgba(0,0,0,0.4);

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-content: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ===== LIVE BAR ===== */
.live-bar {
  background: linear-gradient(90deg, var(--red), var(--gold-deep));
  color: #000;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center bottom;
  z-index: 1;
}
.hero-gradient {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 75%;
  background:
    linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0) 55%, rgba(10,10,10,0.85) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: -40px auto 0;
  width: 100%;
  padding: 32px 24px 56px;
  background: linear-gradient(180deg, rgba(10,10,10,0.92) 0%, #0a0a0a 18%);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-city {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.badge-presents {
  background: var(--gold);
  color: #000;
}
.headline {
  margin-bottom: 20px;
  line-height: 0.95;
}
.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 32px);
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 400;
}
.title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 96px);
  letter-spacing: 0.02em;
  color: #fff;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.subhead {
  font-size: clamp(15px, 3.5vw, 19px);
  color: var(--ink-dim);
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.5;
}
.subhead strong { color: var(--gold); font-weight: 600; }

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #000;
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(245,197,66,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 420px;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(245,197,66,0.25), 0 12px 32px rgba(245,197,66,0.4); }
.cta-primary:active { transform: translateY(0); }
.cta-sub {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  max-width: 420px;
}

/* ===== SECTIONS ===== */
section {
  padding: 64px 24px;
  max-width: var(--max-content);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  font-weight: 400;
}
.section-title--light { color: #000; }

/* ===== PERKS ===== */
.perks { padding-top: 80px; padding-bottom: 32px; }
.perk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.perk {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.perk:hover { border-color: var(--gold); transform: translateY(-4px); }
.perk-icon { font-size: 40px; margin-bottom: 12px; }
.perk h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 400;
}
.perk p { color: var(--ink-dim); font-size: 15px; line-height: 1.55; }

/* ===== SCHEDULE ===== */
.schedule { padding-top: 32px; padding-bottom: 32px; }
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.event-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--red));
}
.event-day {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 400;
}
.event-date {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 4px 0 12px;
  font-weight: 400;
}
.event-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.15;
}
.event-loc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.event-lineup {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.event-lineup li {
  font-size: 14px;
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.event-lineup li:last-child { border-bottom: none; }
.event-lineup strong { color: #fff; min-width: 80px; display: inline-block; }
.free-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ===== REGISTER ===== */
.register {
  background: linear-gradient(135deg, var(--gold), #ffd966);
  max-width: none;
  padding: 80px 24px;
  margin: 32px 0;
}
.register-inner {
  max-width: 560px;
  margin: 0 auto;
}
.register-lead {
  text-align: center;
  color: #1a1a1a;
  font-size: 17px;
  margin-bottom: 32px;
  font-weight: 500;
}
.lead-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.02em;
}
.field input, .field select {
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 16px;
  font-family: inherit;
  color: #000;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: #fff;
}
.field input::placeholder { color: #999; }

.checkboxes {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 8px;
}
.checkboxes legend {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.legend-hint { color: #888; font-weight: 400; font-size: 12px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.check:has(input:checked) {
  border-color: var(--gold-deep);
  background: #fef9e7;
}
.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-deep);
  margin-top: 1px;
  flex-shrink: 0;
}
.check-label {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.4;
}
.check-label strong { color: #000; }

.child-fields.hidden { display: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  padding: 8px 0;
}
.consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--gold-deep); }

.cta-submit {
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.cta-submit:hover { background: #000; }
.cta-submit:active { transform: scale(0.98); }
.cta-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loading.hidden, .btn-text.hidden { display: none; }

.form-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.success-message {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.success-message.hidden { display: none; }
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}
.success-message h3 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.03em;
  color: #000;
  margin-bottom: 12px;
  font-weight: 400;
}
.success-message p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.success-share { font-size: 14px; }
.success-share a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold-deep);
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-brand p {
  color: var(--ink-dim);
  font-size: 14px;
}
.partners-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 700;
}
.footer-partners p:last-child {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
}
.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.footer-meta p {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.footer-meta a { color: var(--ink-dim); text-decoration: none; }
.footer-meta a:hover { color: var(--gold); }
.partner-links a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.2); }
.partner-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== DESKTOP ===== */
@media (min-width: 720px) {
  .perk-grid { grid-template-columns: repeat(3, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; align-items: start; }
  .footer-meta { border-top: none; padding-top: 0; text-align: right; }

  /* Desktop hero: wide cinematic image with content overlaid right */
  .hero {
    flex-direction: row;
    align-items: stretch;
    min-height: 620px;
    position: relative;
  }
  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    aspect-ratio: auto;
    background-image: url('assets/hero_wide.png');
    background-size: cover;
    background-position: center center;
    z-index: 1;
  }
  .hero-gradient {
    inset: 0;
    height: auto;
    background:
      linear-gradient(90deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0) 45%, rgba(10,10,10,0.55) 62%, rgba(10,10,10,0.92) 82%, rgba(10,10,10,1) 100%),
      linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 75%, rgba(10,10,10,0.4) 100%);
    z-index: 2;
  }
  .hero-content {
    position: relative;
    z-index: 3;
    margin: 0 0 0 auto;
    padding: 64px 48px;
    max-width: 520px;
    width: 45%;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
  }
}
@media (min-width: 960px) {
  .perks { padding: 96px 24px 48px; }
  .hero { min-height: 680px; }
  .hero-content { padding: 80px 80px 80px 48px; max-width: 560px; width: 42%; min-height: 680px; }
}
@media (min-width: 1280px) {
  .hero { min-height: 720px; }
  .hero-content { padding: 96px 96px 96px 56px; max-width: 600px; min-height: 720px; }
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
