:root {
  --bg: #0c0c14;
  --surface: #12121e;
  --surface-2: #1a1a2a;
  --border: #22223a;
  --fg: #f0f0f8;
  --fg-muted: #7878a0;
  --accent: #01f0a0;
  --accent-dim: rgba(1, 240, 160, 0.12);
  --green: #01f0a0;
  --red: #ff4d6a;
  --yellow: #f0c040;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

/* scanline texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── HERO ── */
.hero {
  padding: 100px 48px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(1,240,160,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(1,240,160,0.25);
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  font-weight: 400;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* pulse visualization */
.pulse-viz {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ring-out 3s ease-out infinite;
}
.ring-1 { width: 100px; height: 100px; animation-delay: 0s; }
.ring-2 { width: 160px; height: 160px; animation-delay: 1s; }
.ring-3 { width: 240px; height: 240px; animation-delay: 2s; }
@keyframes ring-out {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.2); }
}
.pulse-core {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  z-index: 1;
  position: relative;
}
.pulse-label {
  position: absolute;
  bottom: 30px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── LIVE FEED ── */
.livefeed {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 48px;
  border-left: none;
  border-right: none;
}
.feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.feed-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.feed-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.feed-table {
  max-width: 1100px;
  margin: 0 auto;
}
.feed-row {
  display: grid;
  grid-template-columns: 140px 100px 130px 150px 110px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  align-items: center;
}
.feed-row.header-row {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.feed-carrier { color: var(--fg); font-weight: 500; }
.feed-val { color: var(--fg-muted); }
.feed-val.up { color: var(--yellow); }
.feed-val.down { color: var(--accent); }
.feed-time { color: var(--fg-muted); font-size: 0.75rem; }
.feed-delta { font-weight: 500; }
.delta-up { color: var(--yellow); }
.delta-down { color: var(--accent); }
.delta-flat { color: var(--fg-muted); }
.feed-disclaimer {
  max-width: 1100px;
  margin: 20px auto 0;
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* ── FEATURES ── */
.features {
  padding: 100px 48px;
  background: var(--bg);
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  color: var(--fg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.2s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover { border-color: rgba(1,240,160,0.3); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(1,240,160,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 22px;
  border-radius: 4px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── PHILOSOPHY ── */
.philosophy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  padding: 80px 48px;
}
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.quote-mark {
  font-size: 5rem;
  color: var(--accent);
  line-height: 0.5;
  font-family: var(--font-display);
  margin-bottom: 24px;
  opacity: 0.5;
}
.philosophy-quote blockquote {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--fg);
  font-weight: 400;
  font-style: normal;
}
.philosophy-aside h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.philosophy-aside p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.philosophy-aside strong { color: var(--accent); }

/* ── CLOSING ── */
.closing {
  padding: 120px 48px;
  background: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.closing-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  display: block;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
  display: block;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { padding: 60px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .feed-row { grid-template-columns: 120px 80px 100px 1fr; }
  .feed-row > span:nth-child(3),
  .feed-row > span:nth-child(5) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .livefeed { padding: 40px 24px; }
  .features { padding: 60px 24px; }
  .philosophy { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .site-footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-sep { display: none; }
}