/* ==========================================================================
   TRACE/CON — vitrine (landing)
   Paleta: grafite + azul-elétrico (operacional) + âmbar (risco) + verde (ok).
   ========================================================================== */

:root {
  --bg:           #0E1116;
  --bg-elev:      #151A21;
  --bg-inset:     #0A0D12;
  --line:         #1E242E;
  --line-strong:  #2A323E;
  --ink:          #E6EAF2;
  --ink-2:        #A8B1C0;
  --ink-3:        #6B7280;
  --accent:       #5EE6FF;
  --accent-mut:   #7BC9D7;
  --warn:         #F5A524;
  --ok:           #4ADE80;
  --bad:          #F87171;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--accent-mut);
}
pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  border-radius: 2px;
  overflow-x: auto;
  margin-top: 10px;
  color: var(--ink-2);
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ===================== TOPBAR ===================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { color: var(--accent); font-size: 18px; }
.brand-name { font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-slash { color: var(--accent); font-weight: 400; }
.brand-version { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 2px;
}
.nav-cta:hover { background: #7DF0FF; color: var(--bg) !important; }
@media (max-width: 720px) {
  .nav { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 32px 100px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.hero-text h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero-accent { color: var(--accent); }
.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 28px;
}
.lede b { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }

.hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  position: relative;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* demo (down-bar preview) */
.hero-demo { position: relative; }
.demo-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(-1deg);
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--line);
}
.demo-titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-3);
}
.demo-titlebar .d1 { background: #F87171; }
.demo-titlebar .d2 { background: #F5A524; }
.demo-titlebar .d3 { background: #4ADE80; }
.demo-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.demo-content { padding: 24px 24px 28px; }
.demo-chart {
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}
.demo-spark { height: 80px; }
.demo-spark svg { width: 100%; height: 100%; display: block; }
.demo-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.demo-price span {
  font-size: 14px;
  color: var(--ok);
  margin-left: 10px;
  font-weight: 500;
}

.demo-downbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--ok);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.18);
}
.db-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--line);
}
.db-signal.is-buy  { color: var(--ok); border-right-color: rgba(74, 222, 128, 0.3); }
.db-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.db-info {
  display: flex;
  gap: 18px;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 12px;
}
.db-info b { color: var(--ink); font-weight: 600; }
.db-info b:not([class]) { color: var(--accent); }
.db-btn {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink-2);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.db-min {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
  padding: 12px 14px;
  font-size: 14px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 600px;
}

/* ===================== STEPS ===================== */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.15s ease;
}
.steps li:hover { border-color: var(--line-strong); }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.steps h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.steps p { color: var(--ink-2); font-size: 14px; }

/* ===================== PLANOS ===================== */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan-featured {
  border-color: var(--accent);
  position: relative;
  background: linear-gradient(180deg, rgba(94, 230, 255, 0.04) 0%, var(--bg-elev) 40%);
}
.plan-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan-featured .plan-tag { color: var(--warn); }
.plan h3 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.plan-price b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 36px;
  color: var(--ink);
}
.plan-price span { color: var(--ink-3); font-size: 14px; }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan-foot { font-size: 12px; color: var(--ink-3); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===================== INSTALL STEPS ===================== */
.install-steps {
  list-style: none;
  counter-reset: install;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.install-steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.install-steps > li > div { display: flex; flex-direction: column; gap: 8px; }
.install-steps h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
}
.install-steps p { color: var(--ink-2); font-size: 14px; }
.install-steps .ext-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}
.install-steps .btn { margin-top: 6px; align-self: flex-start; }

/* ===================== CTA FINAL ===================== */
.cta-final {
  margin-top: 56px;
  padding: 48px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-align: center;
}
.cta-final h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 8px;
}
.cta-final p {
  color: var(--ink-2);
  margin-bottom: 24px;
  font-size: 15px;
}
.btn-large {
  padding: 14px 28px;
  font-size: 14px;
}

/* ===================== FAQ ===================== */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  padding: 0;
}
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.faq details > p b { color: var(--ink); }

/* ===================== BOTÕES ===================== */
.btn {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: var(--bg-inset);
  color: var(--ink);
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-primary:hover { background: #7DF0FF; border-color: #7DF0FF; color: var(--bg); }
.btn-ghost { background: transparent; }

/* ===================== FOOTER ===================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-sep { color: var(--line-strong); }
.footer a { color: var(--ink-2); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 64px; }
  .hero-text h1 { font-size: 36px; }
  .hero-meta { grid-template-columns: 1fr; }
  .demo-frame { transform: none; }
  .section { padding: 56px 24px; }
  .section-head h2 { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .hero-demo { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}