:root {
  --bg-base: #080c12;
  --bg-surface: #0e141d;
  --bg-elevated: #141c28;
  --bg-card-hover: #1a2433;
  --border-subtle: #222d3d;
  --border-focus: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --cyan: #22d3ee;
  --emerald: #0fd4a4;
  --emerald-bright: #2ef2c0;
  --emerald-dim: rgba(34, 211, 238, 0.12);
  --emerald-glow: rgba(34, 211, 238, 0.36);
  --danger: #ef4444;
  --font-mono: 'Courier New', Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

[id] {
  scroll-margin-top: 86px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono,
code {
  font-family: var(--font-mono);
}

/* Subtle technical grid background */
.bg-studio-grid {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.13) 0%, rgba(16, 212, 158, 0.06) 32%, transparent 60%),
    linear-gradient(to right, rgba(34, 45, 61, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 45, 61, 0.32) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-inner .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px !important;
  border: 1px solid var(--border-subtle);
  background: #141417;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-name .accent {
  color: var(--emerald-bright);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0fd4a4 100%);
  color: #041017;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #2ef2c0 100%);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 15px 28px;
}

/* Eyebrow Pill */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.32);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
  border-radius: 50%;
}

/* Hero Section */
.hero {
  padding: 76px 0 92px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.1vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 20px 0;
  color: #ffffff;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 48%, #2ef2c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-byo-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero-byo-note strong {
  color: var(--text-secondary);
}

/* High-Visibility Hero Feature Strip */
.hero-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  padding: 16px 18px;
  background: rgba(18, 18, 22, 0.88);
  border: 1px solid rgba(20, 176, 133, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 16px rgba(20, 176, 133, 0.05);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta-icon {
  color: var(--emerald-bright);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--emerald-dim);
  border: 1px solid rgba(20, 176, 133, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-meta-text strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.hero-meta-text span {
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-top: 2px;
}

/* 3D Tilt + Permanent Glow on Hero App Screenshots */
.hero-visual-stack {
  position: relative;
  perspective: 1000px;
  padding: 24px 12px 76px;
}

.hero-glow-backdrop {
  position: absolute;
  inset: -5% -5%;
  background: radial-gradient(circle at 52% 48%, rgba(34, 211, 238, 0.34) 0%, rgba(15, 212, 164, 0.22) 44%, transparent 72%);
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
}

.app-shot-primary {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(34, 211, 238, 0.65);
  background: #080c12;
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(34, 211, 238, 0.32),
    0 0 90px rgba(15, 212, 164, 0.2);
  transform: rotateY(-18deg) rotateX(10deg) rotateZ(-3deg);
}

.app-shot-primary img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot-secondary {
  position: absolute;
  bottom: -24px;
  right: -16px;
  width: 60%;
  z-index: 3;
  border: 1px solid var(--emerald-bright);
  background: #080c12;
  box-shadow:
    -20px 28px 64px rgba(0, 0, 0, 0.95),
    0 0 42px rgba(46, 242, 192, 0.35),
    0 0 80px rgba(34, 211, 238, 0.22);
  transform: rotateY(-22deg) rotateX(12deg) rotateZ(4deg);
}

.app-shot-secondary img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot-tertiary {
  position: absolute;
  bottom: -34px;
  left: -14px;
  width: 54%;
  z-index: 4;
  border: 1px solid rgba(34, 211, 238, 0.75);
  background: #080c12;
  box-shadow:
    16px 26px 60px rgba(0, 0, 0, 0.95),
    0 0 38px rgba(34, 211, 238, 0.28);
  transform: rotateY(-16deg) rotateX(10deg) rotateZ(-5deg);
}

.app-shot-tertiary img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual-caption {
  position: relative;
  z-index: 5;
  margin-top: 88px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section Defaults */
section {
  padding: 88px 0;
  border-top: none;
}

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

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  margin: 12px 0 10px;
  color: #ffffff;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Showcase Slider Wrap */
.showcase-slider-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.slider-header-block {
  text-align: center;
  margin-bottom: 24px;
}

.studio-Stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #0d0d10;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50% !important;
  display: inline-block;
}

.window-dots span:nth-child(1) {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.window-dots span:nth-child(3) {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.stage-title-bar {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alt-angle-btn {
  background: var(--emerald-dim);
  border: 1px solid var(--emerald);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.alt-angle-btn:hover {
  background: var(--emerald);
  color: #04130e;
}

/* 4:3 Comparison Viewport */
.ba-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #08080b;
  user-select: none;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
}

.ba-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08080b;
  pointer-events: none;
  display: block;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  background: #0c0c0f;
}

.ba-before-layer img {
  object-fit: contain;
  background: #0c0c0f;
}

.ba-labels-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #080c12;
  border-bottom: 1px solid var(--border-subtle);
}

.ba-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ba-label-before {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

  .ba-label-after {
  background: rgba(20, 176, 133, 0.18);
  border: 1px solid rgba(16, 212, 158, 0.5);
  color: var(--emerald-bright);
}

/* Fullscreen / Zoom Lightbox Modal for Diagrams */
.ba-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  padding: 16px;
}

.ba-lightbox.open {
  display: flex;
}

.ba-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.ba-lightbox-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ba-lb-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #111827;
  color: #cbd5e1;
  cursor: pointer;
}

.ba-lb-btn.active {
  background: rgba(16, 212, 158, 0.16);
  border-color: rgba(16, 212, 158, 0.6);
  color: var(--emerald-bright);
}

.ba-lb-btn.before-active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.ba-lightbox-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.ba-lightbox-body img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  transition: width 0.15s ease;
}

.ba-lightbox-body.zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.ba-lightbox-body.zoomed img {
  max-width: none;
  max-height: none;
  width: 900px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--emerald-bright);
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(16, 212, 158, 0.8);
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #080c12;
  border: 2px solid var(--emerald-bright);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.stage-switcher {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.sample-tab {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-align: center;
}

.sample-tab img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080c12;
}

.sample-tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.sample-tab:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.sample-tab.active {
  background: var(--emerald-dim);
  border-color: var(--emerald);
  color: #ffffff;
}

/* Desktop App Download Bar */
.download-bar {
  max-width: 880px;
  margin: 22px auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.download-bar-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-bar-label strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.download-bar-label span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.download-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.download-os-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.download-os-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--bg-card-hover);
}

/* Comparison Banner */
.anti-plastic-banner {
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.9) 0%, rgba(18, 18, 21, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-col {
  padding: 22px;
  border: 1px solid var(--border-subtle);
}

.comparison-col.bad {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.22);
}

.comparison-col.good {
  background: rgba(20, 176, 133, 0.06);
  border-color: rgba(20, 176, 133, 0.35);
}

.comparison-col h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* 9 Architecture Pillars Grid + 4-Column Tuning Strip */
.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.camera-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.camera-card:hover {
  border-color: var(--emerald);
  background: var(--bg-elevated);
}

.camera-type-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald-bright);
  margin-bottom: 6px;
  display: block;
}

.camera-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.camera-vibe {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.exposure-controls-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, rgba(14, 20, 29, 0.95) 100%);
  border: 1px solid rgba(34, 211, 238, 0.38);
  padding: 22px;
}

.exposure-item {
  border-left: 2px solid var(--emerald);
  padding-left: 14px;
}

.exposure-item-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-bright);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.exposure-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.exposure-item-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 5-Column Ecosystem Matrix */
.formats-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.format-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.format-summary-card:hover {
  border-color: rgba(20, 176, 133, 0.45);
}

.format-summary-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.format-icon-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 176, 133, 0.1);
  border: 1px solid rgba(20, 176, 133, 0.3);
  color: var(--emerald-bright);
  margin-bottom: 8px;
}

.format-summary-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.2;
}

.format-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.format-channels-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Workflow & Power Features */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 28px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: var(--emerald-dim);
  border: 1px solid rgba(20, 176, 133, 0.35);
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.power-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.power-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #0e0e11 100%);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.power-icon {
  width: 44px;
  height: 44px;
  background: var(--emerald-dim);
  border: 1px solid rgba(20, 176, 133, 0.35);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.power-card h4 {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.power-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Pricing Section */
.pricing-wrapper {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  align-items: stretch;
}

.cost-breakdown-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
}

.cost-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 12px;
  border-right: 1px solid var(--border-subtle);
}

.cost-step:last-child {
  border-right: none;
  padding-right: 0;
}

.cost-step-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.cost-step-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.cost-step-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.pricing-policy-note {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.pricing-inspect-link {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

.pricing-inspect-link a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-inspect-link a:hover {
  color: var(--emerald-bright);
}

.pricing-policy-note strong {
  color: var(--text-secondary);
}

.security-trust-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.security-trust-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.security-trust-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--cyan);
}

.security-trust-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.security-trust-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-notice {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--emerald);
  padding: 28px 32px;
}

.pricing-notice-header {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 14px;
}

.pricing-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pricing-notice-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.pricing-notice-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--emerald-bright);
  font-weight: 700;
}

.pricing-notice-list strong {
  color: var(--text-primary);
}

.saas-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.88;
}

.vpn-pricing-card {
  background: linear-gradient(165deg, #131c19 0%, #111115 55%, #0c1412 100%);
  border: 2px solid var(--emerald);
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 64px rgba(34, 211, 238, 0.16);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.price-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin: 14px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-tag span.sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tier-toggle {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  background: #080c12;
  margin-top: 10px;
}

.tier-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.tier-btn.active {
  background: var(--emerald-dim);
  color: var(--emerald-bright);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 22px 0 28px;
  font-size: 0.92rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-primary);
}

.checklist li svg {
  color: var(--emerald-bright);
  flex-shrink: 0;
  margin-top: 3px;
}

.box-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.box-showcase .splash-art {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  border: 1px solid rgba(20, 176, 133, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.8);
  background: #0c1015;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

details.faq-item {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px 22px;
  transition: border-color 0.15s ease;
}

details.faq-item[open] {
  border-color: rgba(20, 176, 133, 0.45);
  background: var(--bg-elevated);
}

details.faq-item summary {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-family: var(--font-mono);
  color: var(--emerald-bright);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

details.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  min-width: 0;
  max-width: 100%;
  padding-top: 12px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: #060608;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links button:hover {
  color: var(--emerald-bright);
}

.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal.open {
  display: flex;
}

.legal-modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 28px 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.legal-modal-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-modal-body p + p {
  margin-top: 12px;
}

.legal-modal-body strong {
  color: var(--text-primary);
}

/* Upstream Multiplexing & Provider Economics */
.multiplex-showcase {
  background: linear-gradient(135deg, rgba(14, 20, 29, 0.96) 0%, rgba(11, 18, 28, 0.98) 100%);
  border: 1px solid rgba(34, 211, 238, 0.32);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 36px rgba(34, 211, 238, 0.05);
}

.multiplex-flow {
  display: grid;
  grid-template-columns: 1.15fr auto 1.1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.mux-node {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 18px;
}

.mux-node.highlight {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.1);
}

.mux-node-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}

.mux-node h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.mux-node p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.mux-device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mux-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mux-chip svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.mux-icon-badge {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  margin-bottom: 12px;
}

.mux-node.highlight .mux-icon-badge {
  background: rgba(20, 176, 133, 0.14);
  border-color: rgba(20, 176, 133, 0.45);
  color: var(--emerald-bright);
}

.provider-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.provider-icon-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
}

.provider-icon-badge.emerald {
  background: rgba(20, 176, 133, 0.12);
  border-color: rgba(20, 176, 133, 0.35);
  color: var(--emerald-bright);
}

.mux-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-bright);
  text-align: center;
}

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

.provider-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.provider-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.provider-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.provider-price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-bright);
  white-space: nowrap;
}

.provider-price span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.provider-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.provider-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.provider-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(34, 45, 61, 0.7);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero-grid,
  .pricing-wrapper,
  .multiplex-flow,
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .mux-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .formats-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .exposure-controls-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-switcher {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-shot-secondary {
    right: 0;
  }
}

@media (max-width: 780px) {
  .hero-meta-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .anti-plastic-banner,
  .steps-grid,
  .power-features-grid,
  .vpn-pricing-card,
  .cost-breakdown-bar,
  .security-trust-strip,
  .exposure-controls-strip,
  .camera-grid,
  .formats-summary-grid {
    grid-template-columns: 1fr;
  }

  .cost-step {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 10px;
  }

  .cost-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stage-switcher {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shot-primary,
  .app-shot-secondary,
  .app-shot-tertiary {
    transform: none !important;
  }

  .app-shot-secondary,
  .app-shot-tertiary {
    position: relative;
    width: 100%;
    bottom: auto;
    right: auto;
    left: auto;
    margin-top: 16px;
  }

  .hero-visual-caption {
    margin-top: 16px;
  }

  .ba-labels-bar {
    padding: 8px 12px;
  }

  .ba-label {
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .site-header .btn-primary {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Multi-Page & Editorial Components
   ========================================================================== */

.nav-links a.active {
  color: var(--emerald-bright);
  font-weight: 600;
}

.page-hero {
  padding: 68px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.1) 0%, transparent 65%);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  margin: 14px 0 16px;
}

.page-hero .hero-subtitle {
  max-width: 780px;
  margin-bottom: 0;
}

.content-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.content-section:last-of-type {
  border-bottom: none;
}

.section-intro {
  margin-bottom: 32px;
}

.section-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  margin-bottom: 12px;
}

.section-intro p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .two-col-grid,
  .three-col-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  border-color: var(--border-focus);
}

.info-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  padding: 3px 9px;
  border-radius: 0;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul {
  margin: 10px 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.info-card li + li {
  margin-top: 6px;
}

/* Data / Comparison Tables */
.data-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background: var(--bg-surface);
  margin: 16px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.faq-answer .data-table-wrap {
  margin: 14px 0 6px;
}

.faq-answer .data-table th,
.faq-answer .data-table td {
  padding: 10px 13px;
  font-size: 0.86rem;
}

/* Callout Boxes */
.callout-box {
  background: rgba(15, 212, 164, 0.06);
  border: 1px solid rgba(15, 212, 164, 0.25);
  border-left: 4px solid var(--emerald-bright);
  border-radius: 0;
  padding: 18px 22px;
  margin-top: 24px;
}

.callout-box.callout-warn {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
  border-left-color: #f59e0b;
}

.callout-box h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.callout-box p,
.callout-box li {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.callout-box ul {
  margin: 8px 0 0 18px;
}

/* Code / Terminal Blocks */
.code-block {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--emerald-bright);
  overflow-x: auto;
  margin: 12px 0;
}

/* Subpage CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(15, 212, 164, 0.1), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 0;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 620px;
}

.section-link-row {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   Unified Subtle Corner Rounding (Primary & Secondary Pages)
   ========================================================================== */

:root {
  --radius-sm: 4px;
  --radius-md: 6px;
}

.btn,
.eyebrow-pill,
.download-os-btn,
.tier-toggle,
.tier-btn,
.mux-node-tag,
.mux-chip,
.info-card-badge,
.alt-angle-btn,
.ba-lb-btn,
.stage-btn {
  border-radius: var(--radius-sm);
}

.studio-Stage,
.download-bar,
.anti-plastic-banner,
.camera-card,
.exposure-item,
.format-summary-card,
.step-card,
.power-card,
.cost-breakdown-bar,
.security-trust-card,
.saas-card,
.vpn-pricing-card,
details.faq-item,
.legal-modal-card,
.mux-node,
.provider-card,
.info-card,
.data-table-wrap,
.callout-box,
.code-block,
.cta-banner {
  border-radius: var(--radius-md);
}

.data-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

/* ==========================================================================
   Screenshot Gallery & Lightbox
   ========================================================================== */

.gallery-group {
  padding: 52px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-group:last-of-type {
  border-bottom: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .gallery-group {
    padding: 36px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: var(--emerald-bright);
  transform: translateY(-2px);
  outline: none;
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #06090e;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-zoom-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  pointer-events: none;
}

.gallery-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.gallery-card-body h3 {
  font-size: 1.02rem;
  color: var(--text-primary);
  margin: 0;
}

.gallery-card-body p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 100;
  background: rgba(4, 7, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.gallery-lb-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.gallery-lb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.gallery-lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.gallery-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #06090e;
}

.gallery-lb-caption {
  max-width: 900px;
  width: 100%;
  margin: 12px auto 0;
  text-align: center;
}

.gallery-lb-caption h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-lb-caption p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
