/* ============================================
   CIRCT Landing Page - Shenzhen I/O Theme
   PCB board aesthetic, technical manual style
   ============================================ */

:root {
  --bg-primary: #0a0e0a;
  --bg-secondary: #0d110d;
  --bg-card: rgba(14, 22, 14, 0.85);
  --bg-card-hover: rgba(20, 30, 20, 0.9);
  --accent: #cc342d;
  --accent-dim: #8a231e;
  --accent-glow: rgba(204, 52, 45, 0.12);
  --accent-glow-strong: rgba(204, 52, 45, 0.25);
  --green: #3a6a3a;
  --green-dim: #1a3a1a;
  --green-bright: #5a9a5a;
  --amber: #c4883a;
  --amber-dim: #7a5524;
  --text-primary: #b8c4b0;
  --text-secondary: #5a6e52;
  --text-dim: #2a3a24;
  --border: rgba(58, 106, 58, 0.25);
  --border-hover: rgba(204, 52, 45, 0.4);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* PCB dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(58, 106, 58, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #e04840; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Chinese annotation text */
.zh {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  display: block;
  margin-top: 4px;
}

.section-header .zh {
  margin-top: 8px;
}

/* Reference number labels */
.ref-label {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  display: block;
  margin-bottom: 4px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(10, 14, 10, 0.97);
  border-bottom-color: rgba(58, 106, 58, 0.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-logo-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-bright); }

.nav-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary) !important;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: var(--green);
  background: rgba(58, 106, 58, 0.1);
  color: var(--green-bright) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 0;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 10, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.circuit-bg canvas {
  width: 100%;
  height: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 32px;
  background: rgba(10, 14, 10, 0.7);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50% { opacity: 0.4; box-shadow: 0 0 12px var(--green); }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #e05550, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero word cycling animation */
.hero-cycle-word {
  display: inline-block;
  position: relative;
}

.gradient-text .hero-cycle-word {
  background: linear-gradient(135deg, var(--accent), #e05550, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cycle-word .cyber-char {
  display: inline-block;
  transition: none;
}

.hero-cycle-word .cyber-char.scrambling {
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  opacity: 0.6;
}

.hero-cycle-word .cyber-char.resolved {
  animation: cyber-resolve 0.2s ease-out;
}

.gradient-text .cyber-char.scrambling {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--text-secondary);
  opacity: 0.6;
}

.gradient-text .cyber-char.resolved {
  background: linear-gradient(135deg, var(--accent), #e05550, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes cyber-resolve {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-zh {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Buttons - flat industrial */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  color: #fff;
  background: #d94040;
  border-color: #d94040;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  color: var(--green-bright);
  border-color: var(--green);
  background: rgba(58, 106, 58, 0.08);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-bright);
  margin-bottom: 16px;
  padding: 3px 10px;
  border: 1px solid var(--green-dim);
  border-radius: 0;
  background: rgba(58, 106, 58, 0.08);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section divider line with label */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider span {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

a.feature-card,
a.component-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card {
  padding: 24px;
  background: var(--bg-primary);
  transition: all 0.2s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: rgba(58, 106, 58, 0.08);
  border: 1px solid var(--green-dim);
  margin-bottom: 14px;
  color: var(--green-bright);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Components Row */
.components-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.component-card {
  text-align: center;
  padding: 24px 14px;
  background: var(--bg-secondary);
  transition: all 0.2s;
}

.component-card:hover {
  background: var(--bg-card-hover);
}

.component-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.component-icon svg {
  width: 100%;
  height: 100%;
}

.component-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.component-card p {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Code Section */
.code-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.code-tab {
  padding: 7px 18px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.code-tab:last-child { border-right: none; }

.code-tab:hover { color: var(--text-primary); background: rgba(58, 106, 58, 0.06); }

.code-tab.active {
  background: rgba(58, 106, 58, 0.1);
  color: var(--green-bright);
}

.code-container {
  max-width: 1000px;
  margin: 0 auto;
}

.code-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.code-panel.hidden { display: none; }

.code-panel-cta {
  grid-column: 1 / -1;
  background: var(--bg-secondary);
  padding: 16px 24px;
  text-align: center;
}

.code-block {
  background: #080c08;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 10, 0.9);
}

.code-dots {
  display: flex;
  gap: 4px;
}

.code-dots span {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--text-dim);
  opacity: 0.5;
}

.code-dots span:first-child { background: var(--accent); opacity: 0.7; }
.code-dots span:nth-child(2) { background: var(--amber); opacity: 0.7; }
.code-dots span:last-child { background: var(--green); opacity: 0.7; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-badge {
  margin-left: auto;
  font-size: 0.5rem;
  padding: 2px 7px;
  border-radius: 0;
  background: rgba(58, 106, 58, 0.1);
  color: var(--green-bright);
  border: 1px solid var(--green-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: var(--font-mono);
}

.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: #98a890;
}

.code-block code {
  font-family: inherit;
}

/* Syntax Highlighting - PCB tones */
.kw { color: #cc342d; }
.type { color: #c4883a; }
.fn { color: #7a9a6a; }
.sym { color: #d4943a; }
.key { color: #5a9a5a; }
.num { color: #c4883a; }
.op { color: #cc342d; }
.str { color: #5a9a5a; }
.var { color: #d4943a; }
.cmt { color: #2a3a24; font-style: italic; }

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.showcase-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  transition: all 0.2s;
}

.showcase-card:hover {
  background: var(--bg-card-hover);
}

.showcase-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-outline {
  width: 80px;
  height: 90px;
  border: 1.5px solid var(--green);
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 106, 58, 0.03);
  box-shadow: 0 0 12px rgba(58, 106, 58, 0.08), inset 0 0 12px rgba(58, 106, 58, 0.03);
}

.chip-wide {
  width: 100px;
}

.chip-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-bright);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip-pins {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chip-pins.left { left: -9px; }
.chip-pins.right { right: -9px; }

.chip-pins span {
  width: 9px;
  height: 2px;
  background: var(--green-dim);
}

.showcase-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.showcase-info p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.showcase-tags span {
  font-size: 0.55rem;
  padding: 2px 7px;
  border-radius: 0;
  background: rgba(58, 106, 58, 0.08);
  color: var(--green);
  border: 1px solid var(--green-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Pipeline / Architecture */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pipeline-step {
  text-align: center;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  min-width: 120px;
  transition: all 0.2s;
}

.pipeline-step:hover {
  border-color: var(--green);
  background: var(--bg-card-hover);
}

.pipeline-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: rgba(58, 106, 58, 0.08);
  border: 1px solid var(--green-dim);
  margin: 0 auto 8px;
  color: var(--green-bright);
}

.pipeline-icon svg {
  width: 18px;
  height: 18px;
}

.pipeline-step h4 {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.pipeline-step p {
  font-size: 0.55rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-arrow {
  width: 32px;
  height: 20px;
  flex-shrink: 0;
}

.pipeline-arrow svg {
  width: 100%;
  height: 100%;
}

.pipeline-fork {
  width: 40px;
  height: 44px;
}

.pipeline-outputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Architecture Hub Diagram */
.arch-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.arch-hub-inputs,
.arch-hub-outputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-hub-arrows-in,
.arch-hub-arrows-out {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-hub-arrows-in svg,
.arch-hub-arrows-out svg {
  width: 40px;
  height: 80px;
}

.arch-hub-arrows-out svg {
  height: 100px;
}

.arch-hub-center {
  border-color: var(--accent) !important;
  background: rgba(204, 52, 45, 0.06) !important;
  min-width: 140px;
}

.arch-hub-center h4 {
  color: var(--accent);
}

.arch-hub-icon {
  border-color: var(--accent-dim) !important;
  background: rgba(204, 52, 45, 0.1) !important;
  color: var(--accent) !important;
}

.arch-hub-cta {
  text-align: center;
  margin-top: 32px;
}

/* Architecture detail page */
.arch-detail-text {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.arch-detail-text strong {
  color: var(--text-primary);
}

.arch-detail-list {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 14px 20px;
  list-style: none;
}

.arch-detail-list li {
  position: relative;
  padding-left: 14px;
}

.arch-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--green);
}

@media (max-width: 768px) {
  .arch-hub {
    flex-direction: column;
    gap: 12px;
  }

  .arch-hub-inputs,
  .arch-hub-outputs {
    flex-direction: row;
    gap: 8px;
  }

  .arch-hub-arrows-in,
  .arch-hub-arrows-out {
    transform: rotate(90deg);
    width: auto;
    height: 40px;
  }
}

/* CTA Section */
.section-cta {
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 106, 58, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content .section-desc {
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

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

.footer-brand p {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-size: 0.55rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--green-bright); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Manufacturer footer line */
.footer-mfg {
  text-align: center;
  margin-top: 12px;
}

.footer-mfg p {
  font-size: 0.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes trace-glow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 90px 24px 60px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.75rem; }
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 0.95rem; }

  .section { padding: 70px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .components-row { grid-template-columns: 1fr 1fr; }

  .code-panel { grid-template-columns: 1fr; }
  .code-block pre { font-size: 0.68rem; }

  .showcase-card { flex-direction: column; align-items: center; text-align: center; }
  .showcase-tags { justify-content: center; }

  .pipeline {
    flex-direction: column;
    gap: 12px;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }

  .pipeline-fork {
    transform: rotate(90deg);
  }

  .pipeline-outputs {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links { gap: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 28px; height: 1px; }
  .components-row { grid-template-columns: 1fr; }
  .code-tabs { flex-wrap: wrap; }
}

/* ============================================
   Showcase Detail Pages
   ============================================ */

.showcase-page {
  padding-top: 48px;
}

.showcase-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.showcase-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.showcase-hero .chip-outline {
  width: 100px;
  height: 110px;
  flex-shrink: 0;
}

.showcase-hero .chip-outline.chip-wide {
  width: 120px;
}

.showcase-hero .chip-label {
  font-size: 0.85rem;
}

.showcase-hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.showcase-hero-text .showcase-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.showcase-hero-text .showcase-tags {
  margin-bottom: 0;
}

.showcase-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.showcase-back:hover {
  color: var(--green-bright);
}

.showcase-back svg {
  width: 14px;
  height: 14px;
}

/* Architecture diagram */
.arch-section {
  padding: 60px 0;
}

.arch-section-title {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.arch-diagram {
  display: grid;
  gap: 1px;
  margin-bottom: 40px;
}

.arch-diagram-row {
  display: flex;
  align-items: center;
  gap: 1px;
}

.arch-block {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  flex: 1;
  min-width: 0;
}

.arch-block h4 {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-block p {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.arch-block.accent {
  border-color: var(--green);
  background: rgba(58, 106, 58, 0.05);
}

.arch-block.accent h4 {
  color: var(--green-bright);
}

.arch-connector {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.arch-connector-v {
  text-align: center;
  padding: 4px 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.arch-bus {
  display: flex;
  align-items: center;
  gap: 1px;
}

.arch-bus-label {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px dashed var(--green-dim);
  text-align: center;
  flex: 1;
}

/* Code excerpts on showcase pages */
.code-excerpt {
  margin-bottom: 24px;
}

.code-excerpt .code-block {
  margin-bottom: 0;
}

.code-excerpt-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.spec-table th,
.spec-table td {
  padding: 7px 12px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-align: left;
  border: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-card);
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.55rem;
  font-weight: 600;
}

.spec-table td {
  color: var(--text-secondary);
}

.spec-table tr:hover td {
  background: var(--bg-card);
}

/* Two-column layout for arch pages */
.arch-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .showcase-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .showcase-hero-text .showcase-tags {
    justify-content: center;
  }

  .arch-diagram-row {
    flex-direction: column;
  }

  .arch-connector {
    width: auto;
    transform: rotate(90deg);
  }

  .arch-columns {
    grid-template-columns: 1fr;
  }

  .arch-bus {
    flex-direction: column;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* Selection */
::selection {
  background: rgba(58, 106, 58, 0.3);
  color: var(--text-primary);
}
