:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #00ffa3;
  --accent-dim: rgba(0, 255, 163, 0.12);
  --accent-glow: rgba(0, 255, 163, 0.25);
  --zcash-color: #f4b728;
  --orchid-color: #5f45ba;
  --solana-color: #14f195;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Bridge Diagram */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.bridge-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.chain-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
}

.chain-node.zcash { border-color: var(--zcash-color); box-shadow: 0 0 30px rgba(244,183,40,0.15); }
.chain-node.core { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); width: 90px; height: 90px; }
.chain-node.solana { border-color: var(--solana-color); box-shadow: 0 0 30px rgba(20,241,149,0.15); }

.node-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}
.chain-node.zcash .node-label { color: var(--zcash-color); }
.chain-node.core .node-label { color: var(--accent); }
.chain-node.solana .node-label { color: var(--solana-color); }

.node-sub {
  font-size: 0.6rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bridge-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.zk-pulse {
  position: absolute;
  top: -1px;
  left: -20px;
  width: 20px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: pulse-move 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent);
}

.zk-pulse.delay { animation-delay: 1s; }

@keyframes pulse-move {
  0% { left: -20px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.orchid-layer {
  padding: 8px 20px;
  border: 1px dashed var(--orchid-color);
  border-radius: 100px;
  opacity: 0.7;
}

.orchid-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orchid-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 120px 40px;
  background: var(--bg-elevated);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.problem-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== HOW ===== */
.how {
  padding: 120px 40px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; padding-bottom: 0; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  grid-row: 1 / 3;
  padding-top: 4px;
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ===== STACK ===== */
.stack {
  padding: 120px 40px;
  background: var(--bg-elevated);
}

.stack-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.stack-header {
  margin-bottom: 60px;
}

.stack-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stack-header p {
  color: var(--fg-muted);
  font-size: 1rem;
}

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

.stack-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.3s;
}

.stack-card:hover { border-color: var(--accent); }

.stack-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: block;
}

.stack-card:nth-child(1) .stack-icon { color: var(--zcash-color); }
.stack-card:nth-child(2) .stack-icon { color: var(--orchid-color); }
.stack-card:nth-child(3) .stack-icon { color: var(--solana-color); }

.stack-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.stack-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 40px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.closing-text {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 20px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; margin-bottom: 8px; }
  .problem, .how, .stack, .closing { padding: 80px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .bridge-diagram { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .bridge-line { width: 40px; }
  .chain-node { width: 64px; height: 64px; }
  .chain-node.core { width: 72px; height: 72px; }
}

/* ===== HERO ACTIONS ===== */
.hero-actions { margin-top: 32px; }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: -0.01em;
}
.btn-cta:hover { opacity: 0.88; transform: translateY(-1px); }