/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #000000;
  --bg-1:      #0a0a0a;
  --bg-2:      #111111;
  --accent:    #c8c8c8;
  --accent-dim: rgba(200, 200, 200, 0.08);
  --accent-mid: rgba(200, 200, 200, 0.25);
  --white:     #ffffff;
  --gray-1:    #e0e0e0;
  --gray-2:    #888888;
  --gray-3:    #333333;
  --gray-4:    #1a1a1a;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:    2px;
  --transition: 0.2s ease;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LOADING SCREEN — HUD BOOT
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loader-logo {
  font-family: var(--mono);
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.2s forwards;
}

.loader-grid {
  display: grid;
  grid-template-columns: repeat(8, 6px);
  grid-template-rows: repeat(4, 6px);
  gap: 4px;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.4s forwards;
}

.loader-dot {
  width: 6px;
  height: 6px;
  background: var(--gray-3);
  border-radius: 50%;
  animation: dotPulse 1.2s ease infinite;
}

.loader-dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.loader-bar-wrap {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.5s forwards;
}

.loader-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.loader-track {
  width: 100%;
  height: 1px;
  background: var(--gray-3);
  position: relative;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.05s linear;
}

.loader-status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-2);
  letter-spacing: 0.1em;
  min-height: 14px;
}

/* ============================================================
   SCANLINE OVERLAY
   ============================================================ */
.scanlines { display: none; }

/* ============================================================
   CORNER HUD ELEMENTS
   ============================================================ */
.hud-corner {
  position: fixed;
  z-index: 8000;
  pointer-events: none;
}

.hud-corner--tl { top: 20px; left: 20px; }
.hud-corner--tr { top: 20px; right: 20px; }
.hud-corner--bl { bottom: 20px; left: 20px; }
.hud-corner--br { bottom: 20px; right: 20px; }

.hud-corner svg {
  display: block;
  opacity: 0.25;
}

.hud-coords {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--gray-2);
  letter-spacing: 0.12em;
  opacity: 0.4;
  line-height: 1.8;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo-mark::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: block;
}

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

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.nav-disabled {
  color: #3a3a3a;
  cursor: default;
  pointer-events: none;
}

.nav-links a.nav-disabled::after {
  display: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
main {
  padding-top: 64px;
}

section {
  position: relative;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

section.full-width {
  max-width: none;
  padding: 100px 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--gray-2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 900;
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-2);
  font-weight: 900;
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-analog-soon {
  position: relative;
  color: #555;
  border-color: #3a3a3a;
  cursor: default;
}

.btn-analog-soon:hover {
  color: #555;
  border-color: #3a3a3a;
}

.analog-soon-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-1);
  border: 1px solid var(--gray-3);
  color: var(--gray-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.btn-analog-soon:hover .analog-soon-tooltip {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-2);
  padding: 10px 0;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-ghost svg {
  width: 12px;
  height: 12px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.hud-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-3) 20%, var(--gray-3) 80%, transparent);
  position: relative;
}


/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-body {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.75;
  max-width: 560px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-3);
  margin-top: 60px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--bg-1);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  transition: background var(--transition);
}

.product-card:hover {
  background: var(--bg-2);
}

.product-card:hover::before {
  background: var(--accent);
}

.product-card-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gray-3);
}

.product-card-name {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.product-card-tagline {
  font-size: 14px;
  color: var(--gray-2);
  line-height: 1.6;
  max-width: 340px;
}

.product-card-price {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.product-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.product-card-compat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--gray-4);
}

.compat-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 4px 8px;
}

/* ============================================================
   PRODUCT PAGE — HERO
   ============================================================ */
.product-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 240px;
  position: relative;
}

.product-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.product-name-large {
  font-family: var(--sans);
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
  opacity: 0.06;
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   DOWNLOAD PANEL
   ============================================================ */
.download-panel {
  background: var(--bg-1);
  border: 1px solid var(--gray-3);
  padding: 40px;
  position: relative;
}


.download-panel-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.download-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-3);
  margin-bottom: 28px;
}

.download-tab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.download-tab.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.download-tab:hover {
  color: var(--white);
}

.download-content {
  display: none;
}

.download-content.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--gray-4);
  gap: 16px;
}

.download-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-row-os {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray-2);
  text-transform: uppercase;
  min-width: 80px;
}

.download-row-name {
  font-size: 13px;
  color: var(--white);
}

.download-row-sep {
  width: 1px;
  height: 20px;
  background: var(--gray-3);
}

.download-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.download-btn:hover {
  opacity: 0.7;
}

.download-btn svg {
  width: 12px;
  height: 12px;
}

.download-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray-2);
}

.download-note span {
  color: var(--accent);
}

/* ============================================================
   BUY PANEL
   ============================================================ */
.buy-panel {
  background: var(--bg-1);
  border: 1px solid var(--gray-2);
  padding: 40px;
  position: relative;
}

.buy-panel-price {
  font-family: var(--mono);
  font-size: 36px;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.buy-panel-price-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.buy-panel-paypal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--gray-3);
  color: var(--gray-1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 12px;
  transition: all var(--transition);
}

.buy-panel-paypal:hover {
  border-color: var(--gray-2);
  color: var(--white);
}

.buy-panel-features {
  list-style: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buy-panel-features li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-panel-features li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-1);
  border: 1px solid var(--gray-3);
  overflow: hidden;
}

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

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gray-2);
}

.video-placeholder-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-3);
  margin-top: 60px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-cell {
  background: var(--bg-1);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-cell.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-cell-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray-3);
}

.feature-cell-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}

.feature-cell-body {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.65;
}

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
}

.comparison-col {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.comparison-col-highlight {
  background: var(--bg-1);
}

.comparison-col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comparison-col-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}

.comparison-col-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.comparison-col-tag-active {
  color: var(--accent);
}

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

.comparison-list li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.comparison-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.comparison-list li.pro {
  color: var(--gray-1);
}

.comparison-list li.pro::before {
  background: var(--white);
}

.comparison-list li.con {
  color: #606060;
}

.comparison-list li.con::before {
  background: #606060;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SAVE & EXPORT — NODE GRAPH
   Cards: 460 + 24 + 460 = 944px
   Left card center:  230px  Right card center: 714px
   Trunk at center:   472px
   H-bar: left=230px to right=714px (484px wide)
   Left drop at left=230px, right drop at left=714px
   Animation cycle: 3s total
   ============================================================ */
.nodegraph {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Source node */
.ng-source {
  border: 1px solid var(--gray-2);
  padding: 16px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ng-source-label {
  font-family: var(--sans); font-size: 16px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--white);
}

/* Connector container */
.ng-connectors {
  position: relative;
  width: 944px;
  height: 90px;
}

/* Trunk: centered at 472px */
.ng-trunk {
  position: absolute;
  left: 472px;
  top: 0;
  width: 1px;
  height: 50px;
  background: var(--gray-3);
  overflow: hidden;
}

/* H-bar: from 230px to 714px = 484px wide */
.ng-hbar {
  position: absolute;
  left: 230px;
  top: 49px;
  width: 484px;
  height: 1px;
  display: flex;
}
.ng-hbar-half {
  flex: 1;
  height: 1px;
  background: var(--gray-3);
  position: relative;
  overflow: hidden;
}

/* Drops */
.ng-drop {
  position: absolute;
  top: 49px;
  width: 1px;
  height: 41px;
  background: var(--gray-3);
  overflow: hidden;
}
.ng-drop-l { left: 230px; }
.ng-drop-r { left: 714px; }

/* Streak element shared by all lines */
.ng-s {
  position: absolute;
  opacity: 0;
}
/* Vertical streaks (trunk, drops) */
.ng-s-trunk, .ng-s-drop {
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 0%, #e0e0e0 50%, transparent 100%);
}
/* Horizontal streaks — left arm flows right→left, right arm flows left→right */
.ng-s-hleft, .ng-s-hright {
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
}

/* ── Keyframes (all on 3s cycle) ── */
@keyframes ng-trunk {
  0%         { top: -100%; opacity: 0; }
  2%         { opacity: 1; }
  23%        { top: 100%;  opacity: 0; }
  24%, 100%  { top: -100%; opacity: 0; }
}
/* Right arm: left→right */
@keyframes ng-hright {
  0%, 22%    { left: -100%; opacity: 0; }
  24%        { opacity: 1; }
  44%        { left:  100%; opacity: 0; }
  45%, 100%  { left: -100%; opacity: 0; }
}
/* Left arm: right→left */
@keyframes ng-hleft {
  0%, 22%    { left:  100%; opacity: 0; }
  24%        { opacity: 1; }
  44%        { left: -100%; opacity: 0; }
  45%, 100%  { left:  100%; opacity: 0; }
}
@keyframes ng-drop {
  0%, 43%    { top: -100%; opacity: 0; }
  45%        { opacity: 1; }
  64%        { top:  100%; opacity: 0; }
  65%, 100%  { top: -100%; opacity: 0; }
}
@keyframes ng-breathe {
  0%, 100%   { border-color: var(--gray-3); }
  50%        { border-color: rgba(255,255,255,0.55); }
}

.ng-s-trunk             { animation: ng-trunk  3s linear infinite; }
.ng-hbar-left  .ng-s   { animation: ng-hleft  3s linear infinite; }
.ng-hbar-right .ng-s   { animation: ng-hright 3s linear infinite; }
.ng-s-drop              { animation: ng-drop   3s linear infinite; }

/* Cards */
.ng-cards {
  display: grid;
  grid-template-columns: 460px 460px;
  gap: 24px;
  width: 944px;
}
.ng-card {
  border: 1px solid var(--gray-3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: ng-breathe 3s ease-in-out infinite;
  animation-delay: 2s;
}
.ng-card-filename {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.15em; color: var(--gray-2);
}
.ng-card-title {
  font-size: 16px; font-weight: 400;
  color: var(--white); letter-spacing: -0.01em;
}
.ng-card-body {
  font-size: 12px; color: var(--gray-2); line-height: 1.6;
}

@media (max-width: 780px) {
  .ng-connectors, .ng-cards { width: 100%; }
  .ng-cards { grid-template-columns: 1fr 1fr; }

  /* Mobile connector — T-shape with percentage-based positions */
  .ng-connectors {
    position: relative;
    width: 100%;
    height: 60px;
  }
  /* Trunk: center top → middle */
  .ng-trunk {
    position: absolute;
    left: 50%; top: 0;
    width: 1px; height: 30px;
    background: var(--gray-3);
    overflow: hidden;
  }
  .ng-trunk .ng-s {
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--gray-1) 50%, transparent 100%);
    animation: ng-trunk 3s linear infinite;
    opacity: 1;
  }
  /* H-bar: from left card center (25%) to right card center (75%) */
  .ng-hbar {
    position: absolute;
    top: 29px;
    left: 25%; width: 50%; height: 1px;
    display: flex;
  }
  .ng-hbar-half {
    flex: 1; height: 1px;
    background: var(--gray-3);
    position: relative; overflow: hidden;
  }
  .ng-hbar-half .ng-s {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--gray-1) 50%, transparent 100%);
    opacity: 1;
  }
  .ng-hbar-left  .ng-s { animation: ng-hleft  3s linear infinite; }
  .ng-hbar-right .ng-s { animation: ng-hright 3s linear infinite; }
  /* Left drop: at 25% */
  .ng-drop-l {
    position: absolute;
    top: 29px; left: 25%;
    width: 1px; height: 31px;
    background: var(--gray-3);
    overflow: hidden; display: block;
  }
  /* Right drop: at 75% */
  .ng-drop-r {
    position: absolute;
    top: 29px; left: 75%;
    width: 1px; height: 31px;
    background: var(--gray-3);
    overflow: hidden; display: block;
  }
  .ng-drop .ng-s {
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--gray-1) 50%, transparent 100%);
    animation: ng-drop 3s linear infinite;
    opacity: 1;
  }
}

/* ============================================================
   EIZO / ACCURACY GALLERY
   ============================================================ */
.eizo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 40px;
}

.eizo-still {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-1);
}

.eizo-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.eizo-still:hover img {
  transform: scale(1.03);
  filter: grayscale(0);
}

.eizo-still-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-4);
  min-height: 140px;
}

@media (max-width: 768px) {
  .eizo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   IMAGE GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-3);
}

.gallery-item {
  aspect-ratio: 16/9;
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--gray-3);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  footer {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 8px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray-3);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* Generic scroll reveal */
.animate-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
.desktop-only { display: inline; }
@media (max-width: 768px) {
  .desktop-only { display: none; }
  nav { padding: 0 20px; }
  section { padding: 60px 20px; }
  .hero { padding: 0 20px; }

  /* Hero — add top padding so eyebrow doesn't touch nav, remove aspect-ratio constraint */
  .product-hero {
    aspect-ratio: unset;
    min-height: 100svh;
    padding: 100px 20px 60px;
    justify-content: flex-end;
  }

  /* Hero text — allow natural wrapping */
  .hero-sub {
    max-width: 100%;
    font-size: 15px;
  }
  .hero-sub br { display: none; }

  /* Features — 2 columns on mobile */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .feature-cell {
    padding: 24px 20px;
  }
  .feature-cell-title { font-size: 14px; }
  .feature-cell-body  { font-size: 12px; }
  /* Last odd cell spans full width */
  .feature-cell:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Pipeline connector — needs explicit height */
  .pipeline-connector {
    height: 60px;
    display: flex;
    justify-content: center;
    padding-left: 0;
    align-items: stretch;
  }
  .pipeline-line { height: 100%; }

  footer { padding: 40px 20px; }
  .download-panel, .buy-panel { padding: 28px 24px; }
  .product-card { padding: 40px 28px; }
}

/* ============================================================
   PRODUCT PAGE LAYOUT
   ============================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  margin-top: 60px;
}

@media (max-width: 1000px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

/* ============================================================
   NEWSLETTER CONSENT NOTE
   ============================================================ */
.checkout-note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  margin-top: 12px;
  line-height: 1.6;
}

/* ============================================================
   GLITCH EFFECT (subtle, on hover only)
   ============================================================ */
.glitch {
  position: relative;
}

.glitch:hover::before,
.glitch:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.glitch:hover::before {
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  transform: translateX(-2px);
  color: var(--accent);
  opacity: 0.6;
  animation: glitch-1 0.3s steps(1) infinite;
}

.glitch:hover::after {
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  transform: translateX(2px);
  color: rgba(255,255,255,0.4);
  animation: glitch-2 0.3s steps(1) infinite;
}

@keyframes glitch-1 {
  0%   { transform: translateX(-2px); }
  50%  { transform: translateX(0px); }
  100% { transform: translateX(-2px); }
}

@keyframes glitch-2 {
  0%   { transform: translateX(2px); }
  50%  { transform: translateX(-1px); }
  100% { transform: translateX(2px); }
}

/* ============================================================
   GET PRODUCT — HORIZONTAL PANELS
   ============================================================ */
.shift-get-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-3);
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .shift-get-grid {
    grid-template-columns: 1fr;
  }
}

.get-panel {
  background: var(--bg-1);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.get-panel-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 20px;
}

.get-panel-price {
  font-family: var(--mono);
  font-size: 36px;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.get-panel-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 24px;
}

.get-panel-body {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============================================================
   WORKFLOW / PIPELINE
   ============================================================ */
.workflow-section {
  padding: 80px 40px;
}

.workflow-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .workflow-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.pipeline {
  display: flex;
  flex-direction: column;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
}

.pipeline-node {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 28px 24px;
  border: 1px solid var(--gray-3);
  background: var(--bg);
  position: relative;
  transition: border-color 0.3s ease;
}

.pipeline-node.active {
  border-color: var(--gray-2);
}

.pipeline-node-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray-2);
  padding-top: 2px;
}

.pipeline-node-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pipeline-node-body {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.65;
}

.pipeline-node-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.pipeline-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-3);
  transition: background 0.3s ease;
}

.pipeline-node.active .pipeline-status-dot {
  background: var(--gray-1);
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.4);
}

.pipeline-status-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-3);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.pipeline-connector {
  display: flex;
  justify-content: center;
  padding-left: 48px;
  height: 48px;
  align-items: stretch;
}

.pipeline-line {
  width: 1px;
  background: var(--gray-3);
  position: relative;
  overflow: hidden;
}

.pipeline-flow {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--gray-1) 50%, transparent 100%);
  animation: flowDown 2s ease infinite;
}

@keyframes flowDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* Stagger animation per step */
.pipeline-step:nth-child(2) .pipeline-flow { animation-delay: 0.66s; }
.pipeline-step:nth-child(3) .pipeline-flow { animation-delay: 1.33s; }

/* ============================================================
   COMMUNITY
   ============================================================ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-3);
  margin-top: 0;
}

@media (max-width: 900px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .community-grid { grid-template-columns: 1fr; }
}

.community-card {
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.community-card:hover {
  background: var(--bg-2);
}

.community-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}

.community-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-thumb-placeholder span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray-3);
}

.community-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.community-card:hover .community-card-thumb img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.community-card-type {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
}

.community-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.community-card-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}

.community-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray-2);
}

.community-card-desc {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.6;
  flex: 1;
}

.community-card-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: color var(--transition);
}

.community-card:hover .community-card-link {
  color: var(--white);
}

/* ============================================================
   PROJECT PAGE (Community article)
   ============================================================ */
.project-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px;
}

.project-article-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray-2);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-article h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 40px;
}

.project-article-body {
  font-size: 16px;
  color: var(--gray-1);
  line-height: 1.8;
}

.project-article-body p {
  margin-bottom: 24px;
}

.project-article-body h2 {
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.project-article-body blockquote {
  border-left: 1px solid var(--gray-2);
  padding-left: 24px;
  color: var(--gray-2);
  font-style: italic;
  margin: 32px 0;
}
