/* ============================================================
   HACKATHON SURVIVAL 2026 — STYLE.CSS
   Tema: Cinza Escuro Tech + Neon Grid
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

/* ============================================================
   TOKENS & VARIÁVEIS
   ============================================================ */
:root {
  --bg:           #111318;
  --bg-card:      #1a1d26;
  --bg-card-dark: #0f1117;

  --neon-blue:    #00d4ff;
  --neon-cyan:    #00fff7;
  --neon-green:   #00ff88;
  --neon-yellow:  #ffe600;
  --neon-orange:  #ff7b00;
  --neon-red:     #ff2d55;

  --text:         #e2e8f0;
  --text-muted:   #7a8499;
  --border:       rgba(0, 212, 255, 0.15);
  --border-glow:  rgba(0, 212, 255, 0.5);

  --font-display: 'Orbitron', monospace;
  --font-body:    'Rajdhani', sans-serif;

  --radius:       8px;
  --gap:          1.5rem;
  --section-gap:  4rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   BACKGROUND GRID NEON
   ============================================================ */
.bg-grid,
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;

  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 100%);
}

.bg-grid::after,
.bg::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  animation: ambientPulse 6s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeUp 0.6s ease both;
}

.section:nth-child(1) { animation-delay: 0.10s; }
.section:nth-child(2) { animation-delay: 0.25s; }
.section:nth-child(3) { animation-delay: 0.40s; }
.section:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   TÍTULOS
   ============================================================ */
h1,
.title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  display: inline-block;
}

h1::after,
.title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
  border-radius: 2px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   GRID 2 COLUNAS
   ============================================================ */
.grid-2,
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (max-width: 700px) {
  .grid-2,
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.12);
}

.card.light { background: var(--bg-card); }
.card.dark  { background: var(--bg-card-dark); }

.card.glow,
.card.neon {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================================
   RULES
   ============================================================ */
.rules {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rule {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}

.rule:hover { background: rgba(255,255,255,0.06); }

.rule p {
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.rule.green  { border-color: var(--neon-green);  }
.rule.blue   { border-color: var(--neon-blue);   }
.rule.yellow { border-color: var(--neon-yellow); }
.rule.orange { border-color: var(--neon-orange); }

.rule.green  strong { color: var(--neon-green);  }
.rule.blue   strong { color: var(--neon-blue);   }
.rule.yellow strong { color: var(--neon-yellow); }
.rule.orange strong { color: var(--neon-orange); }

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (max-width: 700px) {
  .roadmap { grid-template-columns: 1fr; }
}

.phase {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phase:hover { transform: translateY(-4px); }

.phase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.phase.orange::before { background: linear-gradient(90deg, var(--neon-orange), transparent); }
.phase.green::before  { background: linear-gradient(90deg, var(--neon-green),  transparent); }

.phase.orange h3 { color: var(--neon-orange); }
.phase.green  h3 { color: var(--neon-green);  }

.phase.orange { box-shadow: 0 0 30px rgba(255,123,0,0.08); }
.phase.green  { box-shadow: 0 0 30px rgba(0,255,136,0.08); }

.phase ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.phase ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.phase ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-blue);
  font-size: 0.75rem;
  top: 3px;
}

/* ============================================================
   FILTRO — ALERTAS
   ============================================================ */
.stack,
.alerts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease;
}

.alert:hover { box-shadow: 0 0 20px rgba(0,0,0,0.4); }

.alert.blue {
  background: rgba(0, 212, 255, 0.06);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.alert.yellow,
.alert.yellow.glow {
  background: rgba(255, 230, 0, 0.06);
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  box-shadow: 0 0 18px rgba(255,230,0,0.1);
}

.alert.green {
  background: rgba(0, 255, 136, 0.06);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

/* ============================================================
   FILTRO — FUNIL
   ============================================================ */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.funnel .cut,
.funnel .cut-line,
.funnel .corte {
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 0 24px rgba(255,45,85,0.15);
  animation: pulseCut 2.5s ease-in-out infinite;
}

@keyframes pulseCut {
  0%, 100% { box-shadow: 0 0 16px rgba(255,45,85,0.15); }
  50%       { box-shadow: 0 0 36px rgba(255,45,85,0.35); }
}

.funnel .approved,
.funnel .pass,
.funnel .classificado {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 0 20px rgba(0,255,136,0.1);
}

/* ============================================================
   FORMULÁRIO DE INSCRIÇÃO
   ============================================================ */
.form-wrapper {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-team,
.form-qty {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-blue);
}

.form-input,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
  background: rgba(0, 212, 255, 0.04);
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-blue);
  font-size: 0.9rem;
  pointer-events: none;
}

.form-select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: #1a1d26;
  color: var(--text);
}

/* Quantidade — destaque especial */
.form-qty .form-select-wrapper {
  max-width: 280px;
}

.form-members {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-members-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.member-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color 0.2s, opacity 0.3s, transform 0.3s;
}

.member-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.member-badge {
  position: absolute;
  top: -12px;
  left: 1.25rem;
  background: var(--bg-card-dark);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 20px;
}

.member-card.optional {
  border-color: rgba(255, 255, 255, 0.07);
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.member-card.optional:focus-within,
.member-card.optional:hover {
  opacity: 1;
  border-color: rgba(0, 212, 255, 0.25);
}

.member-card.optional .member-badge {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.member-grid .field-full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Botão de envio */
.btn-submit {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--neon-blue);
  border-radius: var(--radius);
  color: var(--neon-blue);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-blue);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-submit:hover {
  color: #000;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}

.btn-submit:hover::before { opacity: 1; }

.btn-submit span {
  position: relative;
  z-index: 1;
}

.btn-submit:active { transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 1rem;
  gap: 0.6rem;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-sponsor {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 255, 247, 0.5);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  margin: 0.5rem 0 0;
}

/* Remove o ::after do h1 global só no hero */
.hero .hero-title::after { display: none; }

.hero-title-line { display: block; }

.hero-title-line.accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--neon-blue);
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  animation: glitch 4s infinite;
}

@keyframes glitch {
  0%, 92%, 100% { text-shadow: 0 0 40px rgba(0,212,255,.3); }
  93%   { text-shadow: -3px 0 var(--neon-red), 3px 0 var(--neon-cyan); }
  94%   { text-shadow: 3px 0 var(--neon-red), -3px 0 var(--neon-cyan); }
  95%   { text-shadow: 0 0 40px rgba(0,212,255,.3); }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.hero-divider {
  width: 120px;
  height: 1px;
  margin-top: 2rem;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 3px;
}

::selection {
  background: var(--neon-blue);
  color: #000;
}

/* ============================================================
   RESPONSIVO — MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --section-gap: 2.5rem; }

  .container { padding: 2rem 1rem 4rem; }

  .card  { padding: 1.5rem 1.25rem; }
  .phase { padding: 1.5rem 1.25rem; }

  .alert {
    font-size: 0.78rem;
    padding: 0.85rem 1rem;
  }

  .form-wrapper { padding: 1.5rem 1rem; }

  .form-qty .form-select-wrapper { max-width: 100%; }

  .member-grid { grid-template-columns: 1fr; }

  .member-grid .field-full { grid-column: 1; }

  .btn-submit {
    align-self: stretch;
    text-align: center;
  }
}