/* ==================================================================
   SYSROOT TECHNOLOGIES LLP — Coming Soon
   Design system: dark, systems/terminal-inspired cybersecurity brand.
   Grid: 8px baseline. Display: Space Grotesk. Body: Inter. System: JetBrains Mono.
================================================================== */

/* -----------------------------------------------------------------
   0. RESET
----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }

/* -----------------------------------------------------------------
   1. DESIGN TOKENS
----------------------------------------------------------------- */
:root {
  /* Brand colors — exact spec */
  --color-primary: #FF5A2F;      /* Signal Orange — action / brand only */
  --color-primary-dim: #C7431F;
  --color-secondary: #0B1220;    /* Deep navy */
  --color-accent: #2563EB;       /* Electric blue */
  --color-bg: #050816;
  --color-card: #0F172A;
  --color-card-hover: #131E38;
  --color-text: #FFFFFF;
  --color-text-muted: #94A3B8;
  --color-text-dim: #5B6B85;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-success: #22C55E;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* 8px spacing grid */
  --sp-1: 0.5rem;   /* 8  */
  --sp-2: 1rem;     /* 16 */
  --sp-3: 1.5rem;   /* 24 */
  --sp-4: 2rem;     /* 32 */
  --sp-5: 3rem;     /* 48 */
  --sp-6: 4rem;     /* 64 */
  --sp-7: 6rem;     /* 96 */
  --sp-8: 8rem;     /* 128 */

  /* Layout */
  --container: 1280px;
  --nav-h: 4.5rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease-instrument: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 1.1s;
}

/* -----------------------------------------------------------------
   2. BASE
----------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Subtle custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* -----------------------------------------------------------------
   3. TYPOGRAPHY
----------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: var(--sp-2);
  max-width: 20ch;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.7;
}

.section-head { margin-bottom: var(--sp-6); }

.text-gradient {
  background: linear-gradient(100deg, var(--color-primary) 10%, #FF8A5B 45%, var(--color-accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------------------------------------------
   4. BUTTONS
----------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-instrument), box-shadow var(--dur-fast) var(--ease-instrument), border-color var(--dur-fast) var(--ease-instrument);
  isolation: isolate;
}
.btn span { position: relative; z-index: 1; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 90, 47, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 90, 47, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  background: rgba(255, 90, 47, 0.06);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.65em 1.4em; font-size: 0.85rem; }

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s var(--ease-instrument), opacity 0.5s var(--ease-instrument);
}
.btn:active::after {
  opacity: 1;
  transform: scale(2.2);
  transition: 0s;
}

/* -----------------------------------------------------------------
   5. AMBIENT FX — cursor glow, scroll progress
----------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  background: radial-gradient(circle, rgba(255, 90, 47, 0.10) 0%, rgba(37, 99, 235, 0.06) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.1s linear;
}

/* -----------------------------------------------------------------
   6. NAVIGATION
----------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease-instrument), border-color var(--dur-med) var(--ease-instrument), backdrop-filter var(--dur-med) var(--ease-instrument);
}
.nav.scrolled {
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav-logo img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin: 0 auto;
}
.nav-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--color-primary);
  transition: width var(--dur-fast) var(--ease-instrument);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }
.link-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-primary);
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -----------------------------------------------------------------
   7. HERO
----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-4) var(--sp-6);
  overflow: hidden;
  isolation: isolate;
}

/* --- Backdrop layers --- */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--color-bg);
}

.grid-plane {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, #000 0%, transparent 75%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(56px, 56px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 16s ease-in-out infinite;
}
.orb-a { width: 480px; height: 480px; top: -12%; left: -8%; background: radial-gradient(circle, rgba(255,90,47,0.30), transparent 70%); animation-duration: 18s; }
.orb-b { width: 420px; height: 420px; top: 20%; right: -10%; background: radial-gradient(circle, rgba(37,99,235,0.28), transparent 70%); animation-duration: 22s; animation-delay: -4s; }
.orb-c { width: 360px; height: 360px; bottom: -14%; left: 30%; background: radial-gradient(circle, rgba(255,90,47,0.14), transparent 70%); animation-duration: 20s; animation-delay: -9s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -4%) scale(1.06); }
}

.node-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.node-net-lines line { stroke: rgba(148,163,184,0.18); stroke-width: 1; }
.node-net-dots circle { fill: rgba(148,163,184,0.5); }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,90,47,0.55), transparent);
  animation: scanMove 7s ease-in-out infinite;
}
@keyframes scanMove {
  0% { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

/* --- Floating keyword field --- */
.keyword-field { position: absolute; inset: 0; z-index: -1; }
.kw {
  position: absolute;
  left: var(--x); top: var(--y);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.4);
  padding: 0.35em 0.75em;
  border-radius: 999px;
  white-space: nowrap;
  animation: kwFloat 9s ease-in-out infinite;
  animation-delay: var(--d);
  backdrop-filter: blur(4px);
}
@keyframes kwFloat {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-14px); opacity: 0.9; }
}

/* --- Hero content --- */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--color-border);
  padding: 0.5em 1em;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
  animation: fadeUp 0.8s var(--ease-instrument) both;
}

.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.cursor-blink { animation: blink 1s step-end infinite; color: var(--color-primary); }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-title {
  font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  animation: fadeUp 0.8s 0.1s var(--ease-instrument) both;
}
.hero-title-cursor { font-size: 0.75em; }

.hero-sub {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  max-width: 62ch;
  margin: 0 auto var(--sp-5);
  line-height: 1.75;
  animation: fadeUp 0.8s 0.2s var(--ease-instrument) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  animation: fadeUp 0.8s 0.3s var(--ease-instrument) both;
}

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

/* --- Panels: terminal + countdown --- */
.hero-panels {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-3);
  text-align: left;
  margin-bottom: var(--sp-3);
  animation: fadeUp 0.9s 0.4s var(--ease-instrument) both;
}

.panel {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.terminal-panel { padding: 0; overflow: hidden; }
.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1em;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; }
.term-dot-r { background: #FF5F57; }
.term-dot-y { background: #FEBC2E; }
.term-dot-g { background: #28C840; }
.terminal-title { font-size: 0.72rem; color: var(--color-text-dim); margin-left: 0.4em; }

.terminal-body {
  padding: 1.1em 1.2em;
  font-size: 0.8rem;
  line-height: 1.9;
  min-height: 168px;
  color: var(--color-text-muted);
}
.term-line { white-space: pre-wrap; opacity: 0; animation: termIn 0.3s ease forwards; }
@keyframes termIn { to { opacity: 1; } }
.term-ok { color: var(--color-success); }
.term-prompt { color: var(--color-primary); }

.countdown-panel { padding: 1.25em 1.4em; display: flex; flex-direction: column; }
.panel-label {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
}

.countdown { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.25em; }
.cd-unit { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.cd-value {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.cd-label { font-size: 0.62rem; color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2em; }
.cd-sep { color: var(--color-text-dim); font-size: 1.2rem; padding-top: 0.1em; }

.countdown-target {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-size: 0.68rem;
  color: var(--color-text-dim);
  border-top: 1px dashed var(--color-border);
}

/* --- Progress --- */
.progress-panel {
  padding: 1.1em 1.3em;
  text-align: left;
  animation: fadeUp 0.9s 0.5s var(--ease-instrument) both;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.7em;
}
.progress-pct { color: var(--color-primary); font-weight: 600; }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #FF8A5B);
  transition: width 1.6s var(--ease-instrument);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  width: 40%;
  animation: progressShine 2.2s ease-in-out infinite;
}
@keyframes progressShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* --- Scroll cue --- */
.scroll-cue {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: var(--color-text-dim);
  z-index: 1;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 6px;
  border-radius: 2px;
  background: var(--color-primary);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  71% { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}
.scroll-text { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* -----------------------------------------------------------------
   8. SERVICES
----------------------------------------------------------------- */
.services {
  padding: var(--sp-8) var(--sp-4);
  max-width: var(--container);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: transform var(--dur-med) var(--ease-instrument), border-color var(--dur-med) ease, background var(--dur-med) ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,90,47,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  background: var(--color-card-hover);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 90, 47, 0.08);
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--sp-2);
}

.service-list li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 0.4em 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.service-list li:first-child { border-top: none; }
.service-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* -----------------------------------------------------------------
   9. ABOUT
----------------------------------------------------------------- */
.about {
  padding: var(--sp-7) var(--sp-4);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.about-visual {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  aspect-ratio: 16/10.5;
}
.world-map { width: 100%; height: 100%; }
.world-map .wm-dot { fill: rgba(148,163,184,0.35); }
.world-map .wm-hub { fill: var(--color-primary); }
.world-map .wm-arc { fill: none; stroke: rgba(255,90,47,0.45); stroke-width: 1; stroke-dasharray: 4 5; animation: arcFlow 3.5s linear infinite; }
@keyframes arcFlow { to { stroke-dashoffset: -100; } }
.wm-pulse {
  fill: none; stroke: var(--color-primary); stroke-width: 1.5;
  animation: hubPulse 2.4s ease-out infinite;
  transform-origin: center;
}
@keyframes hubPulse {
  0% { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(3.2); }
}
.about-visual-caption {
  position: absolute;
  left: var(--sp-3); bottom: var(--sp-2);
  font-size: 0.65rem;
  color: var(--color-text-dim);
}

.eyebrow-sm { font-size: 0.7rem; }

.about-stats {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.7rem; color: var(--color-primary); font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.2em; }

/* -----------------------------------------------------------------
   10. CONTACT
----------------------------------------------------------------- */
.contact {
  padding: var(--sp-7) var(--sp-4);
  max-width: var(--container);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-instrument);
}
a.contact-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  margin-bottom: 0.3em;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
}
.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-card-social { justify-content: space-between; }
.social-row { display: flex; gap: 0.6em; margin-top: 0.4em; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-instrument);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover {
  color: #fff;
  border-color: var(--color-primary);
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* -----------------------------------------------------------------
   11. NEWSLETTER
----------------------------------------------------------------- */
.newsletter {
  padding: var(--sp-7) var(--sp-4);
}
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
}
.newsletter .section-sub { margin: 0 auto var(--sp-4); }
.newsletter .eyebrow, .newsletter .section-title { justify-content: center; }
.newsletter .section-title { margin-left: auto; margin-right: auto; }

.newsletter-field {
  display: flex;
  gap: var(--sp-2);
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-field input {
  flex: 1;
  min-width: 0;
  padding: 0.95em 1.1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--color-text);
}
.newsletter-field input::placeholder { color: var(--color-text-dim); }
.newsletter-field input:focus { border-color: var(--color-accent); }
.newsletter-field input.invalid { border-color: #EF4444; }

.form-msg { font-size: 0.85rem; margin-top: var(--sp-2); min-height: 1.2em; }
.form-msg.success { color: var(--color-success); }
.form-msg.error { color: #EF4444; }

/* -----------------------------------------------------------------
   12. FOOTER
----------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-5);
}
.footer-logo { height: 20px; margin-bottom: var(--sp-2); }
.footer-tagline { color: var(--color-text-muted); font-size: 0.92rem; max-width: 32ch; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.footer-col-title {
  font-size: 0.68rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}
.footer-col a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.35em 0;
  transition: color var(--dur-fast) ease;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-social { margin-top: 0.2em; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-3);
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

/* -----------------------------------------------------------------
   13. BACK TO TOP
----------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-3);
  right: var(--sp-3);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-fast) var(--ease-instrument);
  z-index: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* -----------------------------------------------------------------
   14. RESPONSIVE
----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-panels { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5,8,22,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--sp-2) var(--sp-4) var(--sp-3);
  }
  .nav-links.open a { width: 100%; padding: 0.85em 0; border-bottom: 1px solid var(--color-border); }
}

@media (max-width: 640px) {
  :root { --nav-h: 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .kw:nth-child(n+6) { display: none; } /* thin out keyword clutter on mobile */
  .cursor-glow { display: none; }
}

/* -----------------------------------------------------------------
   15. REDUCED MOTION
----------------------------------------------------------------- */
@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;
  }
}
