/* ─── ZENLE Design System v3 ─── */
:root {
  --bg-0: #030508;
  --bg-1: #070c14;
  --bg-2: #0c1420;
  --bg-3: #111c2d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --cyan: #38e8ff;
  --blue: #0a7ab8;
  --green: #2ee06a;
  --grad: linear-gradient(135deg, #38e8ff 0%, #1a9fd4 45%, #0a7ab8 100%);
  --grad-soft: linear-gradient(135deg, rgba(56, 232, 255, 0.12), rgba(10, 122, 184, 0.08));
  --text-0: #f4f7fb;
  --text-1: #9aa8bc;
  --text-2: #5f6f84;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --header-h: 68px;
  --max-w: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 60px rgba(56, 232, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.65;
  overflow-x: clip;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(56, 232, 255, 0.25); color: #fff; }

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--cyan); }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

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

/* ─── Scroll Progress ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 12px rgba(56, 232, 255, 0.5);
}

/* ─── Header ─── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.logo img { height: 30px; width: auto; }
.logo-footer img { height: 26px; }

.nav { display: flex; gap: 4px; }

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-1);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-0);
  background: var(--surface);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Buttons ─── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad);
  color: #021018;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px rgba(56, 232, 255, 0.18);
}

.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::before { left: 130%; }

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px rgba(56, 232, 255, 0.28);
  color: #021018;
}

.btn-ghost {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(56, 232, 255, 0.4);
  background: rgba(56, 232, 255, 0.05);
  color: var(--cyan);
}

.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: 12px; }
.btn-block { width: 100%; }

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

.mobile-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-0);
  position: relative;
  transition: background 0.25s;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--text-0);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

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

.mobile-toggle.active span { background: transparent; }
.mobile-toggle.active span::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(10, 122, 184, 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(56, 232, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(6, 58, 94, 0.4), transparent),
    var(--bg-0);
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
}

.hero-noise {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-glow {
  position: absolute; width: 500px; height: 500px;
  top: 10%; right: -5%;
  background: radial-gradient(circle, rgba(56, 232, 255, 0.12), transparent 70%);
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.hero-layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(56, 232, 255, 0.07);
  border: 1px solid rgba(56, 232, 255, 0.18);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  color: var(--cyan);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

.eyebrow-short { display: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.038em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.text-gradient {
  background: linear-gradient(120deg, #38e8ff, #1a9fd4 40%, #7dd8ff 70%, #38e8ff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 220% center; }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-1);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }

.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 28, 45, 0.9), rgba(7, 12, 20, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow), 0 24px 64px rgba(0,0,0,0.5);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,232,255,0.5), transparent);
}

.hero-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-1);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 224, 106, 0.8);
  animation: pulse 2.4s ease infinite;
  flex-shrink: 0;
}

.status-meta {
  margin-left: auto;
  color: var(--text-2);
  letter-spacing: 0.08em;
}

.hero-card img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mini-stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, background 0.3s;
}

.mini-stat:hover {
  border-color: rgba(56, 232, 255, 0.25);
  background: var(--surface-hover);
}

.mini-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.mini-stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Stats Bar ─── */
.stats-bar {
  position: relative; z-index: 2;
  margin-top: -40px;
  padding-bottom: 96px;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.stat-cell {
  padding: 28px 20px;
  text-align: center;
  background: rgba(7, 12, 20, 0.85);
  transition: background 0.3s;
}

.stat-cell:hover { background: rgba(12, 20, 32, 0.95); }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-name {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ─── Sections ─── */
.section { padding: 96px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .section-lead { margin-inline: auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.section-head.center .section-tag::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-1);
  line-height: 1.75;
  max-width: 560px;
}

/* ─── Services Bento ─── */
.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.svc-card {
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}

/* Mouse-tracking spotlight */
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 232, 255, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.svc-card:hover {
  border-color: rgba(56, 232, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.svc-card:hover::after { opacity: 1; }

.svc-card:nth-child(1) { grid-column: span 6; }
.svc-card:nth-child(2) { grid-column: span 6; }
.svc-card:nth-child(3) { grid-column: span 4; }
.svc-card:nth-child(4) { grid-column: span 8; }

.svc-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56, 232, 255, 0.08);
  border: 1px solid rgba(56, 232, 255, 0.15);
  border-radius: 14px;
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease);
}

.svc-card:hover .svc-icon { transform: scale(1.06) rotate(-3deg); }

.svc-icon img { width: 28px; height: 28px; }

.svc-card h3 {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
}

.svc-card p {
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.7;
  position: relative;
}

.svc-card .svc-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
  position: relative;
}

.svc-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-1);
  letter-spacing: 0.04em;
}

/* ─── Feature Rows ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-row + .feature-row { margin-top: 96px; }

.feature-row.flip .feature-media { order: 2; }
.feature-row.flip .feature-copy { order: 1; }

.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.feature-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), var(--shadow-glow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.feature-media-glow {
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56,232,255,0.15), transparent 50%);
  pointer-events: none;
}

.feature-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 18px;
  text-wrap: balance;
}

.feature-copy p {
  color: var(--text-1);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  border-radius: 100px;
  background: rgba(56, 232, 255, 0.06);
  border: 1px solid rgba(56, 232, 255, 0.15);
  color: var(--cyan);
  letter-spacing: 0.02em;
}

/* ─── Solutions ─── */
.solutions-wrap {
  background: var(--bg-1);
  border-block: 1px solid var(--border);
}

.solution-tabs {
  display: flex; gap: 6px;
  margin-bottom: 48px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  margin-inline: auto;
}

.sol-tab {
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-1);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.sol-tab:hover { color: var(--text-0); }

.sol-tab.active {
  background: var(--bg-3);
  color: var(--cyan);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sol-panel { display: none; }
.sol-panel.active { display: block; animation: rise 0.45s var(--ease); }

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

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sol-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sol-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

.sol-point {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.sol-point:hover {
  border-color: rgba(56, 232, 255, 0.2);
  transform: translateX(4px);
}

.sol-point-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56, 232, 255, 0.1);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
}

.sol-point strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.sol-point span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-1);
  line-height: 1.5;
}

/* ─── Support ─── */
.support-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.support-item {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.support-item::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 232, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.support-item:hover {
  border-color: rgba(56, 232, 255, 0.2);
  transform: translateY(-2px);
}

.support-item:hover::after { opacity: 1; }

.support-item svg {
  width: 28px; height: 28px;
  color: var(--cyan);
  margin-bottom: 20px;
}

.support-item h4 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.support-item p {
  font-size: 0.875rem;
  color: var(--text-1);
  line-height: 1.7;
}

/* ─── CTA ─── */
.cta-band {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
}

.cta-band-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(10, 122, 184, 0.25), transparent),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.cta-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.cta-inner p {
  color: var(--text-1);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.75;
}

.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-details h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  line-height: 1.2;
}

.info-row {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56, 232, 255, 0.07);
  border: 1px solid rgba(56, 232, 255, 0.12);
  border-radius: 12px;
  color: var(--cyan);
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-0);
}

.contact-form {
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 0.9rem;
  color: var(--text-0);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-2); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(56, 232, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 232, 255, 0.08);
}

.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); }

/* ─── Footer ─── */
.footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-1);
  line-height: 1.75;
  max-width: 280px;
}

.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  padding: 7px 14px;
  background: rgba(46, 224, 106, 0.06);
  border: 1px solid rgba(46, 224, 106, 0.18);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  color: var(--text-0);
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-1);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
}

/* ─── Back to Top ─── */
.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease), border-color 0.3s, color 0.3s;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  border-color: rgba(56, 232, 255, 0.4);
  color: var(--cyan);
}

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ─── Mobile Nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  padding: 24px;
  background: rgba(3, 5, 8, 0.97);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 100%; width: 100%; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .services-bento { grid-template-columns: 1fr; }
  .svc-card:nth-child(n) { grid-column: span 1; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-row + .feature-row { margin-top: 64px; }
  .feature-row.flip .feature-media,
  .feature-row.flip .feature-copy { order: unset; }
  .sol-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .container { width: min(100% - 32px, var(--max-w)); }

  /* Header: logo + menu only */
  .nav,
  .header-actions { display: none; }
  .mobile-toggle { display: flex; flex-shrink: 0; }
  .header-inner { gap: 12px; }
  .logo { flex-shrink: 0; }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 28px) 0 48px;
  }

  .hero-glow { display: none; }

  .hero-content { max-width: 100%; }

  .eyebrow {
    max-width: 100%;
    font-size: 0.66rem;
    padding: 5px 12px 5px 8px;
    margin-bottom: 20px;
  }

  .eyebrow-full { display: none; }
  .eyebrow-short { display: inline; }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .hero-card-head {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.65rem;
    margin-bottom: 12px;
  }

  .hero-card-head > span:nth-child(2) {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
  }

  .status-meta { margin-left: auto; }

  .hero-card-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .mini-stat { padding: 10px 12px; }
  .mini-stat strong { font-size: 1.05rem; }
  .mini-stat span { font-size: 0.62rem; letter-spacing: 0.05em; }

  /* Hide duplicate stats bar — hero card already shows stats */
  .stats-bar { display: none; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-lead { font-size: 0.95rem; }

  .svc-card { padding: 22px; }
  .svc-card h3 { font-size: 1.1rem; }
  .svc-card p { font-size: 0.875rem; }

  .feature-copy h3 { font-size: 1.4rem; }
  .feature-copy p { font-size: 0.925rem; }
  .feature-media img { aspect-ratio: 16/10; }

  /* Solution tabs: horizontal scroll */
  .solution-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 32px;
    padding-bottom: 4px;
  }

  .solution-tabs::-webkit-scrollbar { display: none; }

  .sol-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  .sol-title { font-size: 1.25rem; }
  .sol-point { padding: 14px; }
  .sol-point:hover { transform: none; }

  .support-row { grid-template-columns: 1fr; gap: 14px; }
  .support-item { padding: 24px 20px; }

  .cta-band { padding: 56px 0; }
  .cta-inner p { font-size: 0.95rem; margin-bottom: 24px; }
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-btns .btn { width: 100%; }

  .contact-details h3 { font-size: 1.4rem; margin-bottom: 24px; }
  .contact-form { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }

  .footer { padding: 48px 0 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .back-top { right: 16px; bottom: 16px; }

  /* Ensure content is visible on mobile even if observer is slow */
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 390px) {
  .container { width: min(100% - 24px, var(--max-w)); }

  .hero h1 { font-size: 1.75rem; }

  .hero-card-head .status-meta { display: none; }

  .hero-card-stats { grid-template-columns: 1fr 1fr; }

  .mini-stat span {
    font-size: 0.58rem;
    word-break: break-word;
  }

  .chip { font-size: 0.68rem; padding: 6px 10px; }

  .section-tag::before,
  .section-head.center .section-tag::after { width: 16px; }
}
