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

:root {
  --bg: #080810;
  --bg-2: #0e0e1c;
  --bg-3: #12122a;
  --fg: #e8e8f0;
  --fg-2: #9090b0;
  --accent: #00f0ff;
  --accent-dim: rgba(0, 240, 255, 0.12);
  --accent-glow: rgba(0, 240, 255, 0.25);
  --danger: #ff4466;
  --spec-label: #7c3aed;
  --spec-label-bg: rgba(124, 58, 237, 0.15);
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(0, 240, 255, 0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-heading {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--fg);
  margin-bottom: 32px;
}

/* === NAV === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(20px);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--fg);
}

.nav-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.status-text {
  font-size: 11px; letter-spacing: 0.15em; color: var(--fg-2); text-transform: uppercase;
}

/* === MANIFESTO === */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px 80px;
  position: relative;
  overflow: hidden;
}

.manifesto-grid { max-width: 700px; position: relative; z-index: 2; }

.manifesto-label {
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 24px; font-family: 'DM Mono', monospace;
}

.manifesto-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.05;
}

.manifesto-body {
  font-size: 17px; color: var(--fg-2); max-width: 560px; line-height: 1.7;
}

/* Grid background */
.grid-lines { position: absolute; inset: 0; z-index: 1; }
.grid-line {
  position: absolute; background: var(--border);
}
.gl-1 { left: 15%; top: 0; bottom: 0; width: 1px; }
.gl-2 { left: 35%; top: 0; bottom: 0; width: 1px; }
.gl-3 { left: 55%; top: 0; bottom: 0; width: 1px; }
.gl-4 { left: 75%; top: 0; bottom: 0; width: 1px; }
.gl-5 { left: 90%; top: 0; bottom: 0; width: 1px; }

.node {
  position: absolute;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}
.n1 { top: 20%; left: 14%; }
.n2 { top: 55%; left: 33%; }
.n3 { top: 30%; right: 12%; color: var(--fg); border-color: var(--accent); background: rgba(0,240,255,0.08); font-weight: 500; }
.n4 { bottom: 25%; left: 53%; }
.n5 { bottom: 15%; left: 73%; }

/* === PROBLEM === */
.problem { padding: 100px 48px; background: var(--bg-2); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin-bottom: 64px;
}

.problem-item { padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); transition: border-color 0.3s; }
.problem-item:hover { border-color: var(--border-accent); }
.problem-item:hover .problem-icon svg rect[stroke="#00f0ff"], .problem-item:hover .problem-icon svg path[stroke="#00f0ff"], .problem-item:hover .problem-icon svg circle[stroke="#00f0ff"] { stroke: var(--accent); }

.problem-icon { margin-bottom: 20px; }

.problem-item h3 { font-size: 16px; font-family: 'Syne', sans-serif; color: var(--fg); margin-bottom: 12px; }
.problem-item p { font-size: 14px; color: var(--fg-2); line-height: 1.65; }

.problem-quote {
  max-width: 680px;
  padding: 32px 40px;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 12px 12px 0;
}

.quote-mark { font-family: 'Syne', serif; font-size: 48px; color: var(--accent); line-height: 0; display: block; margin-bottom: 8px; }
.problem-quote p { font-size: 16px; color: var(--fg); font-style: italic; margin-bottom: 12px; }
.quote-attribution { font-size: 13px; color: var(--fg-2); }

/* === PROTOCOL === */
.protocol { padding: 100px 48px; background: var(--bg); }
.protocol-desc { font-size: 17px; color: var(--fg-2); max-width: 640px; margin-bottom: 56px; line-height: 1.7; }

.protocol-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; }

.spec-card {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  transition: all 0.3s;
}
.spec-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.spec-label {
  font-size: 10px; letter-spacing: 0.2em; color: var(--spec-label);
  background: var(--spec-label-bg); display: inline-block; padding: 3px 8px; border-radius: 4px;
  margin-bottom: 12px; font-weight: 500;
}

.spec-name { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 10px; }
.spec-desc { font-size: 14px; color: var(--fg-2); line-height: 1.65; }

/* === HOW IT WORKS === */
.howitworks { padding: 100px 48px; background: var(--bg-2); }

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 960px;
  margin-bottom: 64px;
}

.flow-step { flex: 1; padding: 0 24px; }
.flow-step:first-child { padding-left: 0; }
.flow-step:last-child { padding-right: 0; }

.step-number { font-size: 11px; letter-spacing: 0.15em; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.step-content h3 { font-size: 17px; font-family: 'Syne', sans-serif; color: var(--fg); margin-bottom: 10px; }
.step-content p { font-size: 14px; color: var(--fg-2); line-height: 1.65; }

.flow-connector {
  width: 48px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent);
  flex-shrink: 0; margin-top: 28px;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 700px;
  font-size: 13px;
}

.fd-item {
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
}
.fd-merchant { background: var(--accent-dim); border: 1px solid var(--border-accent); color: var(--fg); }
.fd-kwickshot { background: var(--spec-label-bg); border: 1px solid rgba(124,58,237,0.3); color: var(--accent); }
.fd-agent { background: rgba(255,68,102,0.1); border: 1px solid rgba(255,68,102,0.3); color: #ff8090; }
.fd-arrow { color: var(--fg-2); font-size: 18px; }

/* === BUILDERS === */
.builders { padding: 100px 48px; background: var(--bg); }
.builders-desc { font-size: 17px; color: var(--fg-2); max-width: 580px; margin-bottom: 56px; line-height: 1.7; }

.builders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; }

.builder-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  transition: all 0.3s;
}
.builder-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }

.builder-icon { margin-bottom: 20px; }
.builder-card h3 { font-size: 16px; font-family: 'Syne', sans-serif; color: var(--fg); margin-bottom: 12px; }
.builder-card p { font-size: 14px; color: var(--fg-2); line-height: 1.65; }

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  overflow: hidden;
}

.closing-label { font-size: 11px; letter-spacing: 0.2em; color: var(--fg-2); text-transform: uppercase; margin-bottom: 20px; font-family: 'DM Mono', monospace; }
.closing-headline { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 24px; }
.closing-body { font-size: 16px; color: var(--fg-2); max-width: 520px; line-height: 1.7; margin-bottom: 32px; }

.closing-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta-tag {
  font-size: 11px; letter-spacing: 0.1em; padding: 6px 14px;
  border: 1px solid var(--border-accent); border-radius: 100px;
  color: var(--accent); background: var(--accent-dim);
}

/* Decorative rings */
.closing-decoration { position: relative; width: 280px; height: 280px; flex-shrink: 0; }
.cd-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-accent); }
.cd-ring-1 { inset: 0; }
.cd-ring-2 { inset: 30px; border-color: rgba(0,240,255,0.15); }
.cd-ring-3 { inset: 70px; border-color: rgba(0,240,255,0.08); }
.cd-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 64px;
  color: var(--accent); text-shadow: 0 0 40px var(--accent-glow);
}

/* === FOOTER === */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; }
.brand-mark-sm { width: 22px; height: 22px; background: var(--accent); color: var(--bg); font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.footer-meta { font-size: 13px; color: var(--fg-2); text-align: center; }
.footer-links { font-size: 12px; color: var(--fg-2); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .manifesto { padding: 60px 24px; }
  .problem { padding: 72px 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 20px; }
  .protocol { padding: 72px 24px; }
  .protocol-specs { grid-template-columns: 1fr; }
  .howitworks { padding: 72px 24px; }
  .flow-steps { flex-direction: column; gap: 24px; }
  .flow-connector { width: 1px; height: 32px; background: linear-gradient(180deg, var(--accent), transparent); }
  .flow-diagram { flex-direction: column; gap: 8px; }
  .builders { padding: 72px 24px; }
  .builders-grid { grid-template-columns: 1fr; }
  .closing { padding: 72px 24px; flex-direction: column; }
  .closing-decoration { width: 180px; height: 180px; }
  .footer { padding: 32px 24px; flex-direction: column; text-align: center; gap: 16px; }
}
