:root {
  /* Paleta escura: azul marinho quase preto + amarelos */
  --blue-700: #10223f;
  --blue-800: #0c1a30;
  --blue-900: #0a1426; /* fundo base */
  --yellow-300: #fde68a;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --amber-400: #f59e0b;
  --bg: #0a1426; /* navy quase preto */
  --surface: #0f1b33; /* cartões e inputs */
  --text: #f5d15f; /* texto principal em amarelo */
  --muted: #d2b861; /* texto secundário */
  --border: #1b2a4a; /* linhas/bordas discretas */
  --error: #ef4444;
  --success: #16a34a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(234, 179, 8, 0.06), transparent 60%),
    radial-gradient(1200px 600px at 110% 20%, rgba(16, 34, 63, 0.4), transparent 60%),
    var(--bg);
  /* Evita rolagem lateral por pequenos overflows */
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header { background: linear-gradient(180deg, rgba(12,26,48,.9), rgba(12,26,48,.6)); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* Evita que filhos flex gerem overflow horizontal */
.header-inner > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { display: flex; align-items: center; }
.brand-name { display: block; line-height: 1; letter-spacing: .12em; font-family: Nunito, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 900; color: var(--yellow-400); font-size: 18px; text-shadow: 0 2px 10px rgba(234,179,8,.15); }
.header-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: rgba(234,179,8,.1); font-weight: 800; letter-spacing: .08em; }

.nav-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.primary-nav { display: flex; gap: 12px; align-items: center; }
.primary-nav a {
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(234,179,8,.08); color: var(--text); font-weight: 800; letter-spacing: .02em;
  text-decoration: none; box-shadow: 0 0 24px rgba(234,179,8,.15) inset;
}
.primary-nav a::after { content: ""; position: absolute; width: 84px; height: 84px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(234,179,8,.18), rgba(234,179,8,0) 60%); filter: blur(10px); pointer-events: none; }
.primary-nav a:hover { color: var(--yellow-400); box-shadow: 0 0 32px rgba(234,179,8,.25) inset; }
.menu-toggle { display: none; height: 40px; width: 40px; border-radius: 8px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(12,26,48,.9), rgba(12,26,48,.6)); cursor: pointer; }
.cta-header { display: inline-flex; }

.hero { padding: 64px 0 96px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(700px 400px at 20% 10%, rgba(234, 179, 8, 0.12), transparent 60%), radial-gradient(800px 500px at 80% -20%, rgba(16, 34, 63, 0.5), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.hero-copy h1 { font-size: 44px; line-height: 1.05; margin: 8px 0 12px; color: var(--yellow-400); }
.hero-copy .display { font-family: Nunito, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 800; letter-spacing: -0.5px; }
.gradient-text { background: linear-gradient(90deg, var(--yellow-500), #fff176); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 16px; max-width: 60ch; }
.hero-copy p { font-size: 18px; color: var(--muted); margin: 0 0 16px; }
.highlights { margin: 12px 0 0; padding-left: 18px; color: var(--text); }
.highlights li { margin: 6px 0; }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: rgba(30, 64, 175, 0.08); color: var(--blue-800); font-weight: 700; font-size: 13px; }
.badge-hero { background: rgba(234, 179, 8, 0.18); color: #7a5a01; border: 1px solid rgba(234,179,8,.35); }

.card { background: linear-gradient(180deg, rgba(15,27,51,.92), rgba(15,27,51,.88)); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.card-header { border-bottom: 1px dashed var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.card-header h2 { margin: 0; color: var(--yellow-400); }
.card-header .muted { color: var(--muted); margin: 6px 0 0; }
.eligibility { background: rgba(234,179,8,.08); border: 1px dashed rgba(234,179,8,.35); color: var(--text); padding: 8px 10px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; }

.field { margin: 12px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #0c1529; color: var(--text); font-size: 15px; }
.field input::placeholder { color: #ab9450; }
.field select { appearance: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--yellow-500); box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2); }
.error { color: var(--error); font-size: 12px; min-height: 16px; display: block; }
.form-footnote { color: var(--muted); font-size: 13px; }

/* Consent/LGPD */
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: flex-start; color: var(--muted); }
.consent input[type="checkbox"] { margin-top: 3px; }
.policy-note { color: var(--muted); font-size: 12px; margin-top: 6px; }
.policy-note a { color: var(--yellow-400); text-decoration: underline; }

.btn {
  border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 700;
  cursor: pointer; transition: transform .08s ease, box-shadow .2s ease; display: inline-flex; align-items: center; gap: 10px;
}
.btn.primary { background: linear-gradient(135deg, #ffdf6b, var(--yellow-500)); color: #1a1405; box-shadow: 0 10px 24px rgba(234, 179, 8, 0.3); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-wide { width: 100%; justify-content: center; }
.btn .btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(26,20,5,.3); border-top-color: #1a1405; display: none; animation: spin 1s linear infinite; }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .8; }

@keyframes spin { to { transform: rotate(360deg);} }

.thanks { padding: 56px 0; }
.steps { margin: 16px 0; padding-left: 20px; }
.steps li { margin: 10px 0; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 48px; background: rgba(12,26,48,.6); }
.site-footer p { margin: 0; color: var(--muted); }

/* Stats */
.stats { padding: 16px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 14px 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(12,26,48,.9), rgba(12,26,48,.6)); border: 1px solid var(--border); }
.stat-number { font-size: 28px; font-weight: 800; color: var(--yellow-400); font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.stat-label { color: var(--muted); font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section-header { text-align: center; margin-bottom: 24px; }
.section h2 { margin: 0 0 8px; font-size: 28px; color: var(--yellow-400); }
.section .muted { color: var(--muted); }
/* Variantes por seção para contraste e ritmo visual */
#beneficios .section-header h2, .faq .section-header h2 { color: var(--amber-400); }
.section .muted { color: var(--muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: linear-gradient(180deg, rgba(12,26,48,.9), rgba(12,26,48,.6)); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.tile h3 { margin: 8px 0; color: var(--text); }
.tile p { margin: 0; color: var(--muted); }
.tile-icon { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(234, 179, 8, .12); color: var(--yellow-500); font-size: 0; }
.tile-icon::before { content: ""; width: 26px; height: 26px; display: block; background-color: var(--yellow-500); background-repeat: no-repeat; background-position: center; background-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; mask-repeat: no-repeat; mask-position: center; mask-size: contain; }
/* Atribui ícones modernos via mask para manter cor consistente */
.tiles .tile:nth-child(1) .tile-icon::before { -webkit-mask-image: url('icons/graduation-cap.svg'); mask-image: url('icons/graduation-cap.svg'); }
.tiles .tile:nth-child(2) .tile-icon::before { -webkit-mask-image: url('icons/mentorship.svg'); mask-image: url('icons/mentorship.svg'); }
.tiles .tile:nth-child(3) .tile-icon::before { -webkit-mask-image: url('icons/flask.svg'); mask-image: url('icons/flask.svg'); }
.tiles .tile:nth-child(4) .tile-icon::before { -webkit-mask-image: url('icons/campus.svg'); mask-image: url('icons/campus.svg'); }
.tiles .tile:nth-child(5) .tile-icon::before { -webkit-mask-image: url('icons/community.svg'); mask-image: url('icons/community.svg'); }
.tiles .tile:nth-child(6) .tile-icon::before { -webkit-mask-image: url('icons/trophy.svg'); mask-image: url('icons/trophy.svg'); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: linear-gradient(180deg, rgba(12,26,48,.9), rgba(12,26,48,.6)); border: 1px dashed var(--border); border-radius: 12px; padding: 14px; }
.step-marker { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500)); color: #0b1220; font-weight: 900; display: grid; place-items: center; }
.step-content h3 { margin: 4px 0; }
.cta-center { text-align: center; margin-top: 18px; }

/* FAQ */
.faq-items details { border: 1px solid var(--border); border-radius: 12px; background: rgba(12,26,48,.7); padding: 12px 14px; margin: 10px 0; }
.faq-items summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq-items p { color: var(--muted); margin: 8px 0 0; }

/* Anchor offset for sticky header */
#beneficios, #como-funciona, #perguntas, #inscricao, #quem-pode { scroll-margin-top: 88px; }

/* Hero floaters (movimento sutil) */
.hero-art { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.floater { position: absolute; width: 160px; height: 160px; border-radius: 50%; filter: blur(12px); opacity: .16; animation: float 10s ease-in-out infinite; }
.floater.f1 { background: radial-gradient(circle at 30% 30%, var(--yellow-500), transparent 60%); top: 10%; left: -40px; animation-duration: 12s; }
.floater.f2 { background: radial-gradient(circle at 30% 30%, #15315a, transparent 60%); top: 60%; left: 10%; animation-duration: 14s; }
.floater.f3 { background: radial-gradient(circle at 30% 30%, #0f2546, transparent 60%); top: 20%; right: 5%; animation-duration: 11s; }
.floater.f4 { background: radial-gradient(circle at 30% 30%, var(--yellow-400), transparent 60%); bottom: -40px; right: 25%; animation-duration: 13s; }
.floater.f5 { background: radial-gradient(circle at 30% 30%, #12284a, transparent 60%); bottom: 20%; left: 40%; animation-duration: 15s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(8px); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Lists */
.list { margin: 0; padding-left: 20px; color: var(--text); }
.list li { margin: 8px 0; }

/* Impact words animation */
.impact { display: inline-block; position: relative; padding: 0 4px; }
.impact::after { content: none; }
.wiggle { animation: wiggleY 2.2s ease-in-out infinite; }
.glow { animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes wiggleY { 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-3px) rotate(-1deg);} }
@keyframes glowPulse { 0%,100%{ text-shadow: 0 0 8px rgba(234,179,8,.25);} 50%{ text-shadow: 0 0 14px rgba(234,179,8,.45);} }
@media (prefers-reduced-motion: reduce) { .wiggle, .glow { animation: none; } }

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  .floater { display: none; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active { transform: none; }
}

@media (max-width: 900px) {
  /* Header em 2 linhas estáveis: 1ª brand (esq) + CTA (dir) por posicionamento absoluto; 2ª navegação 4 colunas */
  .header-inner { position: relative; display: block; height: auto; padding: 10px 0 8px; }
  .brand { max-width: calc(100% - 150px); min-width: 0; overflow: hidden; text-align: left; }
  .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { display: none; height: 32px; }
  .brand-name { font-size: 16px; letter-spacing: .06em; }
  .menu-toggle, .header-badge { display: none !important; }
  .cta-header { position: absolute; top: 8px; right: 20px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  /* Linha 2: navegação em 4 colunas, largura total do header */
  .primary-nav { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: transparent; border: 0; border-radius: 0; padding: 10px 0 0; box-shadow: none; }
  .primary-nav a { padding: 8px 8px; border-radius: 10px; font-size: 13px; line-height: 1.1; text-align: center; }
  .primary-nav a:hover { background: rgba(234, 179, 8, .08); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  /* Ajustes ainda mais compactos em telas muito estreitas */
  .brand { max-width: calc(100% - 132px); }
  .brand-text { display: flex; }
  .brand-name { font-size: 14px; letter-spacing: .045em; }
  .cta-header { padding: 6px 10px; font-size: 13px; right: 18px; }
}

/* Uniformiza o input de data como os demais campos */
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background: #0c1529;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
}
.field input[type="date"]:focus {
  outline: none;
  border-color: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}
/* Ajusta o ícone do seletor no iOS para não colar nas bordas */
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); padding-right: 6px; }

/* Evita vazamento do foco para fora do cartão no mobile */
.card { overflow: hidden; }

/* Símbolos físicos minimalistas no background */
.physics-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.physics-bg.global { position: fixed; inset: 0; }
.physics-bg .sym { position: absolute; font-family: Nunito, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 800; color: rgba(250, 204, 21, 0.10); font-size: 48px; line-height: 1; transform: translate(-50%, -50%); animation: drift 22s ease-in-out infinite; }
.physics-bg .sym.thin { font-weight: 700; opacity: .08; }
.physics-bg .sym.small { font-size: 32px; }
.physics-bg .sym.large { font-size: 64px; }
.physics-bg .p1 { top: 18%; left: 12%; animation-duration: 24s; }
.physics-bg .p2 { top: 35%; left: 80%; animation-duration: 28s; }
.physics-bg .p3 { top: 70%; left: 20%; animation-duration: 26s; }
.physics-bg .p4 { top: 82%; left: 70%; animation-duration: 23s; }
.physics-bg .p5 { top: 48%; left: 48%; animation-duration: 27s; }
.physics-bg .p6 { top: 14%; left: 65%; animation-duration: 25s; }
.physics-bg .p7 { top: 60%; left: 88%; animation-duration: 29s; }
.physics-bg .p8 { top: 28%; left: 32%; animation-duration: 21s; }
.physics-bg .p9 { top: 24%; left: 55%; animation-duration: 24s; }
.physics-bg .p10 { top: 40%; left: 15%; animation-duration: 26s; }
.physics-bg .p11 { top: 62%; left: 60%; animation-duration: 28s; }
.physics-bg .p12 { top: 76%; left: 38%; animation-duration: 22s; }
.physics-bg .p13 { top: 12%; left: 40%; animation-duration: 23s; }
.physics-bg .p14 { top: 50%; left: 74%; animation-duration: 25s; }
.physics-bg .p15 { top: 68%; left: 8%; animation-duration: 27s; }
.physics-bg .p16 { top: 88%; left: 52%; animation-duration: 29s; }

@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* ensure content overlays the global physics background */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---- Mobile header overrides (remove CTA, highlight brand) ---- */
@media (max-width: 900px) {
  .cta-header { display: none !important; }
  .brand-logo { display: none !important; }
  /* Linha 1: sem respiro lateral; ocupa a largura do container e centraliza */
  .site-header { overflow: hidden; }
  .brand {
    max-width: 100% !important; min-width: 0; width: 100%;
    position: static; left: auto; transform: none;
    overflow: visible; justify-content: center; gap: 8px;
  }
  .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Maior e com animação de cores (sem escala) */
  .brand-name {
    font-size: clamp(18px, 5.6vw, 21px);
    letter-spacing: .075em;
    animation: brandIntro 1.2s ease-out 1, brandEmphasis 6s ease-in-out infinite .2s;
    will-change: color;
  }
  /* Alinha com o padrão global (gutter 20px como o container base) */
  .site-header .container { padding-left: 20px; padding-right: 20px; }
  /* Chips do menu mais compactos e sem overflow; remove glow no mobile */
  .primary-nav { padding-top: 10px !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-rows: 42px; }
  .primary-nav a {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-size: 12px !important; padding: 0 6px !important; line-height: 1.15 !important; box-shadow: none !important;
    text-align: center; white-space: normal; word-break: keep-all; text-transform: uppercase; letter-spacing: .04em;
  }
  .primary-nav a::after { content: none !important; }
}

/* Telas muito estreitas: compacta um pouco mais os chips e mantém alinhamento */
@media (max-width: 360px) {
  .site-header .container { padding-left: 40px; padding-right: 40px; }
  .primary-nav a { font-size: 11px !important; padding: 7px 4px !important; }
  .brand-name { font-size: clamp(17px, 5.5vw, 21px); }
}

@keyframes brandIntro {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Cor entre azul e amarelo (sem escala) */
@keyframes brandEmphasis {
  0%   { color: var(--yellow-400); }
  25%  { color: #2b6cb0; }
  50%  { color: var(--yellow-500); }
  75%  { color: #20406f; }
  100% { color: var(--yellow-400); }
}
@keyframes brandPulse {
  0% { text-shadow: 0 0 6px rgba(234,179,8,.25); }
  50% { text-shadow: 0 0 14px rgba(234,179,8,.45); }
  100% { text-shadow: 0 0 6px rgba(234,179,8,.25); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-name { animation: none !important; }
}
