/* ====================================================
   XDD Cloud — Landing page styles
   Dark, local-cloud aesthetic: charcoal/navy + cyan/violet
   ==================================================== */

:root {
  /* Surfaces */
  --bg:        #07090f;
  --bg-soft:   #0a0e18;
  --bg-deep:   #050810;
  --surface:   rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --border:    rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* Text */
  --text:        #e6ebf5;
  --text-soft:   #8a93a8;
  --text-mute:   #5b657c;

  /* Accents */
  --cyan:    #22d3ee;
  --cyan-2:  #67e8f9;
  --violet:  #818cf8;
  --violet-2:#a5b4fc;
  --indigo:  #6366f1;
  --magenta: #d946ef;

  --grad-1: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --grad-2: linear-gradient(135deg, #67e8f9 0%, #a5b4fc 100%);
  --grad-camera: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #d946ef 100%);

  --ring-cyan: rgba(34,211,238,0.18);
  --ring-violet: rgba(129,140,248,0.20);
  --glow-cyan: 0 0 0 1px rgba(34,211,238,0.25), 0 8px 30px -8px rgba(34,211,238,0.35);

  /* Layout */
  --maxw: 1240px;
  --gut:  clamp(20px, 4vw, 40px);
  /* Plush radii (baked in) */
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(129,140,248,0.30); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* Wrap */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ===================== HEADER ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,9,15,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(129,140,248,0.10));
  border: 1px solid var(--border-strong);
}
.brand-word {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-word-soft {
  margin-left: 4px;
  font-weight: 500;
  color: var(--text-soft);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.primary-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  width: 38px; height: 38px;
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px var(--gut) 22px;
  border-top: 1px solid var(--border);
  background: rgba(7,9,15,0.96);
}
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.btn { border-bottom: 0; margin-top: 8px; text-align: center; }
.mobile-nav.open { display: flex; }

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }

.btn-primary {
  background: var(--grad-1);
  color: #0b1220;
  box-shadow: 0 6px 24px -8px rgba(34,211,238,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(34,211,238,0.65), inset 0 1px 0 rgba(255,255,255,0.30);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.22);
}

/* ===================== HERO ===================== */

.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-glow-cyan {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(34,211,238,0.40), transparent 60%);
  top: -160px; right: -120px;
}
.hero-glow-violet {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(129,140,248,0.35), transparent 60%);
  bottom: -180px; left: -140px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.eyebrow-static { background: rgba(255,255,255,0.03); }
.eyebrow-magenta .eyebrow-dot {
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: pretty;
}
.grad-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: 17.5px;
  color: var(--text-soft);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}
.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip-bullet {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(129,140,248,0.5);
}

/* Hero visualization */
.hero-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 420px;
}
.viz-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(99,102,241,0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border: 1px solid var(--border);
  overflow: hidden;
}
.viz-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.viz-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--border-strong);
}
.viz-corner-tl { top: 12px;    left: 12px;    border-right: 0; border-bottom: 0; }
.viz-corner-tr { top: 12px;    right: 12px;   border-left:  0; border-bottom: 0; }
.viz-corner-bl { bottom: 12px; left: 12px;    border-right: 0; border-top:    0; }
.viz-corner-br { bottom: 12px; right: 12px;   border-left:  0; border-top:    0; }

.viz-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.viz-label-tl { top: 16px; left: 36px; }
.viz-label-br { bottom: 16px; right: 36px; }

.viz-rings { animation: ringPulse 6s ease-in-out infinite; transform-origin: center; }
@keyframes ringPulse {
  0%, 100% { opacity: 0.30; }
  50%      { opacity: 0.55; }
}

.viz-core circle:first-child {
  animation: corePulse 3s ease-in-out infinite;
  transform-origin: 260px 260px;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.85; }
}

.viz-nodes circle { filter: drop-shadow(0 0 6px rgba(34,211,238,0.4)); }

/* Floating chips */
.viz-chip {
  position: absolute;
  background: rgba(12,18,32,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text);
  min-width: 168px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7);
}
.viz-chip-1 { top: 18%; left: -14px; animation: float 6s ease-in-out infinite; }
.viz-chip-2 { bottom: 14%; right: -10px; animation: float 7s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.viz-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.viz-chip-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.viz-chip-meta {
  margin-top: 4px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10.5px;
  gap: 6px;
}
.viz-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.viz-chip-dot-ok   { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.viz-chip-dot-info { background: var(--cyan); box-shadow: 0 0 8px rgba(34,211,238,0.6); }

/* Hero marquee */
.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  animation: scroll-x 60s linear infinite;
}
.strip-track span { white-space: nowrap; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== SECTIONS ===================== */

.section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section-alt {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(34,211,238,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 18px; }

.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.section-sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ===================== CARDS ===================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

/* ===================== SERVICES GRID ===================== */

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(34,211,238,0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(34,211,238,0.30);
  transform: translateY(-2px);
}
.service-card:hover::before { opacity: 1; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.20);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-icon-accent {
  background: rgba(217,70,239,0.10);
  border-color: rgba(217,70,239,0.28);
  color: #e879f9;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}
.card-fit {
  font-size: 12.5px;
  color: var(--text-mute);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.card-fit span { color: var(--text-soft); margin-right: 4px; }

.service-card-accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(217,70,239,0.10), transparent 60%),
    var(--surface);
  border-color: rgba(217,70,239,0.22);
}
.service-card-accent:hover { border-color: rgba(217,70,239,0.45); }

/* ===================== WHY ===================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why-intro .section-title { text-align: left; }
.why-intro .section-sub   { text-align: left; }
.why-intro .eyebrow       { margin-bottom: 18px; }

.why-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.why-stat {
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.why-stat-k {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}
.why-stat-v {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.why-item {
  background: var(--bg-soft);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.18s ease;
}
.why-item:hover { background: rgba(255,255,255,0.025); }
.why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
  padding: 4px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.why-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.why-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ===================== CAMERA CLOUD ===================== */

.section-camera {
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(217,70,239,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(34,211,238,0.10), transparent 60%),
    var(--bg-deep);
}
.camera-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.camera-copy .section-title { text-align: left; }
.camera-copy .section-sub   { text-align: left; }

.camera-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 36px 0 26px;
}
.camera-bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.camera-bullet h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
}
.camera-bullet p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.bullet-tick {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217,70,239,0.10);
  border: 1px solid rgba(217,70,239,0.30);
  color: #f0abfc;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.camera-fit {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
}
.camera-fit span { color: var(--text-mute); margin-right: 8px; }
.camera-fit em { font-style: normal; color: var(--text); }

.camera-cta { margin-top: 24px; }

/* Camera visual frame */
.camera-visual { position: relative; }
.camera-frame {
  background: linear-gradient(180deg, #0c1220, #07090f);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.camera-frame-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
}
.camera-frame-title { color: var(--text); }
.camera-frame-meta { margin-left: auto; color: var(--text-mute); }
.camera-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.camera-dot-rec {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244,63,94,0.7);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.camera-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.camera-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0e18;
  overflow: hidden;
}
.tile-noise {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 30% 40%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(99,102,241,0.18), transparent 60%),
    linear-gradient(135deg, #0c1424 0%, #0a0e18 100%);
}
.tile-noise-b {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 70% 30%, rgba(217,70,239,0.18), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(34,211,238,0.12), transparent 60%),
    linear-gradient(135deg, #110a18 0%, #0a0e18 100%);
}
.tile-noise-c {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 20% 80%, rgba(129,140,248,0.20), transparent 60%),
    linear-gradient(135deg, #0a1018 0%, #07090f 100%);
}
.tile-noise-d {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 60% 40%, rgba(34,211,238,0.20), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(217,70,239,0.12), transparent 60%),
    linear-gradient(135deg, #0a121c 0%, #0a0e18 100%);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  pointer-events: none;
}
.tile-time { color: rgba(255,255,255,0.6); }
.tile-label { color: rgba(255,255,255,0.85); }

.tile-box {
  position: absolute;
  border: 1.5px solid var(--cyan);
  background: rgba(34,211,238,0.06);
  border-radius: 3px;
  z-index: 1;
  animation: boxBreathe 3.5s ease-in-out infinite;
}
.tile-box span {
  position: absolute;
  top: -16px; left: -1px;
  background: var(--cyan);
  color: #0b1220;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}
@keyframes boxBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(34,211,238,0.0); }
}
.tile-box-1 { top: 38%; left: 22%; width: 32%; height: 38%; }
.tile-box-2 {
  top: 30%; left: 50%; width: 30%; height: 42%;
  border-color: #e879f9;
  background: rgba(217,70,239,0.06);
}
.tile-box-2 span { background: #e879f9; color: #1a0a1a; }
.tile-box-3 { top: 28%; left: 18%; width: 28%; height: 44%; }

.camera-frame-foot {
  display: flex;
  gap: 24px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
}
.foot-stat { display: flex; flex-direction: column; gap: 2px; }
.foot-stat-k { color: var(--text-mute); }
.foot-stat-v { color: var(--text); }

/* ===================== PRIVACY ===================== */

.privacy-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
}
.privacy-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-copy .section-title { text-align: left; }
.privacy-copy .section-sub   { text-align: left; }
.privacy-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.privacy-points li {
  display: flex;
  gap: 12px;
}
.privacy-points span {
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ===================== PROCESS ===================== */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process-step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  transition: border-color 0.2s ease;
}
.process-step:hover { border-color: rgba(129,140,248,0.35); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.process-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.process-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ===================== AUDIENCE ===================== */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.audience {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.audience:hover {
  border-color: rgba(34,211,238,0.25);
  transform: translateY(-2px);
}
.audience-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
  padding: 3px 7px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.audience h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.audience p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ===================== CONTACT ===================== */

.section-contact {
  background:
    radial-gradient(ellipse 40% 30% at 80% 30%, rgba(129,140,248,0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(34,211,238,0.08), transparent 60%),
    var(--bg-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact-copy .section-title { text-align: left; }
.contact-copy .section-sub   { text-align: left; }
.contact-copy .eyebrow       { margin-bottom: 18px; }

.contact-meta {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.contact-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.contact-meta-row:last-child { border-bottom: 1px solid var(--border); }
.contact-meta-k {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 2px;
}
.contact-meta-v { color: var(--text); }
.contact-meta-v a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(34,211,238,0.45);
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.contact-meta-v a:hover {
  color: var(--cyan-2);
  text-decoration-color: currentColor;
}

/* Form */
.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field span {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(34,211,238,0.55);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px var(--ring-cyan);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; cursor: pointer; }
.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.form-note {
  font-size: 12.5px;
  color: var(--text-mute);
}
.form-sent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.30);
  border-radius: 10px;
  color: #6ee7b7;
  font-size: 13.5px;
}
.form-sent[hidden] { display: none; }
.form-sent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.6);
}
.form-sent.is-error {
  background: rgba(248,113,113,0.08);
  border-color: rgba(248,113,113,0.38);
  color: #fca5a5;
}
.form-sent.is-error .form-sent-dot {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248,113,113,0.55);
}

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 14px;
  max-width: 30ch;
}
.footer-addr {
  margin: 0;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.55;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 32px 0 64px; }
  .hero-viz { max-width: 520px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-list { grid-template-columns: 1fr; }
  .camera-grid { grid-template-columns: 1fr; gap: 40px; }
  .camera-bullets { grid-template-columns: 1fr; }
  .privacy-block { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .privacy-art { justify-content: flex-start; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta .btn-primary { display: none; }

  .hero { padding-top: 40px; }
  .hero-title { font-size: clamp(30px, 8vw, 40px); }
  .hero-sub   { font-size: 15.5px; }
  .hero-viz   { min-height: 340px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-stat-row  { grid-template-columns: 1fr; }
  .process-list  { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }

  .camera-tiles  { grid-template-columns: 1fr; }
  .field-row     { grid-template-columns: 1fr; }
  .form-foot     { flex-direction: column; align-items: flex-start; gap: 10px; }

  .contact-meta-row { grid-template-columns: 80px 1fr; gap: 12px; font-size: 13.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .viz-chip-1 { left: -4px; }
  .viz-chip-2 { right: -4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .strip-track,
  .viz-pulses circle,
  .viz-rings,
  .viz-core circle:first-child,
  .viz-chip-1, .viz-chip-2,
  .tile-box,
  .camera-dot-rec { animation: none !important; }
  html { scroll-behavior: auto; }
}


/* ====================================================
   PLUSH (baked-in default) — soft, glowing, premium SaaS
   ==================================================== */

.btn { border-radius: 999px; height: 48px; padding: 0 24px; }
.btn-sm { height: 40px; padding: 0 16px; }

.card,
.service-card,
.audience,
.process-step,
.why-stat,
.why-list,
.camera-bullet,
.camera-fit,
.camera-frame,
.viz-frame {
  border-radius: 22px;
}
.field input,
.field select,
.field textarea { border-radius: 14px; }
.card-icon { border-radius: 14px; }

.hero-glow { opacity: 0.85; filter: blur(110px); }
.site-header {
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.btn-primary {
  box-shadow:
    0 14px 40px -10px rgba(34,211,238,0.55),
    inset 0 1px 0 rgba(255,255,255,0.30);
}
.viz-frame {
  box-shadow:
    0 30px 80px -30px rgba(99,102,241,0.40),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ====================================================
   THEME — light mode toggle (Midnight ↔ Paper)
   <html data-theme="light"> activates Paper.
   Default (no attr) is Midnight.
   ==================================================== */

:root[data-theme="light"] {
  /* Cooler, tinted light mode — not pure white, with a slight indigo wash */
  --bg:        #dde4f2;
  --bg-soft:   #d2dcec;
  --bg-deep:   #c5d1e3;
  --surface:   rgba(28,40,80,0.05);
  --surface-2: rgba(28,40,80,0.08);
  --border:    rgba(28,40,80,0.14);
  --border-strong: rgba(28,40,80,0.22);
  --text:        #0f172a;
  --text-soft:   #3e4a6b;
  --text-mute:   #6b7693;

  /* Deeper, more saturated accents — cyan/violet read poorly on light bg */
  --cyan:    #0891b2;
  --cyan-2:  #06b6d4;
  --violet:  #4f46e5;
  --violet-2:#6366f1;
  --indigo:  #4338ca;
  --magenta: #c026d3;
  --grad-1:  linear-gradient(135deg, #0891b2 0%, #4338ca 100%);
  --grad-2:  linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --grad-camera: linear-gradient(135deg, #0891b2 0%, #4f46e5 50%, #c026d3 100%);
}

/* Recolor solid-color accent components for light mode */
:root[data-theme="light"] .card-icon {
  background: rgba(8,145,178,0.10);
  border-color: rgba(8,145,178,0.32);
  color: #0891b2;
}
:root[data-theme="light"] .card-icon-accent {
  background: rgba(192,38,211,0.10);
  border-color: rgba(192,38,211,0.32);
  color: #a21caf;
}
:root[data-theme="light"] .why-num,
:root[data-theme="light"] .audience-tag {
  background: rgba(8,145,178,0.10);
  border-color: rgba(8,145,178,0.30);
  color: #0e7490;
}
:root[data-theme="light"] .service-card:hover { border-color: rgba(8,145,178,0.45); }
:root[data-theme="light"] .service-card-accent { border-color: rgba(192,38,211,0.32); }
:root[data-theme="light"] .service-card-accent:hover { border-color: rgba(192,38,211,0.55); }
:root[data-theme="light"] .audience:hover { border-color: rgba(8,145,178,0.40); }
:root[data-theme="light"] .process-step:hover { border-color: rgba(79,70,229,0.45); }
:root[data-theme="light"] .bullet-tick {
  background: rgba(192,38,211,0.12);
  border-color: rgba(192,38,211,0.40);
  color: #a21caf;
}
:root[data-theme="light"] .eyebrow-magenta .eyebrow-dot {
  background: #c026d3;
  box-shadow: 0 0 12px rgba(192,38,211,0.55);
}
:root[data-theme="light"] .chip-bullet {
  background: var(--violet);
  box-shadow: 0 0 8px rgba(79,70,229,0.45);
}
:root[data-theme="light"] .privacy-points span { color: #0891b2; }
:root[data-theme="light"] .btn-primary {
  color: #ffffff;
  box-shadow:
    0 14px 40px -10px rgba(8,145,178,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
:root[data-theme="light"] .btn-primary:hover {
  box-shadow:
    0 18px 48px -12px rgba(8,145,178,0.55),
    inset 0 1px 0 rgba(255,255,255,0.30);
}
:root[data-theme="light"] ::selection { background: rgba(79,70,229,0.30); color: var(--text); }
:root[data-theme="light"] ::selection { background: rgba(79,70,229,0.30); color: var(--text); }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(28,40,80,0.22); }

:root[data-theme="light"] .site-header {
  background: rgba(221,228,242,0.78);
  border-bottom-color: rgba(28,40,80,0.10);
}
:root[data-theme="light"] .brand-mark {
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(129,140,248,0.10));
  border-color: rgba(15,23,42,0.12);
}
:root[data-theme="light"] .logo-img { filter: none; }
:root[data-theme="light"] .menu-toggle span { background: var(--text); }
:root[data-theme="light"] .mobile-nav {
  background: rgba(221,228,242,0.98);
  border-top-color: rgba(28,40,80,0.12);
}

:root[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(28,40,80,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,40,80,0.07) 1px, transparent 1px);
}
:root[data-theme="light"] .hero-glow-cyan {
  background: radial-gradient(circle, rgba(34,211,238,0.55), transparent 60%);
  opacity: 0.75;
}
:root[data-theme="light"] .hero-glow-violet {
  background: radial-gradient(circle, rgba(129,140,248,0.50), transparent 60%);
  opacity: 0.75;
}

:root[data-theme="light"] .viz-frame {
  background:
    radial-gradient(circle at 50% 50%, rgba(99,102,241,0.14), transparent 70%),
    linear-gradient(180deg, rgba(28,40,80,0.04), rgba(28,40,80,0));
}
:root[data-theme="light"] .viz-frame svg g[stroke="#1f2940"] circle { stroke: rgba(28,40,80,0.18); }
:root[data-theme="light"] .viz-frame svg circle[fill="#0c1220"] { fill: #dde4f2; }

:root[data-theme="light"] .section-alt {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(34,211,238,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
:root[data-theme="light"] .section-contact {
  background:
    radial-gradient(ellipse 40% 30% at 80% 30%, rgba(129,140,248,0.20), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(34,211,238,0.18), transparent 60%),
    var(--bg-soft);
}

:root[data-theme="light"] .why-list { background: rgba(28,40,80,0.14); }
:root[data-theme="light"] .why-item { background: var(--bg-soft); }
:root[data-theme="light"] .why-item:hover { background: rgba(99,102,241,0.06); }

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
  background: rgba(28,40,80,0.05);
  color: var(--text);
}
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus {
  background: rgba(28,40,80,0.08);
}
:root[data-theme="light"] .btn-ghost { color: var(--text); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(28,40,80,0.06); }
:root[data-theme="light"] .site-footer { background: var(--bg-deep); }

/* Camera tiles intentionally stay dark — they're a video feed */
:root[data-theme="light"] .section-camera {
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(217,70,239,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(34,211,238,0.18), transparent 60%),
    var(--bg-soft);
}
:root[data-theme="light"] .camera-frame {
  background: linear-gradient(180deg, #0c1220, #07090f);
  border-color: rgba(28,40,80,0.22);
  box-shadow: 0 30px 80px -30px rgba(28,40,80,0.35);
}
:root[data-theme="light"] .camera-frame .camera-frame-title,
:root[data-theme="light"] .camera-frame .foot-stat-v { color: #ece6dd; }

:root[data-theme="light"] .form-sent {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.40);
  color: #047857;
}

/* ====================================================
   THEME TOGGLE BUTTON (header)
   ==================================================== */

/* OLD .theme-toggle styles — superseded by .icon-btn; keeping just the sun/moon visibility rules above. */

/* ====================================================
   LOGO IMAGE (inverts to white on dark surfaces)
   ==================================================== */
.logo-img {
  height: 28px;
  width: auto;
  display: block;
  /* Source is black on transparent; invert to white in dark mode. */
  filter: invert(1) brightness(1.4);
}
.brand-mark-img {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
}

/* ====================================================
   ICON BUTTONS (theme)
   ==================================================== */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
}
.icon-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
}
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .icon-btn {
  background: rgba(28,40,80,0.05);
  border-color: rgba(28,40,80,0.22);
}
:root[data-theme="light"] .icon-btn:hover {
  background: rgba(28,40,80,0.10);
  border-color: rgba(28,40,80,0.32);
}

/* Theme-toggle sun/moon swap */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
