/* ==========================================================================
   LMT Tactical Cyan - Main Stylesheet
   Strict 60-30-10 Palette & Tensura Anime OP Kinetic Aesthetic
   ========================================================================== */

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

html {
  scroll-behavior: auto;
  color-scheme: dark;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan-dim) var(--bg-void-0);
}

img {
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-void-0);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Typography utilities */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.cyan-text {
  color: var(--accent-cyan);
}

.amber-text {
  color: var(--accent-amber);
}

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

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

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

/* ==========================================================================
   01 // HUD HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  /* border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25); */
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.01em;
  display: block;
  white-space: nowrap;
}

.brand-title .cyan-text {
  margin-left: 8px;
}

.site-header nav {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-item a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--accent-cyan);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan-dim);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-github:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-download-nav {
  padding: 8px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-hard);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   02 // HERO STRIKE
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-status-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseNeon 2s infinite;
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-headline .glow-word {
  color: var(--accent-cyan);
  text-shadow: 0 0 35px rgba(0, 240, 255, 0.4);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.metric-val.amber {
  color: var(--accent-amber);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Visual Canvas Display */
.hero-visual {
  position: relative;
}

.hero-preview-frame {
  position: relative;
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut-lg);
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.15);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-preview-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hard);
}

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

.hero-preview-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.hero-preview-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Live Scanning Line on hero image */
.hud-scanning-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: scanDown 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanDown {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-bracket-tag {
  position: absolute;
  bottom: 24px;
  right: -12px;
  background: var(--bg-void-card);
  border: 1px solid var(--accent-cyan);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  clip-path: var(--polygon-badge);
  box-shadow: var(--shadow-neon-cyan);
}

/* ==========================================================================
   03 // INTERACTIVE COMPARISON SLIDER SECTION
   ========================================================================== */
.section-pad {
  padding: 100px 0;
  position: relative;
}

.section-head-wrap {
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* Split Slider Component */
.comparison-hud-container {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut-lg);
  padding: 16px;
  box-shadow: var(--shadow-panel);
  position: relative;
}

.comparison-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-void-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comparison-viewport {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  border-radius: 4px;
  background: var(--bg-void-0);
  border: 1px solid var(--border-subtle);
}

.comparison-raw-img {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-translated-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--split-pos, 50%)) 0 0);
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  width: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan);
  pointer-events: none;
  z-index: 15;
}

/* Draggable Handle */
.comparison-handle {
  position: absolute;
  top: 50%;
  left: var(--split-pos, 50%);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent-cyan);
  color: #04070b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.85);
  pointer-events: none;
  z-index: 20;
}
.comparison-badge-left,
.comparison-badge-right {
  position: absolute;
  top: 20px;
  z-index: 10;
  pointer-events: none;
}

.comparison-badge-left {
  left: 20px;
}

.comparison-badge-right {
  right: 20px;
}

/* Feature Callout Strips beneath slider */
.inpaint-ladder-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.inpaint-rung-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  clip-path: var(--polygon-corner-cut);
}

.inpaint-rung-card.active {
  border-color: var(--accent-cyan-dim);
  background: var(--surface-panel-alt);
}

.inpaint-rung-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.inpaint-rung-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-pure);
}

.inpaint-rung-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   04 // 3-WAY TRANSLATION ARCHITECTURE & SIMULATOR
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.mode-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut-lg);
  padding: 28px;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.mode-card:hover {
  background: var(--surface-panel-alt);
  border-color: var(--accent-cyan-dim);
  transform: translateY(-4px);
}

.mode-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.05);
  background: var(--surface-panel-alt);
}

.mode-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mode-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.mode-card.amber .mode-icon-box {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--accent-amber);
}

.mode-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-pure);
}

.mode-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mode-card.amber .mode-subtitle {
  color: var(--accent-amber);
}

.mode-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.mode-specs-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.spec-key {
  color: var(--text-dim);
}

.spec-val {
  color: var(--text-primary);
}

/* Interactive Pipeline Visualizer */
.pipeline-sim-panel {
  background: var(--bg-void-card);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut-lg);
  padding: 32px;
  position: relative;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.sim-title-group h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.sim-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sim-mode-toggle-group {
  display: flex;
  gap: 8px;
}

.btn-sim-mode {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-sim-mode:hover {
  color: var(--text-primary);
  border-color: var(--border-hard);
}

.btn-sim-mode.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.pipeline-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 0;
}

.pipeline-node {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  padding: 16px 18px;
  min-width: 140px;
  flex-shrink: 0;
  text-align: center;
  position: relative;
  clip-path: var(--polygon-corner-cut);
  transition: all 0.3s ease;
}

.pipeline-node.active-node {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  background: var(--surface-panel-alt);
}

.pipeline-node.offscreen-badge::after {
  content: 'OFFSCREEN MV3';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan-dim);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 2px;
}

.node-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
}

.node-model {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.pipeline-arrow {
  color: var(--border-hard);
  font-size: 1.2rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.pipeline-node.active-node + .pipeline-arrow {
  color: var(--accent-cyan);
}

/* Sim Log Terminal */
.sim-log-terminal {
  background: var(--bg-void-0);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.log-prefix {
  color: var(--accent-cyan);
}

/* ==========================================================================
   05 // FEATURE SHOWCASE & REAL APP ASSETS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card-lg {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-panel);
}

.feature-media-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--bg-void-0);
  border-bottom: 1px solid var(--border-subtle);
}

.feature-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card-lg:hover .feature-media-wrap img {
  transform: scale(1.03);
}

.feature-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-pure);
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.feature-bullet-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Mini Feature Strip */
.mini-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.mini-feature-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  clip-path: var(--polygon-corner-cut);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.mini-feature-card:hover {
  border-color: var(--accent-cyan-dim);
}

.mini-feature-icon {
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.mini-feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-pure);
}

.mini-feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   06 // QUICK ONBOARDING & GUIDES
   ========================================================================== */
.onboard-ladder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.onboard-step-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut);
  padding: 30px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-cyan);
  opacity: 0.4;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-pure);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.drawer-trigger-card {
  background: var(--surface-panel-alt);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut);
  padding: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.drawer-trigger-card:hover {
  background: var(--surface-panel-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.drawer-trigger-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.drawer-trigger-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer-trigger-arrow {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

/* ==========================================================================
   07 // CHANGELOG RELEASE
   ========================================================================== */
.changelog-box {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut-lg);
  padding: 36px;
}

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

.changelog-version-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.changelog-version-tag h3 {
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.changelog-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.changelog-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.changelog-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.changelog-item::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.changelog-item.amber::before {
  color: var(--accent-amber);
}

/* ==========================================================================
   08 // DONATION & COMMUNITY
   ========================================================================== */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.donation-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-hard);
  clip-path: var(--polygon-corner-cut);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.donation-card:hover {
  background: var(--surface-panel-alt);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.donation-card.amber:hover {
  border-color: var(--accent-amber);
}

.donation-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-pure);
}

.donation-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.donation-action {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.donation-card.amber .donation-action {
  color: var(--accent-amber);
}

/* ==========================================================================
   MODAL DIALOGS (How-To, Config, FAQ)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 11, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--surface-panel);
  border: 1px solid var(--accent-cyan);
  clip-path: var(--polygon-corner-cut-lg);
  max-width: 840px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group h3 {
  font-size: 1.3rem;
  color: var(--text-pure);
}

.modal-title-group p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-pure);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-body h4 {
  color: var(--text-pure);
  font-size: 1.1rem;
  margin: 20px 0 8px 0;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body code {
  background: var(--bg-void-0);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-cyan);
}

.modal-body pre {
  background: var(--bg-void-0);
  border: 1px solid var(--border-hard);
  padding: 14px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
}

.modal-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px 0;
  background: var(--bg-void-0);
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  max-width: 420px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links-col h5 {
  font-size: 0.9rem;
  color: var(--text-pure);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-faint);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .modes-grid,
  .features-grid,
  .onboard-ladder-grid,
  .changelog-items-grid,
  .donation-grid,
  .guide-drawers-row {
    grid-template-columns: 1fr;
  }
  .mini-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inpaint-ladder-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1350px) and (min-width: 1181px) {
  .header-container {
    gap: 16px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-idx {
    display: none;
  }
  .nav-item a {
    font-size: 0.8rem;
  }
  .brand-title {
    font-size: 1rem;
  }
  .btn-download-nav {
    padding: 8px 12px;
  }
}

@media (max-width: 1180px) {
  .site-header nav {
    flex: none;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--surface-panel);
    padding: 24px;
    border-bottom: 1px solid var(--border-hard);
    gap: 16px;
    z-index: 99;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.4rem;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mini-features-grid {
    grid-template-columns: 1fr;
  }
  .pinned-hud-gauge {
    bottom: 12px;
    right: 12px;
    padding: 8px 12px;
    min-width: 170px;
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   TACTICAL SCROLLBAR (matches HUD: void track, cyan-dim thumb, neon hover)
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void-0);
  border-left: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-cyan-dim);
  border: 2px solid var(--bg-void-0);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}
::-webkit-scrollbar-corner {
  background: var(--bg-void-0);
}

/* ==========================================================================
   MOBILE HARDENING (tablet + phone)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section-pad {
    padding: 64px 0;
  }
  .hero-section {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .mode-card,
  .onboard-step-card,
  .feature-content {
    padding: 22px;
  }
  .changelog-box,
  .pipeline-sim-panel {
    padding: 22px;
  }
  .modal-body {
    padding: 20px;
  }
  .comparison-hud-container {
    padding: 12px;
  }
  .sim-mode-toggle-group,
  .changelog-version-tag {
    flex-wrap: wrap;
  }
  /* Oversized fixed watermark type dominates small viewports: tame it */
  .anime-op-text {
    font-size: 3rem !important;
  }
  .hud-wireframe-dial {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 560px) {
  /* Header crowds at 360px: keep brand mark + burger, collapse the rest */
  .btn-download-nav {
    display: none;
  }
  .btn-github span {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 1rem;
  }
  .header-actions {
    gap: 10px;
  }
  /* Full-width stacked CTAs are easier thumbs than side-by-side pills */
  .hero-actions > * {
    flex: 1 1 100%;
  }
  .hero-telemetry-strip {
    gap: 10px;
  }
  .comparison-telemetry-bar {
    font-size: 0.68rem;
  }
  .changelog-box,
  .pipeline-sim-panel {
    padding: 18px;
  }
  .pipeline-node {
    min-width: 120px;
    padding: 12px;
  }
  .modal-overlay {
    padding: 12px;
  }
  /* Signature gauge stays, just smaller — never covering primary CTAs */
  .pinned-hud-gauge {
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}
