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

:root {
  --bg: #0B1628;
  --bg2: #0F1E33;
  --bg3: #162540;
  --fg: #E8F4FF;
  --fg2: #8BA9C4;
  --green: #00FF88;
  --green-dim: #00CC6A;
  --amber: #F5A623;
  --amber-dim: #CC8A1C;
  --red: #FF4D6A;
  --border: rgba(0,255,136,0.15);
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Mono', monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { font-size: 1.4rem; color: var(--green); }
.logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.nav-status { display: flex; align-items: center; gap: 0.4rem; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.status-label { font-size: 0.75rem; color: var(--fg2); letter-spacing: 0.08em; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  padding: 100px 2rem 60px;
  max-width: 1280px; margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem; border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--fg);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.hero-sub {
  color: var(--fg2);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 480px;
}

/* TERMINAL */
.hero-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-header {
  background: var(--bg3);
  padding: 0.7rem 1.2rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid rgba(0,255,136,0.08);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }
.terminal-title {
  flex: 1; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--green);
  font-weight: 500;
}
.terminal-body { padding: 1rem 1.2rem; }
.terminal-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: var(--fg2);
  align-items: center;
}
.terminal-row.header-row {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(139,169,196,0.6);
  padding-bottom: 0.6rem; margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
}
.team { color: var(--fg); font-weight: 500; }
.num { color: var(--amber); font-weight: 500; }
.sharp { font-size: 0.75rem; }
.sharp-up { color: var(--green); }
.sharp-down { color: var(--red); }
.fade { opacity: 0.5; }
.terminal-scroll-bar {
  height: 3px; background: rgba(255,255,255,0.08);
  border-radius: 2px; margin-top: 0.8rem;
}
.scroll-fill {
  height: 100%; width: 45%;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 2px;
}
.terminal-footer {
  padding: 0.5rem 1.2rem;
  background: rgba(0,255,136,0.05);
  border-top: 1px solid var(--border);
}
.agent-tag { font-size: 0.65rem; color: var(--green); letter-spacing: 0.06em; }

/* STATS */
.hero-stats {
  display: flex; gap: 3rem;
  padding: 2.5rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}
.stat {}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--fg2); margin-top: 0.3rem; }

/* === FEED GRID === */
.livefeed {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 2rem;
}
.livefeed-header { max-width: 1280px; margin: 0 auto 3rem; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 600px;
}
.feed-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feed-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}
.feed-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--amber));
  opacity: 0;
  transition: opacity 0.3s;
}
.feed-card:hover::before { opacity: 1; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
}
.icon-badge.green { background: rgba(0,255,136,0.12); color: var(--green); }
.icon-badge.amber { background: rgba(245,166,35,0.12); color: var(--amber); }
.feed-body h3 {
  font-size: 1.15rem; color: var(--fg);
  margin-bottom: 0.5rem;
}
.feed-body p { font-size: 0.82rem; color: var(--fg2); line-height: 1.65; }
.feed-example {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.ex-label { color: rgba(139,169,196,0.5); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.6rem; }
.ex-val { color: var(--green); font-weight: 500; }

/* === HOW IT WORKS === */
.howitworks { padding: 80px 2rem; }
.hiw-inner { max-width: 1280px; margin: 0 auto; }
.hiw-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg2); margin-bottom: 0.8rem; }
.hiw-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }
.hiw-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 2rem; align-items: start;
}
.hiw-col h4 {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg2); margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.old-list, .new-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.old-list li, .new-list li {
  font-size: 0.82rem; color: var(--fg2); padding-left: 1.2rem; position: relative; line-height: 1.5;
}
.old-list li::before { content: '—'; position: absolute; left: 0; color: var(--red); }
.new-list li::before { content: '→'; position: absolute; left: 0; color: var(--green); }
.hiw-divider { width: 1px; background: var(--border); align-self: stretch; }
.hiw-callout {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem; padding: 1.5rem;
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 8px;
}
.callout-line { width: 3px; height: 40px; background: var(--amber); border-radius: 2px; flex-shrink: 0; }
.hiw-callout p { font-size: 0.9rem; color: var(--fg2); }

/* === MANIFESTO === */
.manifesto { padding: 80px 2rem; background: var(--bg2); border-top: 1px solid var(--border); }
.manifesto-inner { max-width: 900px; margin: 0 auto; }
.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--fg);
  line-height: 1.5;
  border-left: 3px solid var(--amber);
  padding-left: 2rem; margin-bottom: 2rem;
  font-style: normal;
}
.manifesto-body { font-size: 0.9rem; color: var(--fg2); line-height: 1.8; margin-bottom: 2rem; }
.manifesto-footer { display: flex; justify-content: space-between; align-items: center; }
.manifesto-tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 20px; }
.manifesto-date { font-size: 0.75rem; color: var(--fg2); }

/* === CLOSING === */
.closing { padding: 80px 2rem; }
.closing-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.closing-headline { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.closing-sub { font-size: 0.95rem; color: var(--fg2); max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.7; }
.closing-links { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.closing-link {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.closing-link:hover { background: var(--green-dim); }

/* === FOOTER === */
.footer { padding: 2.5rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: flex-start; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.footer-meta { flex: 1; }
.footer-desc { font-size: 0.8rem; color: var(--fg2); margin-bottom: 0.5rem; }
.footer-copy { font-size: 0.7rem; color: rgba(139,169,196,0.4); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-terminal { display: none; }
  .feed-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-divider { display: none; }
  .hero-stats { gap: 2rem; }
}
@media (max-width: 600px) {
  .hero { padding-top: 80px; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .manifesto-footer { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
}