:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-elevated: #eef1f6;
  --ink: #163a6b;
  --ink-soft: #1e4d8c;
  --muted: #6b7585;
  --line: rgba(22, 58, 107, 0.12);
  --blue: #1e4d8c;
  --blue-bright: #2563a8;
  --blue-deep: #12325c;
  --gray: #8b93a1;
  --gray-soft: #c5cad3;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(22, 58, 107, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-elevated: #152033;
  --ink: #e8eef8;
  --ink-soft: #c7d7f0;
  --muted: #9aa8bf;
  --line: rgba(232, 238, 248, 0.12);
  --blue: #7eb6ff;
  --blue-bright: #93c5fd;
  --blue-deep: #1e3a5f;
  --gray: #94a3b8;
  --gray-soft: #64748b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(126, 182, 255, 0.12), transparent 58%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(148, 163, 184, 0.1), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #152033 100%);
}

html[data-theme="dark"] .resource-card {
  background: var(--bg-elevated);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}

.site-header--home {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(7rem, 16vw, 9rem);
  height: auto;
  aspect-ratio: 850 / 356;
  object-fit: contain;
  object-position: center;
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-link:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(5.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 77, 140, 0.08), transparent 58%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(139, 147, 161, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 55%, #eef1f6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 117, 133, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 117, 133, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 40rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero-logo {
  width: min(100%, 26rem);
  height: auto;
  aspect-ratio: 850 / 356;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 1.5rem;
}

/* Variantes claro/escuro - depois de .hero-logo para nao serem sobrescritas */
.brand-logo--light,
.hero-logo--light {
  display: block;
}

.brand-logo--dark,
.hero-logo--dark {
  display: none;
}

html[data-theme="dark"] .brand-logo--light,
html[data-theme="dark"] .hero-logo--light {
  display: none;
}

html[data-theme="dark"] .brand-logo--dark,
html[data-theme="dark"] .hero-logo--dark {
  display: block;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.waitlist {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: 28rem;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.waitlist input[type="email"] {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 1.1rem;
  color: var(--blue-deep);
  outline: none;
}

.waitlist input[type="email"]::placeholder {
  color: var(--gray);
}

.waitlist button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.waitlist button:hover:not(:disabled) {
  background: var(--blue-bright);
}

.waitlist button:active:not(:disabled) {
  transform: translateY(1px);
}

.waitlist button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hp {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-msg {
  min-height: 1.35rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.waitlist-msg.is-ok {
  color: #2f6b45;
}

.waitlist-msg.is-err {
  color: #8f2f2f;
}

.section {
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.section-title {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.section-text {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.cta-band .section-inner {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  max-width: 36rem;
}

.site-footer {
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--header, var(--bg, #fff));
}

.site-footer strong {
  color: var(--blue);
  font-weight: 600;
}

.developed-by {
  flex: 1 0 100%;
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.82rem;
}

.developed-by a {
  color: var(--blue);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .waitlist-row {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .waitlist button {
    width: 100%;
  }

  .hero-logo {
    width: min(100%, 16rem);
  }

  .cta-band .section-inner {
    justify-items: stretch;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
}

.btn-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-landing-primary {
  background: #1e4d8c;
  color: #fff;
}

.btn-landing-ghost {
  border: 1px solid var(--line);
  background: var(--card, #fff);
  color: var(--blue, #1e4d8c);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-with-gallery {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: clamp(5.5rem, 10vh, 7rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero-copy-block {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-gallery {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  max-width: 28rem;
  margin: 0 auto;
}

.gallery-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8edf4;
  aspect-ratio: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-b { transform: translateY(1rem); }
.gallery-card-c { transform: translateY(-0.5rem); }
.gallery-card-d { transform: translateY(0.6rem); }

.gallery-strip .gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #e8edf4;
}

.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-card {
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.resource-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  color: var(--blue);
}

.resource-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.resource-card a {
  font-weight: 700;
  color: var(--blue);
}

@media (max-width: 900px) {
  .hero-with-gallery,
  .steps-4,
  .resources,
  .gallery-strip .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery-card-b,
  .gallery-card-c,
  .gallery-card-d {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html[data-theme="dark"] .site-footer {
  background: var(--header, #111827);
  color: #c5d4e8;
  border-top-color: rgba(232, 238, 248, 0.12);
}

html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer strong,
html[data-theme="dark"] .site-footer .developed-by a {
  color: #93c5fd;
}

html[data-theme="dark"] .btn-landing-ghost {
  background: var(--card, #152033);
  color: #93c5fd;
  border-color: rgba(232, 238, 248, 0.18);
}

html[data-theme="dark"] .resource-card {
  background: var(--bg-elevated, #152033);
  color: var(--ink, #e8eef8);
}