/* ─── Fonts (local, no CDN needed) ─── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Variables (matching Next.js oklch theme) ─── */
:root {
  --radius: 0.625rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.3s ease;
  --nav-h: 56px;

  /* Light theme - same oklch as Next.js */
  --background: oklch(0.985 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --border: oklch(0.922 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --sentinel: oklch(0.65 0.15 195);
  --sentinel-foreground: oklch(0.985 0 0);
  --alarm: oklch(0.577 0.245 27.325);
  --alarm-foreground: oklch(0.985 0 0);
  --sentinel-light: oklch(0.65 0.15 195 / 15%);
  --alarm-light: oklch(0.577 0.245 27.325 / 15%);
  --overlay: oklch(0 0 0 / 50%);
  --nav-bg: oklch(0.985 0 0 / 85%);
  --shadow-color: oklch(0 0 0 / 8%);
  --shadow-color-lg: oklch(0 0 0 / 12%);
}

@media (min-width: 640px) {
  :root { --nav-h: 64px; }
}

[data-theme="dark"] {
  --background: oklch(0.13 0.01 260);
  --foreground: oklch(0.96 0 0);
  --card: oklch(0.18 0.015 260);
  --card-foreground: oklch(0.96 0 0);
  --border: oklch(1 0 0 / 10%);
  --muted: oklch(0.22 0.02 260);
  --muted-foreground: oklch(0.65 0 0);
  --accent: oklch(0.22 0.02 260);
  --accent-foreground: oklch(0.96 0 0);
  --sentinel: oklch(0.72 0.15 195);
  --sentinel-foreground: oklch(0.13 0.01 260);
  --alarm: oklch(0.704 0.191 22.216);
  --alarm-foreground: oklch(0.985 0 0);
  --sentinel-light: oklch(0.72 0.15 195 / 15%);
  --alarm-light: oklch(0.704 0.191 22.216 / 15%);
  --overlay: oklch(0 0 0 / 70%);
  --nav-bg: oklch(0.13 0.01 260 / 85%);
  --shadow-color: oklch(0 0 0 / 30%);
  --shadow-color-lg: oklch(0 0 0 / 40%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
pre { margin: 0; }
[hidden] { display: none !important; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.sentinel-text { color: var(--sentinel); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.4 0 0 / 50%); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.5 0 0 / 70%); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.5;
}
.btn-primary {
  background: var(--sentinel);
  color: var(--sentinel-foreground);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
}
.btn-outline:hover { border-color: var(--sentinel); color: var(--sentinel); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ─── Navbar ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: all 0.3s;
  height: var(--nav-h);
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow-color);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
@media (min-width: 640px) { .nav-inner { padding: 0 32px; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 32px; } }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--sentinel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sentinel);
  transition: background var(--transition);
}
.nav-logo:hover .nav-logo-icon { background: var(--sentinel-light); opacity: 0.8; }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--foreground); background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

#themeToggle, #menuToggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
}
#themeToggle:hover, #menuToggle:hover { background: var(--accent); }
#menuToggle { display: flex; }
@media (min-width: 768px) { #menuToggle { display: none; } }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.icon-x { display: none; }
#menuToggle.open .icon-menu { display: none; }
#menuToggle.open .icon-x { display: block; }

/* ─── Mobile overlay (outside nav, document-level z-index) ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 40%);
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}
.mobile-overlay.open { display: block; }

/* ─── Mobile menu (outside nav, document-level z-index) ─── */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
  z-index: 150;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  border-radius: 8px;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a:hover,
.mobile-menu a:active { color: var(--foreground); background: var(--accent); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  scroll-margin-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--background);
  opacity: 0.8;
}
[data-theme="dark"] .hero-overlay { opacity: 0.9; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.glow-1 { width: 300px; height: 300px; top: 20%; left: 20%; background: var(--sentinel-light); animation: float 6s ease-in-out infinite; }
.glow-2 { width: 400px; height: 400px; bottom: 20%; right: 15%; background: var(--sentinel-light); animation: float 8s ease-in-out infinite 2s; }
.glow-3 { width: 200px; height: 200px; top: 50%; left: 50%; background: var(--alarm-light); animation: float 6s ease-in-out infinite; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 40px 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--sentinel-light);
  border: 1px solid var(--sentinel);
  color: var(--sentinel);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 40px;
}
@media (min-width: 640px) { .hero-badge { margin-bottom: 48px; } }
.hero-badge svg { animation: pulse-glow 2s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .hero h1 { margin-bottom: 32px; } }
.hero h1 span { display: block; }
.hero > .hero-content > p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}
@media (min-width: 640px) { .hero > .hero-content > p { margin-bottom: 56px; } }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 640px) { .hero-stats { gap: 48px; margin-bottom: 64px; } }
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-mono);
  color: var(--sentinel);
  font-weight: 700;
}
@media (min-width: 640px) { .hero-stats strong { font-size: 1.875rem; } }
.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 4px;
  display: block;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.scroll-indicator {
  margin-top: 64px;
  animation: bounce 2s infinite;
  color: var(--muted-foreground);
  opacity: 0.5;
  text-align: center;
}
@media (min-width: 640px) { .scroll-indicator { margin-top: 80px; } }

/* ─── Section ─── */
.section {
  padding: 96px 0;
  scroll-margin-top: var(--nav-h);
}
@media (min-width: 640px) {
  .section { padding: 128px 0; }
}
.section-alt { background: var(--muted); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
@media (min-width: 640px) { .section-header { margin-bottom: 64px; } }
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (min-width: 640px) { .section-header p { font-size: 1.125rem; } }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s;
}
@media (min-width: 640px) { .feature-card { padding: 24px; } }
.feature-card:hover {
  border-color: var(--sentinel);
  box-shadow: 0 8px 30px var(--sentinel-light);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.sentinel-bg { background: var(--sentinel-light); color: var(--sentinel); }
.alarm-bg { background: var(--alarm-light); color: var(--alarm); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }

/* ─── Camera Feed ─── */
.camera-feed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}
.camera-feed img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.demo-main-cam > .camera-feed::before { display: none; }
.camera-feed::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent 0%, transparent 95%, oklch(0.65 0.15 195 / 5%) 100%);
}
.cam-dot {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 8px; height: 8px; border-radius: 50%;
  background: #6b7280;
}
.cam-dot-on {
  background: #ef4444;
  animation: pulse-dot 1.5s infinite;
}
.cam-name {
  position: absolute; top: 8px; left: 24px; z-index: 3;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
}
.cam-time {
  position: absolute; bottom: 8px; left: 8px; z-index: 3;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
}
.cam-watermark {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--sentinel);
  opacity: 0.3;
  display: flex; align-items: center; gap: 4px;
}
.cam-rec {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  display: flex; align-items: center; gap: 5px;
  background: rgba(220,38,38,0.8);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  animation: pulse-dot 1.5s infinite;
}
/* Scan line effect */
.camera-feed .scan-line {
  position: absolute;
  left: 0; right: 0;
  z-index: 4;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--sentinel) 30%, var(--sentinel) 70%, transparent 95%);
  opacity: 0.6;
  animation: scan-line 3s linear infinite;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 8px var(--sentinel), 0 0 20px var(--sentinel-light);
}

/* ─── Demo ─── */
.demo-wrapper { max-width: 900px; margin: 0 auto; }
.demo-main-cam {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px var(--shadow-color-lg);
}
.sensor-overlay {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.sensor-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #6b7280;
  transition: all var(--transition);
}
.sensor-dot.active { background: #22c55e; animation: pulse-dot 1.5s infinite; }
#sensorStatus { font-weight: 600; }
#sensorStatus.active { color: #4ade80; }

.pip-window {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 180px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--sentinel);
  box-shadow: 0 8px 30px var(--sentinel-light);
  z-index: 10;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.pip-window.visible {
  transform: scale(1);
  opacity: 1;
}
@media (min-width: 640px) { .pip-window { width: 256px; } }
.pip-feed { border-radius: 0; }
.pip-badge {
  position: absolute; top: 6px; left: 6px; z-index: 5;
  background: var(--sentinel);
  color: var(--sentinel-foreground);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
}
.demo-controls {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) { .demo-controls { flex-direction: row; justify-content: center; } }
.hint-text { font-size: 0.875rem; color: var(--muted-foreground); }

#sensorToggle.active {
  background: var(--alarm);
  color: var(--alarm-foreground);
}
#sensorToggle.active:hover { opacity: 0.9; }
#sensorToggle:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ─── Alarm ─── */
.section-alarm {
  background: var(--alarm-light);
  border-top: 1px solid var(--alarm);
  border-bottom: 1px solid var(--alarm);
}
.alarm-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--alarm-light);
  border: 1px solid var(--alarm);
  color: var(--alarm);
}
.alarm-banner svg { animation: pulse-dot 1.5s infinite; }
.alarm-title { font-weight: 800; font-size: 1.05rem; color: var(--alarm); }
.alarm-subtitle { font-size: 0.85rem; color: var(--muted-foreground); }
.alarm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .alarm-grid { grid-template-columns: repeat(3, 1fr); } }
.alarm-cam {
  border: 1px solid var(--alarm);
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--alarm-light);
}
.alarm-cam img { filter: saturate(0.85) brightness(0.9); }
.alarm-cam::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: oklch(0.577 0.245 27.325 / 12%);
  animation: pulse-glow 2s ease-in-out infinite;
  pointer-events: none;
}

/* ─── Steps ─── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color var(--transition);
}
.step-card:hover { border-color: var(--sentinel); }
.step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--sentinel-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sentinel);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ─── Download ─── */
.download-area { max-width: 800px; margin: 0 auto; }
.loading-spinner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 48px;
  color: var(--muted-foreground);
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--sentinel);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.download-version {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.version-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--sentinel-light);
  border: 1px solid var(--sentinel);
}
.version-badge svg { color: var(--sentinel); }
.version-badge strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--sentinel);
}
.version-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.version-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 4px 12px;
  border-radius: 50px;
}
.download-changelog {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 32px;
}
.download-changelog h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}
.download-changelog p {
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.8;
  white-space: pre-line;
  line-height: 1.6;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }
.download-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.download-card:hover {
  border-color: var(--sentinel);
  box-shadow: 0 8px 30px var(--sentinel-light);
}
.download-card:hover .dl-name { color: var(--sentinel); }
.download-card:hover .dl-icon { transform: scale(1.1); }
.download-card:hover .dl-arrow { color: var(--sentinel); }
.dl-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--sentinel-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; font-size: 0.875rem; transition: color var(--transition); }
.dl-ver { font-size: 0.75rem; color: var(--muted-foreground); }
.dl-arrow { color: var(--muted-foreground); transition: color var(--transition); flex-shrink: 0; }
.download-error { text-align: center; padding: 48px; }
.download-error p { color: var(--muted-foreground); margin-bottom: 16px; }
.download-card.recommended { border-color: var(--sentinel); }
.dl-recommended {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 50px;
  background: var(--sentinel);
  color: var(--sentinel-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}
.dl-icon { color: var(--sentinel); }
.changelog-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.changelog-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.change-tag {
  flex-shrink: 0;
  min-width: 92px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.change-tag.tag-feat { background: var(--sentinel-light); color: var(--sentinel); }
.change-tag.tag-fix { background: var(--alarm-light); color: var(--alarm); }
.changelog-empty { font-size: 0.875rem; color: var(--muted-foreground); }
.release-history {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 32px;
}
.release-history summary {
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.release-history summary:hover { color: var(--sentinel); }
.release-item { padding: 16px 24px; border-top: 1px solid var(--border); }
.release-item-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.release-item-head a { font-family: var(--font-mono); font-weight: 700; color: var(--sentinel); }
.release-item-head a:hover { text-decoration: underline; }
.release-item-head span { font-size: 0.8rem; color: var(--muted-foreground); }
.source-links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}

/* ─── Hero release pill ─── */
.hero-release {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 6px 14px 6px 6px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--foreground);
  transition: border-color var(--transition);
}
.hero-release:hover { border-color: var(--sentinel); }
.hero-release-tag {
  padding: 2px 10px;
  border-radius: 50px;
  background: var(--sentinel);
  color: var(--sentinel-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ─── Screenshot gallery ─── */
.shots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .shots-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .shots-grid { grid-template-columns: repeat(3, 1fr); } }
.shot-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 671;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: zoom-in;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.shot-frame:hover {
  border-color: var(--sentinel);
  box-shadow: 0 8px 30px var(--sentinel-light);
  transform: translateY(-2px);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot figcaption { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.shot figcaption strong { font-size: 0.95rem; }
.shot figcaption span { font-size: 0.8rem; color: var(--muted-foreground); }


/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px;
  background: oklch(0 0 0 / 85%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox figure { max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img {
  max-height: calc(100vh - 120px);
  width: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 50%);
}
.lightbox figcaption { color: #e5e7eb; font-size: 0.9rem; text-align: center; }
.lb-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: oklch(1 0 0 / 12%);
  color: #fff;
  transition: background var(--transition);
}
.lb-btn:hover { background: var(--sentinel); }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-logo svg { color: var(--sentinel); }
.footer-brand p,
.footer-author p { font-size: 0.85rem; color: var(--muted-foreground); line-height: 1.6; }
.footer h4 { font-weight: 700; margin-bottom: 12px; }
.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sentinel); }
.footer-author a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color var(--transition);
}
.footer-author a:hover { color: var(--sentinel); }
.footer-author p { margin-top: 6px; font-size: 0.8rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  gap: 4px;
  text-align: center;
}
@media (max-width: 480px) {
  .footer-bottom {
    padding: 20px 0;
    font-size: 0.8rem;
  }
}
.footer-bottom a:hover { text-decoration: underline; }

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Keyframes ─── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes scan-line {
  0% { top: -10%; }
  100% { top: 110%; }
}
