:root {
  /* Legacy tokens kept verbatim — asserted by tests/scaffold.spec.js.
     Superseded everywhere below by the dark/glass palette. */
  --color-navy: #12213b;
  --color-navy-dark: #0e1b33;
  --color-lime: #c7f464;
  --color-coral: #ff5a5f;
  --color-white: #ffffff;
  --color-gray-100: #e7eaf0;

  /* Signature gradient: the logo's own gold-to-rose duotone, not a stock
     SaaS gradient — this is what ties "tech" execution back to the brand. */
  --gold-400: #e3c077;
  --gold-600: #c9a227;
  --rose-400: #e8aca2;
  --rose-600: #8b4a54;
  --brand-gradient: linear-gradient(135deg, var(--gold-400), var(--rose-400));

  --bg-950: #0a0a0f;
  --bg-900: #121218;
  --bg-850: #16161d;
  --glass-fill: rgba(255, 255, 255, 0.045);
  --glass-fill-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text-primary: #f5f3f0;
  --text-secondary: rgba(245, 243, 240, 0.68);
  --text-tertiary: rgba(245, 243, 240, 0.42);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-utility: 'Space Grotesk', system-ui, sans-serif;

  --container-max: 1180px;
  --container-narrow: 860px;

  --fs-hero: clamp(2.3rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.45rem + 1.1vw, 2.4rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.3vw, 1.3rem);
  --fs-lede: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);

  --space-section: clamp(64px, 7vw, 108px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold-400);
  color: #16161d;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--brand-gradient);
}

/* Glass panel: the recurring "premium tech" surface — translucent fill,
   hairline border, blur. Used for cards, FAQ items, trust pills. */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Media frame: fixed-ratio container so every photo renders predictably,
   regardless of the source crop, instead of relying on intrinsic sizing. */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-850);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.media-frame picture,
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--landscape {
  aspect-ratio: 5 / 4;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn--lime {
  background: var(--brand-gradient);
  color: var(--bg-950);
  box-shadow: 0 12px 32px -12px rgba(227, 192, 119, 0.55);
}

.btn--lime:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(227, 192, 119, 0.7);
}

.btn--large {
  padding: 18px 32px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--glass-border);
  background: rgba(10, 10, 15, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header__logo {
  height: 60px;
  width: auto;
}

.btn--compact {
  padding: 11px 20px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--bg-950);
  padding: 96px 0 100px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(227, 192, 119, 0.16) 0%, rgba(139, 74, 84, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__spine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 44px;
  align-items: center;
}

.hero__copy {
  flex: 1;
  max-width: 560px;
}

.hero__headline {
  font-size: var(--fs-hero);
}

.hero__headline .accent {
  font-style: normal;
}

.hero__subheadline {
  font-size: var(--fs-lede);
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero__actions {
  margin-top: 12px;
}

.hero__note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.hero__photo-wrap {
  flex-shrink: 0;
  width: 100%;
  max-width: 340px;
  position: relative;
}

.hero__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  background: var(--brand-gradient);
  border-radius: calc(var(--radius-lg) + 14px);
  opacity: 0.35;
  filter: blur(18px);
  z-index: -1;
}

@media (min-width: 900px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__photo-wrap {
    max-width: 400px;
  }
}

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--bg-900);
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

.trust-bar__inner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-utility);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-bar__inner span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

/* ---------- Symptoms ---------- */

.symptoms {
  padding: var(--space-section) 0;
  background: var(--bg-950);
}

.symptoms__lede {
  max-width: 60ch;
  margin-top: -8px;
}

.symptoms__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.symptom-card {
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.symptom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 192, 119, 0.35);
  background: var(--glass-fill-strong);
}

.symptom-card__icon {
  width: 30px;
  height: 30px;
  color: var(--gold-400);
  margin-bottom: 16px;
}

.symptom-card h3 {
  font-size: var(--fs-h3);
}

.symptom-card p {
  margin: 0;
}

@media (min-width: 700px) {
  .symptoms__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Método ---------- */

.metodo {
  padding: var(--space-section) 0;
  background: var(--bg-900);
}

.metodo__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.metodo__photo-wrap {
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.metodo__steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.metodo__steps li {
  position: relative;
  padding: 0 0 32px 56px;
}

.metodo__steps li:last-child {
  padding-bottom: 0;
}

.metodo__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: var(--bg-950);
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metodo__steps li::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 4px;
  width: 1px;
  background: var(--glass-border);
}

.metodo__steps li:last-child::after {
  display: none;
}

.metodo__steps h3 {
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.metodo__steps p {
  margin: 0;
}

@media (min-width: 900px) {
  .metodo__inner {
    grid-template-columns: 300px 1fr;
  }
}

/* ---------- Diferenciais ---------- */

.diferenciais {
  padding: var(--space-section) 0;
  background: var(--bg-950);
}

.diferenciais__list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.diferenciais__list li {
  position: relative;
  padding: 26px 24px 26px 28px;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.diferenciais__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

@media (min-width: 900px) {
  .diferenciais__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .diferenciais__list li:nth-child(2) {
    transform: translateY(18px);
  }
}

/* ---------- Sobre ---------- */

.sobre {
  padding: var(--space-section) 0;
  background: var(--bg-900);
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.sobre__photo-wrap {
  width: 100%;
}

.sobre blockquote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-primary);
}

@media (min-width: 900px) {
  .sobre__inner {
    grid-template-columns: 1fr 1fr;
  }

  .sobre__inner .media-frame {
    order: 2;
  }
}

/* ---------- Testimonials ---------- */

.testimonials {
  padding: var(--space-section) 0;
  background: var(--bg-950);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-card {
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 0;
}

.testimonial-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card__source {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.testimonials__rating {
  margin: 0;
  font-size: 0.95rem;
}

.testimonials__rating a {
  color: var(--gold-400);
  font-weight: 600;
}

@media (min-width: 900px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq {
  padding: var(--space-section) 0;
  background: var(--bg-900);
}

.faq__list {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  max-width: var(--container-narrow);
}

.faq__item {
  border-radius: var(--radius-md);
  padding: 4px 24px;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  padding: 22px 0;
  color: var(--text-primary);
}

.faq__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold-400);
  transition: transform 0.25s var(--ease);
}

.faq__question[aria-expanded='true'] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  margin: 0 0 22px;
  padding-top: 0;
  max-width: 62ch;
}

/* ---------- Localização ---------- */

.localizacao {
  padding: var(--space-section) 0;
  background: var(--bg-950);
}

.localizacao p {
  max-width: 56ch;
}

.localizacao iframe {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  width: 100%;
  filter: invert(0.92) hue-rotate(180deg) contrast(0.85) brightness(0.95) saturate(0.6);
}

/* ---------- CTA final ---------- */

.cta-final {
  padding: var(--space-section) 0;
  background: var(--bg-900);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(227, 192, 119, 0.14), transparent 70%);
  pointer-events: none;
}

.cta-final h2,
.cta-final__sub,
.cta-final .btn {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-size: var(--fs-h2);
}

.cta-final__sub {
  max-width: 50ch;
  margin: 0 auto 26px;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0;
  background: var(--bg-950);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
}

.site-footer__nap {
  margin: 0 0 14px;
  max-width: 68ch;
  color: var(--text-tertiary);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.site-footer a {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__lgpd {
  opacity: 0.8;
  margin-top: 16px;
  max-width: 68ch;
  font-size: 0.82rem;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: var(--bg-950);
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease);
}

.whatsapp-floating:hover {
  transform: scale(1.05);
}

.whatsapp-floating[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .whatsapp-floating {
    display: none;
  }
}

/* ---------- Scroll reveal (hero only — one deliberate moment) ---------- */

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

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

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

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

  .btn--lime:hover,
  .symptom-card:hover,
  .whatsapp-floating:hover {
    transform: none;
  }
}
