/* ---------- Fonts ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #050403;
  --bg-glow: radial-gradient(120% 90% at 50% -10%, #3d1a00 0%, #050403 55%, #000 100%);
  --red: #ff5c00;
  --red-soft: #ff8d4d;
  --red-deep: #a63c00;
  --white: #ffffff;
  --muted: #9bb5c2;
  --muted-dim: #6a8291;
  --card-bg: #120d0b;
  --card-border: rgba(255, 255, 255, 0.08);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dt, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.hl { color: var(--red); }

.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;
}

/* ---------- Ambient background (decorative) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.ambient-orb--a {
  width: 380px;
  height: 380px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--red-deep), transparent 70%);
}
.ambient-orb--b {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: -120px;
  background: radial-gradient(circle, var(--red-soft), transparent 70%);
}
.ambient-grain {
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .ambient-orb--a { animation: drift-a 22s ease-in-out infinite alternate; }
  .ambient-orb--b { animation: drift-b 26s ease-in-out infinite alternate; }
}
@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(50px, 40px); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-40px, -50px); }
}

.hello-bar, .hero, main, .site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hello bar ---------- */
.hello-bar {
  background: linear-gradient(90deg, #ff5c00 0%, #8a3200 100%);
  padding: 10px 16px;
  text-align: center;
}
.hello-bar p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10px, 3.4vw, 15px);
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---------- Layout shell ---------- */
.hero {
  background: var(--bg-glow);
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* ---------- Hero banner ---------- */
.hero-banner {
  position: relative;
  width: 100%;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
}
@media (min-width: 768px) {
  .hero-banner img {
    aspect-ratio: 16 / 9;
  }
}

.cta-button.cta-button--overlay {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: auto;
  margin-top: 0;
  padding: 14px 48px;
  font-size: 17px;
}
@media (min-width: 768px) {
  .cta-button.cta-button--overlay {
    padding: 16px 60px;
    font-size: 19px;
  }
}
.cta-button.cta-button--overlay:hover,
.cta-button.cta-button--overlay:focus-visible {
  transform: translateX(-50%) scale(1.05);
}
.cta-button.cta-button--overlay:active {
  transform: translateX(-50%) scale(0.97);
}

.consent-text {
  font-size: 12px;
  color: var(--muted-dim);
  max-width: 480px;
  font-style: italic;
}

/* ---------- CTA button ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  white-space: nowrap;
  padding: 13px 30px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--red-deep) 100%);
  box-shadow: 0 2px 8px rgba(166, 60, 0, 0.3);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-button:hover,
.cta-button:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(166, 60, 0, 0.4);
}
.cta-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.cta-button:active { transform: scale(0.97); }

.cta-button.is-charged {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 0 24px 6px rgba(255, 141, 77, 0.8);
}

.cta-schedule {
  font-size: 14px;
  color: var(--muted);
}
.cta-schedule strong { color: var(--white); }

/* ---------- Sections shared ---------- */
main {
  background: var(--bg);
}
section {
  padding: 56px 20px;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 6vw, 32px);
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- Pillars / Timeline ---------- */
.timeline {
  position: relative;
  width: 100%;
  padding-top: 8px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 0;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.timeline-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 0%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--red-soft), var(--red));
  border-radius: 3px;
  box-shadow: 0 0 12px 2px rgba(255, 92, 0, 0.55);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.25), 0 0 18px 4px rgba(255, 141, 77, 0.8);
}

.timeline-items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px; /* mobile: abaixo de 900px */
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-node.is-active {
  background: var(--red);
  border-color: var(--red-soft);
  box-shadow: 0 0 16px 4px rgba(255, 92, 0, 0.6);
}

.timeline-cta {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pillar-card {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card img {
  width: 100%;
  height: auto;
  display: block;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- Confirmed ---------- */
.confirmed-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.confirmed-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}
.confirmed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.confirmed-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 45%);
  pointer-events: none;
}
.confirmed-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.confirmed-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.confirmed-role {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .confirmed-track {
    max-width: 560px;
    gap: 20px;
  }
  .confirmed-card figcaption { left: 12px; bottom: 12px; right: 12px; gap: 3px; }
  .confirmed-name { font-size: 21px; }
  .confirmed-role { font-size: 12px; }
}

/* ---------- Closing ---------- */
.closing-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 7vw, 36px);
  text-transform: uppercase;
  line-height: 1.25;
}

.event-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--card-border);
}
.event-row dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-soft);
}
.event-row dd {
  font-size: 16px;
  color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-dim);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .hello-bar p { font-size: 18px; }
  section { padding: 72px 32px; max-width: 760px; }
  .cta-button { padding: 15px 36px; font-size: 16px; }
}

@media (min-width: 900px) {
  .timeline-items { gap: 64px; } /* desktop: 900px+ */
  .timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 32px;
  }
  .timeline-node {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    justify-self: center;
  }
  .timeline-item .pillar-card {
    grid-row: 1;
    max-width: 380px;
  }
  .timeline-item:nth-child(odd) .pillar-card {
    grid-column: 1;
    justify-self: end;
  }
  .timeline-item:nth-child(even) .pillar-card {
    grid-column: 3;
    justify-self: start;
  }
}

@media (min-width: 1200px) {
  section { max-width: 900px; }
}

/* ---------- Lead modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 2, 1, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.modal-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.lead-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.form-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-soft);
}
.form-field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input::placeholder { color: var(--muted-dim); }
.form-field input:focus {
  border-color: var(--red-soft);
  background: rgba(255, 255, 255, 0.07);
}
.form-field.has-error input {
  border-color: #ff5c5c;
}
.form-error {
  min-height: 14px;
  font-size: 12px;
  color: #ff8080;
}

.modal-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}
.modal-submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.modal-card .consent-text {
  margin-top: 4px;
  max-width: none;
}

@media (min-width: 768px) {
  .modal-card { padding: 40px 32px 28px; }
}
