/* ── Brand tokens ── */
:root {
  --bg:        #07090e;
  --bg-raised: #0b1018;
  --bg-card:   #0f1520;
  --border:    #162030;
  --brand:     #00b0cc;
  --brand-dim: rgba(0,176,204,0.10);
  --brand-hi:  rgba(0,176,204,0.22);
  --white:     #dce9f6;
  --ink:       #8aacc8;
  --muted:     #4e6780;
  --font:      'Inter', system-ui, sans-serif;
}

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

/*
  Secure Programming / WCAG 2.1 AA: honour prefers-reduced-motion.
  Animated content can trigger vestibular disorders; disabling it is also
  required by some accessibility-adjacent security baselines (Section 508).
*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-badge-dot { animation: none !important; }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
}

/*
  WCAG 2.1 AA / STIG accessibility requirement: visible keyboard focus
  indicator. Removing outlines without replacement is a WCAG 2.4.7 failure
  and can allow focus-hijacking attacks to go unnoticed by keyboard users.
  :focus-visible scopes this to keyboard navigation only (not mouse click).
*/
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5vw;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,9,14,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-text { line-height: 1; }
.logo-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-region {
  display: block;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5vw 80px;
  overflow: hidden;
}

.hero-bg-mark {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  width: 56vw;
  max-width: 800px;
  pointer-events: none;
  opacity: 0.045;
}
.hero-bg-mark svg { width: 100%; height: auto; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--brand-hi);
  background: var(--brand-dim);
  padding: 5px 13px 5px 10px;
  margin-bottom: 32px;
  border-radius: 2px;
}
.hero-badge-dot {
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-headline {
  font-weight: 800;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  max-width: 480px;
  margin-bottom: 40px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover svg { transform: translateX(3px); }

.hero-stats {
  position: absolute;
  bottom: 64px;
  right: 5vw;
  display: flex;
  gap: 48px;
  z-index: 1;
}
.stat { text-align: right; }
.stat-num {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--brand); }
.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* ── SECTION BASE ── */
section { padding: 96px 5vw; }

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--brand);
  flex-shrink: 0;
}

.section-title {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--white);
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand);
}

.section-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 500px;
}

.process-header .section-desc { margin-top: 12px; }

/* ── SERVICES ── */
#services {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

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

.service-card {
  background: var(--bg-raised);
  padding: 36px 28px 32px;
  position: relative;
  border-top: 2px solid transparent;
  transition: background 0.2s, border-top-color 0.2s;
}
.service-card:hover {
  background: #0e1a28;
  border-top-color: var(--brand);
}

.service-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 3px;
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover .service-icon {
  border-color: var(--brand-hi);
  background: var(--brand-dim);
}
.service-icon svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.5; }

.service-num {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--border);
}

.service-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--white);
}

.service-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ── CERTIFICATIONS ── */
.certs-strip {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 24px;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}
.cert-item:last-child { border-right: none; }
.cert-item:hover { color: var(--ink); }
.cert-dot {
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── WHY US ── */
#why { background: var(--bg); }

.why-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.why-visual {
  position: sticky;
  top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  overflow: hidden;
}
.why-visual-inner {
  position: relative;
  width: 200px; height: 200px;
}
.why-visual-inner svg { width: 100%; height: 100%; }

.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 20px;
  border: 1px solid transparent;
  border-bottom-color: var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.pillar:first-child { border-top-color: var(--border); }
.pillar:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.pillar-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  margin-top: 1px;
  transition: border-color 0.2s, background 0.2s;
}
.pillar:hover .pillar-icon {
  border-color: var(--brand-hi);
  background: var(--brand-dim);
}
.pillar-icon svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 1.5; }

.pillar-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  color: var(--white);
}
.pillar-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── PROCESS ── */
#process {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-header { margin-bottom: 64px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
}

.process-step {
  padding: 32px 24px;
  background: var(--bg-raised);
  text-align: left;
  border-top: 2px solid transparent;
  transition: background 0.2s, border-top-color 0.2s;
}
.process-step:hover {
  background: #0e1a28;
  border-top-color: var(--brand);
}

.step-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  display: block;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--white);
}
.step-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 5vw 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
  max-width: 260px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(78,103,128,0.5); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 11px;
  color: rgba(78,103,128,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--muted); }

/* Placeholder items for pages not yet built */
.footer-link-stub {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.45;
  cursor: default;
  user-select: none;
}
.footer-legal .footer-link-stub {
  font-size: 11px;
  color: rgba(78,103,128,0.3);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-layout { grid-template-columns: 1fr; }
  .why-visual { height: 220px; position: static; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero-stats { display: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .certs-strip { gap: 0; }
  .cert-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; }
}
