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

:root {
  --bg: #05070a;
  --bg-2: #0a0e16;
  --bg-3: #0f1520;
  --fg: #e2e8f0;
  --fg-muted: #64748b;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.12);
  --green: #22c55e;
  --blue: #3b82f6;
  --border: rgba(255,255,255,0.07);
  --font-display: 'Sora', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(5,7,10,0.85);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--fg);
}
.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

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

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  border: 1px solid rgba(249,115,22,0.3);
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
}

.label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

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

.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 40px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--fg);
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin-right: 40px;
}

/* === SHARED SECTION STYLES === */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* === PROBLEM SECTION === */
.pulse {
  padding: 120px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pulse-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-3);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.problem-card:hover {
  border-color: rgba(249,115,22,0.3);
}

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

.problem-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

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

.how-header {
  max-width: 1200px;
  margin: 0 auto 72px;
}

.layers {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.layer {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 48px 40px;
}

.layer-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.layer h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}

.layer p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.layer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layer-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.layer-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.layer-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 200px;
}

.connector-arrow {
  opacity: 0.4;
}

/* === DASHBOARD SECTION === */
.dashboard-section {
  padding: 120px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dash-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.dash-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dash-frame {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}

.dash-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.dash-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  flex: 1;
  text-align: center;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}

.dash-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}

.dash-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(0,0,0,0.2);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  border-left: 2px solid transparent;
}

.sidebar-active {
  color: var(--fg);
  background: rgba(249,115,22,0.08);
  border-left-color: var(--accent);
}

.dash-main {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric { padding: 0; }

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--fg);
}
.metric-value.green { color: var(--green); }
.metric-value.blue { color: var(--blue); }

.metric-sub {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.dash-chart-area {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}

.chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 16px;
}

.chart-bar {
  flex: 1;
  background: rgba(100,116,139,0.3);
  border-radius: 2px;
  transition: background 0.2s;
}

.chart-active {
  background: rgba(249,115,22,0.7);
  box-shadow: 0 0 8px rgba(249,115,22,0.4);
}

.chart-annotation {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}

.annotation-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.annotation-dot.green { background: var(--green); }

.dash-activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.activity-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  min-width: 44px;
}

.activity-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
  min-width: 68px;
  text-align: center;
}

.tag-green {
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

.tag-blue {
  background: rgba(59,130,246,0.12);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.2);
}

.activity-text {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* === CLOSING === */
.closing {
  padding: 140px 32px;
  background: var(--bg);
  text-align: center;
}

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

.closing-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 56px;
}

.closing-markets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.markets-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mkt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

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

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

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--fg);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-sep { color: var(--border); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .layers {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .layer-connector { display: none; }
  .dash-body {
    grid-template-columns: 1fr;
  }
  .dash-sidebar { display: none; }
  .dash-metrics {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 24px 60px;
  }
  .pulse, .how, .dashboard-section, .closing {
    padding: 80px 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}