/* ══════════════════════════════════════════════════════════════
   Matrix IT — Packet Loss Monitor  |  styles.css
   Dark theme matching the WPF application's own colour system
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0D1117;
  --surface:     #161B22;
  --surface2:    #1C2128;
  --surface3:    #21262D;
  --border:      #30363D;
  --border-sub:  #21262D;
  --accent:      #1E88E5;
  --accent-dark: #1565C0;
  --accent-glow: rgba(30,136,229,0.18);
  --ok:          #3FB950;
  --ok-bg:       rgba(63,185,80,0.10);
  --warn:        #D29922;
  --warn-bg:     rgba(210,153,34,0.10);
  --alert:       #F85149;
  --alert-bg:    rgba(248,81,73,0.10);
  --purple:      #a78bfa;
  --text:        #E6EDF3;
  --text-sec:    #C9D1D9;
  --text-muted:  #8B949E;
  --text-subtle: #484f58;
  --r:           8px;
  --r-lg:        12px;
  --r-xl:        20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.7);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  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: 48px 48px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30,136,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(30,136,229,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

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

@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-badge-icon { color: var(--ok); font-size: 0.9rem; }

/* ── Hero Dashboard Mockup ──────────────────────────────────── */
.hero-mockup-wrap {
  position: relative;
}

.hero-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
  animation: mockup-float 6s ease-in-out infinite;
}

@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.chrome-dots { display: flex; gap: 6px; }
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; }
.chrome-dot.r { background: #F85149; }
.chrome-dot.y { background: #D29922; }
.chrome-dot.g { background: #3FB950; }

.chrome-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.mockup-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mockup-nav span {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: default;
  border-bottom: 2px solid transparent;
}

.mockup-nav .mnav-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}

.mock-target-cards { display: flex; flex-direction: column; gap: 8px; }

.mtc {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
  transition: border-color 0.4s;
}

.mtc.ok    { border-left: 3px solid var(--ok); }
.mtc.warn  { border-left: 3px solid var(--warn); }
.mtc.alert { border-left: 3px solid var(--alert); animation: card-pulse-alert 2s infinite; }

@keyframes card-pulse-alert {
  0%, 100% { border-left-color: var(--alert); }
  50% { border-left-color: rgba(248,81,73,0.4); }
}

.mtc-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mtc-dot.ok    { background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: dot-pulse-ok 3s infinite; }
.mtc-dot.warn  { background: var(--warn); box-shadow: 0 0 6px var(--warn); animation: dot-pulse-warn 2s infinite; }
.mtc-dot.alert { background: var(--alert); box-shadow: 0 0 6px var(--alert); animation: dot-pulse-alert 1.5s infinite; }

@keyframes dot-pulse-ok    { 0%,100%{box-shadow:0 0 4px var(--ok);} 50%{box-shadow:0 0 10px var(--ok);} }
@keyframes dot-pulse-warn  { 0%,100%{box-shadow:0 0 4px var(--warn);} 50%{box-shadow:0 0 10px var(--warn);} }
@keyframes dot-pulse-alert { 0%,100%{box-shadow:0 0 4px var(--alert);} 50%{box-shadow:0 0 12px var(--alert);} }

.mtc-info { flex: 1; min-width: 0; }
.mtc-name { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtc-host { font-size: 0.68rem; color: var(--text-muted); font-family: monospace; }

.mtc-metrics { text-align: right; }
.mtc-loss { display: block; font-size: 0.75rem; font-weight: 700; }
.mtc-loss.ok    { color: var(--ok); }
.mtc-loss.warn  { color: var(--warn); }
.mtc-loss.alert { color: var(--alert); }
.mtc-lat  { font-size: 0.68rem; color: var(--text-muted); }

/* Alert feed in mockup */
.mock-alerts { display: flex; flex-direction: column; gap: 6px; }
.mock-alerts-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mal {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 5px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.mal.alert-item { background: var(--alert-bg); color: var(--alert); border-left: 2px solid var(--alert); }
.mal.warn-item  { background: var(--warn-bg); color: var(--warn); border-left: 2px solid var(--warn); }

.mal-time { font-size: 0.64rem; color: var(--text-subtle); margin-left: auto; white-space: nowrap; padding-left: 4px; }

/* ── Stats Strip ─────────────────────────────────────────────── */
#stats {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.stat-number.accent { color: var(--accent); }
.stat-number.ok     { color: var(--ok); }
.stat-number.warn   { color: var(--warn); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Architecture ───────────────────────────────────────────── */
#architecture .arch-wrap {
  text-align: center;
}

#architecture img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Feature Cards ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.feature-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

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

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: gap 0.2s;
  margin-top: auto;
}

.explore-btn:hover { gap: 10px; }

/* ── Analytics Showcase ─────────────────────────────────────── */
#analytics .analytics-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  overflow: hidden;
}

.chart-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.chart-area {
  width: 100%;
  height: 160px;
  position: relative;
}

/* Latency SVG chart (inline) */
.lat-chart {
  width: 100%;
  height: 160px;
  overflow: visible;
}

.chart-polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

.chart-polyline.animated { stroke-dashoffset: 0; }

.chart-fill {
  fill: rgba(30,136,229,0.08);
}

.threshold-line {
  stroke: var(--warn);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  stroke-opacity: 0.7;
}

/* Heat strip */
.heat-strip-wrap { margin-top: 20px; }
.heat-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.heat-strip {
  display: flex;
  gap: 2px;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
}

.heat-block {
  flex: 1;
  border-radius: 2px;
  transition: opacity 0.3s;
}

.heat-block.ok    { background: var(--ok); }
.heat-block.warn  { background: var(--warn); }
.heat-block.alert { background: var(--alert); }

.analytics-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.astat {
  background: var(--surface2);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}

.astat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}

.astat-value.ok    { color: var(--ok); }
.astat-value.warn  { color: var(--warn); }
.astat-value.alert { color: var(--alert); }

.astat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Analytics right side */
.analytics-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-info-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.analytics-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afeat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.afeat-icon {
  width: 32px; height: 32px;
  border-radius: var(--r);
  background: var(--accent-glow);
  border: 1px solid rgba(30,136,229,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.afeat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.afeat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Correlation Section ─────────────────────────────────────── */
#correlation .corr-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.corr-desc h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.corr-desc p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.corr-scale {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.corr-scale-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.corr-bar-wrap {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--ok) 0%, var(--warn) 50%, var(--alert) 100%);
  margin-bottom: 6px;
  position: relative;
}

.corr-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.corr-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clevel {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-sec);
  padding: 6px 10px;
  border-radius: 6px;
}

.clevel.high   { background: var(--alert-bg); }
.clevel.mid    { background: var(--warn-bg); }
.clevel.low    { background: var(--ok-bg); }

.clevel-icon { font-size: 1rem; }

.corr-img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  width: 100%;
}

/* ── Alert Email Preview ─────────────────────────────────────── */
#email-preview .email-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.email-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.email-info p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.email-features { display: flex; flex-direction: column; gap: 10px; }

.email-feat {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.email-feat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.email-img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  width: 100%;
  box-shadow: var(--shadow);
}

/* ── How It Works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  z-index: 0;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin: 0 8px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Deployment ──────────────────────────────────────────────── */
.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.deploy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}

.deploy-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(30,136,229,0.05) 100%);
}

.deploy-icon { font-size: 2.4rem; margin-bottom: 16px; }

.deploy-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.deploy-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.deploy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deploy-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.deploy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* ── Download CTA ────────────────────────────────────────────── */
#download {
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(30,136,229,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ok-bg);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ok);
  margin-bottom: 24px;
}

.dl-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.dl-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dl-free {
  font-size: 1.1rem;
  color: var(--ok);
  font-weight: 600;
  margin-bottom: 36px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--r-xl);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(30,136,229,0.3);
}

.dl-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30,136,229,0.4);
  text-decoration: none;
  color: #fff;
}

.dl-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.dl-meta-item { display: flex; align-items: center; gap: 6px; }
.dl-meta-dot { color: var(--ok); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.footer-matrix {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-matrix a { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   MODAL SYSTEM
   ══════════════════════════════════════════════════════════════ */

/* ── L1 Overlay ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── L1 Modal Box ───────────────────────────────────────────── */
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon { font-size: 1.8rem; }

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.modal-close {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--alert-bg);
  border-color: var(--alert);
  color: var(--alert);
}

.modal-body {
  padding: 28px 32px;
}

.modal-overview {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-visual {
  margin-bottom: 28px;
  text-align: center;
}

.modal-visual img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  max-width: 100%;
}

/* L2 sub-feature grid */
.modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.l2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.l2-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
  color: var(--text);
}

.l2-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.l2-btn-icon { font-size: 1.2rem; flex-shrink: 0; }

.l2-btn-text { flex: 1; }

.l2-btn-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.l2-btn-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.l2-btn-arrow {
  font-size: 0.9rem;
  color: var(--text-subtle);
  transition: transform 0.2s;
}

.l2-btn:hover .l2-btn-arrow { transform: translateX(3px); color: var(--accent); }

/* ── L2 Overlay ─────────────────────────────────────────────── */
.l2-overlay {
  z-index: 1100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.l2-modal {
  max-width: 600px;
  border-color: var(--accent);
}

.l2-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
}

.l2-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  flex-shrink: 0;
}

.l2-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.l2-header-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.l2-body {
  padding: 24px 28px;
}

.l2-overview {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin-top: 14px;
}

.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.spec-table td { color: var(--text-sec); }
.spec-table td:first-child { color: var(--text-muted); font-weight: 500; }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
  margin-top: 14px;
}

.code-comment { color: var(--text-subtle); }
.code-key { color: var(--accent); }
.code-val { color: var(--ok); }
.code-alert-val { color: var(--alert); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-ok    { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(63,185,80,0.3); }
.tag-warn  { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(210,153,34,0.3); }
.tag-alert { background: var(--alert-bg); color: var(--alert); border: 1px solid rgba(248,81,73,0.3); }
.tag-blue  { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(30,136,229,0.3); }
.tag-muted { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }

.info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r);
}

.info-row.info-ok    { background: var(--ok-bg); border: 1px solid rgba(63,185,80,0.2); }
.info-row.info-warn  { background: var(--warn-bg); border: 1px solid rgba(210,153,34,0.2); }
.info-row.info-alert { background: var(--alert-bg); border: 1px solid rgba(248,81,73,0.2); }
.info-row.info-blue  { background: var(--accent-glow); border: 1px solid rgba(30,136,229,0.2); }

.info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.info-text { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(4), .stat-item:nth-child(5) { border-top: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .hero-inner { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .step-card { margin: 0; margin-bottom: 12px; }
  .deploy-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  #analytics .analytics-inner { grid-template-columns: 1fr; }
  #correlation .corr-inner { grid-template-columns: 1fr; }
  #email-preview .email-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .l2-grid { grid-template-columns: 1fr; }
  .modal { margin: 12px; }
  .modal-header, .modal-body { padding: 20px; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-ok    { color: var(--ok) !important; }
.text-warn  { color: var(--warn) !important; }
.text-alert { color: var(--alert) !important; }
.text-accent{ color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }
