/*
Theme Name: QA Academy
Theme URI: https://qa.academy
Author: Quality Engineering Team
Author URI: https://qa.academy
Description: A state-of-the-art WordPress FSE Theme for Quality Assurance, Quality Engineering (SDET, Test Automation, API Testing, Incident Management & Observability).
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qa-academy
Tags: full-site-editing, block-patterns, custom-colors, dark-theme, grid-layout, tech-blog

© 2026 QA Academy - Software Quality Engineering Platform
*/

:root {
  /* Branding & Color System */
  --qa-emerald: #10B981;
  --qa-emerald-glow: rgba(16, 185, 129, 0.25);
  --incident-red: #EF4444;
  --incident-red-glow: rgba(239, 68, 68, 0.25);
  --qe-cyan: #06B6D4;
  --qe-cyan-glow: rgba(6, 182, 212, 0.25);
  --flaky-amber: #F59E0B;
  --flaky-amber-glow: rgba(245, 158, 11, 0.25);

  /* Surface Colors */
  --terminal-slate: #090D16;
  --terminal-slate-elevated: #0D1117;
  --console-surface-dark: #161B22;
  --console-surface-light: #FFFFFF;
  --ui-surface-tint: #F8FAFC;
  --border-subtle-dark: #21262D;
  --border-subtle-light: #E2E8F0;

  /* Text Colors */
  --text-heading-dark: #F8FAFC;
  --text-heading-light: #0F172A;
  --text-muted-dark: #94A3B8;
  --text-muted-light: #64748B;
  --text-code-cyan: #38BDF8;
  --text-code-green: #4ADE80;
  --text-code-red: #F43F5E;

  /* Fonts */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "Fira Code", Consolas, Monaco, monospace;
}

/* Core Layout & Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-ui);
  background-color: var(--terminal-slate);
  color: var(--text-heading-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Header & Navigation Bar */
.qa-header-sticky {
  background-color: #090D16;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}

.qa-header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.qa-brand-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.qa-brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.qa-corpolearn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94A3B8;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.qa-corpolearn-badge:hover {
  color: var(--qe-cyan) !important;
}

.qa-corpolearn-badge:hover strong {
  color: var(--qe-cyan) !important;
}

/* Desktop Nav Links */
.qa-nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.qa-nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #F8FAFC;
  text-decoration: none;
  white-space: nowrap !important;
  word-break: keep-all !important;
  hyphens: none !important;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.qa-nav-links a:hover {
  color: var(--qe-cyan) !important;
}

.qa-nav-links a.nav-incident {
  color: #EF4444;
  font-weight: 600;
}

.qa-nav-links a.nav-incident:hover {
  color: #F87171 !important;
}

.qa-cmd-trigger {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Actions & Hamburger */
.qa-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.qa-mobile-search-btn {
  background: #0D1117;
  border: 1px solid #21262D;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.qa-mobile-toggle {
  background: #0D1117;
  border: 1px solid #21262D;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.qa-mobile-toggle:focus-visible,
.qa-mobile-search-btn:focus-visible {
  outline: 2px solid var(--qe-cyan);
  outline-offset: 2px;
}

/* Mobile Navigation Drawer */
.qa-mobile-drawer {
  display: none;
  width: 100%;
  background: #0D1117;
  border-top: 1px solid #21262D;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.qa-mobile-drawer.active {
  max-height: 520px;
  opacity: 1;
}

.qa-mobile-drawer-inner {
  padding: 16px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #21262D;
}

.qa-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-mobile-nav-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: #161B22;
  border: 1px solid #21262D;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #F8FAFC;
  transition: all 0.2s ease;
}

.qa-mobile-nav-item:hover {
  background: #1E293B;
  border-color: var(--qe-cyan);
  color: var(--qe-cyan);
}

.qa-mobile-nav-item.item-incident {
  color: var(--incident-red);
}

.qa-nav-bullet {
  color: var(--qe-cyan);
  margin-right: 6px;
}

.qa-nav-desc {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

.qa-mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #21262D;
}

.qa-mobile-corpolearn-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
  text-decoration: none;
  text-align: center;
  padding: 6px 0;
}

.qa-mobile-corpolearn-link:hover {
  color: var(--qe-cyan);
}

/* Background Micro-QA Overlay Canvas */
.qa-background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Floating QA Assertions Drifting */
.qa-drifting-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--qe-cyan);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
  animation: floatDrift 18s infinite ease-in-out alternate;
  opacity: 0.65;
}

.qa-drifting-tag.pass {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--qa-emerald);
}

.qa-drifting-tag.fail {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--incident-red);
}

@keyframes floatDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -35px) rotate(1.5deg); }
  100% { transform: translate(-15px, 20px) rotate(-1deg); }
}

/* Terminal Chrome & QA Card Frame */
.qa-window-card {
  background: var(--console-surface-dark);
  border: 1px solid var(--border-subtle-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  max-width: 100%;
}

.qa-window-card:hover {
  transform: translateY(-4px);
  border-color: var(--qe-cyan);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.15);
}

.qa-window-card.incident-card:hover {
  border-color: var(--incident-red);
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.15);
}

.qa-window-card.pass-card:hover {
  border-color: var(--qa-emerald);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15);
}

/* Window Header Bar */
.qa-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0B0F19;
  border-bottom: 1px solid var(--border-subtle-dark);
  gap: 8px;
  flex-wrap: wrap;
}

.qa-window-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.qa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.qa-dot.red { background: var(--incident-red); }
.qa-dot.yellow { background: var(--flaky-amber); }
.qa-dot.green { background: var(--qa-emerald); }

.qa-window-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.qa-window-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.qa-window-badge.badge-pass {
  background: rgba(16, 185, 129, 0.15);
  color: var(--qa-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.qa-window-badge.badge-assert {
  background: rgba(6, 182, 212, 0.15);
  color: var(--qe-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.qa-window-badge.badge-incident {
  background: rgba(239, 68, 68, 0.15);
  color: var(--incident-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.qa-window-badge.badge-flaky {
  background: rgba(245, 158, 11, 0.15);
  color: var(--flaky-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Inspection Borders */
.border-left-pass { border-left: 4px solid var(--qa-emerald) !important; }
.border-left-cyan { border-left: 4px solid var(--qe-cyan) !important; }
.border-left-amber { border-left: 4px solid var(--flaky-amber) !important; }
.border-left-incident { border-left: 4px solid var(--incident-red) !important; }

/* Log Snippet Footer */
.qa-card-footer {
  padding: 10px 16px;
  background: #0B0F19;
  border-top: 1px solid var(--border-subtle-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Symmetrical Pills */
.qa-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.1);
  color: var(--qe-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.qa-pill.pill-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--qa-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.qa-pill.pill-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--flaky-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Animated Cursor Overlay Element */
.qa-animated-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 100;
  transition: transform 0.1s linear;
}

.qa-cursor-crosshair {
  width: 24px;
  height: 24px;
  border: 1px dashed var(--qe-cyan);
  border-radius: 50%;
  position: relative;
}

.qa-cursor-crosshair::before, .qa-cursor-crosshair::after {
  content: '';
  position: absolute;
  background: var(--qe-cyan);
}

.qa-cursor-crosshair::before {
  top: 50%; left: 3px; right: 3px; height: 1px; transform: translateY(-50%);
}
.qa-cursor-crosshair::after {
  left: 50%; top: 3px; bottom: 3px; width: 1px; transform: translateX(-50%);
}

.qa-cursor-coords {
  position: absolute;
  top: 26px;
  left: 12px;
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid var(--qe-cyan);
  color: var(--qe-cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Click Ripple Ring */
.qa-ripple-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--qa-emerald);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 1;
  animation: rippleExpand 1.2s infinite ease-out;
}

@keyframes rippleExpand {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Command Palette Search Modal */
.qa-cmd-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 20px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.qa-cmd-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.qa-cmd-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--console-surface-dark);
  border: 1px solid var(--qe-cyan);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  overflow: hidden;
}

.qa-cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle-dark);
  background: #0D1117;
}

.qa-cmd-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-heading-dark);
  font-family: var(--font-mono);
  font-size: 15px;
  margin-left: 12px;
}

/* Cookie Consent Banner Popup */
.qa-cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 440px;
  margin-left: auto;
  background: var(--console-surface-dark);
  border: 1px solid var(--qe-cyan);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.qa-cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Code Syntax & Pre Styling */
pre, code {
  font-family: var(--font-mono);
  max-width: 100%;
}

pre {
  background: #0B0F19 !important;
  border: 1px solid var(--border-subtle-dark);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text-heading-dark);
  box-sizing: border-box;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--terminal-slate);
}
::-webkit-scrollbar-thumb {
  background: #21262D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--qe-cyan);
}

/* Mock Interview Promotion CTA */
.qa-mock-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
  color: #090D16 !important;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
  min-height: 44px;
}

.qa-mock-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.5);
  color: #090D16 !important;
}

.qa-mock-cta-primary:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 3px;
}

/* =======================================================
   RESPONSIVE COMPONENT GRIDS & MOBILE VIEW ENGINE
   ======================================================= */

/* 1. Hero Grid */
.qa-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.qa-hero-window-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* 2. Stats Grid */
.qa-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.qa-stat-col {
  border-right: 1px solid #21262D;
  padding-right: 15px;
}

/* 3. Topic Grid */
.qa-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 4. Career Pipeline Grid */
.qa-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

/* 5. Blueprints Grid */
.qa-blueprints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 6. Mock Steps Grid */
.qa-mock-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* 7. Footer Grid & Network Bar */
.qa-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 48px;
}

.qa-footer-col h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.qa-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-footer-col a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qa-footer-col a:hover {
  color: var(--qe-cyan);
}

.qa-footer-mock-link {
  color: var(--qa-emerald) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 12px;
}

.qa-footer-mock-link:hover {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399 !important;
}

/* Dedicated Footer CorpoLearn Network Presence */
.qa-footer-network {
  border-top: 1px solid #21262D;
  border-bottom: 1px solid #21262D;
  padding: 28px 0;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

.qa-footer-network-brand {
  max-width: 440px;
}

.qa-footer-cl-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 10px;
}

.qa-footer-cl-wordmark {
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: -0.3px;
}

.qa-footer-network-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
}

.qa-footer-network-desc strong {
  color: #F8FAFC;
}

.qa-footer-network-schools {
  flex: 1;
  max-width: 620px;
}

.qa-footer-school-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-footer-school-pills li a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
  text-decoration: none;
  background: #161B22;
  border: 1px solid #21262D;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.qa-footer-school-pills li a:hover {
  border-color: var(--qe-cyan);
  color: var(--qe-cyan);
  background: #0D1117;
}

.qa-footer-school-pills li a.qa-pill-all {
  color: var(--qe-cyan);
  border-color: rgba(6, 182, 212, 0.4);
  font-weight: 600;
}

.qa-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

.qa-footer-bottom-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* 8. Newsletter Form */
.qa-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.qa-newsletter-form input {
  flex: 1;
  background: #090D16;
  border: 1px solid #30363D;
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 6px;
  outline: none;
  min-width: 0;
}

/* =======================================================
   MEDIA QUERIES FOR TABLET & MOBILE
   ======================================================= */

/* Tablet (<= 1024px) */
@media screen and (max-width: 1024px) {
  .qa-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Small Tablet (<= 900px) */
@media screen and (max-width: 900px) {
  /* Navbar adjustments */
  .qa-nav-links {
    display: none !important;
  }
  .qa-desktop-search {
    display: none !important;
  }
  .qa-mobile-actions {
    display: flex !important;
  }
  .qa-mobile-drawer {
    display: block;
  }

  /* Grid breakdowns */
  .qa-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .qa-hero-title {
    font-size: 32px !important;
  }
  .qa-blueprints-grid {
    grid-template-columns: 1fr;
  }
  .qa-mock-steps-grid {
    grid-template-columns: 1fr;
  }
  .qa-footer-network {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile Devices (<= 768px) */
@media screen and (max-width: 768px) {
  .qa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-stat-col:nth-child(2) {
    border-right: none;
  }

  .qa-pipeline-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .qa-pipeline-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .qa-single-body-wrap {
    padding: 24px 16px !important;
  }
}

/* Small Phones (<= 640px) */
@media screen and (max-width: 640px) {
  .qa-hero-window-split {
    grid-template-columns: 1fr;
  }
  #hero-dummy-app {
    border-right: none !important;
    border-bottom: 1px solid #21262D;
  }

  .qa-topic-grid {
    grid-template-columns: 1fr;
  }

  .qa-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .qa-newsletter-form {
    flex-direction: column;
  }
  .qa-newsletter-form button {
    width: 100%;
  }

  .qa-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Extra Small (<= 480px) */
@media screen and (max-width: 480px) {
  .qa-stats-grid {
    grid-template-columns: 1fr;
  }
  .qa-stat-col {
    border-right: none;
    border-bottom: 1px solid #21262D;
    padding-bottom: 12px;
  }
  .qa-stat-col:last-child {
    border-bottom: none;
  }

  .qa-hero-title {
    font-size: 26px !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .qa-mock-cta-primary,
  .qa-window-card,
  .qa-drifting-tag,
  .qa-ripple-ring {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
