/* Vital Flow AI — spatial design layer
   Generated from the UI UX Pro Max design system and kept as a progressive enhancement. */

:root {
  --future-cyan: #38bdf8;
  --future-blue: #2563eb;
  --future-violet: #8b5cf6;
  --future-mint: #34d399;
  --future-glass: rgba(8, 12, 28, 0.64);
  --future-glass-strong: rgba(5, 8, 20, 0.86);
  --future-line: rgba(125, 211, 252, 0.18);
  --future-shadow: 0 24px 80px rgba(2, 6, 23, 0.52);
  --future-radius: 22px;
}

html {
  scroll-padding-top: calc(var(--nav-h, 72px) + 18px);
}

body {
  font-family: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(37, 99, 235, 0.13), transparent 28rem),
    radial-gradient(circle at 18% 32%, rgba(139, 92, 246, 0.1), transparent 34rem),
    #03050b;
  isolation: isolate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

body::before {
  width: 34rem;
  height: 34rem;
  top: -13rem;
  right: -8rem;
  background: var(--future-blue);
}

body::after {
  width: 28rem;
  height: 28rem;
  bottom: 4rem;
  left: -12rem;
  background: var(--future-violet);
}

.vf-three-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.74;
  mix-blend-mode: screen;
  transition: opacity 250ms ease;
}

.vf-depth-rail {
  position: fixed;
  top: 50%;
  right: 1.15rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.58rem;
  transform: translateY(-50%);
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.54);
  box-shadow: 0 16px 46px rgba(2, 6, 23, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.vf-depth-rail__marker {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 0 transparent;
  transition: height 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.vf-depth-rail__marker.is-active {
  height: 20px;
  border-radius: 4px;
  background: var(--future-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

.grid-bg {
  z-index: 0;
  opacity: 0.75;
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 60%, transparent 100%);
}

.floating-icons { display: none !important; }

.theme-toggle { font-size: 0 !important; }
.theme-toggle::before {
  content: '';
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.28);
}

[data-theme="light"] .theme-toggle::before {
  border-color: transparent;
  box-shadow: inset -5px -3px 0 0 currentColor;
  transform: rotate(-18deg);
}

.problem-icon {
  font-size: 0 !important;
  position: relative;
  overflow: hidden;
}

.problem-icon::before {
  color: #bae6fd;
  font: 700 0.68rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
}

.problem-card:nth-child(1) .problem-icon::before { content: '01'; }
.problem-card:nth-child(2) .problem-icon::before { content: '02'; }
.problem-card:nth-child(3) .problem-icon::before { content: '03'; }
.problem-card:nth-child(4) .problem-icon::before { content: '04'; }

.problem-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  transform: rotate(45deg);
}

section,
footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
.section-title,
.audit-title,
.founder-name,
.calc-title {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  text-wrap: balance;
}

p,
.section-sub,
.service-content p,
.case-desc,
.founder-bio {
  text-wrap: pretty;
}

nav {
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.92), rgba(3, 5, 11, 0.72));
  border-bottom-color: rgba(125, 211, 252, 0.14);
  box-shadow: 0 14px 46px rgba(2, 6, 23, 0.24);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

nav::after {
  content: '';
  position: absolute;
  inset: auto 8% -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--future-cyan), var(--future-violet), transparent);
  opacity: 0.56;
}

.nav-logo-icon {
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18), 0 0 26px rgba(37, 99, 235, 0.2);
}

.nav-links a,
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  letter-spacing: 0.015em;
  touch-action: manipulation;
}

.nav-cta,
.btn-primary {
  min-height: 44px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.22);
  background: linear-gradient(120deg, #0ea5e9 0%, #2563eb 48%, #7c3aed 100%);
  box-shadow: 0 14px 42px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.nav-cta::before,
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 520ms cubic-bezier(0.2, 1, 0.3, 1);
}

.nav-cta:hover::before,
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost,
.theme-toggle,
.carousel-btn {
  min-height: 44px;
  min-width: 44px;
  border-color: var(--future-line);
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 5, 11, 0.96) 0%, rgba(3, 5, 11, 0.76) 48%, rgba(3, 5, 11, 0.12) 100%),
    radial-gradient(circle at 80% 48%, rgba(37, 99, 235, 0.14), transparent 32rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 12% -12% -45% 38%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(68deg) rotateZ(-9deg);
  transform-origin: center;
  mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  opacity: 0.42;
}

.hero-inner,
.hero-left,
.hero-right { position: relative; z-index: 2; }

.hero-right {
  min-height: 430px;
  perspective: 1200px;
}

.hero-right::before {
  content: '';
  position: absolute;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  right: -5.5rem;
  top: 50%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translateY(-50%) rotateX(68deg) rotateZ(24deg);
  border: 1px solid rgba(125, 211, 252, 0.2);
  background:
    repeating-conic-gradient(from 8deg, rgba(56, 189, 248, 0.32) 0deg 1deg, transparent 1deg 12deg),
    radial-gradient(circle, transparent 54%, rgba(37, 99, 235, 0.12) 55%, transparent 67%);
  mask-image: radial-gradient(circle, transparent 34%, #000 36% 68%, transparent 70%);
  opacity: 0.6;
}

.vf-spatial-hud {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 5;
  width: 188px;
  padding: 0.85rem 0.95rem;
  color: #dbeafe;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 15, 34, 0.82), rgba(7, 10, 24, 0.54));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transform: perspective(800px) rotateY(-7deg) rotateX(2deg);
  pointer-events: none;
}

.vf-spatial-hud__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font: 600 0.61rem/1.2 'Space Grotesk', sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vf-spatial-hud__signal {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--future-mint);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.9);
}

.vf-spatial-hud__line {
  height: 1px;
  margin: 0.65rem 0;
  background: linear-gradient(90deg, var(--future-cyan), rgba(139, 92, 246, 0.18));
}

.vf-spatial-hud__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  color: #94a3b8;
  font: 500 0.58rem/1.4 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.2vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-tag,
.section-tag {
  border-color: rgba(56, 189, 248, 0.24);
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.12), rgba(124, 58, 237, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 28px rgba(14, 165, 233, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-photo-card,
.hero-dashboard,
.hero-metric-pill {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(6, 10, 24, 0.6));
  border-color: rgba(125, 211, 252, 0.2);
  box-shadow: var(--future-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

.hero-photo-card {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1.5deg);
}

.metrics-strip,
.marquee-wrap {
  background: rgba(3, 7, 18, 0.72);
  border-color: rgba(125, 211, 252, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.section-inner {
  width: min(100%, 1200px);
  padding-inline: clamp(1.25rem, 5vw, 3.75rem);
}

body > section::after {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.5rem);
  right: max(1.25rem, calc((100vw - 1200px) / 2 + 3.75rem));
  color: rgba(148, 163, 184, 0.46);
  font: 600 0.62rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.2em;
  pointer-events: none;
}

.problem-section::after { content: '01 / SIGNAL'; }
.services-section::after { content: '02 / SYSTEMS'; }
.hiw-section::after { content: '03 / ARCHITECTURE'; }
.cases-section::after { content: '04 / PROOF'; }
.testimonials-section::after { content: '05 / VALIDATION'; }
.demo-section::after { content: '06 / LIVE CORE'; }
.founder-section::after { content: '07 / BUILDER'; }
.calc-section::after { content: '08 / CONFIGURE'; }
.audit-section::after { content: '09 / AUDIT'; }
.contact-section::after { content: '10 / CONNECT'; }

.section-title {
  font-size: clamp(2.05rem, 4.4vw, 3.55rem);
  letter-spacing: -0.045em;
}

.problem-section,
.services-section,
.hiw-section,
.cases-section,
.testimonials-section,
.demo-section,
.founder-section,
.calc-section,
.audit-section,
.contact-section {
  background-color: rgba(3, 5, 11, 0.58);
}

.services-section,
.cases-section,
.founder-section,
.audit-section {
  background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.045), transparent 38%, rgba(124, 58, 237, 0.035));
}

.problem-card,
.service-card,
.case-card,
.testimonial-card,
.hiw-step,
.demo-terminal,
.founder-skills .skill-item,
.contact-form-box,
.audit-wrap,
.calc-controls,
.calc-summary-inner {
  border-color: var(--future-line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.62), rgba(5, 9, 22, 0.5));
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.service-card,
.case-card,
.problem-card,
.testimonial-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 240ms cubic-bezier(0.2, 1, 0.3, 1), border-color 240ms ease, box-shadow 240ms ease;
}

.service-card::before,
.case-card::before,
.problem-card::before,
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(56, 189, 248, 0.08), transparent 28%, transparent 68%, rgba(139, 92, 246, 0.07));
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-card::after,
.case-card::after,
.problem-card::after,
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--vf-x, 50%) var(--vf-y, 50%), rgba(125, 211, 252, 0.15), transparent 62%);
  opacity: var(--vf-glow, 0);
  transition: opacity 180ms ease;
}

.vf-tilt {
  --vf-rx: 0deg;
  --vf-ry: 0deg;
  --vf-lift: 0px;
  transform: perspective(1150px) translateY(var(--vf-lift)) rotateX(var(--vf-rx)) rotateY(var(--vf-ry)) !important;
  will-change: transform;
}

.case-mockup,
.demo-terminal,
.hero-dashboard {
  transform: translateZ(24px);
}

.service-num,
.metric,
.metric-big,
.fn-num {
  background: linear-gradient(135deg, #7dd3fc, #60a5fa 48%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-tags,
.founder-skills {
  min-width: 0;
}

.tag,
.badge,
.skill-item {
  overflow-wrap: anywhere;
}

/* Featured live project: NeuraDesk */
.neuradesk-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  isolation: isolate;
  background:
    linear-gradient(118deg, rgba(14, 165, 233, 0.07), rgba(2, 6, 23, 0.58) 42%, rgba(124, 58, 237, 0.07)),
    rgba(7, 12, 27, 0.72);
}

.neuradesk-feature::before {
  opacity: 0.72;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.16), transparent 36%, rgba(167, 139, 250, 0.12)),
    radial-gradient(circle at 18% 50%, rgba(14, 165, 233, 0.12), transparent 34%);
}

.neuradesk-feature > * {
  position: relative;
  z-index: 1;
}

.neuradesk-content {
  min-width: 0;
  transform: translateZ(18px);
}

.case-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.case-project-link svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.2, 1, 0.3, 1);
}

.case-project-link:hover,
.case-project-link:focus-visible {
  color: #7dd3fc;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.32);
}

.case-project-link:hover svg,
.case-project-link:focus-visible svg {
  transform: translate(3px, -3px);
}

.case-project-link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 5px;
  border-radius: 6px;
}

.neuradesk-mockup {
  width: 100%;
  margin: 0;
  border-color: rgba(125, 211, 252, 0.18);
  background:
    linear-gradient(145deg, rgba(7, 12, 27, 0.98), rgba(3, 7, 18, 0.92)),
    #030712;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 70px rgba(2, 6, 23, 0.38);
}

.neuradesk-console {
  position: relative;
  min-height: 250px;
  padding: 1.25rem;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.neuradesk-console::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  left: 42%;
  top: 46%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), rgba(124, 58, 237, 0.055) 42%, transparent 70%);
  filter: blur(2px);
}

.neuradesk-signal-map {
  position: absolute;
  width: 170px;
  height: 170px;
  left: 42%;
  top: 46%;
  transform: translate(-50%, -50%);
}

.neuradesk-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  gap: 1px;
  text-align: center;
  border: 1px solid rgba(125, 211, 252, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(125, 211, 252, 0.3), rgba(37, 99, 235, 0.18) 42%, rgba(2, 6, 23, 0.92));
  box-shadow: 0 0 34px rgba(14, 165, 233, 0.28), inset 0 0 18px rgba(125, 211, 252, 0.12);
  animation: neuradesk-core-pulse 3.2s ease-in-out infinite;
}

.neuradesk-core strong {
  color: #e0f2fe;
  font: 700 1rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.12em;
}

.neuradesk-core small {
  color: #34d399;
  font: 700 0.46rem/1 'DM Sans', sans-serif;
  letter-spacing: 0.18em;
}

.neuradesk-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.neuradesk-orbit.orbit-one {
  width: 120px;
  height: 76px;
  animation: neuradesk-orbit-one 8s linear infinite;
}

.neuradesk-orbit.orbit-two {
  width: 154px;
  height: 104px;
  border-color: rgba(167, 139, 250, 0.22);
  animation: neuradesk-orbit-two 11s linear infinite reverse;
}

.neuradesk-orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px currentColor;
}

.neuradesk-orbit i:first-child { left: 12%; top: 12%; }
.neuradesk-orbit i:last-child { right: 8%; bottom: 14%; background: #a78bfa; }

.neuradesk-stream {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  display: grid;
  gap: 0.58rem;
  transform: translateY(-50%);
}

.neuradesk-stream span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font: 600 0.54rem/1.2 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
}

.neuradesk-stream i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 9px rgba(56, 189, 248, 0.76);
  animation: neuradesk-signal-blink 1.8s ease-in-out infinite;
}

.neuradesk-stream span:nth-child(2) i { animation-delay: 0.35s; background: #34d399; }
.neuradesk-stream span:nth-child(3) i { animation-delay: 0.7s; background: #a78bfa; }

.neuradesk-status {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font: 700 0.48rem/1 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
}

@keyframes neuradesk-core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 30px rgba(14, 165, 233, 0.24), inset 0 0 18px rgba(125, 211, 252, 0.12); }
  50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 48px rgba(14, 165, 233, 0.4), inset 0 0 24px rgba(125, 211, 252, 0.18); }
}

@keyframes neuradesk-orbit-one {
  from { transform: translate(-50%, -50%) rotate(12deg); }
  to { transform: translate(-50%, -50%) rotate(372deg); }
}

@keyframes neuradesk-orbit-two {
  from { transform: translate(-50%, -50%) rotate(-38deg); }
  to { transform: translate(-50%, -50%) rotate(322deg); }
}

@keyframes neuradesk-signal-blink {
  0%, 100% { opacity: 0.38; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

[data-theme="light"] .neuradesk-feature {
  background: linear-gradient(118deg, rgba(224, 242, 254, 0.88), rgba(255, 255, 255, 0.82) 46%, rgba(245, 243, 255, 0.9));
}

[data-theme="light"] .case-project-link { color: #0f172a; }
[data-theme="light"] .case-project-link:hover,
[data-theme="light"] .case-project-link:focus-visible { color: #0369a1; }

input,
textarea,
select {
  min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--future-cyan) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14), 0 0 26px rgba(37, 99, 235, 0.1);
}

:focus-visible {
  outline: 2px solid #7dd3fc !important;
  outline-offset: 3px !important;
}

footer {
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.9), #020309);
  border-top-color: rgba(125, 211, 252, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .case-card:hover,
  .problem-card:hover,
  .testimonial-card:hover {
    --vf-lift: -6px;
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.44), 0 0 34px rgba(37, 99, 235, 0.09);
  }

  .service-card:hover::before,
  .case-card:hover::before,
  .problem-card:hover::before,
  .testimonial-card:hover::before { opacity: 1; }
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 42%, rgba(124, 58, 237, 0.09), transparent 32rem),
    #f8fafc;
}

[data-theme="light"] .vf-three-canvas {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

[data-theme="light"] .vf-depth-rail {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(37, 99, 235, 0.16);
}

[data-theme="light"] nav {
  background: rgba(248, 250, 252, 0.84);
  border-bottom-color: rgba(37, 99, 235, 0.14);
}

[data-theme="light"] .hero {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.97), rgba(248, 250, 252, 0.82) 56%, rgba(248, 250, 252, 0.2));
}

[data-theme="light"] .problem-section,
[data-theme="light"] .services-section,
[data-theme="light"] .hiw-section,
[data-theme="light"] .cases-section,
[data-theme="light"] .testimonials-section,
[data-theme="light"] .demo-section,
[data-theme="light"] .founder-section,
[data-theme="light"] .calc-section,
[data-theme="light"] .audit-section,
[data-theme="light"] .contact-section {
  background-color: rgba(248, 250, 252, 0.78);
}

[data-theme="light"] .problem-card,
[data-theme="light"] .service-card,
[data-theme="light"] .case-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .hiw-step,
[data-theme="light"] .demo-terminal,
[data-theme="light"] .contact-form-box,
[data-theme="light"] .audit-wrap,
[data-theme="light"] .calc-controls,
[data-theme="light"] .calc-summary-inner {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: 0 20px 58px rgba(15, 23, 42, 0.08), inset 0 1px 0 #fff;
}

@media (max-width: 1024px) {
  .vf-three-canvas { opacity: 0.56; }
  nav { padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
  .hero { background: linear-gradient(90deg, rgba(3, 5, 11, 0.96), rgba(3, 5, 11, 0.7)); }
  .hero-photo-card { transform: none; }
  .vf-spatial-hud { right: 0; }
  .vf-depth-rail { right: 0.55rem; }
}

@media (max-width: 900px) {
  .mobile-nav {
    background: rgba(3, 5, 11, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }

  .hero { min-height: auto; padding-top: calc(var(--nav-h, 72px) + 3rem); }
  .hero::before { inset: 42% -38% -28%; opacity: 0.28; }
  .hero h1 { max-width: 14ch; }
  .hero-right { min-height: 340px; }
  .hero-right::before { width: 360px; right: 50%; transform: translate(50%, -50%) rotateX(68deg) rotateZ(24deg); }
  .vf-spatial-hud { top: 0; right: calc(50% - 190px); }
  .section-inner { padding-block: clamp(3.25rem, 8vw, 4.75rem); }
  .service-card { grid-template-columns: minmax(0, 1fr) !important; }
  .service-content, .service-result { min-width: 0; }
  .service-result { text-align: left !important; }
  .neuradesk-feature { grid-template-columns: minmax(0, 1fr); }
  .neuradesk-console { min-height: 230px; }
}

@media (max-width: 640px) {
  :root { --future-radius: 18px; }

  .vf-three-canvas { opacity: 0.4; }
  body::before { width: 22rem; height: 22rem; right: -12rem; }
  body::after { width: 18rem; height: 18rem; left: -10rem; }
  nav { padding-inline: 1rem; }
  .nav-logo-icon { width: 40px; height: 40px; }
  .hero { padding-inline: 1.25rem; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); letter-spacing: -0.055em; }
  .hero-sub, .section-sub { font-size: 0.98rem; line-height: 1.7; }
  .hero-actions { width: 100%; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .hero-stats-inline { flex-wrap: wrap; row-gap: 1.25rem; }
  .section-inner { padding-inline: 1.25rem; }
  .problem-card,
  .service-card,
  .case-card,
  .testimonial-card,
  .contact-form-box,
  .audit-wrap { border-radius: var(--future-radius); }
  .service-card { padding: 1.25rem !important; gap: 1rem !important; }
  .service-content .problem { letter-spacing: 0.07em; line-height: 1.45; }
  .service-tags { gap: 0.45rem; }
  .tag { white-space: normal; }
  .neuradesk-feature { padding: 1.25rem !important; gap: 1.35rem; }
  .neuradesk-console { min-height: 220px; padding: 1rem; }
  .neuradesk-signal-map { left: 38%; transform: translate(-50%, -50%) scale(0.88); }
  .neuradesk-console::before { left: 38%; }
  .neuradesk-stream { right: 0.8rem; }
  .neuradesk-stream span { max-width: 92px; }
  .neuradesk-status { font-size: 0.42rem; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .vf-spatial-hud { display: none; }
  .vf-depth-rail { display: none; }
  .fab { display: none !important; }
  body > section::after { top: 1rem; right: 1.25rem; font-size: 0.54rem; }
  #vfa-btn {
    width: 54px;
    height: 54px;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  #vfa-tooltip { display: none; }
  #vfa-panel {
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
  }
}

@media (pointer: coarse) {
  .nav-links a,
  .footer-col a {
    min-height: 44px;
  }
}

@media (max-height: 500px) and (pointer: coarse) {
  .fab { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-three-canvas { opacity: 0.3; }
  .hero-photo-card,
  .service-card,
  .case-card,
  .problem-card,
  .testimonial-card { transform: none !important; }
  .nav-cta::before,
  .btn-primary::before { display: none; }
  .vf-depth-rail__marker { transition: none; }
  .neuradesk-core,
  .neuradesk-orbit,
  .neuradesk-stream i { animation: none !important; }
  .case-project-link svg { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  nav,
  .mobile-nav,
  .problem-card,
  .service-card,
  .case-card,
  .testimonial-card,
  .contact-form-box,
  .audit-wrap {
    background: var(--bg2) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (forced-colors: active) {
  .vf-three-canvas,
  .vf-depth-rail,
  body::before,
  body::after,
  .hero::before { display: none; }
  .problem-card,
  .service-card,
  .case-card,
  .testimonial-card { border: 1px solid CanvasText; }
}
