/* ================================================================
   AURIVUS — aurivus.online
   Narrativa visual: a página amanhece. Herói = madrugada (navy),
   seções seguintes clareiam até a luz do dia, cruzando a linha
   do horizonte âmbar. Assinatura: horizonte + sol raiando.
   ================================================================ */

:root {
  --navy-900: #0B1F2E;
  --navy-800: #0E2838;
  --navy-700: #123449;
  --navy-500: #1E5573;
  --amber-500: #F2A31B;
  --amber-300: #FFC65C;
  --dawn: #F9F4EA;          /* primeira luz — seção pós-horizonte */
  --day: #F6F8FA;           /* dia claro */
  --surface: #FFFFFF;
  --border: #E3E9EE;
  --text: #16232C;
  --text-2: #5B707E;
  --text-inv: #EAF2F7;
  --green-wa: #1E9E6A;
  --horizon: linear-gradient(90deg, var(--navy-500) 0%, var(--amber-500) 55%, var(--amber-300) 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 46, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--day);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p  { font-size: 1.02rem; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container--narrow { width: min(760px, 92%); }
.br-desk { display: none; }
@media (min-width: 720px) { .br-desk { display: inline; } }

/* ---------- Eyebrow: etiqueta que carrega a marca ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy-500); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--horizon);
}
.eyebrow--night { color: var(--amber-300); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .95rem;
  padding: .78rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn--amber {
  background: var(--amber-500); color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(242, 163, 27, .35);
}
.btn--amber:hover { background: var(--amber-300); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--ghost { border-color: var(--navy-500); color: var(--navy-700); background: transparent; }
.btn--ghost:hover { background: var(--navy-700); color: var(--text-inv); }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 4vw;
  background: rgba(11, 31, 46, .78); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem;
  color: var(--text-inv); letter-spacing: -.01em;
}
.nav__mark { width: 34px; color: var(--text-inv); }
.nav__links { display: none; gap: 1.8rem; font-size: .93rem; color: var(--text-inv); }
.nav__links a { opacity: .8; transition: opacity .15s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { padding: .55rem 1.1rem; font-size: .88rem; }
@media (min-width: 820px) { .nav__links { display: flex; } }

/* ================================================================
   HERO — A MADRUGADA
   ================================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% -10%, #16405a 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 70%, #1a3d50 100%);
  color: var(--text-inv);
  padding: 7.5rem 0 0;
}
.hero__stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%,  #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 30%, #ffe9c2 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 9%,  #ffe9c2 50%, transparent 51%);
}
.hero__inner {
  position: relative; width: min(1120px, 92%); margin: 0 auto;
  display: grid; gap: 3rem; padding-bottom: 5.5rem;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; }
}
.hero h1 em { font-style: normal; color: var(--amber-300); }
.hero__sub { margin-top: 1.2rem; color: #B9CBD6; max-width: 46ch; font-size: 1.08rem; }
.hero__actions { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__hint { font-size: .88rem; color: #9FB4C0; }

/* ---------- A linha do horizonte (assinatura) ---------- */
.horizon { position: relative; height: 6px; background: var(--horizon); }
.horizon__sun {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%);
  width: 74px; height: 37px; border-radius: 74px 74px 0 0;
  background: radial-gradient(circle at 50% 100%, var(--amber-300) 0%, var(--amber-500) 70%);
  box-shadow: 0 -6px 40px rgba(242, 163, 27, .55);
}

/* ---------- O telefone / conversa ---------- */
.phone {
  background: #0A1822; border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  max-width: 400px; margin: 0 auto; width: 100%;
}
.phone__top {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem; background: var(--navy-700);
  font-size: .88rem;
}
.phone__top small { display: block; color: var(--amber-300); font-size: .72rem; }
.phone__dot { width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--amber-300), var(--amber-500)); }
.phone__time { margin-left: auto; color: #9FB4C0; font-variant-numeric: tabular-nums; }
.phone__chat { padding: 1rem .9rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; min-height: 330px;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(30,85,115,.25), transparent),
    #0A1822; }
.phone__foot {
  padding: .7rem 1rem; text-align: center; font-size: .8rem;
  color: var(--amber-300); background: rgba(242,163,27,.08);
  border-top: 1px solid rgba(242,163,27,.15); font-weight: 500;
}

.msg {
  max-width: 82%; padding: .6rem .8rem; border-radius: 14px;
  font-size: .88rem; line-height: 1.45; position: relative;
  opacity: 0; transform: translateY(8px);
}
.msg.show { animation: msgIn .4s ease forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg--in  { align-self: flex-start; background: #14293A; color: #DCE9F1; border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #114D3A; color: #E4F5EC; border-bottom-right-radius: 4px; }
.msg--out strong { color: var(--amber-300); }
.msg__meta { display: block; font-size: .68rem; opacity: .55; margin-top: .35rem; }
.msg--transcript {
  align-self: center; display: inline-flex; align-items: center;
  background: transparent; color: var(--amber-300);
  font-size: .75rem; padding: .25rem .7rem; border: 1px dashed rgba(242,163,27,.4);
  border-radius: 999px;
}
.msg--transcript .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500);
  display: inline-block; margin-right: .4rem; animation: blink 1.1s infinite;
}

.msg__audio { display: flex; align-items: center; gap: .5rem; }
.msg__play { font-size: .7rem; opacity: .8; }
.msg__wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.msg__wave i { width: 3px; border-radius: 2px; background: #7FA5BC; height: 30%; }
.msg__wave i:nth-child(2n) { height: 80%; } .msg__wave i:nth-child(3n) { height: 55%; }
.msg__wave i:nth-child(5n) { height: 100%; }
.msg__len { font-size: .72rem; opacity: .7; }

.msg--typing { align-self: flex-end; background: #114D3A; display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fd8bd; animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
.msg--typing.hide { display: none; }
@keyframes blink { 0%, 70% { opacity: .35; } 35% { opacity: 1; } }

/* ================================================================
   PAIN — A PRIMEIRA LUZ (pós-horizonte)
   ================================================================ */
.pain { background: var(--dawn); padding: 5rem 0 4.5rem; }
.pain h2 { max-width: 22ch; }
.pain__grid { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
@media (min-width: 820px) { .pain__grid { grid-template-columns: repeat(3, 1fr); } }
.pain__card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.4rem 1.6rem; box-shadow: var(--shadow);
}
.pain__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--horizon);
}
.pain__stat {
  display: block; font-family: "Sora", sans-serif; font-weight: 700;
  font-size: 1.35rem; color: var(--navy-700); margin-bottom: .5rem; line-height: 1.2;
}
.pain__card p { color: var(--text-2); font-size: .95rem; }

/* ================================================================
   HOW — MANHÃ
   ================================================================ */
.how { background: var(--day); padding: 5rem 0; }
.how h2 { max-width: 24ch; }
.how__steps { margin-top: 2.6rem; display: grid; gap: 0; counter-reset: step; list-style: none; }
.how__steps li {
  counter-increment: step; position: relative;
  padding: 1.6rem 0 1.6rem 4.4rem; border-top: 1px solid var(--border);
}
.how__steps li:last-child { border-bottom: 1px solid var(--border); }
.how__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.45rem;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.5rem;
  background: var(--horizon); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.how__steps h3 { margin-bottom: .35rem; }
.how__steps p { color: var(--text-2); max-width: 62ch; }

/* ================================================================
   FEATURES — DIA CLARO
   ================================================================ */
.features { background: var(--surface); padding: 5rem 0; }
.features h2 { max-width: 26ch; }
.features__grid { margin-top: 2.4rem; display: grid; gap: 1.1rem; }
@media (min-width: 680px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.35rem; background: var(--day);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { color: var(--navy-700); margin-bottom: .4rem; }
.feature h3::after {
  content: ""; display: block; width: 30px; height: 3px; margin-top: .5rem;
  border-radius: 2px; background: var(--horizon);
}
.feature p { color: var(--text-2); font-size: .95rem; }

/* ================================================================
   DEMO — O ENTARDECER DOURADO (CTA)
   ================================================================ */
.demo {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(242,163,27,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--text-inv); padding: 5.5rem 0;
}
.demo__inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .demo__inner { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.demo__sub { color: #B9CBD6; margin: 1rem 0 1.8rem; max-width: 48ch; }
.demo__note { margin-top: .8rem; font-size: .85rem; color: #9FB4C0; }
.demo__panel {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.95rem 1.6rem 1.8rem;
}
.demo__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--horizon);
}
.demo__panel h3 { color: var(--amber-300); margin-bottom: .5rem; }
.demo__panel p { color: #C4D4DE; font-size: .95rem; }
.demo__list { list-style: none; margin: 1.1rem 0 1.5rem; display: grid; gap: .5rem; }
.demo__list li { padding-left: 1.5rem; position: relative; font-size: .93rem; color: #DCE9F1; }
.demo__list li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-500); font-weight: 700; }
.demo .btn--ghost { border-color: rgba(255,255,255,.35); color: var(--text-inv); }
.demo .btn--ghost:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-900); }

/* ================================================================
   FAQ
   ================================================================ */
.faq { background: var(--day); padding: 5rem 0; }
.faq h2 { margin-bottom: 2rem; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden;
}
.faq__item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-family: "Sora", sans-serif;
  font-weight: 600; font-size: .98rem; list-style: none; position: relative;
  padding-right: 3rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--amber-500); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 1.3rem 1.2rem; color: var(--text-2); font-size: .95rem; }

/* ================================================================
   FOOTER — A NOITE VOLTA (e a Aurivus continua acordada)
   ================================================================ */
.footer { background: var(--navy-900); color: var(--text-inv); padding: 3rem 0 2.2rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.nav__brand--foot { font-size: 1.1rem; }
.footer__tag { color: var(--amber-300); font-size: .95rem; font-family: "Sora", sans-serif; }
.footer__legal { color: #7E93A1; font-size: .8rem; }

/* ================================================================
   REVEAL ao rolar + acessibilidade de movimento
   ================================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .msg { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .msg--typing { display: none !important; }
  .btn, .feature { transition: none !important; }
}

/* ================================================================
   SHOWCASE — vídeos demonstrativos
   ================================================================ */
.showcase { background: var(--surface); padding: 5rem 0 1rem; }
.showcase__grid { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
@media (min-width: 860px) { .showcase__grid { grid-template-columns: 1fr 1fr; } }
.showcase__video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-900); box-shadow: var(--shadow);
}
.showcase__video::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--horizon); z-index: 1;
}
.showcase__video video { width: 100%; aspect-ratio: 16/9; display: block; background: var(--navy-900); }
.showcase__video figcaption {
  padding: .8rem 1.1rem; font-size: .88rem; color: var(--text-2);
  background: var(--day);
}
.section-img {
  width: 100%; border-radius: var(--radius); margin: 1.8rem 0 .4rem;
  box-shadow: var(--shadow); aspect-ratio: 21/9; object-fit: cover;
}
