:root {
  --bg: #050914;
  --bg-card: #0a0f1e;
  --bg-card-hover: #0d1226;
  --fg: #e2e8f0;
  --fg-muted: #8892a4;
  --accent: #00F0FF;
  --accent-dim: rgba(0,240,255,0.12);
  --green: #00ff9d;
  --green-dim: rgba(0,255,157,0.15);
  --warn: #ffb547;
  --red: #ff4d6d;
  --border: rgba(255,255,255,0.06);
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5,9,20,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 2rem 80px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.8rem;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-value {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── TERMINAL ── */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: auto;
  margin-right: auto;
}
.terminal-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.log-line {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  display: flex;
  gap: 0.75rem;
  color: var(--fg-muted);
}
.log-ts { color: #3d4f6a; flex-shrink: 0; }
.log-ok { color: var(--green); }
.log-warn { color: var(--warn); }
.log-muted { color: #2a3a50; margin-top: 0.5rem; }

/* ── POSITION CARD ── */
.position-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.pc-label { font-size: 0.75rem; color: var(--fg-muted); }
.pc-count {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  font-family: 'DM Mono', monospace;
}
.pc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.pc-row:last-of-type { border-bottom: none; }
.pc-asset { color: var(--fg); font-family: 'DM Mono', monospace; }
.pc-yield { font-family: 'DM Mono', monospace; font-weight: 500; }
.pc-yield.green { color: var(--green); }
.pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  margin-top: 0.3rem;
  border-top: 1px solid rgba(0,240,255,0.15);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.pc-total {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ── SHARED SECTION STYLES ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* ── AGENT LOOP ── */
.agent-loop {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.loop-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.loop-step {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.loop-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.loop-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}
.loop-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.loop-step p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }
.loop-arrow {
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 2.5rem;
}

/* ── FEATURES ── */
.features {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card-hover); }
.feature-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.feature-card p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.65; }

/* ── DIFFERENCE ── */
.difference {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  border-top: 1px solid var(--border);
}
.diff-headline {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.diff-sub { color: var(--fg-muted); line-height: 1.65; margin-bottom: 2rem; }
.diff-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.diff-col { background: var(--bg-card); padding: 1.25rem; }
.diff-col-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.diff-col ul { list-style: none; }
.diff-col ul li {
  font-size: 0.82rem;
  color: var(--fg-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.diff-col ul li:last-child { border-bottom: none; }
.diff-right { display: flex; flex-direction: column; gap: 0; }
.diff-metric {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.diff-metric:last-child { border-bottom: none; }
.diff-metric-value {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.diff-metric-label { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.5; }

/* ── MANIFESTO ── */
.manifesto {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 2rem;
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.manifesto-quote p {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 1rem;
}
.manifesto-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.manifesto-body p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.manifesto-body p:last-child { margin-bottom: 0; }

/* ── CLOSING ── */
.closing {
  padding: 100px 2rem 120px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 0.8rem; }
.footer-meta { font-size: 0.75rem; color: #3d4f6a; font-family: 'DM Mono', monospace; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .loop-steps { grid-template-columns: 1fr; }
  .loop-arrow { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .difference { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .diff-right { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 1.25rem 60px; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .agent-loop, .features, .difference, .manifesto, .closing { padding-left: 1.25rem; padding-right: 1.25rem; }
}