:root {
  --bg: #ffffff;
  --bg-alt: #f2f7fb;
  --bg-card: #ffffff;
  --border: #e1e9f0;
  --text: #14202b;
  --text-muted: #4a5b6a;
  --brand: #1b4f72;
  --brand-dark: #123650;
  --brand-light: #5aa2e0;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 40, 60, 0.08);
  --max-width: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(27, 79, 114, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.lead {
  font-size: 1.15rem;
  max-width: 620px;
}

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-mark {
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.brand-mark .accent {
  color: var(--brand);
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.site-nav a:hover {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 79, 114, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-ghost:hover {
  background: rgba(27, 79, 114, 0.06);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(90, 162, 224, 0.28), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-facts {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 220px;
}

.hero-fact svg {
  flex: none;
  color: var(--brand);
  margin-top: 2px;
}

/* Mockup ilustrativo da TV — desenhado em CSS, sem depender de foto/print real.
   A tela reproduz de verdade a geometria do Modo Conteúdo + Propaganda: vídeo
   ocupando 83,33% (top:0/right:0/left:16.6667%/bottom:16.6667%), a mesma escala
   5/6 usada em player/style.css pro vídeo encolhido, com a propaganda revelada
   em L atrás dele — não é um desenho genérico, é a proporção real do produto. */
.tv-mockup {
  position: relative;
}

.tv-bezel {
  background: linear-gradient(155deg, #17232d, #0a1116);
  border-radius: 22px;
  padding: 12px 12px 0;
  box-shadow: 0 30px 60px -24px rgba(10, 20, 30, 0.55), var(--shadow);
}

.tv-mockup .screen {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: radial-gradient(120% 140% at 20% 15%, #22323f, #0c151c 65%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tv-mockup .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 38%);
  pointer-events: none;
}

.screen-ad {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, var(--brand-light), var(--brand) 72%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5% 4%;
  gap: 2px;
}

.screen-ad .ad-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.screen-ad .ad-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
}

.screen-ad .ad-note {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.screen-video {
  position: absolute;
  top: 0;
  right: 0;
  left: 16.6667%;
  bottom: 16.6667%;
  z-index: 2;
  background: radial-gradient(140% 140% at 30% 18%, #274454, #0c1a22 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -3px 3px 16px rgba(0, 0, 0, 0.3);
}

.screen-video .video-live {
  position: absolute;
  top: 8%;
  left: 6%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
}

.screen-video .video-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5252;
}

.screen-video .video-play {
  width: 15%;
  height: auto;
  color: rgba(255, 255, 255, 0.9);
}

.tv-brand {
  text-align: center;
  padding: 9px 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.32);
}

.tv-stand-neck {
  width: 15%;
  aspect-ratio: 5 / 2;
  background: linear-gradient(180deg, #17232d, #0a1116);
  margin: 0 auto;
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
}

.tv-stand-base {
  width: 36%;
  height: 8px;
  background: #0a1116;
  margin: 6px auto 0;
  border-radius: 6px;
  box-shadow: 0 14px 26px -10px rgba(10, 20, 30, 0.5);
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 56px;
  text-align: left;
}

/* ---------- Como funciona ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(27, 79, 114, 0.16);
  line-height: 1;
  margin-bottom: 12px;
}

.step-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(27, 79, 114, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 14px;
}

/* ---------- Features grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-card.highlight {
  border-color: var(--brand-light);
  background: linear-gradient(180deg, rgba(90, 162, 224, 0.08), transparent 60%);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(27, 79, 114, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(90, 162, 224, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* ---------- Segmentos ---------- */

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

.segment-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

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

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-icon {
  flex: none;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

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

.cta-final {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
}

.cta-final h2,
.cta-final p {
  position: relative;
  color: #fff;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
  position: relative;
}

.cta-final .btn-primary:hover {
  background: #eef4f9;
}

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom .dev-credit {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.footer-bottom .dev-credit:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---------- Demo form page ---------- */

.demo-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.demo-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.demo-wrap {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(90, 162, 224, 0.25);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
}

.demo-back:hover {
  color: var(--brand);
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 18px;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(43, 138, 62, 0.12);
  color: #1e6b30;
}

.form-status.error {
  background: rgba(200, 60, 60, 0.12);
  color: #a12c2c;
}

/* ---------- Responsivo ---------- */

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

  .steps,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .site-nav .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav.site-nav {
    gap: 16px;
  }

  .steps,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-final {
    padding: 40px 24px;
  }

  .demo-card {
    padding: 28px 22px;
  }

  section {
    padding: 64px 0;
  }
}

.site-nav.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 20px 24px;
  gap: 18px;
}
