/* ═══════════════════════════════════════════════
   SmartLogix — home.css
   
   CSS/JS boundaries:
   • Hero text   → pure CSS keyframes (no JS touch)
   • Orbital     → keyframe names only in CSS; JS sets
                   animation-* properties via inline style
   • Scroll reveal → .reveal class → JS adds .in-view
   • Product cards → .product-card → JS adds .card-in
   • Header        → JS adds .filled on scroll
   • Cursor glow  → JS sets transform via RAF loop
   • Stats counter → JS reads data-to, counts up
═══════════════════════════════════════════════ */

/* ── 1. RESET & CUSTOM PROPERTIES ──────────── */

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

:root {
  --c-bg:        #0b0b12;
  --c-bg2:       #111118;
  --c-surface:   #18181f;
  --c-surface2:  #202028;

  --c-text:      #f3f2ff;
  --c-muted:     #787898;
  --c-subtle:    #35344a;

  --c-violet:    #7c3aed;
  --c-vsoft:     #a78bfa;
  --c-teal:      #2dd4bf;
  --c-amber:     #fbbf24;
  --c-green:     #34d399;

  --c-line:      rgba(255,255,255,0.07);
  --c-line2:     rgba(255,255,255,0.13);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --f-display: 'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;

  /* Easing */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── 2. CURSOR GLOW (JS-driven) ─────────────
   JS sets transform:translate() via RAF.
   We ONLY define appearance here, zero logic.
──────────────────────────────────────────── */
#cursorGlow {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.10) 0%,
    rgba(45, 212, 191, 0.04) 45%,
    transparent 70%
  );
  animation: glowShift 12s ease-in-out infinite;
}

@keyframes glowShift {
  0%,100% { background: radial-gradient(circle,rgba(124,58,237,0.10) 0%,rgba(45,212,191,0.04) 45%,transparent 70%); }
  40%     { background: radial-gradient(circle,rgba(45,212,191,0.10) 0%,rgba(167,139,250,0.04) 45%,transparent 70%); }
  70%     { background: radial-gradient(circle,rgba(167,139,250,0.12) 0%,rgba(52,211,153,0.04) 45%,transparent 70%); }
}

/* ── 3. HEADER ──────────────────────────────
   .filled class added by JS when scrollY > 20
──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

/* JS adds this class on scroll */
.site-header.filled {
  background: rgba(11, 11, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--c-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--c-violet);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.45);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--c-muted);
}

.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--c-text); }

/* ── Auth area — NOT MODIFIED ──────────────── */
.auth-area { display: flex; align-items: center; gap: 12px; }

.login-button, .logout-button {
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.login-button { background: var(--c-violet); color: #fff; }
.login-button:hover { opacity: 0.85; transform: translateY(-1px); }

.logout-button {
  background: transparent;
  color: var(--c-muted);
  border: 1px solid var(--c-line2);
}
.logout-button:hover { color: var(--c-text); }

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 4. BUTTONS ─────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--c-violet);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124,58,237,0.45); }
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--c-line2);
  color: var(--c-muted);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--c-text); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.38); }

/* ── 5. HERO ─────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  padding: 64px 8vw 80px; /* 64px = header height */
  overflow: hidden;
}

/* Ambient blobs — always running, no JS */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-violet {
  width: 500px; height: 500px;
  top: -120px; right: 4%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  animation: blobDrift 14s ease-in-out infinite;
}

.blob-teal {
  width: 340px; height: 340px;
  bottom: 60px; left: -60px;
  background: radial-gradient(circle, rgba(45,212,191,0.10) 0%, transparent 70%);
  animation: blobDrift 19s ease-in-out -8s infinite;
}

@keyframes blobDrift {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(3%, -5%) scale(1.05); }
  66%      { transform: translate(-2%, 4%) scale(0.97); }
}

/* ── Hero copy — PURE CSS ENTRY ANIMATIONS ──
   Uses animation-fill-mode: both so element
   starts invisible and ends visible.
   Zero JS dependency for this section.
──────────────────────────────────────────── */

.hero-copy {
  position: relative;
  z-index: 2;
}

/* Shared keyframe */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-vsoft);
  margin-bottom: 24px;
  animation: heroReveal 0.7s var(--ease-expo) 0.2s both;
}

.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}

/* Each line reveals separately */
.hl {
  display: block;
  animation: heroReveal 0.75s var(--ease-expo) both;
}
.hl-1 { animation-delay: 0.35s; }
.hl-2 { animation-delay: 0.5s; }

/* Gradient accent — NOTE: color: transparent must coexist with animation.
   The animation keyframes set opacity via the parent's animation.
   We only set the gradient here; it shows when opacity becomes 1. */
.hl-accent {
  background: linear-gradient(95deg, var(--c-vsoft) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: heroReveal 0.75s var(--ease-expo) 0.5s both,
             gradientSlide 5s ease-in-out 1.5s infinite;
}

/* ⚠ Two animations on same element: heroReveal runs once, gradientSlide loops.
   This is valid — multiple animations separated by comma. */
@keyframes gradientSlide {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-body {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 440px;
  margin-bottom: 40px;
  animation: heroReveal 0.7s var(--ease-expo) 0.65s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroReveal 0.7s var(--ease-expo) 0.8s both;
}

/* ── Scroll cue ─────────────────────────── */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  animation: heroReveal 0.6s var(--ease-expo) 1.4s both;
}

.sc-track {
  width: 26px; height: 42px;
  border: 1.5px solid var(--c-line2);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.sc-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-vsoft);
  animation: scBob 2.2s ease-in-out infinite;
}

@keyframes scBob {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(16px); opacity: 0; }
  61%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

/* ── 6. ORBITAL SYSTEM ──────────────────────
   Keyframe NAMES defined here.
   JS sets animation-* longhand properties.
   Hub + rings are pure CSS animations.
──────────────────────────────────────────── */

.hero-vis {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroReveal 1s var(--ease-expo) 0.3s both;
}

.orb-scene {
  position: relative;
  width: 560px;
  height: 560px;
  flex-shrink: 0;
}

/* Decorative orbital path rings */
.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.or-a { width: 290px; height: 290px; margin: -145px 0 0 -145px; }
.or-b { width: 400px; height: 400px; margin: -200px 0 0 -200px; border-color: rgba(255,255,255,0.04); }
.or-c {
  width: 496px; height: 496px;
  margin: -248px 0 0 -248px;
  border-style: dashed;
  border-color: rgba(255,255,255,0.03);
  animation: orbitRingSpin 80s linear infinite;
}
@keyframes orbitRingSpin { to { transform: rotate(360deg); } }

/* Hub */
.orb-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hub-face {
  position: relative;
  z-index: 3;
  width: 96px; height: 96px;
  border-radius: 26px;
  background: linear-gradient(145deg, #5b21b6, #7c3aed, #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.3),
    0 0 48px rgba(124,58,237,0.55),
    0 0 100px rgba(124,58,237,0.18),
    inset 0 1px 0 rgba(255,255,255,0.15);
  animation: hubPulse 4s ease-in-out infinite;
}

@keyframes hubPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(167,139,250,0.3), 0 0 48px rgba(124,58,237,0.55), 0 0 100px rgba(124,58,237,0.18); }
  50%      { box-shadow: 0 0 0 1px rgba(167,139,250,0.5), 0 0 72px rgba(124,58,237,0.75), 0 0 130px rgba(124,58,237,0.25); }
}

/* Hub emanating rings */
.hub-pulse {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.5);
  animation: hubRingPulse 4.5s ease-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hp-1 { width: 96px; height: 96px; margin: -48px 0 0 -48px; animation-delay: 0s; }
.hp-2 { width: 96px; height: 96px; margin: -48px 0 0 -48px; animation-delay: 1.5s; }
.hp-3 { width: 96px; height: 96px; margin: -48px 0 0 -48px; animation-delay: 3.0s; }

@keyframes hubRingPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(4.0); opacity: 0; }
}

/* Orbital arms — zero-size pivot at hub center.
   JS sets: animation-name, -duration, -delay, -timing-function, -iteration-count */
.orb-arm {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  /* animation set by JS — do NOT add animation here */
}

/* Orbital nodes — JS sets top, left, and all animation-* properties */
.orb-node {
  position: absolute;
  width: 60px; height: 64px;
  border-radius: 16px;
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* animation set by JS — do NOT add animation here */
}

.orb-node small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  line-height: 1;
}

.orb-node:hover {
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 20px rgba(124,58,237,0.3);
}

/* Keyframes referenced by JS (must exist in CSS) */
@keyframes armCW   { from { transform: rotate(0deg);   } to { transform: rotate(360deg);   } }
@keyframes armCCW  { from { transform: rotate(0deg);   } to { transform: rotate(-360deg);  } }
@keyframes nodeCW  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);   } }
@keyframes nodeCCW { from { transform: rotate(0deg);   } to { transform: rotate(-360deg);  } }

/* ── 7. STATS BAND ──────────────────────────── */

.stats-band {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 64px 8vw;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.stat-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.stat-count, .stat-text {
  font-family: var(--f-display);
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--c-text);
}

.stat-sup {
  font-family: var(--f-display);
  font-size: 0.44em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-vsoft);
}

.stat-label {
  font-size: 14px;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.5;
}

.stat-sep {
  width: 1px;
  height: 64px;
  background: var(--c-line);
  flex-shrink: 0;
}

/* ── 8. SECTIONS — shared ───────────────────── */

.section {
  padding: 120px 8vw;
}

.sec-head {
  margin-bottom: 72px;
}

.sec-head h2, .sec-solutions h2 {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 800;
  letter-spacing: -0.046em;
  line-height: 1.02;
  color: var(--c-text);
  margin-top: 8px;
  margin-bottom: 14px;
}

.sec-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Eyebrow / label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-vsoft);
  margin-bottom: 12px;
}

.ey-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: eyeDot 2.4s ease-in-out infinite;
}
@keyframes eyeDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.5); }
}

/* ── 9. PRODUCTS ────────────────────────────── */

.sec-products { background: var(--c-bg2); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ── Product card reveal ─────────────────────
   Start state: invisible (no JS dependency).
   JS adds .card-in → transitions to visible.
   Hover styles declared AFTER .card-in so that
   specificity tie is broken by declaration order.
──────────────────────────────────────────── */

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  /* Initial hidden state */
  opacity: 0;
  transform: translateY(28px);
  /* Transition covers: reveal + hover.
     transition-delay is set per-card via inline style for stagger,
     then cleared after reveal by JS. */
  transition: opacity 0.65s var(--ease-expo),
              transform 0.65s var(--ease-expo),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Reveal state — added by JS */
.product-card.card-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hover — declared after .card-in, same specificity, so hover wins by order */
.product-card.card-in:hover {
  transform: translateY(-5px);
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 24px rgba(124,58,237,0.12);
  transition-delay: 0s !important; /* Kill stagger delay on hover */
}

/* Light sweep on hover */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.035) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card.card-in:hover::after { opacity: 1; }

.product-thumb {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-expo);
}

.product-card.card-in:hover .product-thumb img { transform: scale(1.06); }

.thumb-icon {
  font-size: 48px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.3s var(--ease-expo);
}

.product-card.card-in:hover .thumb-icon { transform: scale(1.1) translateY(-3px); }

.pt-0 { background: linear-gradient(135deg, #1e1b4b, #2d2980); }
.pt-1 { background: linear-gradient(135deg, #1c1917, #292520); }
.pt-2 { background: linear-gradient(135deg, #052e16, #163c25); }
.pt-3 { background: linear-gradient(135deg, #1a1325, #321b50); }

.product-info { padding: 16px; }

.product-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-vsoft);
  margin-bottom: 5px;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-text);
  margin-bottom: 4px;
}

.product-location {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 300;
  margin-bottom: 8px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.stars { color: var(--c-amber); font-size: 11px; }
.rating-count { font-size: 11px; color: var(--c-muted); }

.product-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-teal);
}

.product-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  font-size: 10px;
  color: var(--c-muted);
}

/* ── 10. SOLUTIONS ──────────────────────────── */

.sec-solutions { background: var(--c-bg); }

/* Feature rows */
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--c-line);
}
.feat-row:last-child { border-bottom: 1px solid var(--c-line); }

/* Flipped: visual on left, copy on right */
.feat-flip .feat-copy { order: 2; }
.feat-flip .feat-vis  { order: 1; }

.feat-num {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-violet);
  margin-bottom: 16px;
}

.feat-copy h3 {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--c-text);
  margin-bottom: 20px;
}

.feat-copy p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--c-muted);
  margin-bottom: 28px;
  max-width: 420px;
}

.feat-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-vsoft);
  transition: letter-spacing 0.25s var(--ease-expo), color 0.2s;
}
.feat-link:hover { letter-spacing: 0.03em; color: var(--c-text); }

.feat-vis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

/* ── 11. FEATURE VISUALS (all pure CSS) ─────── */

/* — Bulb — */
.vis-bulb {
  position: relative;
  width: 200px;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.bulb-body {
  position: relative;
  z-index: 3;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 35%,
    rgba(253,224,71,0.95) 0%,
    rgba(251,191,36,0.85) 35%,
    rgba(217,119,6,0.65) 70%,
    rgba(120,53,15,0.35) 100%
  );
  box-shadow:
    0 0 40px rgba(251,191,36,0.4),
    0 0 80px rgba(251,191,36,0.14),
    inset 0 -8px 16px rgba(0,0,0,0.25);
  animation: bulbBreathe 2.8s ease-in-out infinite;
}

@keyframes bulbBreathe {
  0%,100% { box-shadow: 0 0 40px rgba(251,191,36,0.4), 0 0 80px rgba(251,191,36,0.14); }
  50%      { box-shadow: 0 0 60px rgba(251,191,36,0.65), 0 0 120px rgba(251,191,36,0.22); }
}

.bulb-base {
  width: 52px; height: 22px;
  background: linear-gradient(180deg, var(--c-subtle) 0%, var(--c-surface) 100%);
  border-radius: 0 0 10px 10px;
  border: 1px solid var(--c-line2);
  margin-top: -2px;
  z-index: 2;
}

/* Glow rings that expand outward from bulb center */
.bulb-glow {
  position: absolute;
  top: calc(50% - 55px); /* 55px ≈ half of 110px bulb, offset to bulb center */
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(251,191,36,0.18);
  transform: translate(-50%, -50%);
  animation: bulbRingExpand 3s ease-out infinite;
}
.bg-1 { animation-delay: 0s; }
.bg-2 { animation-delay: 1s; }
.bg-3 { animation-delay: 2s; }

@keyframes bulbRingExpand {
  0%   { width: 120px; height: 120px; opacity: 0.55; }
  100% { width: 270px; height: 270px; opacity: 0; }
}

/* — Camera lens — */
.vis-cam {
  position: relative;
  width: 220px; height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid;
  transform: translate(-50%, -50%);
}

.cam-r4 {
  width: 220px; height: 220px;
  border-color: rgba(45,212,191,0.12);
  background: radial-gradient(circle, #0d1a24, #08080f);
}
.cam-r3 {
  width: 165px; height: 165px;
  border-color: rgba(45,212,191,0.18);
}
.cam-r2 {
  width: 110px; height: 110px;
  border-color: rgba(45,212,191,0.28);
}
.cam-r1 {
  width: 62px; height: 62px;
  border-color: rgba(45,212,191,0.4);
}

.cam-iris {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-teal);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(45,212,191,0.9), 0 0 28px rgba(45,212,191,0.3);
  animation: irisPulse 3.5s ease-in-out infinite;
}

@keyframes irisPulse {
  0%,85%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
  92%          { transform: translate(-50%,-50%) scale(0.35); opacity: 0.5; }
}

.cam-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(45,212,191,0.6);
  animation: sweepSpin 4s linear infinite;
}
@keyframes sweepSpin { to { transform: rotate(360deg); } }

.cam-badge {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-teal);
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 999px;
  background: rgba(45,212,191,0.07);
  animation: badgeBlink 3.2s ease-in-out infinite;
}
@keyframes badgeBlink {
  0%,55%,100% { opacity: 1; }
  28%          { opacity: 0.35; }
}

/* — Equaliser — */
.vis-eq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eq-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 100px;
}

.eq-bar {
  width: 14px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--c-vsoft) 0%, var(--c-violet) 60%, rgba(124,58,237,0.25) 100%);
  box-shadow: 0 0 10px rgba(124,58,237,0.35);
  /* Use longhand to safely use CSS custom props for timing values */
  animation-name: eqPump;
  animation-duration: var(--d, 1s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--o, 0s);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes eqPump {
  from { height: 8px; }
  to   { height: var(--h, 60%); }
}

.eq-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  animation: labelPulse 2.5s ease-in-out infinite;
}
@keyframes labelPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* — Circuit — */
.vis-circuit { width: 240px; height: 240px; }
.vis-circuit svg { width: 100%; height: 100%; overflow: visible; }

.cl {
  stroke: rgba(167,139,250,0.18);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 5;
  animation: clDash 3s linear infinite;
}
@keyframes clDash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -36; } }

.cn {
  fill: var(--c-surface2);
  stroke: rgba(167,139,250,0.35);
  stroke-width: 1.5;
}
.cn-sm { stroke: rgba(167,139,250,0.18); }

.c-core { animation: corePulse 3s ease-in-out infinite; }
@keyframes corePulse {
  0%,100% { filter: drop-shadow(0 0 8px rgba(124,58,237,0.6)); }
  50%      { filter: drop-shadow(0 0 18px rgba(167,139,250,0.9)); }
}

.c-core-txt {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
}

.csig {
  filter: drop-shadow(0 0 3px rgba(167,139,250,0.7));
}

/* ── 12. DARK PANELS ────────────────────────── */

.sec-cases, .sec-contact { background: var(--c-bg2); }

.dark-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: 72px 80px;
  background: linear-gradient(145deg, #140724 0%, #0d1422 52%, var(--c-bg) 100%);
  border: 1px solid var(--c-line2);
  overflow: hidden;
}

.dp-blob {
  position: absolute;
  top: -30%; right: -12%;
  width: 460px; height: 460px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  animation: dpBlobDrift 10s ease-in-out infinite;
}
.dp-violet { background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, transparent 65%); }
.dp-green  {
  background: radial-gradient(circle, rgba(52,211,153,0.11) 0%, transparent 65%);
  top: auto; bottom: -20%; right: auto; left: -12%;
  animation-delay: -5s;
}
@keyframes dpBlobDrift {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-4%, 5%) scale(1.07); }
}

.dp-h2 {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.046em;
  line-height: 1.06;
  color: var(--c-text);
  margin-bottom: 18px;
  margin-top: 6px;
}

.dp-body {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 500px;
  margin-bottom: 36px;
}

/* ── 13. SCROLL REVEAL ──────────────────────────
   .reveal = initial hidden state.
   JS adds .in-view via IntersectionObserver.
   transition-delay via --rv-delay custom prop.
────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(3px);
  transition:
    opacity 0.8s var(--ease-expo) var(--rv-delay, 0s),
    transform 0.8s var(--ease-expo) var(--rv-delay, 0s),
    filter 0.7s ease var(--rv-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── 14. RESPONSIVE ─────────────────────────── */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 6vw 60px;
    gap: 52px;
    justify-items: center;
  }

  .hero-copy { max-width: 560px; }
  .hero-body { max-width: none; }
  .hero-actions { justify-content: center; }

  /* Scale the whole orbital scene down */
  .hero-vis { transform: scale(0.72); transform-origin: center top; }

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

  .feat-row {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0;
  }
  .feat-flip .feat-copy { order: 1; }
  .feat-flip .feat-vis  { order: 2; }

  .stats-inner { flex-direction: column; gap: 40px; }
  .stat-sep { width: 60px; height: 1px; }
}

@media (max-width: 700px) {
  .site-header { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }

  .hero { padding: 72px 5vw 48px; }
  .hero-vis { transform: scale(0.48); transform-origin: center top; margin-bottom: -140px; }

  .section { padding: 80px 5vw; }

  .dark-panel { padding: 44px 28px; border-radius: var(--r-lg); }

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