:root {
  --bg: #0a0b0d;
  --bg-alt: #0f1114;
  --panel: #13161a;
  --text: #ecedee;
  --muted: #8b9098;
  --border: #22262c;
  --accent: #c8f560;
  --accent-2: #5ec8ff;
  --radius: 6px;
  --max: 1160px;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }
.dim { color: var(--muted); }

.eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0b0d;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); opacity: 1; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,11,13,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: .95rem; letter-spacing: .08em; }
.logo-mark { width: 18px; height: 18px; fill: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .92rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 96px 0 88px; }
.hero > .container { position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  border: 1px solid var(--border); background: var(--bg);
  padding: 6px 12px; border-radius: var(--radius); margin: 0 0 24px;
}
.dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Dashboard panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(200,245,96,.08);
  overflow: hidden;
}
.panel-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .78rem;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.chart { display: block; width: 100%; height: 180px; padding: 16px 0 0; }
.grid-lines line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .area { fill: rgba(200,245,96,.08); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease-out forwards; }
.chart .line-2 { stroke: var(--accent-2); opacity: .7; animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.kpis div { padding: 14px 16px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.kpis div:last-child { border-right: 0; }
.kpis svg { width: 100%; height: 20px; }
.kpis polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.kpis div:nth-child(3) polyline { stroke: var(--accent-2); }

/* Stat strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid div { padding: 28px 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.strip-grid div:first-child { border-left: 0; padding-left: 0; }
.strip-grid strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 1px; margin-top: 40px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { padding: 32px; background: var(--bg); transition: background .2s; }
.card:hover { background: var(--panel); }
.card:hover .card-top span:first-child { color: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.card-top { display: flex; justify-content: space-between; margin-bottom: 40px; }

/* Pipeline */
.pipeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.pipeline li { position: relative; padding: 20px 20px 0 0; border-top: 1px solid var(--border); }
.pipeline li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.pipeline .mono { display: block; color: var(--muted); margin-bottom: 8px; }
.pipeline strong { display: block; font-size: 1.1rem; font-weight: 600; }
.pipeline p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p:first-child { margin-top: 0; }

/* Company spec */
.spec { margin: 40px 0 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.spec div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--mono); font-size: .82rem; color: var(--muted); padding-top: 2px; }
.spec dd { margin: 0; }
.spec a { color: var(--accent); }

/* CTA */
.cta { text-align: center; }
.cta .lede { margin: 0 auto 32px; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .legal { margin: 4px 0 0; font-size: .75rem; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0; }
  .section { padding: 72px 0; }
  .pipeline { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--border); margin-left: 3px; }
  .pipeline li { border-top: 0; padding: 0 0 24px 24px; }
  .pipeline li::before { top: 6px; left: -4px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card-top { margin-bottom: 24px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis div:nth-child(2) { border-right: 0; }
  .kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .strip-grid div { padding: 20px 16px; }
}
