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

:root {
  --bg: #07070f;
  --bg-sub: #0c0c17;
  --surface: #11111e;
  --surface2: #181828;
  --border: rgba(140, 130, 220, 0.1);
  --border2: rgba(140, 130, 220, 0.18);
  --text: #e4e0f6;
  --text-2: #a8a4c4;
  --muted: #5c597a;
  --accent: #ff4719;
  --accent-d: #cc3510;
  --accent-g: rgba(255, 71, 25, 0.15);
  --teal: #0df2c2;
  --teal-g: rgba(13, 242, 194, 0.12);
  --gold: #f5c842;
  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "DM Sans", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "Fira Code", monospace;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NOISE OVERLAY ─────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--ff-display);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--accent {
  color: var(--accent);
}
.label--teal {
  color: var(--teal);
}
.label--gold {
  color: var(--gold);
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 80px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 15, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px var(--accent);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px var(--accent);
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--text);
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-g);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 0 32px var(--accent-g),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 40px var(--accent-g),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding: 120px clamp(24px, 5vw, 80px) 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(255, 71, 25, 0.18) 0%,
    transparent 70%
  );
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  top: 50px;
  right: 10%;
  background: radial-gradient(
    circle,
    rgba(13, 242, 194, 0.1) 0%,
    transparent 70%
  );
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  right: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 71, 25, 0.08) 0%,
    transparent 70%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.1s forwards;
}

.eyebrow-badge {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-g);
  border: 1px solid rgba(255, 71, 25, 0.3);
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow-text {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-headline {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.2s forwards;
}

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

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 480px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.4s forwards;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.5s forwards;
}

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

.stat-num {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── PARSING DEMO ───────────────────────────────────── */
.demo-panel {
  opacity: 0;
  animation: fade-up 1.1s var(--ease-out-expo) 0.5s forwards;
}

.demo-wrapper {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sub);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dot:nth-child(1) {
  background: #ff5f56;
}
.demo-dot:nth-child(2) {
  background: #ffbd2e;
}
.demo-dot:nth-child(3) {
  background: #27c93f;
}

.demo-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
}

.demo-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.demo-match-panel {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.demo-match-panel.visible {
  opacity: 1;
  transform: none;
}

.match-label {
  color: var(--gold);
}

.match-card {
  background: var(--bg);
  border: 1px solid rgba(245, 200, 66, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.match-type-badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 200, 66, 0.12);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-gold 1.5s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--gold);
  }
  50% {
    opacity: 0.3;
    box-shadow: 0 0 2px var(--gold);
  }
}

.match-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.match-field:last-child {
  margin-bottom: 0;
}

.match-field.visible {
  opacity: 1;
  transform: none;
}

.match-field-key {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.match-field-value {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

.match-field-eta {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.demo-chat-label,
.demo-result-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.demo-chat-label {
  color: var(--muted);
}
.demo-result-label {
  color: var(--teal);
}

.chat-bubble {
  background: #1a3a2a;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 12px 12px 12px 2px;
  padding: 14px 16px;
  position: relative;
  min-height: 120px;
}

.chat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: #1a3a2a;
  border-left: 1px solid rgba(37, 211, 102, 0.2);
  border-bottom: 1px solid rgba(37, 211, 102, 0.2);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.chat-sender {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  color: #25d366;
  margin-bottom: 8px;
}

.chat-text {
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e0f0e8;
  white-space: pre-wrap;
}

.chat-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #25d366;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.chat-time {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  margin-top: 8px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow:
    0 0 12px var(--teal),
    0 0 24px var(--teal-g);
  top: 0;
  opacity: 0;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--teal-g) 0%, transparent 30%);
  opacity: 0;
  border-radius: 12px;
  pointer-events: none;
}

.ride-card {
  background: var(--bg);
  border: 1px solid rgba(13, 242, 194, 0.2);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.ride-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}

.ride-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ride-type-badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(13, 242, 194, 0.15);
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ride-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.ride-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.ride-field.visible {
  opacity: 1;
  transform: none;
}

.ride-field-key {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ride-field-value {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}

.demo-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-sub);
}

.demo-status {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@keyframes pulse-teal {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.demo-badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(13, 242, 194, 0.1);
  border: 1px solid rgba(13, 242, 194, 0.2);
  color: var(--teal);
}

/* ─── SECTION BASE ───────────────────────────────────── */
section {
  padding: 100px clamp(24px, 5vw, 80px);
  position: relative;
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--border2);
}

.section-headline {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
}

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

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

/* ─── PROBLEM ────────────────────────────────────────── */
#problem {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.problem-pain-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pain-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.pain-item:hover {
  border-color: var(--border2);
  transform: translateX(4px);
}

.pain-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.pain-title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.pain-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.chat-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border2);
  max-width: 340px;
  margin: 0 auto;
}

.chat-stack-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.chat-group-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a3a2a, #0f2a1a);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-group-name {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.chat-group-count {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
}

.stacked-bubble {
  background: #1a3a2a;
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 12px;
}

.stacked-sender {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  color: #25d366;
  margin-bottom: 4px;
}

.stacked-text {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: #c0d8c8;
  line-height: 1.5;
}

.stacked-time {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  margin-top: 4px;
}

.chaos-label {
  text-align: center;
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* ─── HOW IT WORKS ───────────────────────────────────── */
#how {
  background: var(--bg);
}

.how-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.steps-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  position: relative;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.step-arrow {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-arrow::after {
  content: "→";
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.step-icon-wrap.orange {
  background: var(--accent-g);
  border: 1px solid rgba(255, 71, 25, 0.2);
}
.step-icon-wrap.teal {
  background: var(--teal-g);
  border: 1px solid rgba(13, 242, 194, 0.2);
}
.step-icon-wrap.gold {
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.2);
}
.step-icon-wrap.purple {
  background: rgba(160, 90, 255, 0.1);
  border: 1px solid rgba(160, 90, 255, 0.2);
}
.step-icon-wrap.blue {
  background: rgba(60, 160, 255, 0.1);
  border: 1px solid rgba(60, 160, 255, 0.2);
}

.step-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.step-detail {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.step-detail-item {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.step-detail-item::before {
  content: "›";
  color: var(--teal);
}

/* steps-flow compact overrides — must follow base rules to avoid descending specificity */
.steps-flow .step-card {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}
.steps-flow .step-title {
  font-size: 17px;
}
.steps-flow .step-icon-wrap {
  width: 44px;
  height: 44px;
  font-size: 22px;
  margin-bottom: 14px;
}
.steps-flow .step-detail {
  margin-top: auto;
  padding-top: 14px;
}

/* ─── ARCHITECTURE ───────────────────────────────────── */
#arch {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
  cursor: default;
}

.arch-layer:hover {
  border-color: var(--border2);
}

.arch-layer-icon {
  font-size: 22px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.arch-layer-content {
  flex: 1;
}

.arch-layer-name {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.arch-layer-desc {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
}

.arch-badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.arch-badge.orange {
  background: var(--accent-g);
  color: var(--accent);
  border: 1px solid rgba(255, 71, 25, 0.2);
}
.arch-badge.teal {
  background: var(--teal-g);
  color: var(--teal);
  border: 1px solid rgba(13, 242, 194, 0.2);
}
.arch-badge.gold {
  background: rgba(245, 200, 66, 0.1);
  color: var(--gold);
  border: 1px solid rgba(245, 200, 66, 0.2);
}
.arch-badge.purple {
  background: rgba(160, 90, 255, 0.1);
  color: #b490ff;
  border: 1px solid rgba(160, 90, 255, 0.2);
}
.arch-badge.blue {
  background: rgba(60, 130, 255, 0.1);
  color: #7aadff;
  border: 1px solid rgba(60, 130, 255, 0.2);
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12px;
}

.arch-connector-line {
  width: 1px;
  height: 100%;
  background: var(--border2);
}

.arch-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-meta-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.arch-meta-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.arch-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.arch-meta-item:last-child {
  border-bottom: none;
}

.arch-meta-key {
  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: 12px;
}
.arch-meta-val {
  color: var(--text);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
}

/* ─── ROADMAP ────────────────────────────────────────── */
#roadmap {
  background: var(--bg);
}

.roadmap-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.current-focus {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.current-focus-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.current-focus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
}

.current-focus-item::before {
  content: "▶";
  font-size: 8px;
  color: var(--accent);
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.phase-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.phase-card.done {
  border-color: rgba(13, 242, 194, 0.2);
}
.phase-card.active {
  border-color: rgba(255, 71, 25, 0.3);
}

.phase-card.done::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
}

.phase-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.phase-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.phase-title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text);
}

.phase-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.phase-bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 1.2s var(--ease-out-expo);
}

.phase-bar.done {
  background: linear-gradient(90deg, var(--teal), rgba(13, 242, 194, 0.6));
}
.phase-bar.active {
  background: linear-gradient(90deg, var(--accent), rgba(255, 71, 25, 0.6));
}
.phase-bar.pend {
  background: var(--muted);
}

.phase-pct {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-pct-num.done {
  color: var(--teal);
}
.phase-pct-num.active {
  color: var(--accent);
}
.phase-pct-num.pend {
  color: var(--muted);
}

.phase-status {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.phase-status.done {
  background: rgba(13, 242, 194, 0.1);
  color: var(--teal);
}
.phase-status.active {
  background: rgba(255, 71, 25, 0.1);
  color: var(--accent);
}
.phase-status.pend {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.phase-items {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.phase-item.checked {
  color: rgba(13, 242, 194, 0.7);
}
.pi-dot {
  flex-shrink: 0;
}
.phase-item.checked .pi-dot {
  color: var(--teal);
}

/* ─── FEATURES ───────────────────────────────────────── */
#features {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.feat-card:hover {
  transform: translateY(-4px);
}

.feat-card.live {
  border-color: rgba(13, 242, 194, 0.25);
  background: linear-gradient(
    150deg,
    rgba(13, 242, 194, 0.06) 0%,
    var(--surface) 55%
  );
}

.feat-card.live:hover {
  border-color: rgba(13, 242, 194, 0.5);
}
.feat-card.progress {
  border-color: rgba(255, 71, 25, 0.2);
  background: linear-gradient(
    150deg,
    rgba(255, 71, 25, 0.04) 0%,
    var(--surface) 55%
  );
}
.feat-card.progress:hover {
  border-color: rgba(255, 71, 25, 0.45);
}
.feat-card.upcoming:hover {
  border-color: rgba(245, 200, 66, 0.35);
}
.feat-card.planned {
  opacity: 0.8;
}
.feat-card.planned:hover {
  opacity: 1;
}

.feat-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  width: fit-content;
}

.feat-tag--live {
  background: var(--teal-g);
  color: var(--teal);
  border: 1px solid rgba(13, 242, 194, 0.3);
}
.feat-tag--progress {
  background: var(--accent-g);
  color: var(--accent);
  border: 1px solid rgba(255, 71, 25, 0.3);
}
.feat-tag--soon {
  background: rgba(245, 200, 66, 0.1);
  color: var(--gold);
  border: 1px solid rgba(245, 200, 66, 0.25);
}
.feat-tag--planned {
  background: rgba(140, 130, 220, 0.08);
  color: var(--text-2);
  border: 1px solid var(--border2);
}

.feat-icon {
  font-size: 30px;
  line-height: 1;
}

.feat-title {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feat-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.feat-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.feat-flow-step {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--teal);
  background: var(--teal-g);
  border: 1px solid rgba(13, 242, 194, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.feat-flow-arrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
}

/* ─── CTA ────────────────────────────────────────────── */
#cta {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 120px clamp(24px, 5vw, 80px);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 20px;
}

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

.cta-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.footer-logo {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

.footer-copy {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--text);
}

/* ─── SCROLL FADE-IN ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in-delay-1 {
  transition-delay: 0.1s;
}
.fade-in-delay-2 {
  transition-delay: 0.2s;
}
.fade-in-delay-3 {
  transition-delay: 0.3s;
}
.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* ─── KEYFRAMES ──────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-flow {
    flex-direction: column;
  }
  .step-arrow {
    padding-top: 0;
    width: 100%;
    height: 28px;
    align-items: center;
  }
  .step-arrow::after {
    content: "↓";
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .demo-panel {
    max-width: 500px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .how-header {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }
  .arch-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .phases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .phases-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .demo-body {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .nav-right .nav-link {
    display: none;
  }
}
