/* ═══════════════════════════════════════════════════════════════
   DATANODE — stylesheet v2
   Layout: container-based, fully responsive
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --c1: #00ffb4;
  --c2: #0066ff;
  --c3: #7c3aff;
  --bg:  #05050d;
  --bg2: #09091a;
  --bg3: #0d0d22;
  --border: rgba(255,255,255,0.08);
  --muted: rgba(255,255,255,0.42);
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --display: 'Syne', sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-py: clamp(64px, 8vw, 104px);
  --radius: 8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: #dde0ee;
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── CANVAS ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--c1);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* ── HEADINGS ── */
h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}

h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

/* ── BODY TEXT ── */
.body-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.body-text strong { color: rgba(255,255,255,0.78); font-weight: 500; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s, border-color .18s, color .18s;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(90deg, var(--c1), var(--c2));
  color: #05050d;
  font-weight: 700;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-100%);
  animation: shimmer 3.5s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.16);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

.btn--large { padding: 15px 36px; font-size: 14px; }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--c1);
  border: 1px solid rgba(0,255,180,0.22);
  padding: 6px 14px;
  border-radius: 3px;
  background: rgba(0,255,180,0.04);
  margin-bottom: 28px;
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 6px var(--c1);
  animation: blink 1.8s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.15} }

/* ═══════════════════════════════════
   HEADER / NAV
═══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,13,.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}
.logo-text em { color: var(--c1); font-style: normal; }

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .18s;
}
.main-nav a:hover { color: #fff; }
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--c1) !important;
  border: 1px solid rgba(0,255,180,0.4);
  padding: 7px 16px;
  border-radius: 3px;
  transition: background .18s, color .18s !important;
}
.nav-cta:hover { background: var(--c1); color: #05050d !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: transform .28s, opacity .28s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 130px) clamp(64px, 8vw, 96px);
  min-height: clamp(520px, 90vh, 900px);
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.hero-glow--right {
  top: -150px; right: -100px;
  width: 660px; height: 660px;
  background: radial-gradient(circle, rgba(0,102,255,.14) 0%, rgba(124,58,255,.06) 50%, transparent 70%);
}
.hero-glow--left {
  bottom: -100px; left: -80px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(0,255,180,.05) 0%, transparent 65%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,180,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,180,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 35%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 35%, black, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 900;
  letter-spacing: clamp(-2px, -0.4vw, -3.5px);
  line-height: 1.0;
  color: #fff;
  margin-bottom: 24px;
}

.hero-title--grad {
  background: linear-gradient(100deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 36px;
}
.stat + .stat { padding-left: 36px; }

.stat-val {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
}
.stat-val em { color: var(--c1); font-style: normal; }
.stat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   TICKER
═══════════════════════════════════ */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,255,180,.012);
  overflow: hidden;
  padding-block: 12px;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(0,255,180,.45);
}
.tick-item b { color: var(--c1); font-size: 8px; }

/* ═══════════════════════════════════
   SECTIONS — COMMON
═══════════════════════════════════ */
.section {
  padding-block: var(--section-py);
  position: relative;
  z-index: 1;
}

.section--dark {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-header-right {
  max-width: 340px;
  text-align: right;
  margin-bottom: 0;
}

/* ═══════════════════════════════════
   TERMINAL SECTION
═══════════════════════════════════ */
.section--term { padding-block: var(--section-py); }

.term-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.term-text h2 { margin-bottom: 16px; }

.mini-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.mstat-val {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
  display: block;
}
.mstat-val em { color: var(--c1); font-style: normal; }
.mstat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* Terminal widget */
.terminal {
  background: var(--bg2);
  border: 1px solid rgba(0,255,180,.15);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #09091e;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-title { margin-left: 8px; font-size: 11px; color: rgba(255,255,255,.28); letter-spacing: 1px; }

.terminal-body { padding: 20px 18px; line-height: 1.95; }

.t-row { display: flex; gap: 8px; }
.t-prompt { color: var(--c1); }
.t-cmd { color: rgba(255,255,255,.8); }
.t-out { padding-left: 16px; color: rgba(255,255,255,.32); }
.t-dim { color: rgba(255,255,255,.18); }
.t-ok  { color: #00ff88; }
.t-live{ color: var(--c1); }
.t-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--c1);
  animation: blink .9s infinite;
  vertical-align: middle;
}

/* ═══════════════════════════════════
   SERVICES
═══════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.service-card {
  background: var(--bg2);
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.5vw, 32px) 48px;
  position: relative;
  transition: background .2s;
  cursor: default;
}
.service-card:not(:last-child) { border-right: 1px solid var(--border); }
.service-card:hover { background: var(--bg3); }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.service-card:hover::after { transform: scaleX(1); }

.svc-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(0,255,180,.35);
  margin-bottom: 20px;
  display: block;
}

.svc-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(0,255,180,.18);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,255,180,.03);
  margin-bottom: 18px;
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

.svc-arrow {
  position: absolute;
  bottom: 22px; right: 24px;
  font-size: 16px;
  color: rgba(0,255,180,.25);
  transition: color .2s, transform .2s;
}
.service-card:hover .svc-arrow { color: var(--c1); transform: translate(3px,-3px); }

/* ═══════════════════════════════════
   AI SECTION
═══════════════════════════════════ */
.ai-beam {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(180deg,
    transparent, rgba(0,255,180,.16), rgba(0,102,255,.12), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-text h2 { margin-bottom: 16px; }
.ai-text .body-text { max-width: 440px; }

.ai-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 28px;
}
.ai-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.ai-list .arr {
  color: var(--c1);
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* Pipeline nodes */
.ai-pipeline { display: flex; flex-direction: column; }

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: rgba(6,6,14,.85);
  transition: border-color .2s, background .2s;
}
.pipeline-node:first-of-type { border-radius: 8px 8px 0 0; }
.pipeline-node:last-of-type  { border-radius: 0 0 8px 8px; }
.pipeline-node:hover { border-color: rgba(0,255,180,.2); background: #08081a; }

.pipeline-conn {
  width: 2px; height: 12px;
  margin-left: 29px;
  background: linear-gradient(var(--c1), var(--c2));
}

.pnode-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.pnode-dot--c { background: var(--c1); color: var(--c1); }
.pnode-dot--b { background: var(--c2); color: var(--c2); }
.pnode-dot--p { background: var(--c3); color: var(--c3); }
.pnode-dot--g { background: #00ff88; color: #00ff88; }

.pnode-body { flex: 1; }
.pnode-label { display: block; font-size: 13px; font-weight: 500; color: #fff; }
.pnode-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-family: var(--mono);
  margin-top: 2px;
}

.pnode-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.pnode-badge--c { color: var(--c1); border: 1px solid rgba(0,255,180,.25); }
.pnode-badge--b { color: var(--c2); border: 1px solid rgba(0,102,255,.25); }
.pnode-badge--p { color: var(--c3); border: 1px solid rgba(124,58,255,.25); }
.pnode-badge--g { color: #00ff88; border: 1px solid rgba(0,255,136,.25); }

/* ═══════════════════════════════════
   TECH GRID
═══════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 44px;
}

.tech-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transition: border-color .2s, background .2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,180,.4), transparent);
  opacity: 0;
  transition: opacity .28s;
}
.tech-card:hover { border-color: rgba(0,255,180,.25); background: var(--bg3); }
.tech-card:hover::before { opacity: 1; }

.tech-logo { width: 40px; height: 40px; }
.tech-name {
  font-size: 11px;
  color: rgba(255,255,255,.42);
  letter-spacing: .3px;
  transition: color .2s;
  text-align: center;
}
.tech-card:hover .tech-name { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════
   ABOUT
═══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-text h2 { margin-bottom: 18px; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(0,255,180,.75);
  border: 1px solid rgba(0,255,180,.18);
  background: rgba(0,255,180,.03);
  padding: 5px 13px;
  border-radius: 2px;
}

/* Info card */
.info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  font-family: var(--mono);
}
.info-card-head {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(0,255,180,.4);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.info-list { list-style: none; }
.info-row {
  padding-block: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.info-row:last-child { border-bottom: none; }
.info-row dt { font-size: 10px; color: rgba(255,255,255,.22); letter-spacing: 1px; }
.info-row dd { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.5; }
.info-link { color: var(--c1); text-decoration: none; }
.info-link:hover { text-decoration: underline; }

.info-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #00ff88;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  animation: blink 2.2s infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   CTA SECTION
═══════════════════════════════════ */
.cta-section { text-align: center; }

.cta-box {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  border: 1px solid rgba(0,255,180,.18);
  background: var(--bg2);
  border-radius: 12px;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse,
    rgba(0,255,180,.09) 0%,
    rgba(0,102,255,.06) 40%,
    transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { margin: 14px 0 14px; }
.cta-inner .body-text { max-width: 400px; margin-inline: auto; margin-bottom: 32px; }

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cta-contact { display: flex; flex-direction: column; gap: 4px; }
.cta-contact-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(0,255,180,.45);
  text-transform: uppercase;
}
.cta-contact span:not(.cta-contact-lbl) { font-size: 13px; color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.2);
  letter-spacing: .5px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.2);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .18s;
}
.footer-links a:hover { color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════
   FADE-IN ON SCROLL
═══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════ */

/* ─── Tablet: ≤ 960px ─── */
@media (max-width: 960px) {
  :root { --section-py: clamp(52px, 7vw, 80px); }

  /* Nav */
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5,5,13,.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    margin-left: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 13px var(--gutter);
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .main-nav .nav-cta {
    margin: 12px var(--gutter) 0;
    width: auto;
    display: inline-block;
  }

  /* Terminal section */
  .term-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Services: 1 column */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }

  /* AI */
  .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .ai-text .body-text { max-width: 100%; }

  /* Tech: 3 columns */
  .tech-grid { grid-template-columns: repeat(3, 1fr); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Section header */
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-header-right { text-align: left; max-width: 100%; }
}

/* ─── Mobile: ≤ 600px ─── */
@media (max-width: 600px) {
  :root { --section-py: 52px; }

  .hero-title { letter-spacing: -2px; }

  .hero-stats {
    gap: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }
  .stat { padding: 0; }
  .stat + .stat { padding-left: 0; }
  .stat-sep { display: none; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .cta-box { padding: 36px 20px; }
  .cta-contacts { gap: 20px; flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .mini-stats { gap: 24px; }

  .services-grid { border-radius: 8px; }
  .service-card { padding: 28px 20px 44px; }

  .btn--large { padding: 13px 24px; font-size: 13px; }
}

/* ─── Very small: ≤ 380px ─── */
@media (max-width: 380px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
