:root {
  --bg: #08080f;
  --bg-2: #0e0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eef0ff;
  --muted: #9aa0c0;

  --blue: #29b6ff;
  --purple: #a855f7;
  --lime: #c6ff2e;
  --pink: #ff3df0;

  --grad: linear-gradient(100deg, var(--blue), var(--purple) 55%, var(--lime));
  --radius: 16px;
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .nav-brand, .footer-brand, .lf-masters, .cd-box span {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Fundo com brilho */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(41, 182, 255, 0.18), transparent 60%),
    radial-gradient(55% 45% at 85% 15%, rgba(198, 255, 46, 0.14), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(168, 85, 247, 0.20), transparent 65%),
    var(--bg);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px min(4vw, 40px);
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; font-size: 1.4rem; font-weight: 900; }
.brand-logo { height: 46px; width: auto; display: block; border-radius: 8px; }
.brand-fallback { font-family: 'Orbitron', sans-serif; }
.brand-fallback b {
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 4px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad);
  color: #0a0a12;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 42px rgba(168, 85, 247, 0.55); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-nav { padding: 9px 18px; background: var(--grad); color: #0a0a12; }
.btn-block { width: 100%; padding: 16px; font-size: 1.05rem; }

/* HERO */
.hero {
  position: relative;
  padding: 70px min(4vw, 40px) 90px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-logo img { max-width: min(360px, 72vw); height: auto; filter: drop-shadow(0 0 24px rgba(168,85,247,0.5)); }
.logo-fallback { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.lf-masters { font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lf-year { font-family: 'Orbitron'; font-size: clamp(1.6rem, 6vw, 3rem); font-weight: 900; color: var(--lime); text-shadow: 0 0 20px rgba(198,255,46,0.6); }
.lf-by { font-size: 0.9rem; letter-spacing: 0.5em; color: var(--muted); margin-top: 6px; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--lime);
  margin: 26px 0 4px;
}
.hero-title { font-size: clamp(2rem, 6vw, 3.6rem); margin: 4px 0; font-weight: 900; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); margin: 0 0 30px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 34px; }
.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-width: 150px;
}
.meta-label { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.meta-value { display: block; font-weight: 700; font-size: 1.1rem; margin-top: 4px; }

/* COUNTDOWN */
.countdown { display: flex; gap: 12px; justify-content: center; margin-bottom: 34px; }
.cd-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  min-width: 78px;
}
.cd-box span {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  text-shadow: 0 0 16px rgba(41,182,255,0.5);
}
.cd-box small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

/* SPOTS BAR */
.spots-bar {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.spots-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--grad);
  opacity: 0.45;
  transition: width 0.6s ease;
}
.spots-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 700;
  font-size: 0.95rem;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 20% 80%, transparent); }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); text-align: center; margin: 0 0 12px; font-weight: 900; }
.section-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.5); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* TIMELINE */
.timeline { list-style: none; padding: 0; max-width: 720px; margin: 0 auto; }
.timeline li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: none; }
.tl-time {
  flex: 0 0 90px;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding-top: 3px;
}
.timeline h4 { margin: 0 0 4px; font-family: 'Montserrat'; }
.timeline p { margin: 0; color: var(--muted); }

/* LOCAL */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.local-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.local-list li { padding: 6px 0; color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 340px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }

/* FORMULÁRIO */
.form-container { max-width: 760px; }
.reg-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 18px;
  background: var(--surface);
}
.reg-form legend {
  padding: 0 10px;
  font-family: 'Orbitron';
  font-weight: 700;
  color: var(--lime);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,182,255,0.2);
}
.field select { appearance: none; cursor: pointer; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.9rem; margin-top: 6px; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--purple); }

.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.form-msg.error { background: rgba(255, 61, 100, 0.15); border: 1px solid rgba(255,61,100,0.4); color: #ffb3c1; }
.form-msg ul { margin: 6px 0 0; padding-left: 18px; }

.form-full {
  text-align: center;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 61, 100, 0.12);
  border: 1px solid rgba(255,61,100,0.4);
  margin-bottom: 20px;
}
.form-full h3 { margin: 0 0 8px; }

.reg-success {
  text-align: center;
  padding: 50px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(198,255,46,0.4);
}
.success-check {
  width: 70px; height: 70px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad);
  color: #0a0a12;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
}

/* MB WAY */
.mbway-box {
  text-align: left;
  max-width: 440px;
  margin: 24px auto;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(41, 182, 255, 0.08);
  border: 1px solid rgba(41, 182, 255, 0.4);
}
.mbway-box h4 { margin: 0 0 8px; font-family: 'Montserrat'; }
.mbway-details { list-style: none; padding: 0; margin: 14px 0; }
.mbway-details li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mbway-details li:last-child { border-bottom: none; }
.mbway-details span { color: var(--muted); }
.mbway-details strong { font-family: 'Orbitron'; font-weight: 700; }
.mbway-small { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

/* PATROCINADORES */
.sponsors { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 30px 0 16px; }
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-family: 'Orbitron';
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  width: 170px;
  height: 100px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sponsor:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3); }
.sponsor img {
  max-width: 100%;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sponsors-note { text-align: center; color: var(--muted); font-size: 0.9rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { text-align: center; color: var(--muted); }
.footer-brand { font-size: 1.3rem; font-weight: 900; color: var(--text); margin-bottom: 14px; }
.footer-logo { height: 130px; width: auto; border-radius: 14px; }
.footer-small { font-size: 0.85rem; margin-top: 10px; }
.footer-small a { color: var(--blue); }

/* RESPONSIVO */
@media (max-width: 780px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
  .local-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cd-box { min-width: 64px; padding: 12px 6px; }
}
