:root {
  --bg: #04060a;
  --bg-secondary: #070b12;
  --panel: #0a0f18;
  --panel-glass: rgba(10, 15, 24, 0.75);
  --panel-hover: rgba(16, 24, 38, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(22, 216, 232, 0.35);
  --border-purple: rgba(123, 67, 255, 0.35);
  --text: #f3f6fc;
  --text-muted: #8896a8;
  --text-dim: #546274;
  --cyan: #16d8e8;
  --cyan-bright: #44f0ff;
  --cyan-glow: rgba(22, 216, 232, 0.4);
  --purple: #7b43ff;
  --purple-glow: rgba(123, 67, 255, 0.35);
  --green: #10f0a0;
  --green-glow: rgba(16, 240, 160, 0.35);
  --yellow: #ffd166;
  --max: 1220px;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Cyber Canvas & Ambient Layers */
.cyber-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: 
    linear-gradient(rgba(22, 216, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 216, 232, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 95%);
  z-index: 1;
}

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

.glow-a {
  width: 550px;
  height: 550px;
  background: #00d9ff;
  top: -200px;
  right: -150px;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-b {
  width: 600px;
  height: 600px;
  background: #7b43ff;
  top: 45%;
  left: -280px;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

.glow-c {
  width: 450px;
  height: 450px;
  background: #10f0a0;
  bottom: 5%;
  right: -200px;
  opacity: 0.08;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.15); }
}

/* Typography Base */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  letter-spacing: -0.035em;
}

h1 span, h2 span {
  background: linear-gradient(110deg, var(--cyan-bright) 0%, #a875ff 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

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

/* Corner Brackets for High-Tech HUD elements */
.corner-bracket {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--cyan);
  pointer-events: none;
  z-index: 3;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.c-tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.c-tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.c-bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.c-br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.tilt-target:hover .corner-bracket {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-glow);
  opacity: 1;
  width: 13px;
  height: 13px;
}

/* Top Navigation */
.nav {
  height: 86px;
  max-width: var(--max);
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(4, 6, 10, 0.6);
}

.brand img {
  width: 160px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(22, 216, 232, 0.15));
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.03);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a.nav-highlight {
  color: var(--cyan);
}

.nav a.nav-highlight::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  border-radius: 2px;
}

.nav-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 240, 160, 0.06);
  border: 1px solid rgba(16, 240, 160, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
}

.telemetry-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseGreen 2s infinite;
}

.telemetry-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--green);
  font-weight: 700;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(22, 216, 232, 0.4);
  padding: 9px 18px;
  border-radius: 6px;
  color: var(--cyan) !important;
  background: rgba(22, 216, 232, 0.05);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.nav-cta:hover {
  background: rgba(22, 216, 232, 0.15);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(22, 216, 232, 0.3);
  transform: translateY(-1px);
}

.cta-arrow {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.nav-cta:hover .cta-arrow {
  transform: translate(2px, -2px);
}

/* Hero Section */
.hero {
  max-width: var(--max);
  margin: auto;
  padding: 80px 28px 70px;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
  box-shadow: 0 0 14px var(--cyan);
  margin-right: 10px;
  animation: pulseCyan 1.8s infinite;
}

@keyframes pulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(22, 216, 232, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(22, 216, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 216, 232, 0); }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 240, 160, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(16, 240, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 240, 160, 0); }
}

h1.hero-title {
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 1.02;
  max-width: 760px;
}

.hero-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 580px;
  margin: 28px 0 34px;
}

.hero-text strong {
  color: #e2eaf5;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.primary {
  background: var(--cyan);
  color: #031014;
  box-shadow: 0 0 32px rgba(22, 216, 232, 0.25);
  border: 1px solid var(--cyan-bright);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(22, 216, 232, 0.5);
  background: #27e3f2;
}

.secondary {
  border: 1px solid var(--border);
  color: #c7d2e0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-arrow, .btn-arrow-down {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.button:hover .btn-arrow {
  transform: translateX(4px);
}

.button:hover .btn-arrow-down {
  transform: translateY(4px);
}

/* Metric Bars */
.metrics {
  display: flex;
  gap: 28px;
  margin-top: 48px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.metric-box b {
  font: 700 20px var(--font-heading);
  color: #fff;
}

.metric-box span {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.metric-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  border-radius: 2px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.f-1 { width: 85%; }
.f-2 { width: 70%; background: #9d5bf7; box-shadow: 0 0 8px #9d5bf7; }
.f-3 { width: 60%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.f-4 { width: 90%; background: var(--cyan); }

/* Hero Graphic / Interactive Emblem */
.hero-chip {
  height: 520px;
  display: grid;
  place-items: center;
  position: relative;
}

.chip-frame {
  width: min(390px, 86%);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 216, 232, 0.3);
  background: radial-gradient(circle at 50% 45%, rgba(35, 214, 232, 0.15), transparent 56%), #070d14;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 100px rgba(22, 216, 232, 0.12), inset 0 0 60px rgba(123, 67, 255, 0.1);
  overflow: hidden;
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chip-frame img {
  width: 86%;
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.98;
  filter: drop-shadow(0 0 25px rgba(22, 216, 232, 0.3));
  transition: transform 0.5s ease;
}

.hero-chip:hover .chip-frame img {
  transform: scale(1.04);
}

.scan {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
  box-shadow: 0 0 14px var(--cyan);
  animation: scan 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.chip-hud-overlay {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(22, 216, 232, 0.6);
  pointer-events: none;
}

/* Orbits */
.orbit {
  position: absolute;
  border: 1px dashed rgba(22, 216, 232, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  width: 480px;
  height: 260px;
  transform: rotate(-28deg);
  animation: rotateOrbit1 30s linear infinite;
}

.orbit-2 {
  width: 540px;
  height: 310px;
  transform: rotate(25deg);
  border-color: rgba(123, 67, 255, 0.25);
  animation: rotateOrbit2 40s linear infinite reverse;
}

.orbit-3 {
  width: 610px;
  height: 360px;
  transform: rotate(-10deg);
  border-color: rgba(16, 240, 160, 0.15);
  animation: rotateOrbit1 55s linear infinite;
}

@keyframes rotateOrbit1 {
  from { transform: rotate(-28deg); }
  to { transform: rotate(332deg); }
}

@keyframes rotateOrbit2 {
  from { transform: rotate(25deg); }
  to { transform: rotate(-335deg); }
}

/* Floating HUD Tags */
.hud-tag {
  position: absolute;
  background: rgba(9, 15, 25, 0.88);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 4;
}

.tag-top {
  top: 30px;
  left: -20px;
  border-left: 2px solid var(--cyan);
}

.tag-bottom {
  bottom: 40px;
  left: -15px;
  border-left: 2px solid var(--yellow);
}

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

.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseGreen 2s infinite;
}

.pulse-purple {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.tag-title {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.tag-val {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.chip-label {
  position: absolute;
  bottom: 20px;
  right: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-heading);
}

.chip-label span {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #fff;
}

.chip-label small {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* Real-Time Bus Logic Ticker */
.bus-ticker-wrap {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 17, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.bus-ticker {
  max-width: var(--max);
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ticker-channel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  min-width: 44px;
}

.signal-wave {
  width: 110px;
  height: 16px;
  position: relative;
  background-repeat: repeat-x;
}

/* Procedural pulse wave tracks */
.wave-clk {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath d='M0 14 L8 14 L8 2 L16 2 L16 14 L24 14' fill='none' stroke='%2316d8e8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: moveWave 1.4s linear infinite;
}

.wave-data {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='16' viewBox='0 0 36 16'%3E%3Cpath d='M0 14 L6 14 L6 2 L18 2 L18 14 L24 14 L24 2 L36 2' fill='none' stroke='%2310f0a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: moveWave 2.2s linear infinite;
}

.wave-data-alt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 2 L10 2 L10 14 L20 14 L20 2 L32 2' fill='none' stroke='%23a875ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: moveWave 1.8s linear infinite;
}

.wave-cs {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M0 2 L6 2 L6 14 L34 14 L34 2 L40 2' fill='none' stroke='%23ffd166' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: moveWave 3.5s linear infinite;
}

@keyframes moveWave {
  from { background-position-x: 0; }
  to { background-position-x: -72px; }
}

.ticker-status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.status-pill {
  color: var(--cyan);
  background: rgba(22, 216, 232, 0.08);
  border: 1px solid rgba(22, 216, 232, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.baud-rate {
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Sections General */
.section {
  max-width: var(--max);
  margin: auto;
  padding: 100px 28px;
  position: relative;
  z-index: 2;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 50px;
}

.section h2 {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.05;
}

.section-head p, .focus-copy > p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}

/* Tilt Target 3D Effect */
.tilt-target {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.card-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(22, 216, 232, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: 2;
}

.tilt-target:hover .card-shimmer {
  opacity: 1;
}

/* Selected Work Cards */
.cards {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.card {
  min-height: 380px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 30px;
  position: relative;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(22, 216, 232, 0.12);
}

.featured {
  background: linear-gradient(150deg, rgba(22, 216, 232, 0.08), rgba(123, 67, 255, 0.04) 55%, rgba(255, 255, 255, 0.01));
  border-color: rgba(22, 216, 232, 0.25);
}

.card-glow-embedded {
  border-color: rgba(16, 240, 160, 0.2);
}

.card-glow-embedded:hover {
  border-color: rgba(16, 240, 160, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 240, 160, 0.15);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

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

.arrow {
  color: var(--cyan);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.card:hover .arrow {
  transform: translate(2px, -2px);
}

.icon {
  font-size: 40px;
  margin: 45px 0 20px;
  color: var(--cyan);
  font-family: var(--font-heading);
}

.card-glow-embedded .icon {
  color: var(--green);
}

.card h3 {
  font-size: 25px;
  margin-bottom: 12px;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
}

.chips {
  display: flex;
  gap: 7px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.chips span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 4px;
  color: #9ba6b6;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.card:hover .chips span {
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2eaf5;
}

.card-action-bar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.jump-lab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: rgba(16, 240, 160, 0.08);
  border: 1px solid rgba(16, 240, 160, 0.3);
  border-radius: 6px;
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.jump-lab-btn:hover {
  background: rgba(16, 240, 160, 0.18);
  border-color: var(--green);
  box-shadow: 0 0 18px var(--green-glow);
}

/* =========================================================
   HARDWARE EXPERIMENTS & EMBEDDED LAB SECTION
   ========================================================= */
.hardware-section {
  position: relative;
  padding-top: 70px;
}

.cyber-glow-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(22, 216, 232, 0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hardware-head {
  margin-bottom: 35px;
}

/* Filter HUD Bar */
.lab-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(10, 15, 24, 0.85);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}

.filter-hud-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  font-weight: 700;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.f-bracket {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.f-count {
  color: var(--cyan);
  font-weight: 700;
}

.filter-btn:hover {
  border-color: var(--border-glow);
  color: #fff;
  background: rgba(22, 216, 232, 0.05);
}

.filter-btn.active {
  border-color: var(--cyan);
  background: rgba(22, 216, 232, 0.12);
  color: #fff;
  box-shadow: 0 0 16px rgba(22, 216, 232, 0.25);
}

.filter-btn.active .f-bracket {
  color: var(--cyan-bright);
}

/* Repo Cards Grid */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.repo-card {
  background: linear-gradient(155deg, rgba(14, 21, 33, 0.9) 0%, rgba(9, 13, 22, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.repo-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(22, 216, 232, 0.12);
  transform: translateY(-4px);
}

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

.repo-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
}

.badge-featured {
  color: var(--cyan);
  background: rgba(22, 216, 232, 0.08);
  border-color: rgba(22, 216, 232, 0.3);
}

.badge-verified {
  color: var(--green);
  background: rgba(16, 240, 160, 0.08);
  border-color: rgba(16, 240, 160, 0.3);
}

.badge-fpga {
  color: #bf8dff;
  background: rgba(123, 67, 255, 0.1);
  border-color: rgba(123, 67, 255, 0.35);
}

.badge-accent {
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.08);
  border-color: rgba(255, 209, 102, 0.3);
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-py { background: #3572A5; box-shadow: 0 0 6px #3572A5; }
.dot-c { background: #555555; box-shadow: 0 0 6px #777; }
.dot-cpp { background: #f34b7d; box-shadow: 0 0 6px #f34b7d; }
.dot-verilog { background: #00b4d8; box-shadow: 0 0 6px #00b4d8; }

.repo-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.repo-icon {
  font-size: 26px;
  color: var(--cyan);
  background: rgba(22, 216, 232, 0.08);
  border: 1px solid rgba(22, 216, 232, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.repo-card:hover .repo-icon {
  transform: rotate(6deg) scale(1.08);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.repo-titles {
  display: flex;
  flex-direction: column;
}

.repo-titles h3 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}

.repo-titles h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.repo-titles h3 a:hover {
  color: var(--cyan);
}

.repo-arch {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.repo-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.repo-chips {
  margin-top: auto;
  margin-bottom: 22px;
}

.repo-chips span {
  font-size: 9.5px;
  padding: 4px 8px;
}

.repo-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.repo-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 5px;
  color: #cdd6e4;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.repo-link:hover {
  background: rgba(22, 216, 232, 0.12);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(22, 216, 232, 0.2);
}

.repo-link .arrow {
  font-size: 14px;
  color: var(--cyan);
}

.copy-clone-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.copy-clone-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-copy-icon {
  font-size: 14px;
}

/* Real-Time Hardware Oscilloscope Console */
.lab-oscilloscope-box {
  margin-top: 48px;
  border: 1px solid rgba(22, 216, 232, 0.3);
  background: #050a12;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(22, 216, 232, 0.05);
}

.scope-header {
  height: 42px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-wrap: wrap;
}

.scope-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.scope-id {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.scope-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.scope-state {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
}

.scope-body {
  position: relative;
  height: 220px;
  background: 
    linear-gradient(rgba(22, 216, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 216, 232, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  overflow: hidden;
}

.scope-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scope-hud-readout {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  background: rgba(5, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.scope-hud-readout div {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.scope-hud-readout label {
  color: var(--text-dim);
}

.scope-hud-readout span {
  color: var(--cyan);
  font-weight: 700;
}

/* =========================================================
   FOCUS & TERMINAL SECTION
   ========================================================= */
.focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.terminal {
  border: 1px solid rgba(22, 216, 232, 0.25);
  background: #06090e;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(22, 216, 232, 0.04);
  overflow: hidden;
}

.terminal-bar {
  height: 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 24, 0.9);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: var(--text-dim);
  font-size: 10px;
  font-family: var(--font-mono);
}

.terminal-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #252d38;
}

.terminal-bar span {
  margin-left: 8px;
  letter-spacing: 1px;
}

.term-status {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
}

.terminal pre {
  margin: 0;
  padding: 28px;
  font: 12.5px/2 var(--font-mono);
  color: #9aa7b8;
  white-space: pre-wrap;
}

.cyan { color: var(--cyan); }
.white { color: #e8eef6; }
.muted { color: #536070; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  vertical-align: -2px;
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.focus-copy h2 {
  font-size: clamp(40px, 4.8vw, 60px);
  margin-bottom: 25px;
}

.focus-list {
  margin-top: 35px;
  border-top: 1px solid var(--border);
}

.focus-list > div {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.focus-list b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
}

.focus-list strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.focus-list small {
  display: block;
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 12px;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about {
  padding-top: 40px;
}

.about-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: radial-gradient(circle at 85% 20%, rgba(22, 216, 232, 0.08), transparent 45%), #070b11;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.about-box h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
}

.about-box p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin: 0 0 28px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  max-width: var(--max);
  margin: auto;
  border-top: 1px solid var(--border);
  padding: 36px 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 11px;
  position: relative;
  z-index: 2;
}

.footer-brand {
  font: 700 15px var(--font-heading);
  color: #e4edf8;
  letter-spacing: 1px;
}

.footer-brand span {
  color: var(--cyan);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  margin-top: 4px;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 10px;
}

/* =========================================================
   HUD CLIPBOARD TOAST NOTIFICATION
   ========================================================= */
.hud-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(6, 11, 18, 0.95);
  border: 1px solid var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--cyan-glow);
  padding: 12px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.hud-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.toast-bracket {
  color: var(--cyan);
  font-weight: 700;
}

.toast-icon {
  color: var(--green);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */
@media (max-width: 1050px) {
  .repo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .nav {
    height: 72px;
    padding: 0 20px;
  }
  .nav-center nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
    gap: 40px;
  }
  .hero-chip {
    height: 420px;
  }
  .section-head, .focus, .about-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .focus {
    gap: 45px;
  }
  .about-box {
    padding: 36px 26px;
  }
  .metrics {
    gap: 20px;
    flex-wrap: wrap;
  }
  .bus-ticker {
    gap: 16px;
  }
  .ticker-status {
    width: 100%;
    justify-content: space-between;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1.hero-title {
    font-size: 44px;
  }
  .hero {
    padding: 40px 18px 60px;
  }
  .section {
    padding: 70px 18px;
  }
  .hero-chip {
    height: 350px;
  }
  .chip-frame {
    width: 290px;
  }
  .tag-top, .tag-bottom {
    display: none;
  }
  .orbit-1 { width: 340px; height: 180px; }
  .orbit-2 { width: 370px; height: 210px; }
  .orbit-3 { width: 400px; height: 240px; }
  .hud-toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    justify-content: center;
  }
  .filter-buttons {
    width: 100%;
  }
  .filter-btn {
    flex-grow: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   Top Open-Source Release Banner & Highlighted Product (EmbedXLab IDE)
   ========================================================================== */
.release-banner {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(22, 216, 232, 0.14), rgba(123, 67, 255, 0.18), rgba(16, 240, 160, 0.12));
  border-bottom: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--text);
}

.release-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 216, 232, 0.18);
  border: 1px solid var(--cyan);
  color: var(--cyan-bright);
}

.release-text strong {
  color: var(--cyan-bright);
}

.release-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 240, 160, 0.35);
  background: rgba(16, 240, 160, 0.08);
  transition: all 0.2s ease;
}

.release-link:hover {
  background: rgba(16, 240, 160, 0.2);
  border-color: var(--green);
}

.flagship-section {
  padding-top: 40px;
}

.flagship-banner {
  position: relative;
  background: linear-gradient(145deg, rgba(10, 15, 24, 0.92), rgba(14, 22, 36, 0.88));
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(22, 216, 232, 0.12);
  overflow: hidden;
}

.flagship-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.flagship-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.flagship-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.flagship-title span {
  color: var(--cyan);
}

.flagship-subtitle {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0 0 24px;
  max-width: 620px;
}

.flagship-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.flagship-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.feat-icon {
  font-size: 18px;
  line-height: 1.2;
}

.flagship-feat strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.flagship-feat small {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

.flagship-chips {
  margin-bottom: 24px;
}

.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.flagship-clone-btn {
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
}

.coffee-btn {
  border-color: rgba(255, 209, 102, 0.45) !important;
  color: var(--yellow) !important;
}

.coffee-btn:hover {
  background: rgba(255, 209, 102, 0.14) !important;
  border-color: var(--yellow) !important;
}

.flagship-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flagship-terminal pre {
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}

.flagship-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.stat-pill b {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan-bright);
}

.stat-pill span {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .flagship-grid {
    grid-template-columns: 1fr;
  }
  .flagship-banner {
    padding: 28px 20px;
  }
  .flagship-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
