/* ===== Tokens ===== */
:root {
  --bg: #000;
  --surface: #1c1c1c;
  --surface-2: #262626;
  --line: #2f2f2f;
  --text: #fff;
  --text-soft: #c9c9c9;
  --text-dim: #8e8e8e;
  --ok: #4ade80;
  --pending: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --topbar-h: 66px;
  --container: 1220px;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --glass: linear-gradient(135deg, #f6d9c4 0%, #f2c9e0 28%, #d6c6f5 60%, #b9b4f7 100%);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #b9b4f7; outline-offset: 3px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.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;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e9e9e9; }
.btn-ghost { background: var(--surface); color: #fff; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.link-arrow { font-size: 15px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Topo ===== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 32px;
  background: rgba(28, 28, 28, .92);
  backdrop-filter: blur(14px);
  transition: background .25s ease;
}
.topbar.scrolled { background: rgba(20, 20, 20, .96); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img, .footer-brand img { filter: invert(1); }
.menu { display: flex; align-items: center; gap: 36px; }
.menu a { text-decoration: none; font-size: 14px; color: var(--text-soft); transition: color .15s; }
.menu a:hover { color: #fff; }
.menu-actions-mobile { display: none; }
.topbar-actions { display: flex; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--surface); position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: #fff;
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Seções ===== */
main { padding-top: var(--topbar-h); }
.section { padding: 110px 0; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; }
h3 { font-size: 20px; font-weight: 500; }
.lead { font-size: 17px; color: var(--text-soft); max-width: 680px; margin: 22px 0 0; }
.center .lead, .lead.center { margin-inline: auto; }
.note { font-size: 14px; color: var(--text-soft); margin-top: 36px; }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  min-height: calc(100vh - var(--topbar-h)); padding: 56px 0 72px;
}
.hero-text p { margin-top: 28px; font-size: 17px; color: var(--text-soft); max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.center-actions { justify-content: center; }

/* Cartão de vidro */
.glass-bg {
  position: relative; border-radius: var(--radius); background: var(--glass);
  padding: 48px 36px; overflow: hidden; color: #1a1a1a;
}
.glass-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(255,190,150,.45), transparent 70%);
}
.glass-bg > * { position: relative; z-index: 1; }
.glass-bg.tall { min-height: 520px; display: flex; align-items: center; }
.glass-bg.square { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }

.prompt-card {
  background: #fff; border-radius: 18px; padding: 28px 30px;
  font-size: 24px; line-height: 1.5; letter-spacing: -.01em;
  box-shadow: 0 20px 50px rgba(60, 40, 120, .18);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 8px;
  color: #9333ea; font-weight: 500; background: #faf5ff;
}
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-blue { background: #3b82f6; }
.dot-green { background: #22c55e; }

.answer-card {
  margin-top: 18px; background: rgba(255, 255, 255, .82); border-radius: 18px; padding: 22px 24px;
  backdrop-filter: blur(6px);
}
.answer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.answer-badge { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.answer-note { font-size: 12px; color: #6b6b6b; }
.answer-list li { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid rgba(0,0,0,.08); }
.answer-list strong { font-weight: 600; font-size: 15px; }
.answer-list span { font-size: 13px; color: #555; }
.answer-list li.muted { opacity: .55; }

/* ===== Princípios ===== */
.principles { padding: 24px 0 8px; text-align: center; }
.principles-title { color: var(--text-dim); font-size: 17px; max-width: 640px; margin: 0 auto; }
.principles-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.principles-list li {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; color: var(--text-soft);
}

/* ===== Divisão ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-content p { margin-top: 20px; color: var(--text-soft); font-size: 16px; max-width: 480px; }
.split-content .link-arrow { display: inline-block; margin-top: 28px; }

/* Passo (visual do acordeão) */
.step-card {
  background: #fff; border-radius: 22px; padding: 32px; width: 100%;
  box-shadow: 0 20px 50px rgba(60, 40, 120, .18);
  transition: opacity .25s ease, transform .25s ease;
}
.step-card.swap { opacity: 0; transform: translateY(8px); }
.step-number {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: #f3e8ff; color: #7e22ce;
}
.step-card h3 { margin-top: 16px; font-size: 24px; letter-spacing: -.01em; color: #111; }
.step-card p { margin-top: 10px; color: #555; font-size: 15px; }
.step-demo { margin-top: 22px; display: grid; gap: 10px; }
.demo-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: #f6f5fa; font-size: 14px; color: #222;
}
.demo-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.demo-tag.ok { background: #dcfce7; color: #166534; }
.demo-tag.pending { background: #fef3c7; color: #92400e; }
.demo-tag.info { background: #e0e7ff; color: #3730a3; }

/* ===== Acordeão ===== */
.accordion { max-width: 520px; margin-left: auto; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger, .faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; padding: 22px 0; text-align: left; font-size: 17px;
  color: var(--text-soft); transition: color .2s;
}
.acc-item.open .acc-trigger, .acc-trigger:hover, .faq-trigger:hover, .faq-item.open .faq-trigger { color: #fff; }
.acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%);
  transition: transform .25s ease;
}
.acc-icon::after { transform: translateY(-50%) rotate(90deg); }
.acc-item.open .acc-icon::after, .faq-item.open .acc-icon::after { transform: translateY(-50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc-panel > p { overflow: hidden; color: var(--text-dim); font-size: 15px; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.open .acc-panel > p { padding-bottom: 24px; }

/* ===== Cartões ===== */
.cards-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; transition: background .2s; }
.card:hover { background: var(--surface-2); }
.card p { margin-top: 16px; color: var(--text-soft); font-size: 15px; }
.note a { text-decoration: underline; }

/* ===== Abas ===== */
.tabs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; margin-top: 64px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tab {
  background: none; border: 0; text-align: left; padding: 14px 0; font-size: 20px;
  color: var(--text-dim); transition: color .2s;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; }
.tab-text { color: var(--text-soft); font-size: 16px; max-width: 560px; margin-bottom: 24px; }
.tab-panel { animation: fade .35s ease; }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mock-window {
  border-radius: 18px; overflow: hidden; background: #f6f6f8; color: #1b1b1b;
  border: 1px solid #333; box-shadow: 0 0 0 8px #0b0b14, 0 30px 60px rgba(90, 70, 200, .25);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #e5e5ea; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: #6b6b6b; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mock-table th { text-align: left; font-weight: 600; font-size: 12px; color: #6b6b6b; padding: 14px 18px; background: #fafafc; }
.mock-table td { padding: 15px 18px; border-top: 1px solid #e9e9ee; }
.mock-table td.ok, .mock-table td.pending { font-weight: 600; font-size: 13px; }
.mock-table td.ok { color: #15803d; }
.mock-table td.pending { color: #b45309; }

/* ===== Integrações ===== */
.integration-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 360px; }
.integration-chips li {
  background: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(60, 40, 120, .15);
}
.soon { font-size: 13px; font-weight: 600; color: #4b3c7a; }

/* ===== FAQ ===== */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-panel p { color: var(--text-dim); font-size: 15px; padding-bottom: 24px; max-width: 700px; }
.faq-panel[hidden] { display: none; }

/* ===== CTA final ===== */
.cta-final { text-align: center; }
.cta-final .lead { margin-inline: auto; }
.cta-final .hero-actions { margin-top: 40px; }

/* ===== Rodapé ===== */
.footer { background: #1c1c1c; padding: 56px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.footer-brand img { border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { text-decoration: none; font-size: 14px; color: var(--text-soft); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #2f2f2f;
  font-size: 13px; color: var(--text-dim);
}

/* ===== Animação de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Espaço do vídeo no topo */
.video-slot {
  display: block; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; object-fit: cover; margin-inline: auto;
  border-radius: var(--radius); background: var(--surface);
}

/* Formulário de contato */
.contact-form { max-width: 620px; margin: 48px auto 0; display: grid; gap: 16px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: #fff; font: inherit; font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: 2px solid #b9b4f7; outline-offset: 1px; }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.form-submit { justify-self: center; margin-top: 8px; }
.form-feedback { text-align: center; font-size: 14px; color: var(--text-soft); min-height: 1.5em; }
.form-feedback.erro { color: #f87171; }

/* Exemplo de pergunta na seção Sobre */
.sobre-visual { max-width: 720px; margin: 64px auto 0; text-align: left; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .menu { gap: 22px; }
  .topbar-actions .btn-ghost { display: none; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .menu-toggle { display: block; }
  .topbar-actions { display: none; }
  .menu {
    position: fixed; inset: var(--topbar-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 24px 28px; background: #141414; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu .btn { border-bottom: 0; }
  .menu-actions-mobile { display: grid; gap: 10px; padding-top: 20px; }

  .section { padding: 72px 0; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding: 40px 0 56px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .accordion { margin: 0; max-width: none; }
  .cards-two { grid-template-columns: 1fr; }
  .tabs-layout { grid-template-columns: 1fr; gap: 28px; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .tab { white-space: nowrap; padding: 10px 16px; font-size: 15px; border-radius: 999px; background: var(--surface); }
  .tab.active { background: #fff; color: #000; }
  .glass-bg { padding: 28px 20px; }
  .glass-bg.tall { min-height: 0; }
  .prompt-card { font-size: 19px; padding: 22px; }
  .mock-table { font-size: 13px; }
  .mock-table th, .mock-table td { padding: 12px; }
}

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