:root {
  --bg: #080C14;
  --surface: #0E1420;
  --card: #111827;
  --border: #1C2535;
  --text: #E8ECF1;
  --muted: #7A8599;
  --accent: #00E5A0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --blue: #4F8EF7;
  --up: #00E5A0;
  --down: #FF6B6B;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-radial {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  font-weight: 300;
}

/* LIVE PANEL */
.live-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 0 60px rgba(0, 229, 160, 0.04);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0, 229, 160, 0); }
}

.panel-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.protocol-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.protocol-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 2px;
}

.protocol-row:nth-child(3) {
  background: rgba(0, 229, 160, 0.06);
  border: 1px solid rgba(0, 229, 160, 0.15);
}

.protocol-name {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.protocol-apy {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.protocol-delta {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}

.protocol-delta.up {
  color: var(--accent);
  background: var(--accent-dim);
}

.signal-row {
  background: var(--card);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.signal-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.signal-confidence {
  font-size: 11px;
  color: var(--muted);
  padding-left: 22px;
  font-weight: 500;
}

/* SECTION SHARED */
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* INTELLIGENCE SECTION */
.intelligence {
  padding: 100px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.intelligence-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.intelligence-card {
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  position: relative;
}

.intelligence-card:first-child {
  border-radius: 12px 0 0 12px;
}

.intelligence-card:last-child {
  border-radius: 0 12px 12px 0;
}

.card-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--border);
  margin-bottom: 20px;
  line-height: 1;
}

.intelligence-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.intelligence-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* PRINCIPLES SECTION */
.principles {
  padding: 100px 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.principles-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.principles-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.principles-visual {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.principle-stat {
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
}

.principle-stat:first-child {
  border-radius: 12px 12px 0 0;
}

.principle-stat:last-child {
  border-radius: 0 0 12px 12px;
}

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  min-width: 100px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* PERFORMANCE SECTION */
.performance {
  padding: 100px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.performance-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 64px;
}

.perf-card {
  padding: 40px 32px;
  background: var(--surface);
  text-align: left;
}

.perf-metric {
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1;
}

.perf-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

/* CLOSING */
.closing {
  padding: 120px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

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

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

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

.footer-name {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
}

.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-meta {
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero, .intelligence, .principles, .performance, .closing {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .intelligence-card:first-child {
    border-radius: 12px 12px 0 0;
  }

  .intelligence-card:last-child {
    border-radius: 0 0 12px 12px;
  }

  .principles-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .performance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero, .intelligence, .principles, .performance, .closing {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* SUBSCRIBE FORM */
.hero-subscribe {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin-top: 28px;
}

#sub-email {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

#sub-email::placeholder {
  color: var(--muted);
}

#sub-email:focus {
  border-color: var(--accent);
}

#sub-btn {
  padding: 12px 22px;
  background: var(--accent);
  color: #080C14;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

#sub-btn:hover {
  opacity: 0.88;
}

#sub-btn:active {
  transform: scale(0.97);
}

#sub-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sub-msg {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  max-width: 440px;
}

.sub-msg.success {
  color: var(--accent);
}

.sub-msg.error {
  color: #FF6B6B;
}