@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1629;
  --bg-card: #111827;
  --fg: #e8f0fe;
  --fg-muted: #8892a4;
  --accent: #a8ff57;
  --accent-dim: rgba(168, 255, 87, 0.12);
  --border: rgba(168, 255, 87, 0.15);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.topbar-links {
  display: flex;
  gap: 32px;
}
.topbar-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.topbar-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.highlight { color: var(--accent); }
.hero-sub {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Yield Card */
.hero-visual { position: relative; }
.yield-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  z-index: 2;
}
.yield-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.yield-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.yield-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
}
.yield-big {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.yield-change {
  font-size: 13px;
  color: #4ade80;
  margin-bottom: 24px;
}
.yield-chains { display: flex; flex-direction: column; gap: 10px; }
.chain-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chain-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chain-name {
  flex: 1;
  font-size: 14px;
  color: var(--fg-muted);
}
.chain-apy {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.hero-image-wrap {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 55%;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.5;
}
.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Live rates */
.live-rates {
  padding: 80px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-flow {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.flow-step {
  flex: 1;
  padding: 0 24px;
}
.flow-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}
.flow-body h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.flow-body p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.flow-arrow {
  padding-top: 24px;
  flex-shrink: 0;
  width: 40px;
}
.flow-arrow svg { width: 40px; }

/* Features */
.features {
  padding: 100px 24px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feature-card {
  background: var(--bg-card);
  padding: 36px;
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-alt); }
.feature-primary { border-left: 3px solid var(--accent); }
.feature-icon {
  margin-bottom: 20px;
  opacity: 0.8;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Protocols */
.protocols {
  padding: 100px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.protocols-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.protocols-text h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.protocols-text p {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 48px;
}
.protocol-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.protocol-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.protocol-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Community */
.community { padding: 100px 24px; }
.community-inner { max-width: 1100px; margin: 0 auto; }
.community-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.community h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 60px;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
}
.community-icon { margin-bottom: 20px; }
.community-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.community-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Closing */
.closing {
  padding: 120px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-glow {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168,255,87,0.08) 0%, transparent 70%);
  margin: 0 auto 48px;
  border-radius: 50%;
}
.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing p {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Footer */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.footer-copy {
  color: var(--fg-muted);
  font-size: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .process-flow { flex-direction: column; gap: 32px; }
  .flow-arrow { display: none; }
  .topbar-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 120px; }
}