:root {
  color-scheme: dark;
  --bg-950: #070a10;
  --bg-900: #0b0f19;
  --bg-850: #101726;
  --bg-800: #141d30;
  --border-700: #1e293b;
  --border-600: #334155;
  --text-100: #f8fafc;
  --text-200: #e2e8f0;
  --text-300: #cbd5e1;
  --text-400: #94a3b8;
  --text-500: #64748b;
  --accent-400: #38bdf8;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
  --emerald-400: #34d399;
  --amber-400: #fbbf24;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-950);
  color: var(--text-200);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-950);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(14, 165, 233, 0.16), transparent),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 1px, transparent 1px),
    linear-gradient(to right, rgba(15, 23, 42, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-900);
}
::-webkit-scrollbar-thumb {
  background: var(--border-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-600);
}

a {
  color: var(--accent-400);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7dd3fc;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-700);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.brand {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-100);
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text-100);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-300);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Links that appear only in the small-screen menu */
.nav-links .nav-extra {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--bg-850);
  border: 1px solid var(--border-700);
  border-radius: 0.5rem;
  color: var(--text-200);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-800);
  color: var(--text-100);
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-500), var(--accent-600));
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #38bdf8, var(--accent-500));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: var(--bg-850);
  color: var(--text-200);
  border-color: var(--border-700);
}

.btn-secondary:hover {
  background: var(--bg-800);
  color: var(--text-100);
  border-color: var(--border-600);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  color: var(--text-300);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(14, 165, 233, 0.22));
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 auto 1.15rem;
  max-width: 850px;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-400);
  max-width: 740px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.docker-pull-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-300);
  max-width: 100%;
  overflow: hidden;
}

.docker-pull-box .prompt {
  color: var(--accent-400);
  user-select: none;
}

.docker-pull-box code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  text-align: left;
}

.docker-pull-box .prompt,
.docker-pull-box .copy-icon-btn {
  flex-shrink: 0;
}

.copy-icon-btn {
  background: var(--bg-800);
  border: 1px solid var(--border-700);
  color: var(--text-300);
  border-radius: 0.375rem;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-icon-btn:hover {
  background: var(--border-700);
  color: var(--text-100);
}

/* Hero Launch Film */
.hero-video {
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.hero-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-950);
  border: 1px solid var(--border-700);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.75);
  border: 1px solid var(--border-700);
  color: var(--text-300);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-video-toggle:hover {
  background: var(--bg-800);
  color: var(--text-100);
}

.hero-video-toggle svg {
  width: 1rem;
  height: 1rem;
}

.hero-video-toggle .icon-play,
.hero-video-toggle.is-paused .icon-pause {
  display: none;
}

.hero-video-toggle.is-paused .icon-play {
  display: block;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 3.5rem;
}

.stat-card {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-400);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-400);
}

/* Interactive Screenshot Showcase */
.section {
  padding: 4rem 0;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-400);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 750;
  color: var(--text-100);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-desc {
  color: var(--text-400);
  font-size: 1rem;
  margin: 0;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.showcase-tab {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  color: var(--text-300);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.showcase-tab:hover {
  border-color: var(--border-600);
  color: var(--text-100);
}

.showcase-tab.active {
  background: rgba(14, 165, 233, 0.14);
  border-color: var(--accent-500);
  color: var(--accent-400);
}

.showcase-frame {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-850);
  border-bottom: 1px solid var(--border-700);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-600);
}

.window-dots span:nth-child(1) { background: #ef4444; opacity: 0.75; }
.window-dots span:nth-child(2) { background: #f59e0b; opacity: 0.75; }
.window-dots span:nth-child(3) { background: #10b981; opacity: 0.75; }

.showcase-caption {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-300);
}

.showcase-zoom-hint {
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--text-400);
}

/* Fixed frame height so portrait and landscape shots never move the page.
   620px of image plus 1rem padding top and bottom. Below 1200px the frame
   follows the width of the landscape shots (1.80 : 1). */
.showcase-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--bg-950);
  height: min(calc(620px + 2rem), calc(55.4vw - 13px));
  cursor: zoom-in;
  /* The wrapper is a button: clear the default button look */
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
}

.showcase-img-wrapper:focus-visible,
.code-block:focus-visible,
.unraid-panel:focus-visible {
  outline-offset: -3px;
}

.showcase-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--border-700);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-600);
  transform: translateY(-2px);
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-400);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.section-desc code,
.feature-card p code,
.doc-link-card p code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-850);
  border: 1px solid var(--border-700);
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  color: var(--accent-400);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-100);
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-400);
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Comparison Table: scrolls sideways inside its own wrapper */
.compare-wrap {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
  background: var(--bg-900);
}

.compare-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.compare-table th,
.compare-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  color: var(--text-300);
  border-bottom: 1px solid var(--border-700);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  color: var(--text-100);
  font-weight: 650;
  background: var(--bg-850);
}

.compare-table tbody th {
  position: sticky;
  left: 0;
  width: 15%;
  min-width: 9rem;
  color: var(--text-100);
  font-weight: 600;
  background: var(--bg-900);
}

.compare-table thead th:first-child {
  position: sticky;
  left: 0;
}

.compare-table .compare-us {
  background: rgba(14, 165, 233, 0.07);
}

.compare-table thead .compare-us {
  color: var(--accent-400);
  background: rgba(14, 165, 233, 0.14);
}

.compare-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-400);
}

.compare-table code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-400);
}

.compare-note {
  max-width: 1000px;
  margin: 1rem auto 0;
  font-size: 0.85rem;
  color: var(--text-400);
}

/* Privacy & Security */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.trust-card {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.trust-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-100);
  margin: 0 0 0.75rem;
}

.trust-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-300);
}

.trust-list strong {
  color: var(--text-100);
  font-weight: 600;
}

.trust-list code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-850);
  border: 1px solid var(--border-700);
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  color: var(--accent-400);
}

/* Quick Start Code Tabs */
.code-panel {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-850);
  border-bottom: 1px solid var(--border-700);
}

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.code-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-400);
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.code-tab:hover {
  color: var(--text-200);
}

.code-tab.active {
  background: var(--bg-800);
  border-color: var(--border-600);
  color: var(--accent-400);
}

.code-block {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-200);
  background: var(--bg-950);
}

.code-block.hidden,
.unraid-panel.hidden,
.copy-icon-btn.hidden {
  display: none;
}

.unraid-panel {
  padding: 1.35rem 1.5rem;
  background: var(--bg-950);
  color: var(--text-200);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.unraid-panel p {
  margin: 0 0 0.85rem;
  color: var(--text-300);
}

.unraid-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.unraid-steps code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-850);
  border: 1px solid var(--border-700);
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  color: var(--accent-400);
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
}

.faq-item[open] {
  border-color: var(--border-600);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-100);
}

.faq-item summary:hover {
  color: var(--accent-400);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-300);
}

.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-850);
  border: 1px solid var(--border-700);
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  color: var(--accent-400);
}

/* Quick Start Next Steps */
.next-steps {
  max-width: 860px;
  margin: 1.75rem auto 0;
}

.next-steps h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-100);
  margin: 1.5rem 0 0.6rem;
}

.next-steps-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-400);
}

.next-steps-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-300);
}

.next-steps code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-850);
  border: 1px solid var(--border-700);
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  color: var(--accent-400);
}

/* Documentation Links Grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.doc-link-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  color: var(--text-200);
  transition: all 0.15s ease;
}

a.doc-link-card:hover {
  border-color: var(--accent-500);
  background: var(--bg-850);
  color: var(--text-100);
}

.doc-link-card > div {
  min-width: 0;
}

.doc-link-card h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: var(--text-100);
}

.doc-link-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-400);
}

.doc-arrow {
  color: var(--accent-400);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Tech Stack Pills */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.45rem;
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  color: var(--text-300);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-700);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: var(--bg-900);
  font-size: 0.875rem;
  color: var(--text-400);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 10, 16, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  /* visibility keeps the closed lightbox out of the tab order; it switches off after the fade */
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0s;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 0.5rem;
  border: 1px solid var(--border-600);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: var(--bg-800);
  border: 1px solid var(--border-600);
  color: var(--text-100);
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Menu: the links drop down under the header (absolute, so nothing below moves) */
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 1.5rem 0.75rem;
    background: rgba(7, 10, 16, 0.98);
    border-bottom: 1px solid var(--border-700);
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
  }
  .site-header.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  .nav-links .nav-extra {
    display: block;
  }
}

@media (max-width: 640px) {
  .docker-pull-box {
    font-size: 0.78rem;
  }
  .hero-logo,
  .pill-detail {
    display: none;
  }
  .stats-strip,
  .features-grid,
  .trust-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .compare-table tbody th,
  .compare-table thead th:first-child {
    position: static;
  }
  .hero {
    padding: 1.75rem 0 2rem;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }
  .showcase-tabs {
    gap: 0.4rem;
  }
  .showcase-tab {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }
  .showcase-topbar {
    padding: 0.55rem 0.75rem;
  }
  .window-dots,
  .showcase-zoom-hint {
    display: none;
  }
  .showcase-caption {
    padding: 0;
    text-align: left;
  }
  .showcase-img-wrapper {
    padding: 0.5rem;
    height: min(calc(620px + 1rem), calc(55.4vw - 20px));
  }
  .showcase-img-wrapper.portrait {
    height: min(calc(620px + 1rem), 125vw);
  }
  .lightbox {
    padding: 0.75rem;
  }
  .lightbox-close {
    top: 0.5rem;
    right: 0.75rem;
  }
}

/* Narrow phones: the header shows the GitHub link as an icon so the brand, link and menu button fit at 360px */
@media (max-width: 420px) {
  .nav-actions .btn {
    gap: 0;
    padding: 0.45rem 0.65rem;
  }
  .nav-actions .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}
