/* Richard Capital — estilos globais */
:root {
  --bg: #0b0d10;
  --bg-2: #11151a;
  --card: #151a20;
  --line: #232a33;
  --text: #e9ecef;
  --muted: #9aa4af;
  --gold: #d4af37;
  --gold-2: #f1d27a;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Navegação */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #8a6d1c);
  color: #0b0d10; font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.brand span.cap { color: var(--gold); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
  font-family: inherit;
}
.btn-gold { background: var(--gold); color: #0b0d10; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212,175,55,.16), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(212,175,55,.35); border-radius: 999px; padding: 6px 12px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08; letter-spacing: -.01em; max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; max-width: 720px; }
.stat { border-left: 2px solid var(--gold); padding-left: 14px; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }

/* Seções */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-weight: 700; margin-bottom: 16px;
}

/* Prévia da plataforma */
.preview {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(212,175,55,.12); color: var(--gold); }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold); position: relative; }
.plan.featured::before {
  content: "Mais escolhido"; position: absolute; top: -12px; left: 24px;
  background: var(--gold); color: #0b0d10; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.price { font-size: 38px; font-weight: 700; margin: 10px 0 2px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Aviso de risco */
.risk {
  border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.06);
  border-radius: var(--radius); padding: 22px; color: #f3c5c5; font-size: 14px;
}
.risk strong { color: #fca5a5; }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--gold); }

/* Formulários */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.msg { margin-top: 14px; font-size: 14px; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }

/* Área do assinante */
.dash { padding: 32px 0 60px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.dash-head p { color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi strong { display: block; font-size: 24px; margin-top: 4px; }
.up { color: var(--green); }
.down { color: var(--red); }
.panels { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel h2 { font-size: 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chart-box { position: relative; height: 280px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag.buy { background: rgba(34,197,94,.14); color: var(--green); }
.tag.sell { background: rgba(239,68,68,.14); color: var(--red); }
.note { color: var(--muted); font-size: 13px; }
.banner {
  background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.35); color: var(--gold-2);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 20px;
}
.locked { text-align: center; padding: 60px 20px; }
.locked h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.locked p { color: var(--muted); margin-bottom: 24px; }
.hidden { display: none !important; }

/* Responsivo */
@media (max-width: 900px) {
  .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 64px 0 48px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 19px; }
  .nav-cta .btn-ghost { display: none; }
}
