/* ==========================================================================
   VRTG — Design tokens
   ========================================================================== */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* color */
  --ink: #0b0c0e;
  --panel: #17181b;
  --panel-2: #1e1f23;
  --line: #2a2c30;
  --line-soft: rgba(255,255,255,0.07);
  --brand: #8b0000;
  --brand-light: #a81f1f;
  --brand-bright: #e0552e;
  --brand-dim: rgba(139,0,0,0.25);
  --paper: #ecebe4;
  --white: #ffffff;
  --muted: #8b8d93;
  --ok: #3fb950;
  --ok-bg: rgba(63,185,80,0.12);
  --err: #f0554a;
  --err-bg: rgba(240,85,74,0.12);

  /* type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* layout */
  --max: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 2px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Visible focus ring everywhere; never remove without replacing */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--brand); color: var(--white); padding: 0.75rem 1.25rem;
  font-family: var(--font-mono); font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { left: var(--gutter); top: 0.75rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: 6.5rem 0; }

h1, h2, h3 { font-family: var(--font-display); color: var(--white); letter-spacing: -0.01em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Eyebrow / mono labels — the CLI-flavored structural device
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-bright);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: '//'; color: var(--muted); }
.eyebrow.prompt::before { content: '$'; color: var(--muted); }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 34ch;
}
.section-sub {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.rule {
  height: 2px; width: 44px; background: var(--brand);
  margin: 0.9rem 0 1.75rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
header.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: rgba(11,12,14,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand-mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark img { height: 26px; width: auto; }
.brand-mark span {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.08em; display: none;
}
nav.primary-nav ul {
  display: flex; gap: 2.25rem; list-style: none;
}
nav.primary-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  font-family: var(--font-mono); letter-spacing: 0.04em;
  transition: color 0.15s;
}
nav.primary-nav a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: all 0.15s;
}
.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--white); }
.btn-block { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--white);
  padding: 0.4rem 0.6rem; font-family: var(--font-mono); cursor: pointer;
}

/* ==========================================================================
   Hero + signature network graphic
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 84px;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(139,0,0,0.055) 79px, rgba(139,0,0,0.055) 80px);
  pointer-events: none;
}
.hero-topology {
  position: absolute; top: 0; right: -6%; bottom: 0;
  width: 62%; opacity: 0.9;
  pointer-events: none;
}
.hero-topology svg { width: 100%; height: 100%; }
.topo-link { stroke: var(--line); stroke-width: 1; fill: none; }
.topo-link-active {
  stroke: var(--brand-bright); stroke-width: 1.4; fill: none;
  stroke-dasharray: 6 10; opacity: 0.85;
  animation: dash-flow 5s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -160; } }
.topo-node { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.topo-node-core { fill: var(--panel-2); stroke: var(--brand); stroke-width: 1.5; }
.topo-pulse { fill: var(--brand-bright); opacity: 0; }
.topo-pulse.on { animation: pulse-in 2.6s ease-in-out infinite; }
@keyframes pulse-in { 0%,100% { opacity: 0; r: 3; } 50% { opacity: 0.9; r: 5; } }

.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-logo { height: 108px; width: auto; margin-bottom: 2.25rem; }
@media (max-width: 860px) {
  .hero-logo { height: 76px; margin-bottom: 1.75rem; }
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.hero-lead {
  font-size: 1.15rem; color: var(--muted); max-width: 520px;
  margin-bottom: 2.25rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-actions .btn { padding: 0.9rem 1.75rem; font-size: 0.85rem; }

.stat-row {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding-top: 2.25rem; border-top: 1px solid var(--line-soft);
}
.stat .num {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--white); line-height: 1;
}
.stat .label {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-section { background: var(--panel); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.service-card {
  background: var(--panel); padding: 2.5rem 2.1rem;
  transition: background 0.15s;
}
.service-card:hover { background: var(--panel-2); }
.service-icon {
  width: 42px; height: 42px; margin-bottom: 1.4rem;
  color: var(--brand-bright);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   Differentiators
   ========================================================================== */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
.diff-item { display: flex; gap: 1.4rem; }
.diff-mark {
  flex-shrink: 0; width: 36px; height: 36px;
  border: 1px solid var(--brand-dim); color: var(--brand-bright);
  display: flex; align-items: center; justify-content: center;
}
.diff-mark svg { width: 18px; height: 18px; }
.diff-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.diff-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   Partners
   ========================================================================== */
.partners-section { background: var(--panel); }
.partners-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.partner-cell {
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  padding: 1.75rem 1.4rem; transition: background 0.15s;
}
.partner-cell.on-dark { background: var(--panel-2); }
.partner-cell:hover { background: #f0f0f0; }
.partner-cell.on-dark:hover { background: #26272b; }
.partner-cell a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.partner-cell img { max-height: 40px; max-width: 120px; object-fit: contain; }

/* ==========================================================================
   About + Contact
   ========================================================================== */
.about-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 5rem; align-items: start; }
.about-copy p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; }
.badge-row { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.75rem; }
.badge {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-bright);
  border: 1px solid var(--brand-dim); padding: 0.4rem 0.85rem;
}

.contact-panel {
  background: var(--panel); border: 1px solid var(--line); padding: 2.25rem;
}
.contact-panel .eyebrow { margin-bottom: 0.35rem; }
.contact-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }

.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); color: var(--white);
  padding: 0.7rem 0.9rem; font-size: 0.92rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand-bright); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.28); }
.field textarea { resize: vertical; min-height: 110px; }

.form-status {
  margin-top: 1rem; padding: 0.75rem 0.9rem; font-size: 0.85rem; text-align: center;
  display: none;
}
.form-status.success { background: var(--ok-bg); border: 1px solid rgba(63,185,80,0.4); color: var(--ok); }
.form-status.error { background: var(--err-bg); border: 1px solid rgba(240,85,74,0.4); color: var(--err); }

.contact-direct {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; gap: 1.75rem; flex-wrap: wrap;
}
.contact-direct .k { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.contact-direct a { text-decoration: none; font-size: 0.92rem; }
.contact-direct a[href^="mailto"] { color: var(--brand-bright); }
.contact-direct a[href^="tel"] { color: var(--white); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--white);
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  padding: 1.35rem 2.25rem 1.35rem 0; cursor: pointer; position: relative;
}
.faq-q::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--brand-bright);
}
.faq-item[data-open="true"] .faq-q::after { content: '\2212'; }
.faq-a { display: none; padding: 0 2.25rem 1.5rem 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; max-width: 62ch; }
.faq-item[data-open="true"] .faq-a { display: block; }

/* ==========================================================================
   CTA banner + footer
   ========================================================================== */
.cta-banner { background: var(--brand); padding: 4.5rem 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.9rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn { background: var(--white); color: var(--brand); border-color: var(--white); padding: 0.9rem 2.2rem; font-weight: 600; }
.cta-banner .btn:hover { background: var(--paper); }

footer.site-footer {
  background: #08090a; padding: 2.75rem 0; border-top: 1px solid var(--line-soft);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-row img { height: 22px; opacity: 0.55; }
.footer-row p { font-size: 0.8rem; color: var(--muted); }
.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--brand-bright); }
.footer-links { display: flex; gap: 1.25rem; list-style: none; font-family: var(--font-mono); font-size: 0.78rem; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 860px) {
  nav.primary-nav { display: none; }
  .nav-right .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-topology { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { gap: 2rem; }
  section { padding: 4.5rem 0; }
  .footer-row { flex-direction: column; text-align: center; }
}
