/* ===================================================================
   QXApps Landing Page Styles
   =================================================================== */

/* --- Design Tokens --- */
:root {
  --bg-0: #060d1c;
  --bg-1: #0a1428;
  --bg-2: #0f1d3a;
  --bg-3: #14264d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --text: #e8edf5;
  --text-dim: #b4c5d6;
  --text-muted: #7d8fa6;
  --primary: #4a9eff;
  --primary-hi: #7ab9ff;
  --primary-dim: #1e5fa8;
  --accent: #00d4ff;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --glow-blue: rgba(74, 158, 255, 0.4);
  --glow-cyan: rgba(0, 212, 255, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-hi); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* --- Background grid + glow --- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.bg-decor::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 1200px;
  height: 1200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 60%);
  opacity: 0.35;
  filter: blur(80px);
}

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 13, 28, 0.7);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 20px var(--glow-blue);
  /* When the brand-mark is an <img> (the QuantX logo), the gradient is hidden
     behind the photo but still serves as a colored fallback if the image fails
     to load. `overflow: hidden` ensures the image respects the rounded corners. */
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.brand-mark svg { width: 18px; height: 18px; color: #061328; }
/* Footer has more room than the sticky header — give the logo a bit more presence. */
.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  background: linear-gradient(180deg, #fff 0%, #b8d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary-hi), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 12px;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  box-shadow: 0 6px 20px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-ghost {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

/* Hero mockup showcase */
.hero-showcase {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-hi);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(74, 158, 255, 0.15);
  overflow: hidden;
}
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.4), transparent 40%, transparent 60%, rgba(0, 212, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.terminal {
  background: #04091a;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-family: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.04);
  /* Bound the long real-report showcase: internal scroll instead of pushing the hero height */
  min-height: 240px;
  max-height: 540px;
  overflow-y: auto;
  /* Slim, dark-mode scrollbar that fits the showcase */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.terminal::-webkit-scrollbar { width: 8px; }
.terminal::-webkit-scrollbar-track { background: transparent; }
.terminal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}
.terminal::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .dot.red { background: #ff5f56; }
.terminal-bar .dot.yellow { background: #ffbd2e; }
.terminal-bar .dot.green { background: #27c93f; }
.terminal-bar .title {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.terminal-line { display: flex; gap: 8px; padding: 2px 0; color: var(--text-dim); }
.terminal-line .prompt { color: var(--primary-hi); }
.terminal-line .ok { color: var(--success); }
.terminal-line .warn { color: var(--warning); }
.terminal-line .info { color: var(--accent); }
.terminal-line .muted { color: var(--text-muted); }
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--primary-hi);
  animation: blink 1.1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* --- Section heading --- */
.section { padding: 100px 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-hi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 999px;
}
.section h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff, #b8d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.section .lede {
  color: var(--text-dim);
  font-size: 17px;
}

/* --- Feature card grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top right, rgba(74, 158, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.feature-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.18), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(74, 158, 255, 0.25);
  margin-bottom: 18px;
  color: var(--primary-hi);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* --- PQC / Built for today section --- */
.pqc-section {
  background: linear-gradient(180deg, transparent, rgba(74, 158, 255, 0.03), transparent);
}
.pqc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pqc-card {
  padding: 36px 32px;
  background: linear-gradient(165deg, rgba(74, 158, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.pqc-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.15);
}
.pqc-card .pqc-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  font-weight: 600;
}
.pqc-card h3 { font-size: 20px; margin-bottom: 12px; color: #fff; }
.pqc-card p { color: var(--text-dim); font-size: 15px; }

/* --- Workflow --- */
.workflow {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.workflow-step {
  text-align: center;
  padding: 32px 16px;
  position: relative;
}
.workflow-step .step-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 0 30px var(--glow-blue);
  position: relative;
  z-index: 2;
}
.workflow-step h4 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.workflow-step p { font-size: 14px; color: var(--text-dim); }
.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50px;
  font-size: 24px;
  color: var(--text-muted);
  z-index: 1;
}

/* --- Integrations --- */
.integrations {
  text-align: center;
}
.integration-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s var(--ease);
}
.integration-chip:hover {
  border-color: var(--primary);
  background: var(--surface-hi);
  transform: translateY(-2px);
}
.integration-chip .chip-icon {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  color: var(--primary-hi);
}

/* --- Other products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-card {
  padding: 32px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.product-card.featured {
  border-color: rgba(74, 158, 255, 0.4);
  background: linear-gradient(165deg, rgba(74, 158, 255, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow: 0 0 40px rgba(74, 158, 255, 0.1);
}
.product-card.featured::before {
  content: "FEATURED";
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
}
.product-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card h3 { font-size: 22px; color: #fff; }
.product-card .tagline { color: var(--primary-hi); font-size: 14px; font-weight: 500; }
.product-card p { color: var(--text-dim); font-size: 15px; }
.product-card .product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}
.product-card .product-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.product-card:hover .product-link::after { transform: translateX(4px); }

/* --- Stats strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: linear-gradient(165deg, rgba(74, 158, 255, 0.07), rgba(0, 212, 255, 0.03));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  margin: 80px 0;
}
.stat .stat-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-hi), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat .stat-label {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(165deg, rgba(74, 158, 255, 0.1), rgba(0, 212, 255, 0.04));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow-cyan), transparent 60%);
  filter: blur(80px);
  z-index: 0;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff, #b8d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta p { color: var(--text-dim); font-size: 17px; max-width: 580px; margin: 0 auto 32px; }
.final-cta .hero-actions { margin-bottom: 0; }

/* --- Footer --- */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
  margin-top: 12px;
}
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.license-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  text-decoration: none;
}
.license-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}
.license-chip svg {
  /* make the check-mark noticeably smaller than the 12px "Open Source" text so
     it reads as a small inline glyph beside the text instead of dominating it. */
  width: 10px;
  height: 10px;
  color: var(--primary-hi);
  flex: 0 0 auto;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  transition: all 0.2s var(--ease);
}
.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary-hi);
  transform: translateY(-2px);
}
.social-links svg { width: 16px; height: 16px; }

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Mobile menu (simple) --- */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* --- Accessibility: skip link, focus, reduced motion --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

a:focus-visible,
button:focus-visible,
.nav-cta:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .terminal-cursor { animation: none; }
  .hero-eyebrow .dot { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pqc-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:not(:last-child)::after { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 13, 28, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 80px; }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; padding: 28px; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
