/* Landing page styles — external file because the site CSP only allows style-src 'self'. */
:root {
  --bg: #0f172a;        /* slate-900 */
  --surface: #1e293b;   /* slate-800 */
  --border: #334155;    /* slate-700 */
  --text: #f1f5f9;      /* slate-100 */
  --muted: #94a3b8;     /* slate-400 */
  --dim: #64748b;       /* slate-500 */
  --accent: #3b82f6;    /* blue-500 */
  --accent-hover: #2563eb;
  --green: #34d399;     /* emerald-400 */
  --red: #f87171;       /* red-400 */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--accent); text-decoration: none; }

header {
  border-bottom: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.6);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.nav-links { display: flex; align-items: center; gap: 1rem; }

.btn {
  display: inline-block; padding: 0.6rem 1.4rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.95rem; transition: background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--dim); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

.hero { padding: 5rem 0 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 2.9rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { margin: 1.25rem 0 2rem; font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.cta-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--dim); }

.chart-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem;
  padding: 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.chart-card .card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.chart-card .card-head span:first-child { color: var(--muted); font-size: 0.85rem; }
.chart-card .card-head .pnl { color: var(--green); font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.7rem 0.9rem; }
.stat .label { font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .value { font-size: 1.15rem; font-weight: 700; }
.stat .value.pos { color: var(--green); }

section.features { padding: 4rem 0; border-top: 1px solid var(--border); }
section.how { padding: 4rem 0; border-top: 1px solid var(--border); }
h2.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
p.section-sub { color: var(--muted); margin-bottom: 2.5rem; max-width: 40rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem;
}
.feature .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent);
  color: #fff; font-weight: 700; margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

.final-cta { padding: 4.5rem 0; border-top: 1px solid var(--border); text-align: center; }
.final-cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.final-cta p { color: var(--muted); margin-bottom: 2rem; }

footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--dim); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .grid, .steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .brand { font-size: 1.15rem; }
  .nav .btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
  /* The hero repeats this CTA immediately below; header space is scarce */
  .nav-links .btn-primary { display: none; }
}
