:root {
  --orange: #ef7410;
  --red: #f9200f;
  --yellow: #febc17;
  --green: #1ba748;
  --blue: #108eff;
  --purple: #7b15af;
  --ink: #1f1f24;
  --muted: #63636d;
  --paper: #fffaf0;
  --line: #e8e0d3;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(31, 31, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(232, 224, 211, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--orange);
}

.brand span {
  max-width: 190px;
  line-height: 1.05;
}

.brand img {
  width: 44px;
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--orange);
}

.nav-action {
  color: var(--white) !important;
  background: var(--orange);
  padding: 10px 16px !important;
  border: 2px solid var(--orange);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78svh;
  overflow: hidden;
  padding: 88px clamp(18px, 5vw, 72px) 24px;
  background: var(--paper);
  isolation: isolate;
}

.flag-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  height: 96px;
  background-image: url("assets/bandeiras.svg");
  background-repeat: repeat-x;
  background-size: auto 96px;
  background-position: center top;
  opacity: 0.95;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.98)),
    repeating-linear-gradient(
      135deg,
      rgba(239, 116, 16, 0.08) 0 2px,
      transparent 2px 22px
    );
}

.hero-symbol {
  position: absolute;
  right: max(-110px, -10vw);
  bottom: -42px;
  width: min(42vw, 520px);
  min-width: 300px;
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: 860px;
  min-width: 0;
  padding-top: 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: clamp(2.8rem, 7.6vw, 5.75rem);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 30px;
  color: #34343b;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 31, 36, 0.16);
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 760px;
  margin: 0;
}

.hero-facts div {
  min-width: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 224, 211, 0.9);
  box-shadow: 0 8px 18px rgba(31, 31, 36, 0.06);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.section {
  padding: clamp(62px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.hero + .section {
  padding-top: clamp(28px, 4vw, 46px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section h2,
.timeline-section h2,
.register-section h2 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section p,
.register-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-light {
  background: var(--white);
}

.section-color {
  background: #17171b;
  color: var(--white);
}

.section-color .section-kicker {
  color: var(--yellow);
}

.section-color p {
  color: rgba(255, 255, 255, 0.76);
}

.about-grid,
.split,
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.symbol-panel {
  margin: 0;
  padding: clamp(18px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.symbol-panel img {
  width: min(330px, 100%);
  margin: 0 auto;
}

.symbol-panel figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.discipline-card {
  min-height: 212px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.discipline-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #111;
  background: var(--white);
  font-size: 1.7rem;
  font-weight: 900;
}

.discipline-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.discipline-card.orange {
  border-top: 6px solid var(--orange);
}

.discipline-card.purple {
  border-top: 6px solid var(--purple);
}

.discipline-card.blue {
  border-top: 6px solid var(--blue);
}

.discipline-card.red {
  border-top: 6px solid var(--red);
}

.discipline-card.yellow {
  border-top: 6px solid var(--yellow);
}

.discipline-card.green {
  border-top: 6px solid var(--green);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.step-list strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--orange);
  font-size: 1rem;
}

.step-list h3,
.timeline h3 {
  margin-bottom: 6px;
}

.step-list p,
.timeline p {
  margin-bottom: 0;
}

.timeline-section {
  padding: clamp(62px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.timeline article {
  position: relative;
  min-height: 205px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.timeline article::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: var(--orange);
}

.timeline article:nth-child(2)::before {
  background: var(--blue);
}

.timeline article:nth-child(3)::before {
  background: var(--green);
}

.timeline article:nth-child(4)::before {
  background: var(--red);
}

.timeline span {
  display: inline-block;
  margin: 8px 0 18px;
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 950;
}

.register-section {
  padding: clamp(62px, 9vw, 112px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(rgba(31, 31, 36, 0.92), rgba(31, 31, 36, 0.92)),
    url("assets/bandeiras.svg");
  background-size:
    auto,
    820px auto;
  background-repeat:
    repeat,
    repeat;
}

.register-section .section-kicker {
  color: var(--yellow);
}

.register-copy p,
.check-list {
  color: rgba(255, 255, 255, 0.78);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 950;
}

.signup-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 30px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label,
.consent {
  color: #2e2e34;
  font-size: 0.92rem;
  font-weight: 850;
}

.form-row input,
.form-row select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d0c4;
  border-radius: 0;
  font: inherit;
}

.form-row input:focus,
.form-row select:focus {
  outline: 3px solid rgba(16, 142, 255, 0.24);
  border-color: var(--blue);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.form-submit {
  width: 100%;
  margin-top: 2px;
  font-size: 1rem;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: #111114;
  color: var(--white);
}

.footer-flags {
  position: static;
  height: 78px;
  background-size: auto 78px;
  opacity: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 0px) 34px;
}

.footer-inner p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-inner a {
  color: var(--yellow);
  font-weight: 900;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 20px;
  }

  .flag-strip {
    top: 0;
    height: 70px;
    background-size: auto 70px;
  }

  .hero-content {
    padding-top: 88px;
  }

  .hero-symbol {
    right: -150px;
    width: 390px;
    opacity: 0.22;
  }

  .hero-facts,
  .discipline-grid,
  .timeline,
  .about-grid,
  .split,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .symbol-panel {
    order: -1;
  }

  .timeline article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand span {
    max-width: 155px;
  }

  .main-nav {
    font-size: 0.87rem;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 0.98;
  }

  .hero-content {
    max-width: 340px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts {
    display: none;
  }

  .hero-facts div {
    padding: 10px 8px;
  }

  .hero-facts dt {
    font-size: 0.62rem;
  }

  .hero-facts dd {
    font-size: 0.96rem;
  }

  .hero-facts div,
  .discipline-card,
  .step-list article,
  .timeline article,
  .signup-form {
    padding: 16px;
  }

  .hero-facts div {
    padding: 10px 8px;
  }

  .form-columns {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
