/* ============================================
   AITekLab — Design System (White & Green)
   Palette:
     --paper    #FFFFFF  (page background, white)
     --surface  #FFFFFF  (cards / panels, white)
     --ink      #000000  (primary text, black)
     --ink-soft #1A1A1A  (secondary text, near-black gray)
     --circuit  #1FA463  (primary brand accent — green; also the header bar color)
     --signal   #16A34A  (secondary accent — green)
     --spark    #15291F  (tertiary accent — deep green-black)
     --hairline #4D4D4D  (borders / grid lines, dark grey)
   Type:
     Headings / labels: 'Space Grotesk'
     Body: 'IBM Plex Sans'
     Utility / labels / specs: 'IBM Plex Mono'
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #000000;
  --ink-soft: #1A1A1A;
  --circuit: #1FA463;
  --circuit-dim: #E1F5EA;
  --signal: #16A34A;
  --signal-dim: #E3F7EA;
  --spark: #15291F;
  --spark-dim: #E7F3EC;
  --hairline: #4D4D4D;

  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1140px;
  --radius: 6px;
}

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

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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--circuit);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Text selection highlight */
::selection {
  background: var(--circuit);
  color: #FFFFFF;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--circuit);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Background grid texture (subtle "blueprint" feel)
   ============================================ */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(217, 96, 59, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 96, 59, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ============================================
   Scroll reveal (fade + rise on scroll into view)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grouped items */
.grid > .reveal:nth-child(1) { transition-delay: 0s; }
.grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.3s; }

.spec-strip > .reveal:nth-child(1) { transition-delay: 0s; }
.spec-strip > .reveal:nth-child(2) { transition-delay: 0.08s; }
.spec-strip > .reveal:nth-child(3) { transition-delay: 0.16s; }
.spec-strip > .reveal:nth-child(4) { transition-delay: 0.24s; }

.process-list > .reveal:nth-child(1) { transition-delay: 0s; }
.process-list > .reveal:nth-child(2) { transition-delay: 0.08s; }
.process-list > .reveal:nth-child(3) { transition-delay: 0.16s; }
.process-list > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background-color: var(--circuit);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.85rem;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 29px;
  flex-shrink: 0;
}

.logo-mark path {
  fill: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom-color: #FFFFFF;
}

.nav-links a.active {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #FFFFFF;
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ============================================
   Nav dropdown (Products)
   ============================================ */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.has-dropdown:hover .nav-caret,
.has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

/* Outer element is the hover hit-area: it starts flush against the trigger
   (top: 100%, no gap) and uses padding-top — not a positioning offset — to
   create visual breathing room, so the cursor never leaves a hoverable box
   while travelling from the trigger down into the panel. */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-panel {
  min-width: 290px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.dropdown-panel li + li {
  border-top: 1px solid var(--hairline);
}

.dropdown-panel a {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-bottom: none;
  border-left: 2px solid transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dropdown-panel a:hover {
  color: var(--ink);
  border-bottom: none;
  border-left-color: var(--circuit);
  background: var(--paper);
}

/* ============================================
   Eyebrow / section labels (spec-sheet style)
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--circuit);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: linear-gradient(to right, var(--circuit), var(--signal));
  border-radius: 1px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1, h2 {
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

p {
  color: var(--ink-soft);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--circuit);
  color: #FFFFFF;
  border-color: var(--circuit);
}

.btn-primary:hover {
  background-color: var(--signal);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background-color: rgba(33, 26, 20, 0.08);
  border-color: var(--ink);
  text-decoration: none;
}

.btn-outlook {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-outlook:hover {
  border-color: var(--circuit);
  color: var(--circuit);
  text-decoration: none;
}

/* ============================================
   Sections / Layout
   ============================================ */
.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-border {
  border-top: 1px solid var(--hairline);
}

.section-head {
  margin-bottom: 48px;
  max-width: 680px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 140px 0 64px;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.35);
}

.hero-bg-overlay {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero-intro {
  max-width: 1100px;
}

.hero-intro h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #FFFFFF;
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #FFFFFF;
  max-width: 680px;
  margin: 16px auto 0;
}

/* "View services" is the inverse of the primary button — white fill,
   accent text/border — with a hover shift in the same spirit as primary's. */
.hero .btn-secondary {
  background-color: #FFFFFF;
  color: var(--circuit);
  border-color: transparent;
}

.hero .btn-secondary:hover {
  background-color: var(--circuit-dim);
  color: var(--circuit);
  border-color: var(--circuit);
  text-decoration: none;
}

.hero-grid .hero-actions {
  justify-content: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-diagram {
  background: transparent;
  border: none;
  padding: 12px 0 28px;
  width: 100%;
  max-width: 640px;
}

.hero-diagram-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}

/* Pipeline diagram animation */
.pipeline-trace {
  stroke-dasharray: 6 5;
  animation: trace-flow 1.6s linear infinite;
}

@keyframes trace-flow {
  to { stroke-dashoffset: -22; }
}

.pipeline-node-fill {
  fill: rgba(255, 255, 255, 0.7);
  stroke: var(--circuit);
  stroke-opacity: 0.4;
  backdrop-filter: blur(4px);
}

.pipeline-node-fill.accent {
  fill: rgba(217, 96, 59, 0.14);
  stroke: var(--circuit);
  stroke-opacity: 0.6;
}

.pipeline-pulse {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ============================================
   Media placeholders (photo / video frames)
   Replace the inner <div class="media-placeholder"> with a real
   <img> or <video> element once you have footage/photos.
   ============================================ */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame.ratio-wide {
  aspect-ratio: 21 / 9;
}

.media-frame.ratio-square {
  aspect-ratio: 1 / 1;
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(217, 96, 59, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 96, 59, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.media-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--circuit), transparent);
  box-shadow: 0 0 14px var(--circuit);
  animation: scan-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-sweep {
  0%, 100% { top: 6%; opacity: 0; }
  12% { opacity: 1; }
  50% { top: 92%; opacity: 1; }
  62% { opacity: 0; }
}

.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.media-placeholder svg {
  width: 34px;
  height: 34px;
  color: var(--circuit);
}

/* ============================================
   Cards / Grids
   ============================================ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--hairline);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 100px;
  transition: border-color 0.15s ease;
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  text-decoration: none;
}

/* Consistent accent color across cards in 3-up and 2-up grids */
.grid-3 .card:nth-child(3n+1) { border-top-color: var(--circuit); }
.grid-3 .card:nth-child(3n+2) { border-top-color: var(--circuit); }
.grid-3 .card:nth-child(3n+3) { border-top-color: var(--circuit); }

.grid-2 .card:nth-child(odd) { border-top-color: var(--circuit); }
.grid-2 .card:nth-child(even) { border-top-color: var(--circuit); }

.card-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--circuit);
  letter-spacing: 0.08em;
}

.card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--signal);
  background: var(--signal-dim);
  border-radius: 4px;
  padding: 3px 8px;
  margin-top: 8px;
  align-self: flex-start;
}

.card-tag.spark {
  color: var(--spark);
  background: var(--spark-dim);
}

.card-tag.circuit {
  color: var(--circuit);
  background: var(--circuit-dim);
}

.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--circuit);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--signal);
  text-decoration: none;
}

/* ============================================
   Pricing cards
   ============================================ */
.pricing-card {
  text-align: center;
  align-items: center;
}

.grid-3 .pricing-card:not(.featured) {
  border-top-color: var(--hairline);
}

.pricing-card-wrap {
  position: relative;
}

.pricing-card-wrap .pricing-card.featured {
  height: 100%;
  border: 2px solid var(--circuit);
  border-radius: 0 0 10px 10px;
}

.pricing-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--circuit);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

.pricing-range {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pricing-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--ink);
  margin-top: 6px;
}

.pricing-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
  margin: 12px 0 4px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink);
}

.pricing-features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #1FA463;
}

.pricing-features svg.feature-icon {
  color: var(--ink);
}

.pricing-features li.unavailable {
  color: var(--ink-soft);
}

.pricing-features li.unavailable svg {
  color: #FF6B6B;
}

.pricing-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.pricing-card .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

#pricing {
  scroll-margin-top: 90px;
  --circuit: #2F5DD3;
  --circuit-dim: #E8EDFB;
  --signal: #1E46B0;
}

/* ============================================
   Stats / spec strip
   ============================================ */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.spec-item {
  padding: 24px;
  border-right: 1px solid var(--hairline);
}

.spec-item:last-child {
  border-right: none;
}

.spec-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
}

.spec-item:nth-child(1) .spec-value { color: var(--circuit); }
.spec-item:nth-child(2) .spec-value { color: var(--circuit); }
.spec-item:nth-child(3) .spec-value { color: var(--circuit); }
.spec-item:nth-child(4) .spec-value { color: var(--circuit); }

.spec-strip-2 {
  grid-template-columns: repeat(2, 1fr);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ============================================
   Process list (numbered — real sequence)
   ============================================ */
.process-section-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 64px;
  align-items: center;
}

.process-pipeline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 120px;
}

.process-pipeline-card {
  padding: 20px 20px 14px;
  margin-right: -48px;
}

.pipeline-node-1,
.pipeline-node-2,
.pipeline-node-3 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transform-box: fill-box;
}

.process-pipeline-card.is-visible .pipeline-node-1 { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.process-pipeline-card.is-visible .pipeline-node-2 { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.process-pipeline-card.is-visible .pipeline-node-3 { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.process-list {
  display: flex;
  flex-direction: column;
}

.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

.process-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--circuit);
  display: flex;
  align-items: center;
  gap: 9px;
}

.process-num::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--circuit);
  flex-shrink: 0;
}

.process-item:nth-child(2) .process-num::before { background: var(--circuit); }
.process-item:nth-child(3) .process-num::before { background: var(--circuit); }
.process-item:nth-child(4) .process-num::before { background: var(--circuit); }

/* ============================================
   Industries served (looping marquee)
   ============================================ */
.industries-heading {
  text-align: center;
  margin: 0 auto 32px;
}

.text-circuit {
  color: var(--circuit);
}

.industries-marquee {
  overflow: hidden;
  padding: 8px 0 4px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.industries-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: industries-scroll 32s linear infinite;
}

.industry-card {
  flex-shrink: 0;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.industry-card-img {
  width: 100%;
  height: 200px;
  background: var(--circuit-dim);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.industry-card-label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--ink);
}

@keyframes industries-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, #0F2418 0%, #1B3625 100%);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: #FFFFFF;
}

.cta-band p {
  color: #B8AFA6;
}

.cta-band .btn-primary {
  background-color: var(--signal);
  border-color: var(--signal);
  color: #0D1117;
}

.cta-band .btn-primary:hover {
  background-color: #3FBE70;
}

.cta-band .btn-secondary {
  color: #FFFFFF;
  border-color: #355544;
}

.cta-band .btn-secondary:hover {
  border-color: #FFFFFF;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--circuit);
}

.footer-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 320px;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Forms (Contact page)
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--circuit);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-top: 16px;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  color: #4ADE80;
}

.form-status.error {
  color: #FF6B6B;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 28px;
}

.contact-card h3 {
  margin-bottom: 6px;
}

.contact-card .lede {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-row-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--circuit);
}

.contact-row-text {
  font-size: 0.92rem;
}

.contact-row-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

/* ============================================
   Page hero (non-home pages)
   ============================================ */
.page-hero {
  padding: 56px 0 48px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.page-hero .lede {
  margin-top: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid var(--hairline);
    transform: translateY(-110%);
    transition: transform 0.2s ease;
    height: calc(100vh - 65px);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    color: var(--ink-soft);
  }

  .nav-links a:hover {
    color: var(--ink);
    border-bottom-color: var(--hairline);
  }

  .nav-links a.active {
    color: var(--circuit);
    border-bottom-color: var(--circuit);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span {
    background: transparent;
  }

  .nav-toggle.open span::before {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.open span::after {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: 100%;
    padding: 10px 0 0;
  }

  .dropdown-panel {
    min-width: 0;
    width: 100%;
    padding: 0 0 0 16px;
    border: none;
    border-left: 2px solid var(--hairline);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .nav-caret {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-item {
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  .spec-item:nth-child(2n) {
    border-right: none;
  }

  .spec-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .spec-strip {
    grid-template-columns: 1fr;
  }

  .spec-item {
    border-right: none;
  }

  .spec-item:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .process-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-pipeline {
    position: static;
    order: -1;
  }
}
