/* ===================================================================
   Truvisco - Design tokens (herdados da identidade visual aprovada)
   =================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
  /* produto - extraído do sistema de referência */
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --on-primary: #FFFFFF;

  --ink: #111827;
  --slate: #6B7280;
  --muted: #9CA3AF;
  --line: #E5E7EB;
  --paper: #FFFFFF;
  --fog: #F9FAFB;
  --mist: #F3F4F6;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);

  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --focus-ring: 0 0 0 3px rgba(16,185,129,0.25);

  --navbar-glass: rgba(255,255,255,0.78);

  /* marca - fixa, do vetor original (uso restrito ao logotipo) */
  --wordmark-ink: #030E09;
  --wordmark-dot: #035C24;

  --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F4F6;
    --slate: #9CA6AF;
    --muted: #6B7680;
    --line: #232D28;
    --paper: #0B1210;
    --fog: #111815;
    --mist: #17201C;
    --wordmark-ink: #E7EDEA;
    --wordmark-dot: #35D07F;
    --navbar-glass: rgba(11,18,16,0.72);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 6px 14px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 34px rgba(0,0,0,0.5);
    --shadow-xl: 0 26px 60px rgba(0,0,0,0.6);
    --focus-ring: 0 0 0 3px rgba(16,185,129,0.35);
    color-scheme: dark;
  }
}

/* ===================================================================
   Reset & base
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; line-height: 1.15; }
p { text-wrap: pretty; }

::selection { background: var(--primary); color: var(--on-primary); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================================
   Typography scale
   =================================================================== */

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--slate);
  font-size: 16px;
  max-width: 52ch;
}

.section-head {
  margin-bottom: 44px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head.center .section-subtitle { margin-inline: auto; }

section { padding-block: 88px; }

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: var(--on-primary);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(-2px) scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }

.btn-lg { padding: 1rem 2rem; font-size: 16px; }

.btn-icon svg, .btn-icon i { font-size: 1.15em; }

/* ===================================================================
   Header / Navigation
   =================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 14px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navbar-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.brand svg { height: 30px; width: auto; }
.brand .wm-fill { fill: var(--wordmark-ink); }
.brand .wm-dot { fill: var(--wordmark-dot); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  transition: color 160ms var(--ease-out);
  padding: 6px 2px;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-drawer { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn:not(.nav-toggle) { display: none; }

  .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    padding: 100px 28px 40px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  .nav-drawer.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-drawer a {
    font-size: 20px;
    font-weight: 600;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer .btn { margin-top: 20px; width: 100%; }
}

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  padding-top: 96px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title .brand-line {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual { position: relative; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero { padding-top: 88px; }
}

/* ---- product mockup (dashboard + chat preview) ---- */

.mockup {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}
.mockup-chrome span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-chrome .r { background: var(--danger); }
.mockup-chrome .y { background: var(--warning); }
.mockup-chrome .g { background: var(--primary); }
.mockup-chrome .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--mist);
  padding: 3px 10px;
  border-radius: 6px;
}
.mockup-body { display: flex; min-height: 340px; }
.mockup-sidebar {
  width: 68px;
  background: var(--fog);
  border-right: 1px solid var(--line);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-sidebar .item {
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}
.mockup-sidebar .item.active { background: var(--gradient); border-color: var(--primary); }

.mockup-main { flex: 1; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 84%;
}
.chat-bubble.in { align-self: flex-start; }
.chat-bubble.out { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient); flex-shrink: 0;
}
.chat-text {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--fog);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
}
.chat-bubble.out .chat-text { background: var(--gradient); color: var(--on-primary); border-color: transparent; }

.chat-meta {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  padding-top: 4px;
}

/* ===================================================================
   Stat strip
   =================================================================== */

.stat-strip {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip .container {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13.5px;
  color: var(--slate);
}

/* ===================================================================
   Diferenciais - auto-rotating carousel (right to left)
   =================================================================== */

@keyframes truvisco-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: truvisco-marquee 46s linear infinite;
}
.carousel-wrap:hover .carousel-track { animation-play-state: paused; }

.diff-card {
  flex: 0 0 clamp(240px, 30vw, 300px);
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.diff-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,0.12);
  color: var(--primary-dark);
  font-size: 22px;
  margin-bottom: 18px;
}
.diff-card h3 { font-size: 17px; margin-bottom: 8px; }
.diff-card p { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* ===================================================================
   Product preview - real screenshot with hover zoom
   =================================================================== */

.preview-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.preview-frame:hover {
  border-color: var(--primary);
  box-shadow: 0 30px 70px rgba(16,185,129,0.18), var(--shadow-xl);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}
.preview-chrome span { width: 10px; height: 10px; border-radius: 50%; }
.preview-chrome .r { background: var(--danger); }
.preview-chrome .y { background: var(--warning); }
.preview-chrome .g { background: var(--primary); }
.preview-chrome .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--mist);
  padding: 3px 10px;
  border-radius: 6px;
}

.preview-image-wrap {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--paper);
}
.preview-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translate(0, 0);
  transition: width 350ms var(--ease-out), transform 260ms var(--ease-out);
  will-change: width, transform;
}
.preview-frame:hover .preview-image-wrap img {
  width: 150%;
}

.preview-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(11,18,16,0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  pointer-events: none;
}
.preview-frame:hover .preview-badge { opacity: 1; transform: translateY(0); }
.preview-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,236,104,0.25);
}

@media (prefers-reduced-motion: reduce) {
  .preview-image-wrap img { transition: none; }
  .preview-frame:hover .preview-image-wrap img { transform: none; }
}

/* ===================================================================
   Funcionalidades - tabs + grid
   =================================================================== */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all 160ms var(--ease-out);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.tab-btn[aria-selected="true"] {
  background: var(--gradient);
  color: var(--on-primary);
  border-color: transparent;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.func-grid {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.func-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: truvisco-marquee 32s linear infinite;
}
.func-grid:hover .func-track { animation-play-state: paused; }

.func-card {
  flex: 0 0 270px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.func-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.func-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,0.1);
  color: var(--primary-dark);
  font-size: 19px;
  margin-bottom: 14px;
}
.func-card h4 { font-size: 15.5px; margin-bottom: 10px; }
.func-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--slate);
  padding: 4px 0;
}
.func-list li i { color: var(--primary); font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* ===================================================================
   Benefícios
   =================================================================== */

.beneficios-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 48px;
}
.beneficio-item {
  display: flex;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.beneficio-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.35;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
}
.beneficio-item h3 { font-size: 17px; margin-bottom: 6px; }
.beneficio-item p { font-size: 14px; color: var(--slate); }

@media (max-width: 760px) {
  .beneficios-list { grid-template-columns: 1fr; gap: 0; }
}

/* ===================================================================
   FAQ
   =================================================================== */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 22px 20px;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ===================================================================
   CTA final
   =================================================================== */

.cta-final {
  background: var(--fog);
  text-align: center;
}
.cta-final .container { max-width: 620px; }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.cta-final p { color: var(--slate); font-size: 16px; margin-bottom: 32px; }

/* ===================================================================
   Footer
   =================================================================== */

.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand svg { height: 26px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--slate); font-size: 14px; max-width: 32ch; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--slate); transition: color 160ms var(--ease-out); }
.footer-col a:hover { color: var(--primary-dark); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===================================================================
   Scroll reveal (IntersectionObserver-driven)
   =================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   Legal / stub pages
   =================================================================== */

.legal-page {
  padding-top: calc(96px + 40px);
  padding-bottom: 80px;
}
.legal-page .container { max-width: 720px; }
.legal-page h1 { font-size: 32px; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 32px; }
.legal-page h2 { font-size: 20px; margin-top: 40px; margin-bottom: 12px; }
.legal-page h3 { font-size: 16px; margin-top: 24px; margin-bottom: 8px; }
.legal-page p { color: var(--ink); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.legal-page ul { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.legal-page ul li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.legal-page strong { color: var(--ink); font-weight: 600; }
.legal-page a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--slate);
}
