/* ==========================================================================
   疾风云 JIFENGYUN - SILICON CIRCUIT ARCHITECTURE DESIGN SYSTEM
   Theme: Semiconductor Technology, Silicon Wafer, Micro Circuit, Chip Architecture
   ========================================================================== */

:root {
  /* 70% Off White & Silicon Gray */
  --silicon-bg: #F3F4F2;
  --silicon-bg-alt: #FAFAF8;
  --silicon-surface: #E8EAE7;
  --silicon-die: #FFFFFF;
  --silicon-silver: #C3C8C8;
  --silicon-silver-dark: #A7ADAD;
  --border: #CDD2D0;
  --border-light: #DFE3E1;

  /* 20% Graphite & Text */
  --graphite: #161A1B;
  --graphite-dark: #101314;
  --graphite-surface: #24292A;
  --graphite-card: #1D2223;
  --text: #444B4B;
  --text-dark: #161A1B;
  --muted: #737A7A;
  --text-inverse: #F2F3F1;

  /* 10% Accent Colors */
  --copper: #B76F44;
  --copper-light: #D4895C;
  --copper-bg: rgba(183, 111, 68, 0.08);
  --copper-border: rgba(183, 111, 68, 0.35);

  --circuit-cyan: #42B9C6;
  --circuit-cyan-bg: rgba(66, 185, 198, 0.1);
  --circuit-cyan-glow: rgba(66, 185, 198, 0.25);

  --signal-blue: #3977D4;
  --signal-blue-bg: rgba(57, 119, 212, 0.08);

  --soft-gold: #C7A86D;
  --soft-gold-bg: rgba(199, 168, 109, 0.1);

  /* Layout & Geometry */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1240px;
  --content-max: 820px;

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* Shadows - Hardware Precision */
  --shadow-chip: 0 2px 8px rgba(22, 26, 27, 0.04), 0 1px 2px rgba(22, 26, 27, 0.06);
  --shadow-package: 0 4px 20px rgba(22, 26, 27, 0.08), 0 0 0 1px var(--border);
  --shadow-core: 0 8px 32px rgba(22, 26, 27, 0.12), 0 0 0 1px var(--copper-border);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--silicon-bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(195, 200, 200, 0.3) 0%, transparent 60%),
    linear-gradient(to right, rgba(205, 210, 208, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(205, 210, 208, 0.25) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* Typography Standards */
h1, h2, h3, h4, h5, h6 {
  color: var(--graphite);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--copper);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--circuit-cyan);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Micro Circuit Badges & Tech Labels */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--silicon-surface);
  color: var(--graphite);
  border: 1px solid var(--border);
  line-height: 1;
}

.tech-tag.copper {
  background: var(--copper-bg);
  color: var(--copper);
  border-color: var(--copper-border);
}

.tech-tag.cyan {
  background: var(--circuit-cyan-bg);
  color: #1a7882;
  border-color: rgba(66, 185, 198, 0.4);
}

.tech-tag.dark {
  background: var(--graphite);
  color: var(--text-inverse);
  border-color: var(--graphite);
}

.tech-tag-pin {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--graphite);
  color: #FFFFFF;
  border: 1px solid var(--graphite);
  box-shadow: 0 2px 6px rgba(22, 26, 27, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(66, 185, 198, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background: var(--graphite-surface);
  color: #FFFFFF;
  border-color: var(--copper);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background: var(--silicon-die);
  color: var(--graphite);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-chip);
}

.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--silicon-bg-alt);
}

.btn-copper {
  background: var(--copper);
  color: #FFFFFF;
  border: 1px solid var(--copper);
}

.btn-copper:hover {
  background: var(--copper-light);
  color: #FFFFFF;
  border-color: var(--copper-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER: SILICON SYSTEM HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 244, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

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

.brand-die-icon {
  width: 30px;
  height: 30px;
  background: var(--graphite);
  border: 1px solid var(--copper);
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 0 2px var(--silicon-surface);
}

.brand-die-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--circuit-cyan);
  border-radius: 1px;
}

.brand-die-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 4px;
  height: 4px;
  background: var(--copper);
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite);
  position: relative;
  padding: 0.4rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--graphite);
  transition: all 0.2s ease;
}

/* ==========================================================================
   HERO: NETWORK PROCESSING CORE
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Silicon Wafer background geometry */
.wafer-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 780px;
  height: 780px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(195, 200, 200, 0.45);
  background: radial-gradient(circle, rgba(232, 234, 231, 0.4) 0%, rgba(243, 244, 242, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.wafer-grid {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background-image: 
    linear-gradient(to right, rgba(183, 111, 68, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(183, 111, 68, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--graphite);
  letter-spacing: -0.025em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  border-left: 2px solid var(--copper);
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-meta-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meta-point {
  display: flex;
  flex-direction: column;
}

.meta-point .code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.meta-point .val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--graphite);
}

/* JIFENGYUN NETWORK PROCESSOR CORE (Right Visual) */
.processor-visual-card {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-package);
  padding: 1.75rem;
  position: relative;
}

.processor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.chip-package {
  background: var(--graphite);
  border: 2px solid var(--graphite-surface);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Chip corner pins */
.chip-package::before, .chip-package::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 1px;
}
.chip-package::before { top: 6px; left: 6px; }
.chip-package::after { bottom: 6px; right: 6px; }

.die-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

/* Core Die */
.central-core {
  width: 140px;
  height: 140px;
  background: #24292A;
  border: 1px solid var(--copper);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 16px rgba(183, 111, 68, 0.25);
}

.core-name {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.core-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--copper-light);
  margin-top: 2px;
}

.core-pulse {
  width: 6px;
  height: 6px;
  background: var(--circuit-cyan);
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 8px var(--circuit-cyan);
  animation: signalPulse 2.5s infinite ease-in-out;
}

/* Outer Channel Nodes */
.channel-node {
  position: absolute;
  width: 72px;
  height: 48px;
  background: #1B1F20;
  border: 1px solid var(--silicon-silver-dark);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  z-index: 2;
  transition: border-color 0.2s ease;
}

.channel-node:hover {
  border-color: var(--circuit-cyan);
}

.channel-node .node-code {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
}

.channel-node .node-tag {
  font-size: 0.58rem;
  color: var(--muted);
}

.node-hkg { top: 6px; left: calc(50% - 36px); border-top: 2px solid var(--copper); }
.node-sgp { bottom: 6px; left: calc(50% - 36px); border-bottom: 2px solid var(--copper); }
.node-jpn { left: 6px; top: calc(50% - 24px); border-left: 2px solid var(--circuit-cyan); }
.node-usa { right: 6px; top: calc(50% - 24px); border-right: 2px solid var(--signal-blue); }

/* Circuit Trace Lines (SVG overlay) */
.circuit-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ==========================================================================
   SECTION COMMON & CHIP FLOORPLAN (Section 30-36)
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.75rem;
  position: relative;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--graphite);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
  margin-top: 0.5rem;
}

/* Chip Floorplan Layout */
.floorplan-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.floorplan-module {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-chip);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.floorplan-module.global-core {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--silicon-surface) 100%);
  border-left: 3px solid var(--copper);
}

.floorplan-module.device-io {
  border-left: 3px solid var(--circuit-cyan);
}

.floorplan-module.ai-process {
  border-left: 3px solid var(--signal-blue);
}

.floorplan-module.stream-process {
  grid-column: 1 / -1;
  border-left: 3px solid var(--soft-gold);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.module-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--graphite);
  margin-top: 0.25rem;
}

.module-body p {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.65;
}

.module-specs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   GLOBAL CHANNELS & BUS ROUTING (Section 37-43)
   ========================================================================== */
.channels-bus-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.channel-card {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--copper);
}

.channel-bus-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.channel-region-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 0.75rem;
}

.channel-node-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.channel-node-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.35rem 0.5rem;
  background: var(--silicon-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}

.node-name {
  font-weight: 600;
  color: var(--graphite);
}

.node-code-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ==========================================================================
   DEVICE I/O INTERFACE (Section 44-46)
   ========================================================================== */
.device-pin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.device-pin-card {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-chip);
}

.pin-indicator {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  background: var(--graphite);
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  color: var(--circuit-cyan);
}

.device-pin-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.device-pin-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   AI & MEDIA DUAL CORE (Section 47-50)
   ========================================================================== */
.dual-processor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.dual-processor-box {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-package);
  position: relative;
}

.dual-processor-box.ai-box {
  border-top: 3px solid var(--circuit-cyan);
}

.dual-processor-box.media-box {
  border-top: 3px solid var(--copper);
}

.processor-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.channel-item-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.item-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--silicon-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--graphite);
}

.item-chip-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ==========================================================================
   PRICING: PROCESSOR PROFILES (Section 51-60)
   ========================================================================== */
.pricing-section {
  background: var(--silicon-bg-alt);
}

/* Desktop layout: Profile Selector + Active Specs */
.pricing-desktop-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.75rem;
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-package);
  overflow: hidden;
}

.profile-selector-sidebar {
  background: var(--silicon-surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.profile-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border);
}

.profile-tab-btn.active {
  background: var(--silicon-die);
  border-color: var(--copper);
  box-shadow: var(--shadow-chip);
}

.profile-tab-btn .tab-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.profile-tab-btn .tab-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--graphite);
}

.profile-tab-btn .tab-price {
  font-size: 0.85rem;
  color: var(--copper);
  font-weight: 600;
  margin-top: 0.25rem;
}

.profile-spec-display {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.spec-pricing-num {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.spec-pricing-num .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--graphite);
}

.spec-pricing-num .amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--graphite);
  line-height: 1;
  letter-spacing: -0.03em;
}

.spec-pricing-num .period {
  font-size: 0.95rem;
  color: var(--muted);
}

.spec-traffic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--graphite);
  color: #FFFFFF;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(22, 26, 27, 0.2);
}

.spec-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.spec-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.spec-features-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--circuit-cyan);
  flex-shrink: 0;
}

/* Mobile Pricing Stack (pure HTML fallback without JS dependency) */
.pricing-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-mobile-card {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-chip);
}

.pricing-mobile-card.recommended {
  border: 2px solid var(--copper);
  position: relative;
  background: linear-gradient(to bottom, #FFFFFF, var(--silicon-surface));
}

/* ==========================================================================
   BLOG / KNOWLEDGE CORE (Section 62-68)
   ========================================================================== */
.knowledge-section {
  position: relative;
}

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

.knowledge-card {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-chip);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.knowledge-card:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
}

.knowledge-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--silicon-surface) 100%);
  border: 1px solid var(--copper-border);
  box-shadow: var(--shadow-package);
}

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

.knowledge-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.knowledge-card h3 a {
  color: var(--graphite);
}

.knowledge-card h3 a:hover {
  color: var(--copper);
}

.knowledge-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.knowledge-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.read-link {
  font-weight: 700;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   USAGE NOTES: TEST DIE (Section 96-97)
   ========================================================================== */
.usage-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.test-die-card {
  background: var(--silicon-die);
  border: 1px dashed var(--silicon-silver-dark);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  position: relative;
}

.test-die-card::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: var(--copper);
}

.die-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.test-die-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--graphite);
}

.test-die-card blockquote {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}

/* ==========================================================================
   TECHNICAL REFERENCE BUS: FAQ (Section 93-95)
   ========================================================================== */
.faq-bus-container {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--silicon-silver-dark);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.faq-bus-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper);
  flex-shrink: 0;
}

.faq-question-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--graphite);
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--copper);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem 3.4rem;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text);
  border-top: 1px dashed var(--border-light);
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}

/* Fallback: If JS is disabled, answers remain visible */
.no-js .faq-answer {
  display: block !important;
}

/* ==========================================================================
   FOOTER: SILICON BACKPLANE (Section 98-102)
   ========================================================================== */
.site-footer {
  background: var(--graphite);
  color: var(--text-inverse);
  padding: 4.5rem 0 2rem;
  position: relative;
  border-top: 2px solid var(--copper);
  background-image: 
    linear-gradient(to right, rgba(74, 85, 85, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 85, 85, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(74, 85, 85, 0.4);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--circuit-cyan);
  letter-spacing: 0.12em;
}

.footer-brand-mission {
  font-size: 0.92rem;
  color: #A7ADAD;
  line-height: 1.65;
}

.footer-nav-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
  border-left: 2px solid var(--copper);
  padding-left: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #A7ADAD;
  font-size: 0.88rem;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--circuit-cyan);
}

.footer-external-links {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--graphite-dark);
  border: 1px solid rgba(74, 85, 85, 0.5);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.external-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  font-weight: 700;
}

.external-links-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.external-links-row a {
  color: #C3C8C8;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.external-links-row a:hover {
  color: #FFFFFF;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: #737A7A;
  flex-wrap: wrap;
  gap: 1rem;
}

.backplane-trace-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.backplane-trace-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--circuit-cyan);
  box-shadow: 0 0 6px var(--circuit-cyan);
}

/* ==========================================================================
   ARTICLE & CONTENT TEMPLATES (Section 71-90)
   ========================================================================== */
.breadcrumb-nav {
  padding: 1.25rem 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb-nav li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--silicon-silver-dark);
}

.breadcrumb-nav a {
  color: var(--muted);
}

.breadcrumb-nav a:hover {
  color: var(--copper);
}

.breadcrumb-nav [aria-current="page"] {
  color: var(--graphite);
  font-weight: 600;
}

.article-header {
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 1rem;
  font-family: var(--font-mono);
}

.article-lead {
  font-size: 1.15rem;
  color: var(--graphite);
  line-height: 1.75;
  margin-top: 1rem;
  font-weight: 500;
}

/* GEO Quick Answer Block (Section 72) */
.quick-answer {
  background: #FFFFFF;
  border: 1px solid var(--circuit-cyan);
  border-left: 4px solid var(--circuit-cyan);
  border-radius: var(--radius-xs);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 14px rgba(66, 185, 198, 0.08);
}

.quick-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #16747e;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.quick-answer h2 {
  font-size: 1.25rem;
  color: var(--graphite);
  margin-bottom: 0.65rem;
}

.quick-answer p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Article Table of Contents (Section 87) */
.article-toc {
  background: var(--silicon-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-toc ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.article-toc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-toc a:hover {
  color: var(--copper);
}

/* Article Content Body */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.article-body h2 {
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--graphite);
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--graphite);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body li {
  line-height: 1.75;
}

.article-body blockquote {
  border-left: 3px solid var(--copper);
  padding: 0.85rem 1.25rem;
  background: var(--silicon-surface);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic;
}

/* HTML Table Standards (Section 126) */
.table-responsive {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: #FFFFFF;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th, td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--silicon-surface);
  font-weight: 700;
  color: var(--graphite);
  font-family: var(--font-sans);
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: var(--silicon-bg-alt);
}

/* Figure & Caption (Section 86) */
figure {
  margin: 2rem 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-chip);
}

figcaption {
  padding: 0.75rem 1rem;
  background: var(--silicon-surface);
  border-top: 1px solid var(--border-light);
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

/* In-Article Natural CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-surface) 100%);
  color: #FFFFFF;
  border: 1px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
}

.article-cta-box h3 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.article-cta-box p {
  color: #C3C8C8;
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 1.25rem;
}

/* Related & Prev/Next Links (Section 121-122) */
.article-nav-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 3rem 0 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.pager-btn {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pager-btn:hover {
  border-color: var(--copper);
}

.pager-btn.next {
  text-align: right;
  align-items: flex-end;
}

.pager-direction {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pager-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--graphite);
}

.related-articles-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Category Intro Box (Section 70, 124) */
.category-hero {
  background: var(--silicon-die);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-package);
  position: relative;
  border-left: 4px solid var(--copper);
}

.category-hero h1 {
  margin-bottom: 0.75rem;
}

.category-hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 820px;
}

/* 404 Signal Not Found */
.error-layout {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 900;
  color: var(--copper);
  line-height: 1;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   RESPONSIVE & ACCESSIBILITY MEDIA QUERIES (Section 130-138)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .wafer-bg {
    right: -30%;
    opacity: 0.6;
  }
  .channels-bus-layout, .device-pin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .knowledge-grid, .usage-notes-grid, .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--silicon-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(22, 26, 27, 0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

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

  .dual-processor-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing Desktop switched to Mobile Vertical Cards */
  .pricing-desktop-layout {
    display: none;
  }

  .pricing-mobile-cards {
    display: flex;
  }

  .channels-bus-layout, .device-pin-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-grid, .usage-notes-grid, .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .article-nav-pager {
    grid-template-columns: 1fr;
  }

  .pager-btn.next {
    text-align: left;
    align-items: flex-start;
  }
}

/* Mobile Screen Tuning: 375px, 390px, 430px */
@media (max-width: 480px) {
  .hero-h1 {
    font-size: 1.75rem;
  }
  .hero-meta-points {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .channel-item-chips {
    grid-template-columns: 1fr;
  }
  .spec-features-list {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Prefers Reduced Motion (Section 138) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
