/* ==========================================================================
   FizzyStudio Portfolio Design System
   Human-crafted, minimal, technical, dark-mode software studio styling.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #070a12;
  --bg-surface: #0c101c;
  --bg-surface-elevated: #111728;
  --bg-card: #0e1424;
  --bg-card-hover: #141c32;
  --bg-code: #090d17;
  
  /* Accent Colors (High Contrast WCAG AAA) */
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.12);
  --accent-cyan-border: rgba(0, 229, 255, 0.25);
  --accent-purple: #c084fc;
  --accent-purple-dim: rgba(192, 132, 252, 0.14);
  --accent-purple-border: rgba(192, 132, 252, 0.35);
  
  /* Status Colors */
  --status-green: #10b981;
  --status-green-dim: rgba(16, 185, 129, 0.12);
  --status-red: #ef4444;
  --status-yellow: #f59e0b;

  /* Typography Colors (WCAG AA Compliant) */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #8492a6;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.22);
  
  /* Fonts with instant system fallbacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  

  /* Fluid Typography & Spacing */
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem);
  --space-section: clamp(3rem, 2rem + 5vw, 6rem);

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  /* Physical Motion Curves & Easing Palette (Animations/SKILL.md) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-quart: cubic-bezier(0.5, 0, 0.75, 0);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-press-down: cubic-bezier(0.3, 0, 0.6, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce-soft: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --transition-fast: 150ms var(--ease-snap);
  --transition-normal: 250ms var(--ease-out-quart);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

/* Custom Scrollbars for WebKit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background (Minimal & Non-intrusive) */
.site-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.glow-cyan {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  top: -150px;
  left: 20%;
}

.glow-purple {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: 40%;
  right: -100px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: #67e8f9;
  }
}

code, pre {
  font-family: var(--font-mono);
}

/* Buttons (Tactile Physics-Based Micro-Interactions) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  transition: transform 90ms var(--ease-press-down),
              box-shadow 180ms var(--ease-snap),
              background 180ms var(--ease-snap),
              border-color 180ms var(--ease-snap),
              color 180ms var(--ease-snap);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: scale(0.96) translateY(0);
  transition-duration: 60ms;
}

.btn:not(:active) {
  transition: transform 220ms var(--ease-spring),
              box-shadow 180ms var(--ease-snap),
              background 180ms var(--ease-snap),
              border-color 180ms var(--ease-snap),
              color 180ms var(--ease-snap);
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #8b5cf6);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    filter: brightness(1.08);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.35), 0 2px 10px rgba(168, 85, 247, 0.35);
  }
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan-border);
    color: var(--text-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-medium);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  }
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan-border);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.18);
  }
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
  }
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.dot-accent {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: inline-block;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #00d2ff, #8b5cf6);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
  transition: width 50ms linear;
  z-index: 101;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-emblem {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
}

.mobile-drawer {
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-medium);
  padding: 1.25rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .mobile-nav-link:hover {
    color: var(--text-primary);
  }
}

.mobile-nav-link.external {
  color: var(--accent-cyan);
}

/* Hero Section */
.hero-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.banner-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  animation: heroBannerIn 850ms var(--ease-out-expo) forwards;
}

@keyframes heroBannerIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.banner-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.95), rgba(7, 10, 18, 0.4) 70%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.banner-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
  animation: heroElementIn 600ms var(--ease-spring) 120ms backwards;
}

.badge-label {
  color: var(--accent-cyan);
  font-weight: 600;
}

.badge-sep {
  color: var(--text-dim);
}

.badge-val {
  color: var(--text-secondary);
}

.hero-title {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  animation: heroElementIn 700ms var(--ease-out-expo) 220ms backwards;
}

.hero-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  animation: heroElementIn 650ms var(--ease-out-expo) 320ms backwards;
}

.hero-desc strong {
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  animation: heroElementIn 650ms var(--ease-spring) 420ms backwards;
}

@keyframes heroElementIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tech Spec Terminal Panel */
.tech-spec-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: heroPanelIn 850ms var(--ease-out-expo) 280ms backwards;
  transition: border-color 250ms var(--ease-snap), box-shadow 250ms var(--ease-snap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .tech-spec-panel:hover {
    border-color: var(--accent-cyan-border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
  }
}

@keyframes heroPanelIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-body {
  padding: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
}

.panel-body pre {
  margin: 0;
  font-family: var(--font-mono);
  white-space: pre;
}

.panel-body code {
  font-family: inherit;
}

/* Syntax Highlighting Tokens */
.tok-key { color: #38bdf8; }
.tok-str { color: #a7f3d0; }
.tok-bool { color: #f472b6; }
.tok-num { color: #fbbf24; }
.tok-null { color: #94a3b8; }

/* Sections */
.section-container {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border-subtle);
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.section-dark {
  background: #05070d;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 680px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 220ms var(--ease-snap),
              transform 280ms var(--ease-out-expo),
              box-shadow 280ms var(--ease-out-expo),
              background 220ms var(--ease-snap);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.08);
  }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  min-height: 26px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag-cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-border);
}

.tag-purple {
  background: var(--accent-purple-dim);
  color: #d8b4fe;
  border: 1px solid var(--accent-purple-border);
}

.tag-subtle {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.card-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-specs {
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  gap: 1rem;
}

.spec-row:not(:last-child) {
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.spec-label {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0.85;
}

.spec-val {
  color: var(--text-secondary);
  text-align: right;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.card-actions.single-action {
  grid-template-columns: 1fr;
}

.card-actions .btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  justify-content: center;
  white-space: normal;
}

/* Open Source Repositories Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
  }
}

.filter-btn.active {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan-border);
}

.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.oss-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 220ms var(--ease-snap),
              transform 280ms var(--ease-out-expo),
              box-shadow 280ms var(--ease-out-expo),
              background 220ms var(--ease-snap);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .oss-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  }
}

.oss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.oss-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.oss-repo-icon {
  color: var(--text-muted);
}

.oss-repo-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .oss-repo-name:hover {
    color: var(--accent-cyan);
  }
}

.oss-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.oss-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.oss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-subtle);
}

.oss-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.lang-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.lang-js { background: #f7df1e; }
.lang-ts { background: #3178c6; }
.lang-java { background: #b07219; }

.oss-link {
  font-weight: 600;
  color: var(--accent-cyan);
}

.oss-cta-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* Interactive Workbench / Live Demos */
.demo-workbench {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.workbench-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.workbench-tabs::-webkit-scrollbar {
  display: none;
}

.workbench-tab {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .workbench-tab:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
  }
}

.workbench-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-color: var(--accent-cyan);
}

.tab-badge {
  font-size: 0.6875rem;
  color: var(--accent-cyan);
}

.workbench-viewport {
  padding: 2rem;
}

.demo-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.demo-panel.active {
  display: block;
}

.demo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-heading {
  font-size: 1.125rem;
}

.demo-help {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-select, .form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-mini-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.stat-mini-val {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Demo Output Windows */
.demo-output {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-code);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.output-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.status-online {
  background: var(--status-green-dim);
  color: var(--status-green);
}

.status-cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.status-purple {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

/* Discord Webhook Simulator */
.discord-stream {
  padding: 1.25rem;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.discord-msg {
  display: flex;
  gap: 0.875rem;
}

.discord-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #23272a;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-body {
  flex-grow: 1;
}

.discord-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.msg-timestamp {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.discord-embed {
  background: #2b2d31;
  border-left: 4px solid var(--accent-purple);
  border-radius: 4px;
  padding: 0.875rem;
  max-width: 500px;
}

.embed-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.embed-title a {
  color: #00a8fc;
}

.embed-desc {
  font-size: 0.8125rem;
  color: #dbdee1;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.embed-desc code {
  background: #1e1f22;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

.embed-footer {
  font-size: 0.6875rem;
  color: #949ba4;
}

/* Minecraft Console Simulator */
.minecraft-console {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  background: #06080e;
}

.console-line {
  color: #cbd5e1;
  word-break: break-all;
}

.console-line.warn { color: #fbbf24; }
.console-line.danger { color: #f87171; }
.console-line.success { color: #34d399; }
.console-line.system-ready { color: var(--accent-cyan); }

/* Combat Tag Card */
.combat-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.combat-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.combat-tag-state {
  font-weight: 700;
  color: var(--text-muted);
}

.combat-tag-state.tagged {
  color: var(--status-red);
}

.combat-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-code);
  border-radius: 3px;
  overflow: hidden;
}

.combat-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #ef4444, #f59e0b);
  transition: width 0.1s linear;
}

.combat-time-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: right;
}

/* JSON Inspector */
.json-inspector {
  padding: 1.25rem;
  min-height: 280px;
  background: #06080e;
  overflow-x: auto;
  font-size: 0.8125rem;
}

/* Flow Step Tracker */
.flow-step-tracker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.flow-step.active {
  border-color: var(--accent-purple-border);
  background: var(--accent-purple-dim);
  color: var(--text-primary);
}

.flow-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Musify Player */
.player-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.track-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.track-artist {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.player-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-cyan);
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.player-btn-row {
  display: flex;
  gap: 0.5rem;
}

.dsp-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsp-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip.active {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan-border);
}

.queue-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-code);
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  border: 1px solid var(--border-subtle);
}

.queue-item.playing {
  border-color: var(--accent-cyan-border);
  background: var(--accent-cyan-dim);
}

.queue-pos {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-cyan);
  font-weight: 700;
  width: 40px;
}

.queue-name {
  flex-grow: 1;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

.queue-dur {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Stack Grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.stack-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.code-bracket {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1rem;
}

.stack-card-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.stack-list strong {
  color: var(--text-primary);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-avatar {
    border-color: var(--accent-cyan-border);
    transform: scale(1.03);
  }
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-responsibilities {
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.resp-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.resp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-links {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.manager-status {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
}

/* Reference Links Table */
.ref-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.ref-table th, .ref-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ref-table th {
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ref-table tr:last-child td {
  border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
  .ref-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
  }
}

.table-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Technical FAQ Knowledge Base */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.25rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .faq-card:hover {
    border-color: var(--border-medium);
  }
}

.faq-card[open] {
  border-color: var(--accent-cyan-border);
  background: rgba(13, 20, 36, 0.7);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-card[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-purple);
}

.faq-answer {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer code {
  background: var(--bg-code);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

/* Site Footer */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-credits {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-credits strong {
  color: var(--text-secondary);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8125rem;
}

.footer-list a {
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .footer-list a:hover {
    color: var(--text-primary);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.bullet-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
}

/* Responsive Breakpoints */
@media (max-width: 62em) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 48em) {
  .main-nav, .header-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
  
  .section-title {
    font-size: 1.625rem;
  }
  
  .products-grid, .oss-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .workbench-viewport {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   Advanced Motion Design & Micro-Animations (Animations/SKILL.md)
   ========================================================================== */

/* 1. Animated Message Entrance in Simulated Discord Stream */
@keyframes msgDrop {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  65% {
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discord-msg.animate-in {
  animation: msgDrop 320ms var(--ease-spring) forwards;
}

/* 2. Workbench Tab Panel Reveal */
@keyframes panelReveal {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.demo-panel.active {
  display: block;
  animation: panelReveal 260ms var(--ease-out-expo) forwards;
}

/* 3. Status Pill & Badge Pop Animation */
@keyframes popScale {
  0% {
    transform: scale(0.88);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.status-pill.pop-anim {
  animation: popScale 260ms var(--ease-spring) forwards;
}

/* 4. Scroll-Driven Micro-Reveals (Causal Choreography) */
.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 550ms var(--ease-out-expo),
              transform 550ms var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays across grid items */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 300ms; }

/* 5. Dynamic Specular Spotlight on Cards */
.spotlight-card {
  position: relative;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    400px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
    rgba(0, 229, 255, 0.28),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms var(--ease-snap);
}

@media (hover: hover) and (pointer: fine) {
  .spotlight-card:hover::before {
    opacity: 1;
  }
}

/* 6. Accessibility: Graceful Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    transform: none !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Accessibility: High-Contrast TV / Console Focus states */
:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
  transition: outline 100ms ease;
}

.btn:focus-visible, 
.product-card:focus-visible, 
.oss-card:focus-visible, 
.team-card:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  z-index: 10;
}


/* Large touch targets for coarse pointers (Touch devices) */
@media (pointer: coarse) {
  .btn, .filter-btn, .nav-link, .workbench-tab, .faq-question, .chip {
    min-height: 3rem;
    min-width: 3rem;
  }
}

/* Short height viewports (Landscape phones, heavy toolbars) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  
  .site-header {
    position: static;
  }
}

/* ==========================================================================
   Global Overflow & Blowout Fixes
   ========================================================================== */
/* Prevent flex/grid children from stretching their parents beyond viewport */
.hero-grid > *,
.products-grid > *,
.oss-grid > *,
.stack-grid > *,
.team-grid > *,
.faq-grid > *,
.demo-grid > *,
.footer-inner > * {
  min-width: 0;
}

/* Ensure descriptions and long words break instead of expanding the page */
p, .hero-desc, .card-summary, .oss-desc, .team-bio, .faq-answer {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Ensure code blocks scroll instead of expanding the page */
pre {
  max-width: 100%;
  overflow-x: auto;
}

/* Ensure images never bleed */
img, svg {
  max-width: 100%;
  height: auto;
}

/* If any card has nowrap elements, ensure they truncate instead of blowing out */
.spec-val, .tag, .queue-name, .oss-repo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
