/* ==========================================================================
   GPadTester - Minimalist Black & White Editorial Stylesheet
   Fonts: Space Grotesk (Headlines) + Plus Jakarta Sans (Body) + JetBrains Mono (Telemetry)
   ========================================================================== */

:root {
  /* Black & White Light Theme (Default) */
  --bg-page: #fbfbfb;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-muted: #e4e4e7;
  --border-light: #e4e4e7;
  --border-medium: #d4d4d8;
  --border-dark: #18181b;
  --border-color: #e4e4e7;
  
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  
  --brand-black: #000000;
  --brand-white: #ffffff;
  --brand-hover: #27272a;
  
  --indicator-green: #15803d;
  --indicator-amber: #b45309;
  --indicator-red: #b91c1c;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Dark Mode Monochromatic Override */
[data-theme="dark"] {
  --bg-page: #09090b;
  --bg-surface: #121215;
  --bg-subtle: #1c1c21;
  --bg-muted: #27272a;
  --border-light: #27272a;
  --border-medium: #3f3f46;
  --border-dark: #f4f4f5;
  --border-color: #27272a;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --brand-black: #ffffff;
  --brand-white: #000000;
  --brand-hover: #e4e4e7;
  
  --indicator-green: #22c55e;
  --indicator-amber: #f59e0b;
  --indicator-red: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  position: relative;
}

/* Fixed Live Gamepad Background Canvas */
.bg-gamepad-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
  padding: 0 1.5rem;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-weight: 700;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-link.active {
  color: var(--brand-white);
  background: var(--brand-black);
  text-decoration: none;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
}

.theme-toggle-btn:hover {
  background: var(--border-light);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
}

/* Status Banner with High-Tech Live Scanner & Beacon */
.status-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.35rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Subtle Live Laser/Radar Scanner Beam Across Top Border */
.status-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-black), transparent);
  animation: bannerLaserScan 3.5s ease-in-out infinite alternate;
}

@keyframes bannerLaserScan {
  0% { left: -30%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { left: 95%; opacity: 0.3; }
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Concentric Live Sonar Radar Beacon */
.pulse-beacon-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--indicator-amber);
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

.beacon-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--indicator-amber);
  opacity: 0;
  pointer-events: none;
  animation: beaconSonar 2.2s cubic-bezier(0.1, 0.6, 0.4, 1) infinite;
}

.beacon-ring.ring-2 {
  animation-delay: 1.1s;
}

@keyframes beaconSonar {
  0% { transform: scale(0.4); opacity: 0.9; }
  60% { opacity: 0.4; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* When Controller is Connected: Vibrant Green Sonar Pulse */
.pulse-dot.connected {
  background-color: var(--indicator-green);
  box-shadow: 0 0 10px rgba(21, 128, 61, 0.6);
}

.pulse-dot.connected ~ .beacon-ring {
  border-color: var(--indicator-green);
  animation-duration: 1.5s;
}

/* Live Blinking Dot inside Status Pill */
.live-blink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  display: inline-block;
  animation: livePillBlink 1.4s ease-in-out infinite;
}

@keyframes livePillBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.status-hardware-pill.active .live-blink-dot {
  background-color: var(--brand-white);
}

.status-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.controller-selector-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.controller-tab {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.controller-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.controller-tab.active {
  background: var(--brand-black);
  color: var(--brand-white);
  border-color: var(--brand-black);
}

.controller-tab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Cards & Layout */
.tester-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .tester-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--border-medium);
}

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

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Skin Selector */
.skin-switch {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: 6px;
  padding: 0.2rem;
  border: 1px solid var(--border-light);
}

.skin-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.skin-btn:hover {
  color: var(--text-primary);
}

.skin-btn.active {
  background: var(--brand-black);
  color: var(--brand-white);
}

/* Interactive Monochrome Controller SVG */
.visualizer-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controller-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.1));
}

/* Controller Shells for PlayStation, Xbox & Switch */
.svg-controller-shell,
.svg-xbox-shell,
.svg-switch-shell,
#svg-controller-shell {
  fill: #ffffff;
  stroke: #18181b;
  stroke-width: 2.2;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

[data-theme="dark"] .svg-controller-shell,
[data-theme="dark"] .svg-xbox-shell,
[data-theme="dark"] .svg-switch-shell,
[data-theme="dark"] #svg-controller-shell {
  fill: #18181b;
  stroke: #27272a;
}

#svg-dualsense-cradle {
  fill: #18181b;
  stroke: #09090b;
  stroke-width: 1.4;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

[data-theme="dark"] #svg-dualsense-cradle {
  fill: #0c0c0e;
  stroke: #27272a;
}

/* Monochromatic SVG High-Contrast Button Highlights */
.btn-pressable {
  transition: all 0.05s ease-out;
}

/* High contrast active state: invert to stark white or solid black */
.btn-pressable.active {
  fill: #000000 !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}

[data-theme="dark"] .btn-pressable.active {
  fill: #ffffff !important;
  stroke: #000000 !important;
  stroke-width: 2px !important;
}

.dpad-pressable.active {
  fill: #000000 !important;
  stroke: #ffffff !important;
}

[data-theme="dark"] .dpad-pressable.active {
  fill: #ffffff !important;
  stroke: #000000 !important;
}

.active-text {
  fill: #ffffff !important;
}

[data-theme="dark"] .active-text {
  fill: #000000 !important;
}

/* Vector Face Button Icons (PlayStation DualSense Authentic) */
.btn-ps-icon {
  pointer-events: none;
}

.btn-ps-icon line,
.btn-ps-icon circle,
.btn-ps-icon rect,
.btn-ps-icon polygon {
  stroke: #18181b;
  transition: stroke 0.04s ease-out;
}

[data-theme="dark"] .btn-ps-icon line,
[data-theme="dark"] .btn-ps-icon circle,
[data-theme="dark"] .btn-ps-icon rect,
[data-theme="dark"] .btn-ps-icon polygon {
  stroke: #18181b;
}

.btn-ps-icon.active-icon line,
.btn-ps-icon.active-icon circle,
.btn-ps-icon.active-icon rect,
.btn-ps-icon.active-icon polygon {
  stroke: #ffffff !important;
}

[data-theme="dark"] .btn-ps-icon.active-icon line,
[data-theme="dark"] .btn-ps-icon.active-icon circle,
[data-theme="dark"] .btn-ps-icon.active-icon rect,
[data-theme="dark"] .btn-ps-icon.active-icon polygon {
  stroke: #000000 !important;
}

/* Capsule Buttons & Labels (Create / Share & Options / Menu) */
.capsule-top-icon {
  stroke: #18181b;
  pointer-events: none;
  transition: stroke 0.05s ease-out;
}

[data-theme="dark"] .capsule-top-icon {
  stroke: #fafafa;
}

.capsule-label {
  fill: #71717a;
  pointer-events: none;
  transition: fill 0.05s ease-out, font-weight 0.05s ease-out;
}

[data-theme="dark"] .capsule-label {
  fill: #a1a1aa;
}

.capsule-label.active-text {
  fill: #18181b !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .capsule-label.active-text {
  fill: #fafafa !important;
  font-weight: 800 !important;
}

/* D-Pad Directional Carats (DualSense Authentic) */
.dpad-carat {
  fill: #18181b;
  pointer-events: none;
  transition: fill 0.04s ease-out;
}

.dpad-carat.active-carat {
  fill: #ffffff !important;
}

[data-theme="dark"] .dpad-carat.active-carat {
  fill: #000000 !important;
}

/* Trigger Indicators */
.trigger-indicator-bar {
  transition: transform 0.04s ease-out;
  fill: var(--brand-black);
}

/* Stats Row */
.stats-badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Radars & Stick Diagnostics */
.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.stick-radar-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.15rem;
  text-align: center;
  position: relative;
}

.stick-title {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canvas-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 0.85rem;
  position: relative;
}

.radar-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.04);
}

.stick-coords {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}

/* Minimalist Drift Badges */
.drift-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--indicator-green);
  border: 1px solid var(--border-medium);
  letter-spacing: -0.01em;
}

.drift-badge.warning {
  color: var(--indicator-amber);
  border-color: var(--indicator-amber);
}

.drift-badge.danger {
  color: var(--indicator-red);
  border-color: var(--indicator-red);
}

/* Tool Tabs */
.tool-tabs-container {
  margin-top: 1.75rem;
}

.tool-tab-buttons {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.65rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.tab-btn.active {
  color: var(--brand-white);
  background: var(--brand-black);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-black);
  color: var(--brand-white);
  border-color: var(--brand-black);
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
  text-decoration: none;
}

.range-slider {
  width: 100%;
  accent-color: var(--brand-black);
  cursor: pointer;
}

/* Raw Button Matrix */
.raw-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.raw-btn-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  transition: all 0.1s ease;
}

.raw-btn-box.pressed {
  background: var(--brand-black);
  color: var(--brand-white);
  border-color: var(--brand-black);
}

.raw-btn-box.pressed .raw-btn-index {
  color: rgba(255, 255, 255, 0.7);
}

.raw-btn-index {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-muted);
}

.raw-btn-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Editorial Content & Guide Sections */
.seo-content-section {
  margin: 4rem 0 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.content-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 3rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-article h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.content-article h2:first-of-type {
  margin-top: 0;
}

.content-article h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
  color: var(--text-primary);
}

.content-article p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}

.content-article ul, .content-article ol {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-article li {
  margin-bottom: 0.5rem;
}

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

/* Comparison Tables */
.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.editorial-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--border-dark);
  color: var(--text-primary);
}

.editorial-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.editorial-table tr:hover td {
  background: var(--bg-subtle);
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.35rem;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Code Snippet Box for Developers */
.code-snippet-box {
  background: #09090b;
  color: #fafafa;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid #27272a;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-privacy-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
}

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

.footer-privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  display: inline-block;
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-links a:focus-visible {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

/* Primary App Container Spacing */
.gpad-app-container {
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   Quick Start Flow Section (Pure Black & White Theme with GIF Micro-Animations)
   ========================================================================== */
.quick-start-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2.75rem 2.25rem 2.25rem;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.quick-start-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.quick-start-pill::before, .quick-start-pill::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--border-dark);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-black);
  display: inline-block;
}

.quick-start-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.steps-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 0.5rem 1.25rem 1rem 1.25rem;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.step-card {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0.35rem;
}

.step-icon-wrapper {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.step-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  max-width: 100%;
}

.step-number-badge {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--brand-black);
  color: var(--brand-white);
  border: 1px solid var(--brand-black);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.step-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.3;
  white-space: normal;
}

.step-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 0.25rem;
  flex-shrink: 0;
}

.quick-start-footer {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}

.troubleshoot-link {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.troubleshoot-link:hover {
  opacity: 0.75;
}

/* ==========================================================================
   GIF-Style Vector Micro-Animations
   ========================================================================== */

/* Step 1: USB Plug & Wireless Broadcast Animation */
.anim-plug-group {
  animation: plugMotion 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes plugMotion {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5.5px); }
}

.anim-wave-1 {
  animation: wavePulse 1.8s ease-in-out infinite;
}

.anim-wave-2 {
  animation: wavePulse 1.8s ease-in-out infinite 0.3s;
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.2; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Step 2: Button Press & Shockwave Ripple Animation */
.anim-shockwave {
  transform-origin: 46px 20px;
  animation: shockwavePulse 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes shockwavePulse {
  0% { r: 3.5px; opacity: 1; stroke-width: 1.8px; }
  60% { r: 12px; opacity: 0; stroke-width: 0.5px; }
  100% { r: 12px; opacity: 0; stroke-width: 0.5px; }
}

.anim-pulsing-btn {
  transform-origin: 46px 20px;
  animation: btnTap 1.8s ease-in-out infinite;
}

@keyframes btnTap {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.35); }
}

/* Step 3: Sequenced Clockwise Button Testing Animation */
.anim-btn-y, .anim-txt-y { animation: btnSeqY 2.4s infinite; }
.anim-btn-b, .anim-txt-b { animation: btnSeqB 2.4s infinite; }
.anim-btn-a, .anim-txt-a { animation: btnSeqA 2.4s infinite; }
.anim-btn-x, .anim-txt-x { animation: btnSeqX 2.4s infinite; }

@keyframes btnSeqY {
  0%, 25% { fill: var(--brand-black); stroke: var(--brand-black); }
  26%, 100% { fill: var(--bg-surface); stroke: var(--border-dark); }
}
@keyframes btnSeqB {
  25%, 50% { fill: var(--brand-black); stroke: var(--brand-black); }
  0%, 24%, 51%, 100% { fill: var(--bg-surface); stroke: var(--border-dark); }
}
@keyframes btnSeqA {
  50%, 75% { fill: var(--brand-black); stroke: var(--brand-black); }
  0%, 49%, 76%, 100% { fill: var(--bg-surface); stroke: var(--border-dark); }
}
@keyframes btnSeqX {
  75%, 100% { fill: var(--brand-black); stroke: var(--brand-black); }
  0%, 74% { fill: var(--bg-surface); stroke: var(--border-dark); }
}

/* Invert text color during active step */
.anim-txt-y { animation: txtSeqY 2.4s infinite; }
.anim-txt-b { animation: txtSeqB 2.4s infinite; }
.anim-txt-a { animation: txtSeqA 2.4s infinite; }
.anim-txt-x { animation: txtSeqX 2.4s infinite; }

@keyframes txtSeqY { 0%, 25% { fill: var(--brand-white); } 26%, 100% { fill: var(--text-primary); } }
@keyframes txtSeqB { 25%, 50% { fill: var(--brand-white); } 0%, 24%, 51%, 100% { fill: var(--text-primary); } }
@keyframes txtSeqA { 50%, 75% { fill: var(--brand-white); } 0%, 49%, 76%, 100% { fill: var(--text-primary); } }
@keyframes txtSeqX { 75%, 100% { fill: var(--brand-white); } 0%, 74% { fill: var(--text-primary); } }

/* Step 4: Continuous 360° Circularity Rotation */
.anim-orbit-group {
  transform-origin: 38px 23px;
  animation: orbitRotate 3.2s linear infinite;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Step 5: Haptic Rumble Shaking & Vibrating Waves */
.anim-shake-inner {
  transform-origin: 38px 23px;
  animation: rumbleShake 0.35s ease-in-out infinite;
}

@keyframes rumbleShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, 0.8px) rotate(-1deg); }
  50% { transform: translate(1.5px, -0.8px) rotate(1deg); }
  75% { transform: translate(-0.8px, -0.5px) rotate(-0.5deg); }
}

.anim-rumble-1 {
  animation: rumbleFlash 0.35s ease-in-out infinite;
}

.anim-rumble-2 {
  animation: rumbleFlash 0.35s ease-in-out infinite 0.15s;
}

@keyframes rumbleFlash {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; stroke-width: 2.2px; }
}

/* Enhanced Status Banner with Prominent States */
.status-hardware-pill {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.status-hardware-pill.active {
  background: var(--brand-black);
  color: var(--brand-white);
  border-color: var(--brand-black);
}

/* Responsive */
@media (max-width: 1080px) {
  .steps-flow-container {
    gap: 0.5rem;
    padding: 0.5rem 1rem 1rem;
  }
}

@media (max-width: 900px) {
  .steps-flow-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem 1rem;
  }
  .step-arrow {
    display: none;
  }
  .step-card {
    min-width: 140px;
    max-width: 160px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .radar-grid {
    grid-template-columns: 1fr;
  }
  .content-article {
    padding: 1.75rem;
  }
}
