/* Orbita Fintech — site institucional.
   Mesmos tokens do app (src/theme/theme.ts): o site tem que parecer o produto.
   Direção "hybrid-hero": céu esmeralda escuro (hero, segurança, CTA) sobre chão claro. */

:root {
  --brand: #00875A;
  --brand-dark: #00623F;
  --brand-darker: #004B30;
  --brand-light: #00A86B;
  --brand-tint: #E6F4EE;
  --brand-tint-strong: #CDEADC;
  --glow: #19C58A;
  --gold: #F2A93B;
  --gold-tint: #FDF1DD;
  --navy: #0A2540;
  --ink: #16181A;
  --text: #1C2126;
  --muted: #66707A;
  --muted-2: #6B7680;
  --bg: #F4F6F7;
  --surface: #FFFFFF;
  --surface-alt: #EFF2F4;
  --line: #E6E9EC;
  --hero-1: #006B47;
  --hero-2: #00402B;
  --hero-3: #04231A;
  --on-hero-muted: rgba(255, 255, 255, 0.72);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(10, 31, 22, 0.10);
  --shadow-sm: 0 6px 18px rgba(10, 31, 22, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--glow); }
.lead { font-size: 18px; max-width: 58ch; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 12px; font-size: 17px; }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--brand) 0%, #00734C 100%); box-shadow: 0 10px 24px rgba(0, 135, 90, 0.28); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(0, 135, 90, 0.36); }
.btn-ghost { color: var(--brand); background: var(--brand-tint); }
.btn-ghost:hover { background: var(--brand-tint-strong); }
.btn-outline-light { color: #fff; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn-white { color: var(--brand-dark); background: #fff; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ── Navegação ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 247, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 233, 236, 0.9);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
}
.hero::before, .hero::after {
  /* órbitas — o motivo do app */
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.hero::before { width: 900px; height: 900px; right: -260px; top: -380px; }
.hero::after { width: 560px; height: 560px; right: -90px; top: -210px; border-color: rgba(25, 197, 138, 0.28); }
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -120px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 197, 138, 0.28) 0%, rgba(25, 197, 138, 0) 62%); pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  padding: 88px 0 72px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); max-width: 12ch; }
.hero .lead { color: var(--on-hero-muted); margin-top: 20px; font-size: 19px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
}
.chip svg { width: 16px; height: 16px; color: var(--glow); }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* ── Mockup de celular ── */
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620; border-radius: 44px; padding: 10px;
  background: linear-gradient(180deg, #1c2126, #0b0f12);
  box-shadow: 0 40px 80px rgba(2, 20, 13, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone::before {
  content: ""; position: absolute; left: 50%; top: 18px; width: 96px; height: 24px; margin-left: -48px;
  border-radius: 14px; background: #0b0f12; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #04231A; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone.float { animation: none; } html { scroll-behavior: auto; } }

/* ── Cards de produto ── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-tint), #d5efe3); color: var(--brand);
}
.icon-tile svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.soon .tag {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--gold-tint); color: #8A5A0C; font-weight: 700; font-size: 13px;
}

/* ── Destaques (texto + celular, alternando) ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature h2 { font-size: clamp(26px, 3vw, 36px); }
.feature .lead { margin-top: 14px; font-size: 17px; }
.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .phone { width: 280px; }

/* ── Segurança (faixa escura) ── */
.security { color: #fff; background: linear-gradient(160deg, #12385F 0%, var(--navy) 55%, #061626 100%); position: relative; overflow: hidden; }
.security::after { content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.security p { color: var(--on-hero-muted); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.sec-item { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.sec-item .icon-tile { background: rgba(255, 255, 255, 0.10); color: var(--glow); }
.sec-item h3 { color: #fff; margin-bottom: 8px; }
.sec-item p { font-size: 14px; }
.partner {
  margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding: 24px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
/* Selo do parceiro: arte oficial (positiva) sempre sobre chapa branca — não pode ser recolorida. */
.selo-plate { background: #fff; border-radius: 16px; padding: 14px 18px; line-height: 0; flex: none; }
.selo-plate img { width: 172px; height: auto; }
.partner p { font-size: 15px; max-width: 52ch; }
.partner strong { color: #fff; }

/* ── Passos ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand); color: #fff; font-weight: 800;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ── Download ── */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl { display: flex; gap: 20px; align-items: flex-start; }
.dl .icon-tile { flex: none; margin: 0; }
.dl h3 { margin-bottom: 6px; }
.dl p { font-size: 15px; margin-bottom: 16px; }
.dl small { display: block; margin-top: 10px; color: var(--muted-2); font-size: 13px; }

/* ── FAQ ── */
.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); flex: none; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 15px; }

/* ── CTA final ── */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center; border-radius: 28px; padding: 64px 28px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 55%, var(--navy) 100%);
}
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: -360px; margin-left: -260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); }
.cta-band h2 { position: relative; }
.cta-band p { position: relative; color: var(--on-hero-muted); margin: 14px auto 0; max-width: 48ch; font-size: 17px; }
.cta-band .hero-cta { position: relative; justify-content: center; }

/* ── Rodapé ── */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; align-items: start; }
.footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.footer li { margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.footer li a:hover { color: var(--ink); }
.footer .tagline { margin-top: 12px; font-size: 15px; max-width: 34ch; }
.footer .selo-plate { border: 1px solid var(--line); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); line-height: 1.6; }
.legal p + p { margin-top: 8px; }

/* ── Responsivo ── */
@media (max-width: 1024px) {
  .grid-4, .sec-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 64px 0 56px; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .checks li { text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 6px; position: absolute; left: 0; right: 0; top: 72px;
    padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 8px; border-radius: 10px; }
  .grid-4, .sec-grid, .steps, .dl-grid { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 20px; border-radius: 22px; }
}
