/* ============================================
   CodeNode — Porta-Voz Virtual com IA
   Tema claro inspirado na identidade visual
   ============================================ */

:root {
  --orange: #b54800;
  --orange-light: #963a00;
  --orange-dark: #7e3000;
  --orange-rgb: 181, 72, 0;
  --bg: #fbf8f3;
  --bg-alt: #f3eee6;
  --surface: #ffffff;
  --surface-2: #f8f4ee;
  --border: #ded6cc;
  --border-orange: rgba(var(--orange-rgb), 0.38);
  --text: #1f1a17;
  --text-muted: #57534e;
  --text-dim: #78716c;
  --green: #137a42;
  --red: #b42318;
  --yellow: #8a5700;
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --header-h: 76px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-light);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ============ Tipografia ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}

h3.block-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 56px 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--orange);
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 780px;
}

.section-highlight {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--text);
}

.section-highlight strong,
.hero-tagline strong {
  color: var(--orange);
}

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(251, 248, 243, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 248, 243, 0.96);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.brand-text strong {
  font-weight: 800;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--transition);
}

.lang-btn.active {
  color: var(--orange);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-sep {
  color: var(--border);
  font-size: 0.8rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 26px rgba(var(--orange-rgb), 0.24);
}

.btn-primary:hover {
  background: var(--orange-light);
  color: #fff;
  box-shadow: 0 10px 32px rgba(var(--orange-rgb), 0.32);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--border-orange);
  color: var(--orange);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(var(--orange-rgb), 0.08);
  border-color: var(--orange);
  color: var(--orange-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--orange-rgb), 0.16) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.glow-1 {
  width: 520px;
  height: 520px;
  background: var(--orange);
  top: -160px;
  right: -120px;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: var(--orange-dark);
  bottom: -200px;
  left: -140px;
  opacity: 0.14;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(120deg, var(--text) 30%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 14px;
}

.hero-note {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============ Seções ============ */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

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

/* ============ Grids e Cards ============ */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-orange);
  box-shadow: 0 16px 40px rgba(63, 45, 30, 0.13);
}

.card:hover::before {
  opacity: 1;
}

.card h4 {
  font-size: 1.02rem;
  margin-bottom: 10px;
  color: var(--text);
}

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

.card-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.9;
  margin-bottom: 12px;
}

.card-mini {
  padding: 22px;
}

.card-segment h4::before {
  content: '';
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange);
  margin-bottom: 14px;
}

/* ============ Painéis ============ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.panel h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.panel-ok { border-color: rgba(19, 122, 66, 0.3); }
.panel-ok .panel-icon { background: rgba(19, 122, 66, 0.12); color: var(--green); }

.panel-no { border-color: rgba(180, 35, 24, 0.28); }
.panel-no .panel-icon { background: rgba(180, 35, 24, 0.1); color: var(--red); }

.panel-warn { border-color: rgba(138, 87, 0, 0.32); }
.panel-warn .panel-icon { background: rgba(138, 87, 0, 0.1); color: var(--yellow); }

/* ============ Listas ============ */
.check-list,
.x-list,
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li,
.x-list li,
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.x-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 800;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(var(--orange-rgb), 0.35);
}

.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ Callout / Highlight ============ */
.callout {
  margin-top: 40px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(var(--orange-rgb), 0.06);
  border: 1px solid var(--border-orange);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.callout strong {
  color: var(--orange);
}

.big-highlight {
  margin-top: 40px;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--orange-rgb), 0.12), rgba(var(--orange-rgb), 0.025));
  border: 1px solid var(--border-orange);
  text-align: center;
}

.big-highlight h3 {
  font-size: 1.25rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.big-highlight p {
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
}

.footnote {
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

/* ============ Setup / Price cards ============ */
.setup-grid {
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card-featured {
  border-color: var(--border-orange);
  background: linear-gradient(160deg, rgba(var(--orange-rgb), 0.09), var(--surface) 45%);
  box-shadow: 0 20px 60px rgba(var(--orange-rgb), 0.1);
}

.price-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.price-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
}

.price-from {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

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

.price-disclaimer {
  margin-top: auto;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.consent-box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(var(--orange-rgb), 0.07);
  border: 1px dashed var(--border-orange);
  font-size: 0.87rem;
  color: var(--text-muted);
}

.consent-box strong {
  color: var(--orange);
}

/* ============ Planos ============ */
.plans-grid {
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-orange);
  box-shadow: 0 20px 50px rgba(63, 45, 30, 0.14);
}

.plan-featured {
  border-color: var(--orange);
  background: linear-gradient(170deg, rgba(var(--orange-rgb), 0.12), var(--surface) 50%);
  box-shadow: 0 24px 60px rgba(var(--orange-rgb), 0.13);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.28);
}

.plan-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.plan-name {
  font-size: 1.5rem;
  color: var(--text);
}

.plan-videos {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 4px;
}

.plan-card .check-list {
  margin-bottom: 22px;
  flex-grow: 1;
}

/* ============ Timeline ============ */
.timeline {
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), rgba(var(--orange-rgb), 0.08));
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}

.timeline-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(var(--orange-rgb), 0.12), 0 8px 20px rgba(var(--orange-rgb), 0.22);
  z-index: 1;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  padding-top: 8px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ============ Tabela ============ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.addons-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--surface);
}

.addons-table th,
.addons-table td {
  text-align: left;
  padding: 15px 22px;
  font-size: 0.93rem;
}

.addons-table thead th {
  background: rgba(var(--orange-rgb), 0.1);
  color: var(--orange-dark);
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-orange);
}

.addons-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.addons-table tbody tr:last-child {
  border-bottom: none;
}

.addons-table tbody tr:hover {
  background: rgba(var(--orange-rgb), 0.05);
}

.addons-table td:first-child {
  color: var(--text-muted);
}

.addons-table td:last-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* ============ CTA Final ============ */
.final-cta {
  margin-top: 72px;
  text-align: center;
  padding: 64px 32px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(var(--orange-rgb), 0.15), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-orange);
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  max-width: 720px;
  margin-inline: auto;
}

.final-cta p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  background: #ede5dc;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ============ Animações de reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============ Responsivo ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(251, 248, 243, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
  }

  .price-card,
  .plan-card {
    padding: 26px 22px;
  }

  .timeline::before {
    left: 27px;
  }

  .timeline-num {
    width: 42px;
    height: 42px;
  }

  .final-cta {
    padding: 48px 20px;
  }
}
