/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --bg: #f7f7fb;
  --text: #171b4d;
  --text-soft: #50577a;
  --line: #e7e9f3;
  --blue: #2f80ed;
  --blue-deep: #1c3d8f;
  --purple: #7b2cbf;
  --orange: #ff7a00;
  --red: #ff3d5a;
  --green: #00c896;
  --shadow: 0 12px 40px rgba(23,27,77,.08);
  --container: 1180px;
}

/* ─── RESET ──────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(231,233,243,.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 220px;
  height: 48px;
  background: url('../images/logo-horizontal.png') center 50% / auto 148px no-repeat;
  flex-shrink: 0;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(23,27,77,.08);
  transition: box-shadow .2s, transform .2s;
}
.brand:hover .brand-logo {
  box-shadow: 0 4px 16px rgba(23,27,77,.14);
  transform: translateY(-1px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}
.nav a:hover { color: var(--text); }

/* ─── SELETOR DE IDIOMA (dropdown) ──────────────── */
.lang-selector {
  position: relative;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
  white-space: nowrap;
  font-family: inherit;
  user-select: none;
}
.lang-trigger:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(47,128,237,.1);
}
.lang-trigger .lang-flag { width: 20px; height: 15px; border-radius: 2px; }
.lang-trigger .lang-arrow {
  font-size: 10px;
  color: var(--text-soft);
  transition: transform .2s;
}
.lang-selector.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(23,27,77,.12);
  overflow: hidden;
  z-index: 100;
  animation: dropIn .15s ease;
}
.lang-selector.open .lang-dropdown { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
  text-align: left;
}
.lang-option:hover { background: var(--bg); color: var(--text); }
.lang-option.active { color: var(--blue); background: #f0f5ff; }
.lang-option .lang-flag { width: 22px; height: 16px; border-radius: 2px; }

/* ─── BOTÕES ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #256eff);
  box-shadow: 0 8px 22px rgba(47,128,237,.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47,128,237,.32); }

.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background-image: url('../images/hero-background.png');
  background-size: cover;
  background-position: center top;
  border-bottom-left-radius: 52px;
  border-bottom-right-radius: 52px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,12,55,.62) 0%,
    rgba(8,12,55,.38) 48%,
    transparent 72%
  );
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.5) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,.35) 0 1px, transparent 1.3px);
  background-size: 190px 190px, 240px 240px, 140px 140px;
  background-position: 0 0, 50px 80px, 110px 30px;
  opacity: .28;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  padding: 64px 0 80px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 52%;
  position: relative;
  z-index: 3;
}

.hero-copy h1 {
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 620px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-copy p {
  max-width: 500px;
  color: rgba(255,255,255,.88);
  font-size: 20px;
  line-height: 1.68;
  text-shadow: 0 1px 10px rgba(0,0,0,.22);
}

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

/* ─── FOGUETE ────────────────────────────────────── */
.rocket-scene {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-52%);
  z-index: 2;
  width: 58%;
  max-width: 900px;
  pointer-events: none;
}

.rocket-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 56px rgba(4,10,50,.6));
  animation: float 5.5s ease-in-out infinite;
  mix-blend-mode: multiply;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-20px) rotate(2deg); }
}

/*
  ─── Camada de nuvens — OCULTA ──────────────────────
  TODO: substituir cloud-layer.png por uma versão com fundo
  realmente transparente (PNG com canal alpha).
  Quando trocar a imagem, remover apenas o "display: none" abaixo.
*/
.hero-clouds {
  display: none; /* remover esta linha quando trocar a imagem */
  position: absolute;
  bottom: -2px;
  left: -2%;
  width: 104%;
  z-index: 5;
  pointer-events: none;
}
.hero-clouds img {
  width: 100%;
  display: block;
}

/* ─── SEÇÕES ─────────────────────────────────────── */
.section { padding: 72px 0; }

section[id] { scroll-margin-top: 96px; }

.section-header {
  margin-bottom: 28px;
  text-align: center;
}
.section-title {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-divider {
  height: 1px;
  background: var(--line);
  max-width: 120px;
  margin: 0 auto;
}

.section-text {
  font-size: 21px;
  line-height: 1.82;
  color: var(--text-soft);
  max-width: 780px;
  margin: 28px auto 0;
  text-align: center;
}

/* ─── PILARES ────────────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.philosophy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 20px;
  min-height: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
}
.philosophy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(23,27,77,.13);
}

.philosophy-emoji { font-size: 52px; line-height: 1; }

.philosophy-item h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

/* ─── PRODUTOS ───────────────────────────────────── */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.product-card {
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(23,27,77,.14);
}

.product-featured {
  width: 360px;
  border-color: var(--blue);
  box-shadow: 0 16px 48px rgba(47,128,237,.18);
  transform: translateY(-6px);
}
.product-featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(47,128,237,.26);
}

.product-top {
  position: relative;
  min-height: 148px;
  padding: 24px;
  color: #fff;
  background-image: url('../images/card-background.png');
  background-size: cover;
  background-position: center;
}
.product-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,61,143,.52) 0%, rgba(123,44,191,.32) 100%);
}

.product-top-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.molt-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f80ed, #7b2cbf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.04em;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}

.product-top h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.product-top p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}

.product-bottom { padding: 18px 24px 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #f1f4fb;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

/* ─── CADASTRO ───────────────────────────────────── */
.subscribe-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 32px 24px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 28px auto 0;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.input-wrap {
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #f7f8fc;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s;
}
.input-wrap:focus-within {
  border-color: var(--blue);
  background: #fff;
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 17px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.input-wrap input::placeholder { color: #a0a8c0; }

.btn-subscribe {
  height: 62px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), #ff5c00);
  box-shadow: 0 10px 26px rgba(255,122,0,.28);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,122,0,.36);
}

.subscribe-consent {
  margin-top: 14px;
  font-size: 13px;
  color: #a0a8c0;
  line-height: 1.6;
  text-align: center;
}

/* ─── SUCESSO DO CADASTRO ────────────────────────── */
.subscribe-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 8px 8px;
  text-align: center;
  animation: fadeInUp .5s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.subscribe-success-icon {
  font-size: 56px;
  line-height: 1;
  animation: rocketLaunch .7s ease both;
}

@keyframes rocketLaunch {
  0%   { transform: translateY(12px) scale(.8); opacity: 0; }
  60%  { transform: translateY(-8px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

.subscribe-success h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.subscribe-success p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 380px;
}

.btn-aguardar {
  margin-top: 6px;
  padding: 12px 32px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #256eff);
  box-shadow: 0 8px 22px rgba(47,128,237,.22);
  transition: transform .2s, box-shadow .2s;
}
.btn-aguardar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(47,128,237,.32);
}

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  padding: 40px 0 48px;
  color: #8f96b3;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a:hover { color: var(--text); }

/* ─── BADGE CTA (v2) ────────────────────────────── */
.product-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  transition: color .2s;
}
.badge-cta:hover { color: var(--blue-deep); }

/* ─── FOOTER EXPANDIDO (v2) ──────────────────────── */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
}

.brand-logo-footer {
  width: 180px;
  height: 40px;
  background: url('../images/logo-horizontal.png') center 50% / auto 120px no-repeat;
  border-radius: 999px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav-group h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-group a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color .2s;
}
.footer-nav-group a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--text); }

/* ─── FOGUETE ARRASTÁVEL ─────────────────────────── */
.rocket-scene.draggable {
  pointer-events: auto;
  cursor: grab;
  user-select: none;
}
.rocket-scene.dragging { cursor: grabbing; }

.rocket-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  animation: rocketParticleFade .65s ease-out forwards;
  will-change: transform, opacity;
}
.rocket-fire {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff8cc 0%, #ffb300 50%, #ff4500 100%);
  box-shadow: 0 0 10px #ff7a00;
}
.rocket-star {
  width: 8px;
  height: 8px;
  background: #fff;
  box-shadow: 0 0 7px #aaddff, 0 0 14px #66aaff;
}
@keyframes rocketParticleFade {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.1); }
}

/* ─── RESPONSIVO ─────────────────────────────────── */
@media (max-width: 1000px) {
  .nav { display: none; }
  .lang-selector { border-left: none; padding-left: 0; }
  .hero-inner { padding: 48px 0 160px; }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .header-inner { height: 70px; }
  .lang-btn span:not(.lang-flag) { display: none; } /* só bandeira no mobile */
  .hero { border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 17px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 22px; }
  .section-text { font-size: 18px; }
  .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .philosophy-item { min-height: 150px; padding: 24px 12px; gap: 12px; }
  .philosophy-emoji { font-size: 40px; }
  .subscribe-box { padding: 22px 20px; }
  .subscribe-form { grid-template-columns: 1fr; }
  .btn-subscribe { width: 100%; height: 56px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .footer-nav { order: 1; flex-direction: column; align-items: center; gap: 28px; }
  .footer-brand { order: 2; display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
  .footer-tagline { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; }
}
