/* ============================================================
   EDGEWATER MEDIA — Intelligent Digital Systems
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=DM+Mono:wght@400;500&display=swap');

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.12; }
p, li, figcaption { text-wrap: pretty; }

::selection { background: color-mix(in oklab, var(--color-cyan) 30%, transparent); color: var(--color-text); }

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

@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;
  }
}

button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role='button'], input, textarea, select {
  transition: color 180ms cubic-bezier(.16,1,.3,1), background 180ms cubic-bezier(.16,1,.3,1),
    border-color 180ms cubic-bezier(.16,1,.3,1), box-shadow 180ms cubic-bezier(.16,1,.3,1),
    transform 180ms cubic-bezier(.16,1,.3,1), opacity 180ms cubic-bezier(.16,1,.3,1);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ---------- Design tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.1rem + 3.6vw, 4.5rem);
  --text-hero: clamp(2.5rem, 1.1rem + 3.6vw, 4.75rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand color system — Edgewater Media */
  --color-bg: #070812;
  --color-surface: #0c0e1c;
  --color-surface-2: #10132424;
  --color-surface-2: #101324;
  --color-surface-offset: #141833;
  --color-border: #262b48;
  --color-divider: #1b1f38;

  --color-text: #f5f4fb;
  --color-text-muted: #aaaac1;
  --color-text-faint: #6d6f8c;
  --color-text-inverse: #070812;

  --color-cyan: #69dbff;
  --color-violet: #a875ff;
  --color-pink: #ff75bf;

  --color-primary: var(--color-cyan);
  --color-primary-hover: #8fe4ff;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 48px rgba(105,219,255,0.18);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-body: 'Manrope', -apple-system, 'Helvetica Neue', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Menlo, monospace;

  --gradient-brand: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-violet) 55%, var(--color-pink) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(105,219,255,0.14), rgba(168,117,255,0.14) 55%, rgba(255,117,191,0.14) 100%);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(105,219,255,0.8);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.btn-primary {
  color: var(--color-text-inverse);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(105,219,255,0.32); }

.btn-ghost {
  color: var(--color-text);
  background: rgba(245,244,251,0.04);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-cyan); background: rgba(105,219,255,0.06); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,18,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 300ms cubic-bezier(.16,1,.3,1), box-shadow 300ms cubic-bezier(.16,1,.3,1);
}
.header--hidden { transform: translateY(-100%); }
.header--scrolled { box-shadow: var(--shadow-sm); }

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.logo-word strong { font-weight: 800; color: var(--color-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 0; height: 1px;
  background: var(--gradient-brand);
  transition: width 220ms cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(var(--space-16), 10vw, var(--space-24));
  padding-bottom: clamp(var(--space-16), 10vw, var(--space-24));
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.92;
}
.constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .constellation-canvas { display: none; }
}

.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 30%, rgba(7,8,18,0.92) 45%, rgba(7,8,18,0.55) 60%, rgba(7,8,18,0.18) 78%, rgba(7,8,18,0.05) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--color-bg) 0%, rgba(7,8,18,0.35) 22%, rgba(7,8,18,0) 42%),
              radial-gradient(ellipse 620px 420px at 8% 92%, rgba(7,8,18,0.92) 0%, rgba(7,8,18,0.4) 55%, rgba(7,8,18,0) 78%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 660px) 1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}

.hero-copy { display: flex; flex-direction: column; gap: var(--space-6); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: #d9c9ff;
  background: linear-gradient(120deg, #d9c9ff, var(--color-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.hero-proof li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}
.hero-proof li svg { width: 16px; height: 16px; color: var(--color-cyan); flex-shrink: 0; }

/* Floating live-system dashboard */
.hero-visual { position: relative; min-height: 420px; }

.dashboard {
  position: absolute;
  right: clamp(0px, 2vw, 24px);
  bottom: clamp(8px, 4vw, 40px);
  width: min(300px, 88vw);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(16,19,36,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(168,117,255,0.14);
  animation: float 7s ease-in-out infinite;
}

.dashboard--floating {
  width: auto;
  max-width: 92vw;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.dashboard--floating .dashboard-head {
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: 0;
}
.dashboard--floating .dashboard-head span,
.dashboard--floating .dashboard-metric .label,
.dashboard--floating .dashboard-metric .value {
  text-shadow: 0 2px 14px rgba(7,8,18,0.95), 0 0 28px rgba(7,8,18,0.85);
}
.dashboard--floating .dashboard-metric .delta {
  background: rgba(7,8,18,0.55);
  box-shadow: 0 2px 14px rgba(7,8,18,0.6);
}
.dashboard-head span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}
.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #7cf7b3;
  letter-spacing: 0.06em;
}
.dashboard-status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #7cf7b3;
  box-shadow: 0 0 8px #7cf7b3;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.dashboard-globe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.dashboard-globe canvas {
  width: 190px;
  height: 190px;
  display: block;
}
.dashboard--floating .dashboard-globe {
  margin-bottom: 0;
}
.dashboard--floating .dashboard-globe canvas {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 0 46px rgba(105,219,255,0.16)) drop-shadow(0 0 70px rgba(168,117,255,0.14));
}
.globe-caption {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.dashboard-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.dashboard--floating .dashboard-metric {
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: 0;
}
.dashboard-metric .label { font-size: var(--text-sm); color: var(--color-text-muted); }
.dashboard-metric .value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}
.dashboard-metric .delta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #7cf7b3;
  background: rgba(124,247,179,0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.dashboard-flow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-text-faint);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dashboard-flow .node { color: var(--color-cyan); }
.dashboard-flow .arrow { color: var(--color-text-faint); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
  overflow: hidden;
  padding-block: var(--space-4);
}
.ticker-track {
  display: flex;
  gap: var(--space-12);
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.ticker-track span::before { content: '◆'; color: var(--color-violet); font-size: 0.6em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }

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

.service-card {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-surface-offset) 100%);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.16,1,.3,1), border-color 260ms;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(105,219,255,0.35); }
.service-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  opacity: 0;
  z-index: -1;
  transition: opacity 260ms;
}
.service-card .card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand-soft);
  border: 1px solid var(--color-border);
  color: var(--color-cyan);
}
.service-card .card-icon svg { width: 24px; height: 24px; }

.service-card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-violet);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.service-card p { color: var(--color-text-muted); font-size: var(--text-base); max-width: 32ch; }

/* ============================================================
   SYSTEM / DIAGRAM
   ============================================================ */
.system { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); background: var(--color-surface); position: relative; }
.system::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(168,117,255,0.10), transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(105,219,255,0.08), transparent 55%);
  pointer-events: none;
}

.system .wrap { position: relative; z-index: 1; }

.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  gap: var(--space-16);
  align-items: center;
}

.system-copy .section-title { margin-bottom: var(--space-4); }
.system-copy p { color: var(--color-text-muted); max-width: 40ch; margin-bottom: var(--space-6); }

.diagram-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
}
.diagram-wrap svg { width: 100%; height: 100%; overflow: visible; }
.diagram-line { stroke: url(#lineGrad); stroke-width: 1.4; fill: none; opacity: 0.6; stroke-dasharray: 4 5; animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }

.diagram-node {
  fill: var(--color-surface-offset);
  stroke: var(--color-border);
  stroke-width: 1;
}
.diagram-hub {
  fill: var(--color-bg);
  stroke: var(--color-cyan);
  stroke-width: 1.5;
}
.diagram-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--color-text-muted);
  text-anchor: middle;
}
.diagram-hub-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  fill: var(--color-text);
  text-anchor: middle;
}
.diagram-hub-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--color-cyan);
  text-anchor: middle;
  letter-spacing: 0.08em;
}
.diagram-dot { fill: var(--color-pink); animation: pulse-dot 2.2s ease-in-out infinite; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: clamp(var(--space-12), 6vw, var(--space-16));
}
.process-step {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: var(--space-4);
}
.process-step h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.process-step p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 26ch; }

/* ============================================================
   GRADIENT STATEMENT BAND
   ============================================================ */
.statement {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: linear-gradient(120deg, #0d1230 0%, #1a1240 45%, #2a1533 100%);
  position: relative;
  overflow: hidden;
}
.statement::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(105,219,255,0.18), transparent 55%),
              radial-gradient(circle at 85% 75%, rgba(255,117,191,0.16), transparent 55%);
}
.statement .wrap { position: relative; z-index: 1; text-align: center; }
.statement p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-inline: auto;
  color: var(--color-text);
  line-height: 1.25;
}
.statement p em {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--space-16);
}
.contact-info p { color: var(--color-text-muted); max-width: 34ch; margin-top: var(--space-4); }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-cyan);
  border-bottom: 1px solid transparent;
}
.contact-email:hover { border-color: var(--color-cyan); }

.contact-meta {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-meta li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-meta li strong { color: var(--color-text); font-weight: 600; min-width: 8ch; }

.form-card {
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-offset));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-faint); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(7,8,18,0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(105,219,255,0.12);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select { appearance: none; }

.form-submit {
  margin-top: var(--space-6);
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  min-height: 1.4em;
}
.form-status[data-state="success"] { color: #7cf7b3; }
.form-status[data-state="error"] { color: var(--color-pink); }
.form-status[data-state="loading"] { color: var(--color-text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}
.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-faint); font-size: var(--text-sm); }
.footer-brand svg { width: 20px; height: 20px; }
.footer-links { display: flex; gap: var(--space-6); }
.footer-links a { font-size: var(--text-sm); color: var(--color-text-faint); }
.footer-links a:hover { color: var(--color-text); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .dashboard { position: static; margin-inline: auto; animation: none; }
  .dashboard--floating .dashboard-globe canvas { width: min(240px, 68vw); height: min(240px, 68vw); }
  .system-grid { grid-template-columns: 1fr; }
  .diagram-wrap { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta { gap: var(--space-3); }
  .nav-cta .btn-primary { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); }
}

@media (max-width: 400px) {
  .logo { font-size: var(--text-sm); gap: var(--space-2); }
  .logo svg { width: 24px; height: 24px; }
  .nav-cta .btn-primary span { display: none; }
  .hero { min-height: auto; padding-top: var(--space-24); }
  .hero-title { font-size: clamp(2.25rem, 8vw, 3.25rem); }
  .form-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-bg::before { background: linear-gradient(180deg, rgba(7,8,18,0.55) 0%, rgba(7,8,18,0.88) 60%, var(--color-bg) 100%); }
  .hero-bg img { opacity: 0.5; }
}
