/*
 * styles.css – 2 MVP · LED Celebration
 * César Hassen-Bey | Microsoft MVP 2026
 * Business Applications + Internet of Things
 *
 * Table of Contents:
 *  1. CSS Custom Properties (design tokens)
 *  2. Reset & Base
 *  3. Skip link
 *  4. Background canvas (aurora)
 *  5. Navigation
 *  6. Hero Section
 *  7. Copilot Ribbon SVG Animation
 *  8. Matrix Section
 *  9. Hardware Frame & LED Grid
 * 10. Glass Panels
 * 11. Info / Code / Metrics panels
 * 12. Controls Bar
 * 13. Closing Section
 * 14. Footer
 * 15. Utility classes
 * 16. Responsive Breakpoints
 * 17. Accessibility: prefers-reduced-motion
 */

/* ═══════════════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════════════════ */
:root {
  /* Palette – Copilot-inspired */
  --color-cyan:    #00d4ff;
  --color-blue:    #0ea5e9;
  --color-indigo:  #6366f1;
  --color-purple:  #7c3aed;
  --color-magenta: #ec4899;
  --color-orange:  #ff6b35;
  --color-amber:   #f59e0b;
  --color-green:   #10b981;
  --color-white:   #ffffff;

  /* Backgrounds */
  --bg-base:       #050810;
  --bg-panel:      rgba(10, 16, 40, 0.72);
  --bg-panel-h:    rgba(10, 16, 40, 0.88);
  --bg-frame:      #080e24;

  /* Text */
  --text-primary:  #f0f4ff;
  --text-secondary:#8a9cc4;
  --text-muted:    #4d5e80;

  /* Borders */
  --border-glass:  rgba(255, 255, 255, 0.08);
  --border-glow:   rgba(0, 212, 255, 0.25);
  --border-led:    rgba(0, 212, 255, 0.12);

  /* LED colors */
  --led-off:       #0a0e1a;
  --led-on:        #00d4ff;
  --led-glow:      rgba(0, 212, 255, 0.8);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Typography – fluid scale */
  --font-sans:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:  'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --fs-xs:   clamp(0.65rem,  1.2vw, 0.75rem);
  --fs-sm:   clamp(0.75rem,  1.4vw, 0.875rem);
  --fs-base: clamp(0.875rem, 1.6vw, 1rem);
  --fs-md:   clamp(1rem,     1.8vw, 1.125rem);
  --fs-lg:   clamp(1.125rem, 2vw,   1.375rem);
  --fs-xl:   clamp(1.5rem,   3vw,   2rem);
  --fs-2xl:  clamp(2rem,     4.5vw, 3.25rem);
  --fs-3xl:  clamp(2.5rem,   6vw,   4.5rem);

  /* Animation durations */
  --dur-fast:   150ms;
  --dur-normal: 300ms;
  --dur-slow:   600ms;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ═══════════════════════════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════
   3. SKIP LINK
═══════════════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-cyan);
  color: var(--bg-base);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   4. BACKGROUND CANVAS (aurora + particles)
═══════════════════════════════════════════════════════════════════════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   5. NAVIGATION
═══════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem var(--space-xl);
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: var(--fs-sm);
  transition: opacity var(--dur-fast);
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo-text {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--dur-fast);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════
   6. HERO SECTION
═══════════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  overflow: hidden;
}

/* subtle grid pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ── Hero text ─────────────────────────────────────────────────────── */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 1000;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  line-height: 1.05;
}

/* "2 MVP." multicolor Copilot gradient */
.headline-mvp {
  font-size: var(--fs-3xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--color-cyan)   0%,
    var(--color-blue)   20%,
    var(--color-indigo) 40%,
    var(--color-purple) 55%,
    var(--color-magenta) 70%,
    var(--color-orange) 85%,
    var(--color-amber)  100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradient-shift 5s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.headline-sub {
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
}

.hero-intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Recognition copy */
.recognition-copy {
  max-width: 54rem;
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.recognition-copy p {
  margin-bottom: var(--space-md);
}

.recognition-copy strong {
  color: var(--text-primary);
  font-weight: 700;
}

.recognition-list {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.recognition-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.recognition-list span {
  color: var(--text-secondary);
}

.recognition-signature {
  margin-top: var(--space-lg);
  color: var(--text-primary);
  font-weight: 700;
}

.recognition-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

/* ── Technology chips ──────────────────────────────────────────────── */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}

.chip-cyan   { color: var(--color-cyan);    border-color: rgba(0, 212, 255, 0.4);  background: rgba(0, 212, 255, 0.08); }
.chip-blue   { color: var(--color-blue);    border-color: rgba(14, 165, 233, 0.4); background: rgba(14, 165, 233, 0.08); }
.chip-orange { color: var(--color-orange);  border-color: rgba(255, 107, 53, 0.4); background: rgba(255, 107, 53, 0.08); }
.chip-purple { color: var(--color-purple);  border-color: rgba(124, 58, 237, 0.4); background: rgba(124, 58, 237, 0.08); }

/* ── CTA Buttons ───────────────────────────────────────────────────── */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              opacity var(--dur-fast);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  color: var(--color-cyan);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.06);
  transition: background var(--dur-normal), box-shadow var(--dur-normal),
              transform var(--dur-normal) var(--ease-out);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════
   7. COPILOT RIBBON SVG ANIMATION
═══════════════════════════════════════════════════════════════════════ */
.hero-symbol {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilot-ribbon {
  width: min(420px, 100%);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2))
          drop-shadow(0 0 80px rgba(124, 58, 237, 0.15));
  animation: ribbon-float 6s ease-in-out infinite;
}

@keyframes ribbon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(-12px) rotate(1deg); }
  66%  { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Stroke-dasharray animation for ribbon arcs */
.ribbon-arc {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-arc 3s var(--ease-out) forwards;
}

.arc-1 { animation-delay: 0s; }
.arc-2 { animation-delay: 0.3s; }
.arc-3 { animation-delay: 0.6s; }
.arc-4 { animation-delay: 0.9s; }

@keyframes draw-arc {
  to { stroke-dashoffset: 0; }
}

.ribbon-center {
  animation: pulse-center 3s ease-in-out infinite 1.5s;
}

@keyframes pulse-center {
  0%, 100% { r: 40; opacity: 0.15; }
  50% { r: 50; opacity: 0.25; }
}

.ribbon-dot {
  animation: orbit-dot 6s linear infinite;
}

.dot-a { animation-duration: 7s; }
.dot-b { animation-duration: 9s; animation-delay: -2s; }
.dot-c { animation-duration: 11s; animation-delay: -4s; }
.dot-d { animation-duration: 8s; animation-delay: -1s; }

@keyframes orbit-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.ribbon-scan {
  animation: scan-line 4s ease-in-out infinite;
}

@keyframes scan-line {
  0%, 100% { opacity: 0; }
  30%, 70%  { opacity: 0.3; }
  50% { opacity: 0.15; }
}

/* ── Scroll indicator ──────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.4;
  animation: fade-bounce 2.5s ease-in-out infinite;
}

@keyframes fade-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.2; }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-cyan), transparent);
}

.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--color-cyan);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   8. MATRIX SECTION HEADER
═══════════════════════════════════════════════════════════════════════ */
.matrix-section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}

.section-title-accent {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.section-subtitle {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Matrix layout: hardware + info panels ─────────────────────────── */
.matrix-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
  margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════════════════════════════════
   9. HARDWARE FRAME & LED GRID
═══════════════════════════════════════════════════════════════════════ */
.hardware-wrapper {
  display: flex;
  width: 100%;
  min-width: 0;
}

.hardware-frame {
  width: 100%;
  min-height: 100%;
  background: var(--bg-frame);
  border: 2px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 0 40px rgba(0, 212, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  /* subtle brushed-metal texture */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    );
}

/* Frame header bar */
.frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding: 0 var(--space-xs);
}

.frame-label-left {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.frame-brand {
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.frame-dim {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.frame-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.frame-led {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.frame-led.pwr {
  background: var(--color-green);
  box-shadow: 0 0 6px var(--color-green);
  animation: led-blink-slow 3s ease-in-out infinite;
}

.frame-led.mcu {
  background: var(--color-cyan);
  box-shadow: 0 0 6px var(--color-cyan);
  animation: led-blink-fast 0.8s ease-in-out infinite;
}

@keyframes led-blink-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes led-blink-fast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.frame-label-indicator {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 6px;
}

/* ── LED Grid ──────────────────────────────────────────────────────── */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
  padding: var(--space-md);
  background: #020408;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.06);
}

/* Individual LED */
.led {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--led-off);
  border: 1px solid rgba(0, 212, 255, 0.07);
  transform: rotate(3deg);
  transition:
    background var(--dur-fast),
    box-shadow var(--dur-fast),
    opacity var(--dur-fast);
  position: relative;
}

/* LED "on" state – set via JS with inline opacity style */
.led.on {
  background: var(--led-on);
  box-shadow:
    0 0 4px var(--led-on),
    0 0 10px var(--led-glow),
    0 0 20px rgba(0, 212, 255, 0.4);
}

/* Brightness controlled via CSS variable set by JS */
.led.on {
  opacity: var(--led-brightness, 1);
}

/* Frame footer */
.frame-footer {
  margin-top: var(--space-md);
  text-align: center;
}

.frame-footer-text {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════
   10. GLASSMORPHISM PANELS
═══════════════════════════════════════════════════════════════════════ */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}

.glass-panel:hover {
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════════════════
   11. INFO / CODE / METRICS PANELS
═══════════════════════════════════════════════════════════════════════ */
.info-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.panel-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.panel-icon {
  opacity: 0.7;
}

/* ── Info panel ─────────────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-item-full {
  grid-column: 1 / -1;
}

.info-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-value {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
  min-height: 1.4em;
}

/* Progress bar */
.progress-bar-wrapper {
  margin-bottom: var(--space-md);
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-out);
  box-shadow: 0 0 8px var(--color-cyan);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  counter-increment: tl-counter;
}

.timeline-item.active {
  color: var(--color-cyan);
}

.timeline-item.completed {
  color: var(--text-secondary);
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}

.timeline-item.active .tl-dot {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

.timeline-item.completed .tl-dot {
  background: var(--color-green);
}

/* ── Code panel ─────────────────────────────────────────────────────── */
.code-panel {
  font-family: var(--font-mono);
}

.code-block {
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow-x: auto;
  font-size: var(--fs-xs);
  line-height: 2;
  border: 1px solid rgba(255,255,255,0.04);
}

.ino-line {
  display: block;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}

.ino-line.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-cyan);
  box-shadow: inset 2px 0 0 var(--color-cyan);
}

/* ── Metrics panel ──────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.metric-value {
  font-size: var(--fs-lg);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.metric-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-status,
.metric-clock {
  grid-column: span 1;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.paused {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   12. CONTROLS BAR
═══════════════════════════════════════════════════════════════════════ */
.controls-bar {
  width: 100%;
  min-width: 0;
  min-height: 100%;

  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-xl);
  align-content: stretch;

  padding: var(--space-xl);
}

.controls-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.controls-buttons .ctrl-btn {
  width: 100%;
  justify-content: center;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  transition: background var(--dur-fast), color var(--dur-fast),
              border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

.ctrl-btn.ctrl-primary {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

.ctrl-btn.ctrl-primary:hover {
  background: rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.ctrl-icon {
  font-size: 1rem;
  line-height: 1;
}

.controls-sliders {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md) var(--space-md);
  align-content: center;
  align-items: center;

  width: 100%;
  min-width: 0;
}

.slider-label {
  display: contents;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.slider-label span:first-child {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.slider-label span:last-child {
  font-size: var(--fs-xs);
  color: var(--color-cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.ctrl-slider {
  grid-column: 1 / -1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.ctrl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}

.ctrl-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px var(--color-cyan);
}

.ctrl-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  cursor: pointer;
}

.ctrl-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

.controls-kbd {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  white-space: normal;
  text-align: center;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   13. CLOSING SECTION
═══════════════════════════════════════════════════════════════════════ */
.closing-section {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-cyan));
}

.closing-inner {
  max-width: 860px;
  margin: 0 auto;
  padding-top: var(--space-xl);
}

.closing-categories {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.closing-headline {
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.closing-message {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  font-style: italic;
}

.closing-signature {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xl);
  background: linear-gradient(90deg,
    var(--color-cyan), var(--color-blue),
    var(--color-indigo), var(--color-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── MVP Badges ─────────────────────────────────────────────────────── */
.mvp-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.mvp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
  min-width: 180px;
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal);
}

.mvp-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.badge-ba:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0,212,255,0.1);
}

.badge-iot:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 12px 40px rgba(255,107,53,0.1);
}

.badge-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.badge-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.mvp-divider {
  font-size: var(--fs-xl);
  color: var(--text-muted);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════════════
   14. FOOTER
═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: var(--space-xl);
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-line {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-built {
  color: var(--text-secondary);
}

.footer-disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════
   15. UTILITY CLASSES
═══════════════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   16. RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════════════ */

/* Tablet – up to 1100px */
@media (max-width: 1100px) {
  .matrix-layout {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  }

  .info-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-panel {
    grid-column: 1 / -1;
  }
}

/* Tablet portrait – up to 900px */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-symbol {
    order: -1;
  }

  .copilot-ribbon {
    width: min(300px, 60vw);
  }

  .hero-text {
    text-align: center;
    align-items: center;
  }

  .recognition-copy {
    max-width: 100%;
    text-align: left;
  }

  .recognition-links,
  .chip-list,
  .hero-cta {
    justify-content: center;
  }

  .matrix-layout {
    grid-template-columns: 1fr;
  }

  .hardware-wrapper,
  .controls-bar {
    max-width: 720px;
    margin-inline: auto;
  }

  .controls-bar {
    min-height: auto;
  }
}

/* Mobile – up to 640px */
@media (max-width: 640px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding-top: var(--space-2xl);
  }

  .matrix-section {
    padding-inline: var(--space-md);
  }

  .matrix-layout,
  .info-column {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .matrix-grid {
    gap: 3px;
    padding: var(--space-sm);
  }

  .led {
    width: 16px;
    height: 16px;
  }

  .controls-bar {
    padding: var(--space-md);
    gap: var(--space-lg);
  }

  .controls-buttons {
    grid-template-columns: 1fr;
  }

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

  .mvp-badges {
    flex-direction: column;
    align-items: center;
  }

  .mvp-divider {
    transform: rotate(90deg);
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .led {
    width: 13px;
    height: 13px;
  }

  .matrix-grid {
    gap: 2px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   17. ACCESSIBILITY: prefers-reduced-motion
═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .copilot-ribbon {
    animation: none;
  }

  .ribbon-arc {
    stroke-dashoffset: 0;
    animation: none;
  }

  .ribbon-dot {
    animation: none;
  }
}
