/* ============================================================
   OptVita — Landing page
   Tokens de design (seção 3 da spec) como CSS Custom Properties.
   Hierarquia de cor: coral = ação/destaque; verde = sinal La Vita/sucesso;
   violeta = contexto de IA. Nunca azul.
   ============================================================ */

:root {
  /* Superfícies */
  --bg: #0B0D15;
  --bg-alt: #0D0F17;
  --surface: #14171F;
  --surface-inner: #0E1119;

  /* Bordas */
  --border: #262A36;
  --border-subtle: #1A1E29;
  --border-line: #1F2430;
  --border-input: #2C313D;

  /* Texto */
  --text: #F4F5F7;
  --text-alt: #E7E9F0;
  --muted: #AEB4C2;
  --muted-2: #9098A8;
  --muted-3: #8E96A6;
  --faint: #7E8696;
  --faint-2: #6B7180;
  --faint-3: #5A6171;

  /* Coral (primária) */
  --coral: #FF6B4A;
  --coral-hover: #ff8467;
  --coral-06: rgba(255, 107, 74, 0.06);
  --coral-12: rgba(255, 107, 74, 0.12);
  --coral-16: rgba(255, 107, 74, 0.16);
  --on-coral: #0B0D15;

  /* Verde La Vita (legado / sucesso) */
  --green: #5E9B4E;
  --green-text: #9FB892;
  --green-text-2: #7FB56A;
  --green-10: rgba(94, 155, 78, 0.10);
  --green-18: rgba(94, 155, 78, 0.18);

  /* Violeta (IA) */
  --violet-text: #8A73FF;
  --violet-14: rgba(109, 74, 255, 0.14);

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 32px;
  --section-pad: 100px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--coral); color: var(--on-coral); }
a { color: inherit; }
img, svg { display: block; }

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 18px;
}
.coral { color: var(--coral); }
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* ---------- Motion (seção 3.4) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.2, .75, .25, 1),
              transform .85s cubic-bezier(.2, .75, .25, 1);
}
[data-reveal][data-in] { opacity: 1; transform: none; }

@keyframes pulse  { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.78); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift  { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(36px, 26px); } }
@keyframes mDim   { 0%,12% { opacity: 1; } 26%,100% { opacity: 0; } }
@keyframes mLit   { 0%,14% { opacity: 0; } 28%,94% { opacity: 1; } 100% { opacity: 0; } }

/* ============================================================
   NAVBAR (sticky)
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 21, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted-2);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ---------- Botões ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  display: inline-block;
}
.btn-coral { color: var(--on-coral); background: var(--coral); border: 1px solid var(--coral); }
.btn-coral:hover { background: var(--coral-hover); transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--border-input); }
.btn-ghost:hover { border-color: #4a505e; background: var(--surface); }
.btn-lg { font-size: 16px; padding: 15px 26px; }
.btn-nav { font-size: 14px; padding: 11px 20px; border-radius: 10px; white-space: nowrap; }
.btn-nav:hover { transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 90px var(--gutter) 80px; max-width: var(--container); margin: 0 auto; }
.hero-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-16), transparent 62%);
  filter: blur(8px);
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--coral);
  border: 1px solid #2a2230;
  background: var(--coral-06);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.trust { display: flex; align-items: center; gap: 10px; }
.trust-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-18);
}
.trust-text { font-size: 13.5px; color: var(--faint); }
.trust-text b { color: var(--green-text); font-weight: 600; }

/* ---------- Painel "ao vivo" do hero ---------- */
.panel {
  background: linear-gradient(180deg, #14171F, #0F121A);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  animation: floaty 7s ease-in-out infinite;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.panel-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.panel-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--green);
}
.panel-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
.panel-tasks { display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-inner);
  border: 1px solid #20242F;
  border-radius: 12px;
  padding: 14px 16px;
}
.task-name { display: flex; align-items: center; gap: 12px; }
.task-badge {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px;
}
.task-badge.coral { background: var(--coral-12); color: var(--coral); }
.task-badge.violet { background: var(--violet-14); color: var(--violet-text); }
.task-badge.green { background: rgba(94, 155, 78, 0.14); color: var(--green-text-2); }
.task-name span:last-child { font-size: 14.5px; color: var(--text-alt); }
.task-status { position: relative; width: 96px; height: 24px; }
.task-status .manual {
  position: absolute; right: 0;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint-2);
  animation: mDim 6s infinite;
}
.task-status .active {
  position: absolute; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--coral);
  animation: mLit 6s infinite;
}
.task-status .active i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.panel-foot {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid #20242F;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.panel-foot-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  margin-bottom: 4px;
}
.panel-foot-num {
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  letter-spacing: -0.02em; color: #fff;
}
.panel-foot-num .unit { font-size: 18px; color: var(--coral); }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-block: 40px;
}
.stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: 42px;
  letter-spacing: -0.02em; color: #fff;
}
.stat-label { font-size: 14px; color: var(--muted-3); margin-top: 4px; }

/* ============================================================
   SEÇÕES genéricas
   ============================================================ */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border-subtle); }

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.problema-sub { font-size: 17px; line-height: 1.65; color: var(--muted); margin-top: 22px; }
.problema-h2 { margin-top: 0; }

/* mini-cards do problema */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.mini-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--coral); margin-bottom: 8px;
}
.mini-card p { font-size: 14px; line-height: 1.5; color: var(--muted-2); }

/* ============================================================
   SOLUÇÕES (tabs)
   ============================================================ */
.sol-h2 { margin-bottom: 44px; max-width: 680px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.tab {
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 20px; border-radius: 11px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  background: transparent; color: var(--muted-2); border: 1px solid var(--border);
}
.tab[aria-selected="true"] { background: var(--coral); color: var(--on-coral); border-color: var(--coral); }
.sol-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch;
}
.sol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
}
.sol-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 28px;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.sol-card > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }
.sol-points { display: flex; flex-direction: column; gap: 14px; }
.sol-point { display: flex; align-items: flex-start; gap: 12px; }
.sol-point i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-top: 7px; flex: none; }
.sol-point span { font-size: 15px; line-height: 1.5; color: #D6DAE2; }
.sol-metric {
  background: linear-gradient(150deg, #171B25, #0E1119);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px;
}
.sol-metric-head { display: flex; align-items: center; justify-content: space-between; }
.sol-metric-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--faint); }
.sol-metric-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1; color: #fff;
}
.sol-metric-label { font-size: 15px; color: var(--muted-2); margin-top: 8px; }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.steps-h2 { margin-bottom: 48px; max-width: 680px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--coral); margin-bottom: 20px; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin-bottom: 12px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted-2); }

/* ============================================================
   RESULTADOS
   ============================================================ */
.results-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  position: relative;
}
.quote-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 60px;
  line-height: .6; color: var(--coral); height: 34px;
}
.quote p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; letter-spacing: -0.01em;
  color: #EDEFF3; margin-bottom: 28px;
}
.quote-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, #1d2230 0 8px, #232838 8px 16px);
  border: 1px solid var(--border-input);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; color: var(--faint-3); text-align: center;
}
.quote-author b { font-size: 15px; font-weight: 600; color: #fff; display: block; }
.quote-author small { font-size: 13px; color: var(--muted-3); }
.result-rows { display: flex; flex-direction: column; gap: 18px; }
.result-row { display: flex; align-items: center; gap: 16px; }
.result-row b {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; min-width: 84px;
}
.result-row span { font-size: 15px; color: var(--muted-2); }
.result-div { height: 1px; background: var(--border-line); }
.results-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint-3); margin-top: 26px; }

/* ============================================================
   CTA / CONTATO
   ============================================================ */
.cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: linear-gradient(150deg, #161A24, #0E1119);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
}
.cta-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.cta-sub { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form input {
  font-family: var(--font-body); font-size: 15px; color: #fff;
  background: var(--bg); border: 1px solid var(--border-input);
  border-radius: 11px; padding: 14px 16px; outline: none;
  transition: border-color .2s;
}
.form input:focus { border-color: var(--coral); }
.form button {
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--on-coral); background: var(--coral); border: none;
  border-radius: 11px; padding: 15px; cursor: pointer; margin-top: 4px;
  transition: background .2s;
}
.form button:hover { background: var(--coral-hover); }
.form-note { font-size: 12px; color: var(--faint-2); text-align: center; }
.form-error { font-size: 13px; color: var(--coral); text-align: center; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; }
.form-consent input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--coral); cursor: pointer; }
.form-consent span { font-size: 12.5px; line-height: 1.5; color: var(--muted-3); }
.form-consent a { color: var(--coral); text-decoration: underline; }
.form-success {
  background: var(--green-10);
  border: 1px solid #2f5d2a;
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}
.form-success .check {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success b { font-family: var(--font-display); font-weight: 600; font-size: 20px; display: block; margin-bottom: 6px; }
.form-success span { font-size: 14.5px; color: var(--muted); }
.hidden { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-subtle); background: var(--bg); }
.footer-inner { padding: 56px var(--gutter) 40px; max-width: var(--container); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em;
}
.footer p { font-size: 14.5px; line-height: 1.6; color: var(--faint); max-width: 300px; }
.footer-legal { font-family: var(--font-mono); font-size: 12px; color: var(--faint-3); margin-top: 14px; }
.footer-col-title {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--faint-3); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-links span { font-size: 14.5px; color: var(--muted-2); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-lavita {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--faint); margin-top: 4px;
}
.footer-lavita i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-family: var(--font-mono); font-size: 12px; color: var(--faint-3); }

/* ============================================================
   PÁGINA LEGAL (política de privacidade)
   ============================================================ */
.legal { max-width: 780px; padding-block: 72px; }
.legal-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; margin-bottom: 10px;
}
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--faint-3); margin-bottom: 40px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em; margin: 40px 0 14px; color: var(--text);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--coral); text-decoration: underline; }
.legal strong { color: var(--text-alt); font-weight: 600; }

/* ============================================================
   RESPONSIVO — breakpoint 880px (seção 6)
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid,
  .two-col,
  .results-grid,
  .sol-panel,
  .cta-row { grid-template-columns: 1fr !important; gap: 48px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   ACESSIBILIDADE — prefers-reduced-motion (seção 7)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
