/*
  Design Philosophy: Neo-Editorial Clinical Noir
  Este arquivo estabelece a base visual compartilhada da PrimeVia.
  A lógica do sistema combina fundos profundos, contraste editorial,
  tipografia aspiracional e detalhes metálicos discretos.
*/

:root {
  --bg: #07111f;
  --bg-elevated: #0d1a2b;
  --bg-panel: rgba(12, 25, 43, 0.84);
  --bg-panel-strong: rgba(8, 18, 32, 0.94);
  --surface: #12233a;
  --surface-soft: #172d49;
  --surface-muted: #1f395b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7f3;
  --text-soft: rgba(247, 247, 243, 0.8);
  --text-muted: rgba(247, 247, 243, 0.62);
  --text-dark: #0c1624;
  --primary: #0f3b72;
  --primary-bright: #1c5fb5;
  --secondary: #0f2037;
  --accent: #d7a56b;
  --accent-deep: #b78046;
  --accent-soft: #f0dbc4;
  --success: #61d3a3;
  --warning: #efb857;
  --danger: #ff7e86;
  --shadow-xl: 0 28px 70px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.2);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-height: 74px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(28, 95, 181, 0.16), transparent 30%),
    radial-gradient(circle at 100% 15%, rgba(215, 165, 107, 0.12), transparent 26%),
    linear-gradient(180deg, #08111d 0%, #07111f 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.085;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
  z-index: -2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

strong {
  color: var(--text);
}

::selection {
  background: rgba(215, 165, 107, 0.28);
  color: #fff;
}

main {
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section--tight {
  padding: 4rem 0;
}

.section--dense {
  padding: 3rem 0;
}

.surface {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 165, 107, 0.32);
  background: rgba(215, 165, 107, 0.09);
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d6b5 0%, var(--accent) 100%);
  box-shadow: 0 0 18px rgba(215, 165, 107, 0.38);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-heading h2,
.section-heading h3,
.display-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(2rem, 6vw, 3.7rem);
}

.section-heading p,
.lead {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 62ch;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f2ddc5 42%, #c98a44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
  will-change: transform;
}

.btn-primary {
  color: #0f1724;
  background: linear-gradient(135deg, #f4dcc4 0%, var(--accent) 40%, var(--accent-deep) 100%);
  box-shadow: 0 14px 35px rgba(183, 128, 70, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(183, 128, 70, 0.38);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(215, 165, 107, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.link-inline {
  color: var(--accent-soft);
  font-weight: 600;
  transition: color var(--transition);
}

.link-inline:hover,
.link-inline:focus-visible {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 35%, rgba(215, 165, 107, 0.36) 60%, transparent 100%);
  opacity: 0.45;
}

.site-header.scrolled {
  background: rgba(5, 10, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.4rem;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3ddc4 0%, var(--accent) 38%, #6a4222 100%);
  color: #0f1621;
  box-shadow: 0 0 0 6px rgba(215, 165, 107, 0.08);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
}

.brand-copy small {
  display: block;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.brand-copy strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition), opacity var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.trust-line,
.stars-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.stars {
  color: #f2cc7a;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}

.badge-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.badge strong,
.pill strong {
  color: #fff;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7e1ca 0%, var(--accent) 100%);
  box-shadow: 0 0 0 5px rgba(215, 165, 107, 0.12);
}

.panel-card,
.card {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 39, 62, 0.88) 0%, rgba(12, 24, 40, 0.88) 100%);
  box-shadow: var(--shadow-md);
}

.metric-card,
.stat-card,
.info-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 36, 58, 0.88) 0%, rgba(9, 18, 31, 0.92) 100%);
  box-shadow: var(--shadow-md);
}

.kicker {
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-muted);
}

.text-soft {
  color: var(--text-soft);
}

.highlight {
  color: var(--accent-soft);
}

.grid-auto {
  display: grid;
  gap: 1.15rem;
}

.split-grid {
  display: grid;
  gap: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 35, 56, 0.75) 0%, rgba(8, 17, 29, 0.92) 100%);
  overflow: clip;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  color: #fff;
  text-align: left;
  font-weight: 600;
}

.faq-icon {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(215, 165, 107, 0.24);
  color: var(--accent-soft);
  transition: transform var(--transition), background var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-soft);
  transition: max-height 320ms ease, opacity 220ms ease;
  opacity: 0;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
  opacity: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(215, 165, 107, 0.08);
}

.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0) 0%, rgba(6, 13, 23, 0.82) 100%);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.legal-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hide-mobile {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(215, 165, 107, 0.18);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(215, 165, 107, 0);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (min-width: 720px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }

  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-auto.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-auto.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hide-mobile {
    display: initial;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 6.5rem 0;
  }

  .section--tight {
    padding: 4.75rem 0;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (max-width: 959px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 719px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section--tight {
    padding: 3.5rem 0;
  }

  .btn,
  button.btn,
  a.btn {
    width: 100%;
  }

  .section-heading h2 {
    max-width: 14ch;
  }

  .site-header::after {
    opacity: 0.28;
  }
}
