/* ==========================================================================
   Vocal Landing Page — Minimalist Dark Tech Design System
   iOS · Android · macOS · Windows
   Strictly aligned with vocal.pen & PRD specifications
   ========================================================================== */

:root {
  /* ─── Background Colors ─── */
  --bg-primary: #0A0F1C;
  --bg-darker: #050811;
  --bg-darkest: #020409;
  --bg-card: #0F172A;
  --bg-card-glass: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 62, 0.88);
  --bg-input-glass: rgba(10, 15, 28, 0.85);

  /* ─── Borders & Highlights ─── */
  --border-card: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(34, 211, 238, 0.35);

  /* ─── Accent Colors (vocal.pen Specification) ─── */
  --accent-cyan: #22D3EE;
  --cyan-primary: #06B6D4;
  --cyan-bright: #22D3EE;
  --cyan-glow: rgba(34, 211, 238, 0.25);

  --accent-amber: #F59E0B;
  --amber-yellow: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --accent-green: #10B981;
  --emerald-green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.25);

  --blue-accent: #3B82F6;
  --purple-accent: #8B5CF6;
  --rose-accent: #F43F5E;

  /* ─── Typography & Text ─── */
  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ─── Elevation & Radii ─── */
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(34, 211, 238, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ─── Global Reset & Base Setup ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ─── Parallax Background, Ambient Orbs & Cyber Grid ─── */
.parallax-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}

.orb-hero, .orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  top: -150px;
  left: 15%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-mid, .orb-2 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  top: 40%;
  right: -100px;
  animation: floatOrb 24s ease-in-out infinite alternate-reverse;
}

.orb-bottom, .orb-3 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  bottom: 5%;
  left: -100px;
  animation: floatOrb 26s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 25px) scale(1.06); }
  100% { transform: translate(-25px, 40px) scale(0.96); }
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: width 0.3s, height 0.3s;
}

/* ─── Scroll Progress Bar ─── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--blue-accent), var(--purple-accent));
  z-index: 9999;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================================================
   Navigation Bar (Frosted Glass Apple Aesthetics)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.5rem 0;
}

.navbar.scrolled {
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  font-family: var(--font-mono);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* ─── Mobile Menu Toggle & Navigation Drawer ─── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  padding: 1.5rem 2rem 2rem;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--accent-cyan);
  padding-left: 0.5rem;
}

.mobile-drawer-footer {
  margin-top: 1rem;
}

/* ─── Buttons Design System ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  border: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--text-main);
  background: rgba(34, 211, 238, 0.06);
}

.btn-pill-primary, .btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary), var(--accent-cyan));
  color: #0A0F1C;
  border: none;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.btn-pill-primary:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.45);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

.btn-hero {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Section (Apple Cinema Aesthetics)
   ========================================================================== */
.hero-section {
  min-height: 92vh;
  padding: 9.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

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

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--blue-accent) 50%, var(--purple-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-soundwave-frame {
  width: 100%;
  max-width: 880px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 0.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-soundwave-canvas {
  width: 100%;
  height: 90px;
  display: block;
}

.wave-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.5rem;
}

.wave-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* ==========================================================================
   Section Intro Headers (Shared Apple Typography)
   ========================================================================== */
.section-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.apple-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.apple-heading {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.apple-subheading {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Section 1: Interactive Playground Simulator
   ========================================================================== */
.playground-section {
  max-width: 1360px;
  margin: 4rem auto 8rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.stage-container {
  display: grid;
  grid-template-columns: 380px 180px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.stage-col {
  display: flex;
  flex-direction: column;
}

.device-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.device-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

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

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

.device-ip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Virtual Phone Shell ─── */
.phone-device-shell {
  background: #0A0F1C;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.phone-dynamic-island {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.island-cam {
  width: 90px;
  height: 20px;
  background: #000;
  border-radius: 20px;
}

.phone-inner-view {
  background: var(--bg-card-glass);
  border-radius: 34px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex: 1;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-mini {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.lang-selector-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.lang-selector-pill select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}

.lang-selector-pill select option {
  background: var(--bg-card);
  color: var(--text-main);
}

.draft-card {
  background: var(--bg-input-glass);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.draft-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draft-head-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.draft-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.draft-len-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Card Clear Button - Top Right (Reference Figure 2 Real App Style) */
.btn-card-clear {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94A3B8);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-card-clear:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
  color: #FB7185;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.2);
}

.draft-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  font-family: var(--font-sans);
  min-height: 70px;
}

.draft-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
}

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

/* Auto Enter Capsule Button - Bottom Right of Draft Card (Figure 2 Style) */
.enter-pill-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.enter-pill-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.enter-pill-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #64748B);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.enter-icon {
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.enter-pill-toggle:hover .enter-pill-inner {
  border-color: rgba(34, 211, 238, 0.4);
  color: #F8FAFC;
}

.enter-pill-toggle input:checked + .enter-pill-inner {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22D3EE;
  color: #22D3EE;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
  font-weight: 600;
}

.quick-phrases-shelf {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shelf-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shelf-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.shelf-scroll::-webkit-scrollbar {
  display: none;
}

.chip-phrase, .phrase-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip-phrase:hover, .phrase-chip:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.06);
}

.phone-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding: 0 0.25rem;
}

.controls-left-audio-level {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-width: 42px;
  height: 24px;
  padding-left: 0.35rem;
}

.bar-pill {
  width: 3.5px;
  background: var(--accent-cyan);
  border-radius: 999px;
  opacity: 0.8;
  animation: audioBarDance 1.2s ease-in-out infinite alternate;
}

.bar-pill.b1 { height: 6px; animation-delay: 0.1s; }
.bar-pill.b2 { height: 16px; animation-delay: 0.35s; }
.bar-pill.b3 { height: 20px; animation-delay: 0.2s; }
.bar-pill.b4 { height: 10px; animation-delay: 0.45s; }

@keyframes audioBarDance {
  0% { height: 5px; opacity: 0.35; }
  100% { height: 22px; opacity: 0.95; }
}

.controls-left-status {
  display: none;
}

.mic-btn-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.main-mic-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--cyan-primary), var(--accent-cyan));
  color: #0A0F1C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
  transition: transform 0.2s;
}

.main-mic-button:hover {
  transform: scale(1.06);
}

.main-mic-button.recording {
  background: linear-gradient(135deg, #EF4444, var(--rose-accent));
  color: #fff;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.6);
}

.mic-hint-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-send-beam {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.25s;
}

.btn-send-beam:hover {
  background: var(--accent-cyan);
  color: #0A0F1C;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* ─── Communication Pipeline (Center Beam) ─── */
.pipeline-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.pipeline-beam-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.beam-glow-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
  animation: beamFlow 2.5s infinite;
}

@keyframes beamFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.beam-pulse-particle {
  position: absolute;
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  left: -30px;
}

.beam-pulse-particle.fly {
  animation: packetFly 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes packetFly {
  0% { left: 0%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.latency-capsule {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
}

.latency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.latency-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.latency-value {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.packet-inspect-box {
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.75rem;
  font-family: var(--font-mono);
}

.packet-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.packet-code {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: pre-wrap;
  margin: 0;
}

/* ─── Virtual Host Shell (Mac / Windows Window) ─── */
.host-col {
  display: flex;
  flex-direction: column;
}

.mac-window-shell {
  background: var(--bg-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex: 1;
}

.mac-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(10, 15, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic-dots {
  display: flex;
  gap: 7px;
}

.tdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.tdot.red { background: #EF4444; }
.tdot.yellow { background: #F59E0B; }
.tdot.green { background: #10B981; }

.mac-window-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tray-status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.tray-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.app-switcher-capsule {
  display: flex;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.app-pill-btn.active {
  background: var(--accent-cyan);
  color: #0A0F1C;
  font-weight: 600;
}

.mac-window-body {
  flex: 1;
  padding: 1.5rem;
  min-height: 280px;
  position: relative;
  background: rgba(5, 8, 17, 0.6);
}

.mac-app-view {
  display: none;
  height: 100%;
}

.mac-app-view.active {
  display: block;
}

/* VS Code View — AI Agent Assistant / Composer */
#view-vscode {
  display: none;
}
#view-vscode.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vscode-agent-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 290px;
  gap: 0.65rem;
}

.vscode-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.agent-badge-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.agent-icon {
  font-size: 0.95rem;
}

.agent-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #F1F5F9;
}

.agent-model-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.agent-status-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  color: #10B981;
}

/* Agent Message Feed */
.vscode-agent-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.4rem 0.2rem;
  max-height: 180px;
  min-height: 120px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.vscode-agent-feed::-webkit-scrollbar {
  width: 4px;
}

.vscode-agent-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.agent-msg-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-msg-row.user {
  flex-direction: row-reverse;
}

.agent-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.agent-avatar.user {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #C084FC;
  font-size: 0.65rem;
  font-weight: 700;
}

.agent-msg-content {
  max-width: 86%;
}

.agent-bubble {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}

.agent-bubble.user {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.15));
  border-color: rgba(34, 211, 238, 0.35);
  color: #F8FAFC;
}

.agent-code-card {
  margin-top: 0.4rem;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
}

.agent-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  font-size: 0.65rem;
}

.agent-code-body {
  padding: 0.45rem 0.6rem;
  margin: 0;
  color: #34D399;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Agent Input Shell (Target of Vocal Injection) */
.vscode-agent-input-shell {
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
  transition: all 0.25s;
}

.vscode-agent-input-shell.typing {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.agent-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  color: #64748B;
  font-family: var(--font-mono, monospace);
}

.agent-focus-hint {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #94A3B8;
}

.blinking-dot.cyan {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: blink 1s infinite;
}

.agent-shortcut-hint {
  color: #64748B;
}

.agent-input-box {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.agent-input-text {
  flex: 1;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #38BDF8;
  line-height: 1.4;
  min-height: 26px;
  max-height: 60px;
  overflow-y: auto;
  word-break: break-all;
  white-space: pre-wrap;
}

.agent-placeholder {
  color: #475569;
  font-style: italic;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.agent-send-btn {
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  color: var(--accent-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.agent-send-btn:hover {
  background: var(--accent-cyan);
  color: #0A0F1C;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* Syntax & Shared Helpers */
.code-gutter {
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  user-select: none;
  text-align: right;
  min-width: 20px;
}

.code-lines-area {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.code-row {
  color: #E2E8F0;
}

.code-row.indent {
  padding-left: 1.5rem;
}

.c-purple { color: #C084FC; }
.c-blue { color: #60A5FA; }
.c-yellow { color: #FCD34D; }
.c-gray, .code-comment { color: var(--text-muted); }
.c-green, .code-string { color: #34D399; }

.blinking-cursor, .cursor-blink {
  color: var(--accent-cyan);
  animation: blink 1s infinite;
  font-weight: 700;
}

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

/* Notes View */
#view-notes.active {
  display: block;
}

.notes-meta-bar {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.notes-canvas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #E2E8F0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.note-highlight-p {
  color: var(--text-secondary);
  font-style: italic;
}

.injected-note-p {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Chat View */
#view-chat.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.chat-flow-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 180px;
  overflow-y: auto;
}

.chat-msg, .chat-bubble {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.chat-bubble.right, .chat-msg.bubble-right {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar, .chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-accent);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-text, .chat-bubble-text {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #E2E8F0;
  max-width: 80%;
}

.chat-bubble.right .chat-bubble-text {
  background: var(--accent-cyan);
  color: #0A0F1C;
  font-weight: 500;
}

.chat-fake-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.chat-input-placeholder, .chat-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mac-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 15, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.status-ready {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-green);
}

.stats-counter-group {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
}

.stats-counter-group strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Section 2: Apple-Style Bento Grid (Features & Innovations)
   ========================================================================== */
.bento-section {
  max-width: 1280px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 211, 238, 0.12);
}

.bento-card-speed {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(13, 20, 36, 0.6));
}

.bento-card-privacy {
  grid-column: span 1;
}

.bento-card-occupied {
  border-color: rgba(245, 158, 11, 0.25);
}

.bento-card-occupied:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
}

.bento-card-pin {
  border-color: rgba(245, 158, 11, 0.25);
}

.bento-card-pin:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
}

.bento-card-history {
  border-color: rgba(34, 211, 238, 0.25);
}

.bento-card-global {
  grid-column: span 1;
}

.bento-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-badge-pill.cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

.bento-badge-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.bento-badge-pill.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.bento-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.bento-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-mini-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.bento-mini-icon.cyan {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.25);
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

.bento-stat-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.stat-unit {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-right: 0.25rem;
}

.bento-tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tag-item {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* ==========================================================================
   Section 3: High-Res Design Gallery & Cyberpunk Full-State Matrix
   ========================================================================== */
.gallery-section {
  max-width: 1360px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Category Filter Tabs */
.gallery-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.gallery-tab-btn:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--text-main);
  background: rgba(34, 211, 238, 0.08);
}

.gallery-tab-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(6, 182, 212, 0.3));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

/* Responsive Cyber Gallery Grid */
.gallery-cyber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

/* Cyberpunk Card with HUD Corner Brackets */
.gallery-card.cyber-card {
  position: relative;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-card.cyber-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(34, 211, 238, 0.16);
}

.gallery-card.cyber-card.hidden {
  display: none !important;
}

/* HUD Corner Brackets */
.cyber-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 5;
  transition: all 0.25s ease;
}

.cyber-corner.tl { top: 6px; left: 6px; border-top: 2px solid rgba(34, 211, 238, 0.4); border-left: 2px solid rgba(34, 211, 238, 0.4); }
.cyber-corner.tr { top: 6px; right: 6px; border-top: 2px solid rgba(34, 211, 238, 0.4); border-right: 2px solid rgba(34, 211, 238, 0.4); }
.cyber-corner.bl { bottom: 6px; left: 6px; border-bottom: 2px solid rgba(34, 211, 238, 0.4); border-left: 2px solid rgba(34, 211, 238, 0.4); }
.cyber-corner.br { bottom: 6px; right: 6px; border-bottom: 2px solid rgba(34, 211, 238, 0.4); border-right: 2px solid rgba(34, 211, 238, 0.4); }

.gallery-card.cyber-card:hover .cyber-corner {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Card Header Status Indicator */
.card-tech-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.badge-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot.green { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.pulse-dot.cyan { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.pulse-dot.amber { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.pulse-dot.red { background: #EF4444; box-shadow: 0 0 8px #EF4444; }
.pulse-dot.purple { background: var(--purple-accent); box-shadow: 0 0 8px var(--purple-accent); }

/* Card Image Canvas & Hover Overlay */
.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background: rgba(5, 8, 17, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  padding: 1rem;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.06);
}

.img-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.img-hover-overlay .overlay-icon {
  font-size: 1.4rem;
}

.gallery-img-wrap:hover .img-hover-overlay {
  opacity: 1;
}

/* Card Caption Details */
.gallery-caption {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-caption strong {
  font-size: 1.05rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.gallery-caption span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* HUD Meta Row */
.hud-meta-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.hud-tag.cyan { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.25); color: var(--accent-cyan); }
.hud-tag.green { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); color: var(--accent-green); }
.hud-tag.amber { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); color: var(--accent-amber); }
.hud-tag.red { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); color: #EF4444; }
.hud-tag.purple { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.25); color: var(--purple-accent); }

/* ==========================================================================
   Cyber Lightbox Modal (Fullscreen Artboard Inspector)
   ========================================================================== */
.cyber-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-lightbox.active,
.cyber-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 9, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lightbox-container {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(34, 211, 238, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lightboxZoom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 20;
  transition: all 0.2s;
}

.lightbox-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-body {
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: 75vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

.lightbox-footer {
  padding: 1rem 1.5rem;
  background: rgba(10, 15, 28, 0.95);
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.lightbox-dot.cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.lightbox-caption {
  color: var(--text-main);
  font-weight: 600;
  flex: 1;
}

.lightbox-tip {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ==========================================================================
   Section 4: Four-Platform Ecosystem Matrix
   ========================================================================== */
.ecosystem-section {
  max-width: 1280px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.eco-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eco-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.eco-platform-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.eco-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.eco-meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.eco-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.eco-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.eco-link:hover {
  gap: 0.6rem;
  color: #67E8F9;
}

/* ==========================================================================
   Section 5: Download Center
   ========================================================================== */
.download-section {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.dl-clean-tabs {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.dl-nav-pills {
  display: flex;
  background: var(--bg-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  gap: 0.5rem;
}

.dl-pill-btn, .dl-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.dl-pill-btn.active, .dl-tab-btn.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.dl-panel-content {
  padding: 2.5rem;
}

.dl-panel, .dl-tab-pane {
  display: none;
}

.dl-panel.active, .dl-tab-pane.active {
  display: block;
}

.dl-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dl-panel-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.panel-subtext {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.btn-dl-hero {
  display: inline-flex;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.panel-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-amber);
  line-height: 1.5;
}

.code-copy-shell {
  background: var(--bg-darker);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.shell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.shell-code {
  padding: 1.25rem;
  font-size: 0.82rem;
  color: #E2E8F0;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
}

/* ==========================================================================
   Section 6: Clean Minimal FAQ
   ========================================================================== */
.faq-clean-section, .faq-section {
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-row, .faq-item {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.faq-row-q, .faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.faq-arrow, .faq-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-row.active .faq-arrow, .faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-row-a, .faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-row.active .faq-row-a, .faq-item.active .faq-answer {
  display: block;
}

.faq-detail-list {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-detail-list li {
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-detail-list strong {
  color: #F8FAFC;
}

/* ==========================================================================
   Footer (Minimal Apple Cinema Aesthetics)
   ========================================================================== */
.apple-footer, .footer {
  border-top: 1px solid var(--border-card);
  background: var(--bg-darkest);
  padding: 4rem 1.5rem 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-inner, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-motto, .footer-slogan {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.copyright, .footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

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

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

/* ==========================================================================
   Toast Notification Capsule
   ========================================================================== */
.toast-capsule, .toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 35px var(--cyan-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-capsule.show, .toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints (@media) - Mobile First Perfection
   ========================================================================== */
@media (max-width: 1080px) {
  .stage-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pipeline-col {
    padding: 1rem 0;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card-speed {
    grid-column: span 2;
  }
  .dl-panel-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ─── Cyber Telemetry HUD Console ─── */
.cyber-telemetry-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 0.9rem 1.8rem;
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(34, 211, 238, 0.05);
  font-family: var(--font-mono, monospace);
  flex-wrap: wrap;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hud-item-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-glow 2s infinite ease-in-out;
}
.hud-dot-pulse.cyan { background: #22D3EE; box-shadow: 0 0 8px #22D3EE; }
.hud-dot-pulse.green { background: #10B981; box-shadow: 0 0 8px #10B981; }
.hud-dot-pulse.amber { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.hud-dot-pulse.purple { background: #A855F7; box-shadow: 0 0 8px #A855F7; }

.hud-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim, #64748B);
  font-weight: 600;
}

.hud-value {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.hud-value.neon-cyan { color: #22D3EE; text-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
.hud-value.neon-green { color: #10B981; text-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
.hud-value.neon-amber { color: #F59E0B; text-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
.hud-value.neon-purple { color: #C084FC; text-shadow: 0 0 12px rgba(192, 132, 252, 0.5); }

.hud-sub {
  font-size: 0.65rem;
  color: #475569;
  letter-spacing: 0.08em;
}

.hud-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Gallery Category Filter Tabs ─── */
.gallery-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94A3B8);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.gallery-tab-btn:hover {
  color: #F8FAFC;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

.gallery-tab-btn.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22D3EE;
  color: #22D3EE;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
  font-weight: 600;
}

/* ─── Gallery Cyber Grid & Cards ─── */
.gallery-cyber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cyber-card {
  position: relative;
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cyber-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 211, 238, 0.2);
}

.cyber-card.hidden {
  display: none !important;
}

/* Cyber Corner Accents */
.cyber-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 5;
}
.cyber-corner.tl { top: 6px; left: 6px; border-top: 2px solid #22D3EE; border-left: 2px solid #22D3EE; }
.cyber-corner.tr { top: 6px; right: 6px; border-top: 2px solid #22D3EE; border-right: 2px solid #22D3EE; }
.cyber-corner.bl { bottom: 6px; left: 6px; border-bottom: 2px solid #22D3EE; border-left: 2px solid #22D3EE; }
.cyber-corner.br { bottom: 6px; right: 6px; border-bottom: 2px solid #22D3EE; border-right: 2px solid #22D3EE; }

.card-tech-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem 0.4rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #64748B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-tech-badge .badge-code {
  color: #94A3B8;
  font-weight: 500;
}

.gallery-img-wrap {
  position: relative;
  background: #030712;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
}

.gallery-img-wrap .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.img-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #22D3EE;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .img-hover-overlay {
  opacity: 1;
}

.img-hover-overlay .overlay-icon {
  font-size: 1.4rem;
}

.gallery-caption {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gallery-caption strong {
  font-size: 1.05rem;
  color: #F8FAFC;
  font-weight: 600;
}

.gallery-caption span {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.45;
}

.hud-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
}

.hud-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #94A3B8;
}

.hud-tag.cyan { color: #22D3EE; border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.08); }
.hud-tag.purple { color: #C084FC; border-color: rgba(192, 132, 252, 0.3); background: rgba(192, 132, 252, 0.08); }
.hud-tag.green { color: #34D399; border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.08); }
.hud-tag.amber { color: #FBBF24; border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.hud-tag.red { color: #F87171; border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }

/* ─── Cyber Lightbox Modal ─── */
.cyber-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(16px);
}

.lightbox-container {
  position: relative;
  z-index: 10;
  max-width: 92vw;
  max-height: 90vh;
  background: #0A0F1C;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(34, 211, 238, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F8FAFC;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #EF4444;
  transform: rotate(90deg);
}

.lightbox-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: 76vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-footer {
  padding: 0.9rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
}

.lightbox-caption {
  color: #F8FAFC;
  font-weight: 600;
}

.lightbox-tip {
  color: #64748B;
  font-size: 0.75rem;
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-drawer {
    display: block;
  }
  .cyber-telemetry-hud {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 16px;
  }
  .hud-divider {
    display: none;
  }
  .gallery-cyber-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .lightbox-container {
    max-width: 96vw;
  }
  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.4rem);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-speed {
    grid-column: span 1;
  }
  .gallery-scroll-container {
    gap: 1rem;
  }
  .gallery-card {
    flex: 0 0 280px;
  }
  .dl-nav-pills {
    flex-wrap: wrap;
  }
  .dl-panel-content {
    padding: 1.5rem;
  }
  .footer-top-row, .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero {
    width: 100%;
    justify-content: center;
  }
  .phone-device-shell {
    border-radius: 32px;
    padding: 8px;
  }
  .phone-inner-view {
    border-radius: 24px;
    padding: 1rem;
  }
  .mac-window-shell {
    border-radius: 14px;
  }
  .toast-capsule {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}
