/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #070E1B;
  --bg-surface: #0B1426;
  --bg-card: #111D33;
  --bg-elevated: #162440;
  --fg: #E8ECF1;
  --fg-dim: #8B99AD;
  --fg-muted: #4A5A73;
  --amber: #F59E0B;
  --amber-dim: rgba(245,158,11,0.15);
  --teal: #14B8A6;
  --teal-dim: rgba(20,184,166,0.12);
  --blue: #3B82F6;
  --purple: #A855F7;
  --red: #EF4444;
  --green: #22C55E;
  --yellow: #EAB308;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.text-amber { color: var(--amber); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { color: var(--fg-dim); font-size: 1.1rem; max-width: 560px; line-height: 1.7; }

/* === NAV === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(7,14,27,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0.9rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.nav-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.nav-tag { font-size: 0.8rem; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(245,158,11,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(20,184,166,0.04) 0%, transparent 70%),
    var(--bg-deep);
}
.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero-accent { color: var(--amber); }
.hero-lede {
  color: var(--fg-dim);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  width: fit-content;
}
.stat-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--amber); }
.stat-label { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.08); }

/* Hero visual - orbital diagram */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero-orb {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  filter: blur(40px);
}
.hero-diagram { position: relative; width: 320px; height: 320px; }
.diagram-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.diagram-core {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--amber), #D97706);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--bg-deep);
  box-shadow: 0 0 40px rgba(245,158,11,0.3);
}
.diagram-ring { position: absolute; inset: 0; }
.diagram-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.node-1 { top: 0; left: 50%; transform: translateX(-50%); border-color: var(--teal); }
.node-2 { top: 18%; right: 0; border-color: var(--blue); }
.node-3 { top: 55%; right: -5%; border-color: var(--purple); }
.node-4 { bottom: 0; left: 50%; transform: translateX(-50%); border-color: var(--amber); }
.node-5 { top: 55%; left: -5%; border-color: var(--green); }
.node-6 { top: 18%; left: 0; border-color: var(--teal); }

/* === CHAIN SECTION === */
.chain {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.chain-inner { max-width: var(--max-w); margin: 0 auto; }
.chain-header { text-align: center; margin-bottom: 4rem; }
.chain-header .section-sub { margin: 0 auto; }
.chain-flow {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.chain-step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.6rem 1.3rem;
}
.step-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.step-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.chain-step h3 { font-size: 1rem; margin-bottom: 0.5rem; font-weight: 600; }
.chain-step p { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.6; }
.chain-arrow {
  display: flex;
  align-items: center;
  color: var(--fg-muted);
  font-size: 1.3rem;
  padding-top: 3rem;
  flex-shrink: 0;
}

/* === AGENTS === */
.agents {
  padding: 6rem 2rem;
  background: var(--bg-deep);
}
.agents-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.agent-card:hover { border-color: rgba(245,158,11,0.3); }
.agent-avatar { font-size: 1.8rem; margin-bottom: 0.8rem; }
.agent-card h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.agent-card p { font-size: 0.85rem; color: var(--fg-dim); line-height: 1.6; margin-bottom: 0.8rem; }
.agent-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 500;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === BOSS VIEW === */
.boss-view {
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse 50% 50% at 30% 50%, rgba(20,184,166,0.04) 0%, transparent 70%),
    var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.boss-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.boss-terminal {
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dots { display: flex; gap: 0.4rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }
.terminal-title { font-size: 0.75rem; color: var(--fg-muted); }
.terminal-body { padding: 1.2rem 1.2rem; font-family: 'DM Sans', monospace; font-size: 0.85rem; line-height: 1.9; }
.terminal-line { margin-bottom: 0.2rem; }
.t-green { color: var(--green); font-weight: 500; }
.t-amber { color: var(--amber); font-weight: 500; }
.t-blue { color: var(--blue); font-weight: 500; }
.t-purple { color: var(--purple); font-weight: 500; }
.t-white { color: var(--fg); font-weight: 600; }
.t-dim { color: var(--fg-muted); }

.boss-features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.boss-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--fg-dim);
}
.feat-check { color: var(--teal); font-weight: 700; }

/* === MANIFESTO === */
.manifesto {
  padding: 7rem 2rem;
  background: var(--bg-deep);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
}
.manifesto-inner { max-width: 720px; margin: 0 auto; }
.manifesto-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 2rem;
}
.manifesto-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.3;
}
.manifesto-body {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.manifesto-closing {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 2rem;
}

/* === FOOTER === */
.footer {
  padding: 2.5rem 2rem;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-text { font-size: 0.8rem; color: var(--fg-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { min-height: 280px; }
  .hero-diagram { width: 260px; height: 260px; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .agents-inner { grid-template-columns: 1fr; gap: 2rem; }
  .agents-grid { grid-template-columns: 1fr; }
  .boss-inner { grid-template-columns: 1fr; }
  .chain-flow { flex-direction: column; gap: 0; }
  .chain-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
}
@media (max-width: 600px) {
  .hero { padding: 6rem 1.2rem 3rem; }
  .hero-title { font-size: 2rem; }
  .nav-inner { padding: 0.7rem 1rem; }
  .nav-tag { display: none; }
  .chain, .agents, .boss-view, .manifesto { padding: 4rem 1.2rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}