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

:root {
  --bg: #0B0F1A;
  --bg-card: #0F1629;
  --fg: #F0F4FF;
  --fg-muted: #7A8BA8;
  --accent: #00D9FF;
  --accent-purple: #8B5CF6;
  --border: rgba(0, 217, 255, 0.12);
  --terminal-green: #00FF87;
  --terminal-yellow: #FFB800;
  --terminal-cyan: #00D9FF;
  --terminal-red: #FF4757;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── MANIFESTO ─── */
.manifesto {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 80px 100px;
  position: relative;
}

.manifesto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,217,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.manifesto-headline {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.manifesto-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 48px;
  font-family: var(--font-display);
  font-weight: 400;
}

.manifesto-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal */
.manifesto-terminal {
  background: #060B14;
  border: 1px solid rgba(0,217,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,217,255,0.06), 0 24px 64px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0A1425;
  border-bottom: 1px solid rgba(0,217,255,0.1);
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF4757; }
.dot-yellow { background: #FFB800; }
.dot-green { background: #00FF87; }

.terminal-title { font-size: 11px; color: #4A6080; margin-left: 4px; flex: 1; }

.terminal-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--terminal-green);
  background: rgba(0,255,135,0.1);
  border: 1px solid rgba(0,255,135,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.terminal-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tline { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; }
.t-ts { color: #3A5070; white-space: nowrap; min-width: 95px; }
.t-ok { color: var(--terminal-green); white-space: nowrap; min-width: 100px; }
.t-msg { color: #6A8AAA; }
.t-empty { height: 16px; }

.t-cursor-line { display: flex; align-items: center; gap: 0; }
.t-prompt { font-size: 12px; color: var(--accent); }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── SHARED SECTION STYLES ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-headline {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.section-headline.light { color: var(--fg); }

.section-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 620px;
  font-family: var(--font-display);
  font-weight: 400;
}

.section-body-light { color: var(--fg-muted); }

/* ─── OPERATIONS ─── */
.operations {
  padding: 100px 80px;
  background: linear-gradient(180deg, var(--bg) 0%, #0D1420 100%);
  position: relative;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.op-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.op-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.op-card:hover {
  border-color: rgba(0,217,255,0.3);
  transform: translateY(-4px);
}

.op-card:hover::before { opacity: 1; }

.op-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.op-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.op-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.op-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 400;
}

/* ─── GOVERNANCE ─── */
.governance {
  padding: 100px 80px;
  background: #080C16;
  position: relative;
  overflow: hidden;
}

.governance::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.gov-stages {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: rgba(0,217,255,0.03);
  border: 1px solid rgba(0,217,255,0.1);
  border-radius: 12px;
  position: relative;
}

.stage::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid rgba(0,217,255,0.2);
  z-index: 2;
}

.stage-arrow {
  display: flex;
  align-items: center;
  color: rgba(0,217,255,0.3);
  padding: 0 4px;
  flex-shrink: 0;
  margin-top: 16px;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,217,255,0.6);
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.stage-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── ECOSYSTEM ─── */
.ecosystem {
  padding: 100px 80px;
  background: linear-gradient(180deg, #080C16 0%, var(--bg) 100%);
  position: relative;
}

.eco-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.eco-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
}

.eco-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── CONTRIBUTORS ─── */
.contributors {
  padding: 100px 80px;
  background: #080C16;
}

.contributors-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contributors-text .section-body-light {
  max-width: 480px;
}

/* Orbit visualization */
.orbit-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.orbit-center-inner {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 32px rgba(0,217,255,0.25), 0 0 64px rgba(0,217,255,0.1);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0,217,255,0.15);
}

.orbit-ring-1 { width: 220px; height: 220px; }
.orbit-ring-2 { width: 360px; height: 360px; border-color: rgba(139,92,246,0.1); }

.contributor-node {
  position: absolute;
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  z-index: 2;
}

.node-1 { top: 8px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 8px; transform: translateY(-50%); }
.node-3 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.node-4 { top: 50%; left: 8px; transform: translateY(-50%); }

/* ─── CLOSING ─── */
.closing {
  padding: 120px 80px;
  background: linear-gradient(180deg, var(--bg) 0%, #060B14 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.closing-headline {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin: 0 auto 28px;
}

.closing-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
}

/* ─── FOOTER ─── */
.footer {
  background: #060B14;
  padding: 60px 80px 40px;
  border-top: 1px solid rgba(0,217,255,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  gap: 60px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-display);
}
.footer-link:hover { color: var(--fg); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #3A5070;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto { grid-template-columns: 1fr; padding: 60px 40px; }
  .manifesto-terminal { max-width: 560px; }
  .contributors-inner { grid-template-columns: 1fr; }
  .orbit-container { display: none; }
}

@media (max-width: 768px) {
  .manifesto { padding: 40px 24px; }
  .operations, .governance, .ecosystem, .contributors { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 40px 24px; }
  .ops-grid { grid-template-columns: 1fr; }
  .eco-features { grid-template-columns: 1fr; }
  .gov-stages { flex-direction: column; gap: 0; }
  .stage-arrow { display: none; }
  .stage { margin-bottom: 12px; }
  .stage::before { display: none; }
  .footer-inner { flex-direction: column; }
  .manifesto-stats { flex-wrap: wrap; }
}