﻿:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --text: #111318;
  --text-secondary: #5c6370;
  --accent: #111318;
  --accent-soft: rgba(17, 19, 24, 0.06);
  --green: #1a7f5a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --container: min(1200px, calc(100% - 40px));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ===== NAVBAR ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(17, 19, 24, 0.14);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(17, 19, 24, 0.06);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 34px;
  height: 34px;
  padding: 8px 7px;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.18);
  transition: transform var(--transition);
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
}

.brand-mark-wave {
  width: 2.5px;
  border-radius: 2px;
  background: #ffffff;
  animation: brand-eq 1.4s ease-in-out infinite;
}

.brand-mark-wave:nth-child(1) { height: 40%; animation-delay: 0s; }
.brand-mark-wave:nth-child(2) { height: 100%; background: var(--green); animation-delay: 0.18s; }
.brand-mark-wave:nth-child(3) { height: 65%; animation-delay: 0.36s; }

@keyframes brand-eq {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  position: relative;
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  border-color: var(--text);
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition), background 0.3s;
}

.nav-panel {
  position: fixed;
  inset: 64px 12px auto;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-panel a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-actions {
  display: none;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-nav::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 127, 90, 0.3);
}

.site-header.scrolled .btn-nav {
  background: var(--accent);
  color: #ffffff;
}

.btn-nav:hover {
  transform: translateY(-1px);
  background: #1e2028;
  box-shadow: 0 8px 20px rgba(17, 19, 24, 0.22);
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 64px;
  scroll-margin-top: 64px;
  background: var(--bg);
  overflow: hidden;
}

/* Layered background: soft wash + technical grid + accent glow */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(55% 50% at 80% 12%, rgba(26, 127, 90, 0.10), transparent 70%),
    radial-gradient(50% 60% at 10% 92%, rgba(17, 19, 24, 0.05), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 19, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 78%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-caret,
  .hero-meta-dot,
  .hero-visual-glow,
  .hero-title-line--mark::before { animation: none; }
}

.hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.hero-meta > span {
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}

.hero-meta-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(26, 127, 90, 0.4) !important;
  background: rgba(26, 127, 90, 0.1) !important;
  color: var(--green) !important;
}

.hero-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 127, 90, 0.25), 0 0 8px rgba(26, 127, 90, 0.7);
  animation: hero-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text);
}

.hero-title-line {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
}

.hero-title-line--mark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  color: var(--text);
  -webkit-text-stroke: 0;
}

.hero-title-line--mark::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  opacity: 0;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
  animation: hero-glitch 6.5s steps(1) infinite;
}

@keyframes hero-glitch {
  0%, 96%, 100% { opacity: 0; transform: translate(0, 0); }
  96.5% { opacity: 0.55; transform: translate(-2px, 1px); clip-path: inset(12% 0 60% 0); }
  97.5% { opacity: 0.55; transform: translate(2px, -1px); clip-path: inset(55% 0 18% 0); }
  98.5% { opacity: 0.45; transform: translate(-1px, 0); clip-path: inset(30% 0 40% 0); }
}

.hero-caret {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(26, 127, 90, 0.6);
  animation: hero-blink 1.05s step-end infinite;
}

@keyframes hero-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-verbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.hero-verbs span {
  position: relative;
}

.hero-verbs span:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: -14px;
  color: var(--green);
}

.hero-strapline {
  margin: 20px 0 0;
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-prompt {
  color: var(--green);
  font-weight: 700;
  margin-right: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.btn-hero-cta {
  position: relative;
  height: 54px;
  padding: 0 28px;
  gap: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-cta-prompt {
  color: var(--green);
  font-weight: 700;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  background: #1e2028;
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.28);
}

.btn-hero-secondary {
  height: 54px;
  padding: 0 22px;
  gap: 9px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: var(--green);
  color: var(--text);
}

.hero-arrow {
  color: var(--green);
  transition: transform var(--transition);
}

.btn-hero-secondary:hover .hero-arrow {
  transform: translateX(4px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 127, 90, 0.18), transparent 68%);
  filter: blur(20px);
  animation: hero-glow-pulse 4.5s ease-in-out infinite;
}

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

/* HUD targeting frame around the device */
.hero-frame {
  position: absolute;
  inset: 6% 4%;
  z-index: 2;
  pointer-events: none;
}

.hero-frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--green);
  opacity: 0.8;
}

.hero-frame-corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frame-corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frame-corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-frame-corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-frame-tag {
  position: absolute;
  top: -10px;
  left: 30px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 127, 90, 0.35);
  border-radius: 3px;
}

.hero-device {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(17, 19, 24, 0.18));
}

@media (max-width: 640px) {
  .hero-device {
    max-width: 460px;
  }
  .hero-frame-tag { font-size: 0.55rem; left: 24px; }
}

/* ===== BUTTONS (global) ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

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

.btn-ghost:hover {
  background: var(--accent-soft);
}

/* ===== SECTIONS ===== */

.section {
  padding: 80px 0;
  scroll-margin-top: 64px;
}

.section-alt {
  background: var(--bg-alt);
}

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

.video-section .section-heading,
#features .section-heading,
#frequency .section-heading,
#audience .section-heading,
#distributors .section-heading,
#gallery .section-heading {
  max-width: none;
}

.section-heading.text-left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== STORY MARKERS + SCROLL REVEAL ===== */

/* Numbered marker that turns sections into a sequence */
.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-marker .marker-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(26, 127, 90, 0.35);
  border-radius: 4px;
  background: rgba(26, 127, 90, 0.08);
  color: var(--green);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.section-marker .marker-line {
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

/* Center the marker when it sits in a centered heading */
.section-heading .section-marker {
  justify-content: center;
}

.section-heading.text-left .section-marker {
  justify-content: flex-start;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

/* Stagger children inside a revealed container */
.reveal-on-scroll[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll[data-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(7) { transition-delay: 0.42s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(8) { transition-delay: 0.49s; }
.reveal-on-scroll[data-stagger].is-revealed > *:nth-child(9) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll[data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== CARDS ===== */

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* ===== INTRO VIDEO ===== */

.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0c0d10;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== GRIDS ===== */

.card-grid,
.stats-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.spec-card h3,
.distributor-card h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.spec-card p,
.distributor-card p,
.cta-panel p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.stats-grid {
  margin-top: 24px;
}

/* ===== ORIGIN (legacy + problem merged) ===== */

.origin-intro {
}

.origin-intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.origin-lede {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.origin-section .stats-grid {
  margin-top: 44px;
}

.origin-ceiling {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.origin-ceiling-head {
  margin-bottom: 28px;
}

.origin-ceiling-head h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.origin-ceiling-head p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.limit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.limit-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.limit-list li:last-child {
  border-bottom: 0;
}

.limit-list li:hover {
  background: var(--bg-alt);
}

.limit-tag {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.limit-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.limit-list li span:not(.limit-tag) {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== INTRODUCING / CINEMATIC ===== */

.cinematic-panel {
  display: grid;
  gap: 32px;
  padding: 40px;
  align-items: center;
}

.cinematic-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.cinematic-copy > p {
  margin: 16px 0 22px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.02rem;
}

.cinematic-image {
  min-height: 280px;
  align-self: stretch;
}

.software-layout,
.architecture-layout {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 2;
  font-size: 0.9rem;
}

.cinematic-image img,
.gallery-item img,
.logo-frame img,
.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinematic-image img {
  object-fit: contain;
  height: auto;
}

/* ===== ARCHITECTURE ===== */

.arch-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.arch-header {
  margin-bottom: 52px;
}

.arch-header h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
}

.arch-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.board-showcase {
  margin: 0 0 52px;
  display: flex;
  justify-content: center;
}

.board-glow-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.board-glow-wrap::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgba(26, 127, 90, 0.1) 0%, transparent 70%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
}

.board-showcase img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(17, 19, 24, 0.22));
  object-fit: contain;
}

.spec-card {
  position: relative;
  padding: 22px 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(26, 127, 90, 0.2);
}

.spec-kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: rgba(26, 127, 90, 0.08);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.architecture-grid .spec-card {
  min-height: 140px;
}

.architecture-grid .spec-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.architecture-grid .spec-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}


.wireless-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.wireless-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== CAPABILITIES (features as numbered rows) ===== */

.handshake-showcase {
  margin: 36px 0 8px;
  text-align: center;
}

.handshake-showcase img {
  width: 100%;
  max-width: 860px;
  height: auto;
}

.handshake-showcase figcaption {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.capability-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.capability-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition), background var(--transition);
}

.capability-row:hover {
  padding-left: 14px;
  background: var(--bg-alt);
}

.capability-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  padding-top: 3px;
  min-width: 28px;
}

.capability-body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.capability-body p {
  margin: 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ===== AUDIENCE (compact strip) ===== */

.audience-strip {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.audience-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid rgba(26, 127, 90, 0.45);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition);
}

.audience-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 127, 90, 0.6);
}

.audience-chip strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.audience-chip span {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* CTA marker centered */
.cta-panel .section-marker {
  justify-content: center;
}

.ui-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ui-panel-top,
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status-pill.online {
  color: var(--green);
  border-color: rgba(26, 127, 90, 0.25);
  background: rgba(26, 127, 90, 0.05);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(26, 127, 90, 0.25);
  flex-shrink: 0;
}

.schematic {
  position: relative;
  min-height: 260px;
  margin-top: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.schematic-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.schematic-node {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: 100px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translate(-50%, -50%);
}

.node-core {
  top: 44%;
  left: 50%;
}

.node-fpga {
  top: 18%;
  left: 82%;
}

.node-wireless {
  top: 80%;
  left: 82%;
}

.node-ports {
  top: 18%;
  left: 18%;
}

.ui-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.ui-stats div {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.ui-stats div:hover {
  border-color: rgba(26, 127, 90, 0.2);
}

.ui-stats span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.ui-stats strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== SPECTRUM ===== */

.spectrum {
  padding: 24px;
}

.spectrum-grid {
  display: grid;
  gap: 10px;
}

.freq-bar {
  position: relative;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
}

.freq-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(17, 19, 24, 0.08), rgba(17, 19, 24, 0.2));
}

.freq-bar.hf::before {
  background: linear-gradient(90deg, rgba(26, 127, 90, 0.1), rgba(26, 127, 90, 0.3));
}

.freq-bar.uhf::before {
  background: linear-gradient(90deg, rgba(26, 90, 160, 0.1), rgba(26, 90, 160, 0.3));
}

.freq-bar span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== SOFTWARE ===== */

/* Terminal panel */
.terminal-panel {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2c;
  box-shadow: 0 28px 64px rgba(0,0,0,0.45);
  font-family: var(--font-mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  position: relative;
  height: 40px;
  gap: 0;
}

.terminal-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  font-size: 0.72rem;
  color: #d4d4d4;
  border-right: 1px solid #333;
  background: #2d2d2d;
  white-space: nowrap;
}

.terminal-tab.active {
  background: #13151a;
  color: #ffffff;
  border-bottom: 2px solid #4ade80;
}

.terminal-tab-close {
  font-size: 0.6rem;
  color: #666;
  cursor: pointer;
}

.terminal-tab-plus {
  padding: 0 12px;
  font-size: 1rem;
  color: #555;
  cursor: pointer;
  line-height: 40px;
}

.terminal-winbtns {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.twb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 32px;
  font-size: 0.75rem;
  color: #aaa;
  cursor: pointer;
}

.twb:hover { background: #3a3a3a; color: #fff; }
.twb-close:hover { background: #e81123; color: #fff; }

.terminal-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  background: #007acc;
  font-size: 0.68rem;
  color: #fff;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.td-red    { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green  { background: #28c840; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: #a0a0a0;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #28c840;
  letter-spacing: 0.05em;
}

.terminal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
  animation: terminal-pulse 1.6s ease-in-out infinite;
}

@keyframes terminal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.terminal-body {
  background: #13151a;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terminal-line {
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-user  { color: #4ade80; font-weight: 600; }
.t-sep   { color: #6b7280; }
.t-path  { color: #60a5fa; }
.t-cmd   { color: #e5e7eb; }
.t-output { color: #6b7280; padding-left: 4px; margin-bottom: 6px; }
.t-ok    { color: #4ade80; font-weight: 600; }
.t-label { color: #6b7280; }

.terminal-status {
  margin: 10px 0 8px;
}

.terminal-status .t-sep {
  color: #2a2d35;
  font-size: 0.7rem;
}

.terminal-cursor {
  color: #4ade80;
  animation: terminal-pulse 1s step-end infinite;
  margin-left: 4px;
}

.eco-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
}

.eco-lead {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.eco-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eco-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.eco-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26, 127, 90, 0.1);
  border: 1px solid rgba(26, 127, 90, 0.25);
  position: relative;
}

.eco-check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.code-panel {
  padding: 0;
  overflow: hidden;
}

.code-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

.code-dot:first-child { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 8px;
  flex: 1;
}

.ms-auto {
  margin-left: auto;
}

.code-panel pre {
  margin: 0;
  padding: 22px 20px 24px;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: var(--green);
  line-height: 2.1;
  background: linear-gradient(160deg, #f8faf9 0%, var(--surface) 100%);
}

.code-prompt {
  color: rgba(26, 127, 90, 0.45);
  user-select: none;
}

.code-status {
  display: block;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ===== ECOSYSTEM COMMUNITY (channels) ===== */

.ecosystem-community {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.ecosystem-community-head {
  max-width: 600px;
  margin-bottom: 32px;
}

.ecosystem-community-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.ecosystem-community-head p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
}

.channel-grid {
  display: grid;
  gap: 16px;
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 127, 90, 0.35);
  box-shadow: 0 14px 36px rgba(17, 19, 24, 0.09);
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}

.channel-card:hover .channel-icon {
  border-color: rgba(26, 127, 90, 0.25);
  color: var(--green);
}

.channel-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.channel-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.channel-go {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.channel-card:hover .channel-go {
  transform: translateX(4px);
  border-color: rgba(26, 127, 90, 0.3);
  background: rgba(26, 127, 90, 0.06);
}

/* ===== DISTRIBUTORS ===== */

.distributor-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.distributor-card h3 {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.distributor-card p {
  margin: 0;
  flex: 1;
}

.distributor-card .btn {
  margin-top: auto;
}

.distributor-pending {
  opacity: 0.6;
}

.tag-pending {
  background: transparent;
  border: 1px dashed var(--border-strong);
}

.btn-pending {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: default;
}

.distributor-notice {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.distributor-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.distributor-notice p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== GALLERY ===== */

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

.gallery-item {
  padding: 0;
  min-height: 320px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
}

.gallery-item img {
  min-height: 320px;
  object-fit: contain;
  padding: 24px;
  background: #ffffff;
}

.gallery-item img[src*="flipper"] {
  background: #ffffff;
  mix-blend-mode: multiply;
}

/* ===== CTA ===== */

.final-cta {
  padding-bottom: 100px;
}

.cta-panel {
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-panel p {
  margin: 16px auto 0;
  max-width: 480px;
}

.cta-panel .hero-actions {
  justify-content: center;
}

/* ===== FOOTER ===== */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0 0 18px;
  max-width: 32ch;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 10px 18px;
}

.footer-columns a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 28px;
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-copyright {
  margin: 0;
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: var(--transition);
}

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

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: 1.4fr 2fr;
    gap: 48px;
  }
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: min(100%, 900px);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.88rem;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
}

/* ===== FALLBACK ===== */

.is-missing {
  display: grid;
  place-items: center;
  min-height: 160px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 760px) {
  .section {
    padding: 100px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .hero-inner {
    padding: 0;
  }

  .hero-wrap {
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
    margin: 0;
    max-width: none;
  }

  .hero-strapline {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .software-layout,
  .cinematic-panel,
  .architecture-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .stats-grid,
  .card-grid,
  .gallery-grid,
  .channel-grid,
  .audience-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-auto-rows: 360px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    inset: auto;
    flex: 0 0 auto;
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-panel a {
    position: relative;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #41454d;
    transition: color 0.25s, background 0.25s;
  }

  .nav-panel a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 5px;
    height: 1.5px;
    background: var(--green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar .brand {
    flex: 1 1 0;
    min-width: 0;
  }

  .navbar .nav-actions {
    flex: 1 1 0;
    justify-content: flex-end;
  }

  .nav-panel a:hover {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(17, 19, 24, 0.06);
  }

  .nav-panel a:hover::after {
    transform: scaleX(1);
  }

  .site-header.scrolled .nav-panel a {
    color: #41454d;
  }

  .site-header.scrolled .nav-panel a:hover {
    background: #ffffff;
    color: var(--text);
  }

  .nav-actions {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .architecture-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
    gap: 28px;
  }

  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .distributor-grid,
  .audience-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .cinematic-panel {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 52px;
  }

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

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .footer-grid {
    grid-template-columns: 1.2fr auto auto;
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

