/* ============================================================
   AlgoMLN — styles.css  (Melogne Studio visual language)
   ============================================================ */

/* ---------- THEME VARIABLES ---------- */
:root {
  --bg: #080c0a;
  --bg2: #0d1410;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --surface-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(100,200,100,0.25);
  --green: #5a9040;
  --green-light: #7dc85a;
  --green-dim: #3a6028;
  --green-glow: rgba(90,144,64,0.15);
  --text: #e8f0e4;
  --text-dim: rgba(232,240,228,0.62);
  --text-muted: rgba(232,240,228,0.35);
  --teal: #2a8a7a;
  --teal-light: #3ab8a4;
  --amber: rgba(232,196,100,0.9);
  --maxw: 1180px;
  --maxw-narrow: 880px;
  --nav-h: 64px;
}
[data-theme="light"] {
  --bg: #f4f7f2;
  --bg2: #e8ede5;
  --surface: rgba(0,0,0,0.035);
  --surface-hover: rgba(0,0,0,0.06);
  --surface-strong: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(60,140,40,0.32);
  --green: #4a7a30;
  --green-light: #3a6a20;
  --green-dim: #6aa040;
  --green-glow: rgba(60,120,30,0.10);
  --text: #1a2418;
  --text-dim: rgba(20,36,18,0.62);
  --text-muted: rgba(20,36,18,0.42);
  --teal: #1a6a5a;
  --teal-light: #1a8a76;
  --amber: rgba(140,100,20,0.9);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s, color 0.25s;
  line-height: 1.5;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(90,144,64,0.12), transparent 32%),
    radial-gradient(circle at 82% 26%, rgba(42,138,122,0.10), transparent 36%),
    radial-gradient(circle at 50% 86%, rgba(90,144,64,0.08), transparent 40%);
  filter: blur(80px);
  opacity: 0.85;
  animation: ambientMove 22s ease-in-out infinite alternate;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(90,144,64,0.08), transparent 32%),
    radial-gradient(circle at 82% 26%, rgba(42,138,122,0.06), transparent 36%),
    radial-gradient(circle at 50% 86%, rgba(90,144,64,0.05), transparent 40%);
  opacity: 0.7;
}
@keyframes ambientMove {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%,2%,0) scale(1.05); }
  100% { transform: translate3d(3%,-2%,0) scale(1.08); }
}
main, nav, footer { position: relative; z-index: 1; }

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,12,10,0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
[data-theme="light"] nav { background: rgba(244,247,242,0.80); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}
.nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  letter-spacing: 0.005em;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }

.nav-indicator {
  position: absolute;
  bottom: -19px;
  height: 2px;
  background: var(--green-light);
  border-radius: 2px;
  transition: left 0.32s cubic-bezier(0.4,0,0.2,1), width 0.32s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(125,200,90,0.45);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 6px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-hover);
}
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  background: var(--surface);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.btn-primary {
  background: rgba(90,144,64,0.18);
  border-color: rgba(90,144,64,0.40);
  color: var(--green-light);
}
.btn-primary:hover {
  background: rgba(90,144,64,0.28);
  border-color: rgba(90,144,64,0.65);
  box-shadow: 0 6px 22px rgba(90,144,64,0.18);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-hover);
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-lg { padding: 13px 24px; font-size: 14px; border-radius: 12px; }
.btn-lg svg { width: 15px; height: 15px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 64px) 40px 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  opacity: 0.35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 320px at 50% 40%, rgba(90,144,64,0.18), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 8px var(--green-light);
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green-light); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--green-light); }
}
.hero-logo {
  width: 96px; height: 96px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 60px rgba(90,144,64,0.10);
  animation: heroFloat 6s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-logo-placeholder {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--green-light);
  text-align: center;
  line-height: 1.6;
  padding: 12px;
}
@keyframes heroFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--green-light);
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ---------- SECTION SHELL ---------- */
.section {
  position: relative;
  padding: 96px 40px;
  scroll-margin-top: var(--nav-h);
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-inner-narrow { max-width: var(--maxw-narrow); }
.section-header {
  margin-bottom: 56px;
  max-width: 640px;
}
.section-label {
  font-family: 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--green-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 540px;
}

/* ---------- BADGES + TAGS ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Cascadia Code', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid;
  line-height: 1.4;
}
.badge-version {
  color: var(--text-dim);
  background: var(--surface);
  border-color: var(--border);
}
.badge-beta {
  color: var(--amber);
  background: rgba(232,196,100,0.08);
  border-color: rgba(232,196,100,0.22);
}
[data-theme="light"] .badge-beta {
  background: rgba(140,100,20,0.06);
  border-color: rgba(140,100,20,0.20);
}
.badge-status-dev {
  color: var(--teal-light);
  background: rgba(42,138,122,0.12);
  border-color: rgba(42,138,122,0.30);
}
.badge-status-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 6px var(--teal-light);
  animation: devPulse 2.4s ease-in-out infinite;
}
@keyframes devPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tag:hover {
  color: var(--green-light);
  border-color: rgba(90,144,64,0.30);
  background: rgba(90,144,64,0.06);
}

/* ---------- FEATURE GRID ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,0.28), 0 0 40px var(--green-glow);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(90,144,64,0.12);
  border: 1px solid rgba(90,144,64,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: rotate(-4deg) scale(1.05); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.teal {
  background: rgba(42,138,122,0.12);
  border-color: rgba(42,138,122,0.22);
  color: var(--teal-light);
}
.feature-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  flex: 1;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- DSL PREVIEW ---------- */
.dsl-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 420px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dsl-preview:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 0 50px var(--green-glow);
}
.dsl-left {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.dsl-left-top { display: flex; flex-direction: column; gap: 20px; }
.dsl-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dsl-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 360px;
}
.dsl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dsl-right {
  border-left: 1px solid var(--border);
  background: #06090a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
[data-theme="light"] .dsl-right { background: #d8dfd5; }
.dsl-code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dsl-code-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.dsl-code-dot-r { background: rgba(255,100,80,0.65); }
.dsl-code-dot-y { background: rgba(255,200,60,0.65); }
.dsl-code-dot-g { background: rgba(90,200,60,0.65); }
.dsl-code-filename {
  font-family: 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 10px;
  letter-spacing: 0.04em;
}
.dsl-code-body {
  padding: 24px 24px 24px;
  flex: 1;
  overflow: auto;
}
.dsl-code-body pre {
  font-family: 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}
.dsl-code-body pre .kw  { color: #7dc85a; }
.dsl-code-body pre .fn  { color: #3ab8a4; }
.dsl-code-body pre .num { color: #e8c460; }
.dsl-code-body pre .cmt { color: rgba(232,240,228,0.28); }
[data-theme="light"] .dsl-code-body pre .kw  { color: #3a6a20; }
[data-theme="light"] .dsl-code-body pre .fn  { color: #1a7a6a; }
[data-theme="light"] .dsl-code-body pre .num { color: #8a6010; }
[data-theme="light"] .dsl-code-body pre .cmt { color: rgba(20,36,18,0.32); }

/* ---------- PIPELINE ---------- */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.pipeline-node {
  font-family: 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.pipeline-node:hover {
  color: var(--green-light);
  border-color: rgba(90,144,64,0.30);
}
.pipeline-arrow {
  font-family: 'Cascadia Code', monospace;
  font-size: 13px;
  color: var(--green-dim);
  padding: 0 6px;
}

/* ---------- STATS GRID ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22), 0 0 30px var(--green-glow);
}
.stat-value {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--text) 0%, var(--green-light) 200%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-family: 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- PHASE LIST ---------- */
.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.phase-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.phase-item.done {
  border-color: rgba(90,144,64,0.18);
  background: rgba(90,144,64,0.04);
}
.phase-item.pending {
  opacity: 0.6;
}
.phase-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.phase-dot-done { background: var(--green-light); box-shadow: 0 0 8px rgba(125,200,90,0.4); }
.phase-dot-pending { background: var(--border); border: 1px solid rgba(255,255,255,0.15); }
.phase-content {}
.phase-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.phase-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 40px;
  padding: 64px 40px 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.015) 100%);
}
[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.015) 100%);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo img {
  width: 28px; height: 28px;
  border-radius: 7px;
  object-fit: contain;
}
.footer-logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(90,144,64,0.18);
  border: 1px solid rgba(90,144,64,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
}
.footer-logo span {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text);
}
.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}
.footer-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.footer-link svg { width: 14px; height: 14px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: 'Cascadia Code', monospace;
  letter-spacing: 0.02em;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.2,0.8,0.2,1), transform 0.65s cubic-bezier(0.2,0.8,0.2,1);
  will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-list > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.2,0.8,0.2,1), transform 0.55s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal-list.revealed > * { opacity: 1; transform: translateY(0); }
.reveal-list.revealed > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-list.revealed > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-list.revealed > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-list.revealed > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-list.revealed > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-list.revealed > *:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-list > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::before, .hero-logo, .hero-eyebrow-dot, .badge-status-pulse { animation: none !important; }
  .feature-card:hover, .stat-card:hover, .btn:hover, .footer-link:hover { transform: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dsl-preview { grid-template-columns: 1fr; min-height: auto; }
  .dsl-right { border-left: none; border-top: 1px solid var(--border); min-height: 320px; }
}
@media (max-width: 920px) {
  .nav-inner { padding: 0 24px; }
  .nav-logo-text { display: none; }
  .nav-link { padding: 7px 11px; font-size: 12.5px; }
  .hero { padding: calc(var(--nav-h) + 48px) 24px 72px; min-height: auto; }
  .section { padding: 72px 24px; }
  .dsl-left { padding: 32px 28px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .phase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-link { padding: 6px 9px; font-size: 12px; }
  .hero { padding: calc(var(--nav-h) + 32px) 16px 64px; }
  .hero-logo { width: 80px; height: 80px; }
  .section { padding: 56px 16px; }
  .footer { padding: 48px 16px 28px; }
  .stats-grid { grid-template-columns: 1fr; }
}
