/* Neo tech layer — homepage only (.site-neo) */

.site-neo {
  --neo-bg: #04060c;
  --neo-surface: #0c1019;
  --neo-surface-2: #121826;
  --neo-border: rgba(148, 163, 184, 0.14);
  --neo-glow: #22d3ee;
  --neo-glow-2: #818cf8;
  --neo-accent: #c9a227;
  --neo-text: #e8edf5;
  --neo-muted: #94a3b8;
  --neo-radius: 14px;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-CN"] .site-neo {
  --font-display: var(--font-zh);
  --font-body: var(--font-zh);
}

html[lang="en"] .site-neo {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

.site-neo {
  font-family: var(--font-body);
  color: var(--neo-text);
  background: var(--neo-bg);
}

.site-neo h1,
.site-neo h2,
.site-neo h3,
.site-neo h4 {
  font-family: var(--font-display);
  color: var(--neo-text);
}

.site-neo a:not(.btn-neo-primary):not(.btn-neo-ghost):not(.nav-link--cta):not(.btn-primary) {
  color: var(--neo-glow);
}

.site-neo a:not(.btn-neo-primary):not(.btn-neo-ghost):not(.btn-primary):hover {
  color: #67e8f9;
}

.site-neo a.btn-neo-primary,
.site-neo a.btn-neo-primary:hover,
.site-neo a.btn-primary,
.site-neo a.btn-primary:hover {
  color: #041018 !important;
}

.site-neo a.btn-neo-ghost,
.site-neo a.btn-neo-ghost:hover {
  color: var(--neo-text);
}

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-neo.cursor-ready .cursor-glow {
  opacity: 1;
}

@media (max-width: 900px), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* Header — fixed pin (Excel-style freeze) */
.site-header--neo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 320;
  width: 100%;
  box-sizing: border-box;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(4, 6, 12, 0.94);
  border-bottom: 1px solid var(--neo-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header--neo.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header--neo {
  overflow: visible;
}

.site-neo .header-inner {
  height: var(--header-height);
  position: relative;
  z-index: 2;
}

.site-neo .site-main {
  padding-top: calc(var(--header-height) + var(--safe-top));
}

.site-neo .logo-wordmark {
  color: var(--neo-text);
  font-family: var(--font-display);
}

.site-neo .logo-wordmark em {
  color: var(--neo-accent);
}

.site-neo .nav-link {
  color: var(--neo-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-neo .nav-link:hover,
.site-neo .nav-link.is-active {
  color: var(--neo-text);
}

.site-neo .nav-link--cta {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.15));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--neo-text);
  border-radius: 999px;
}

.site-neo .lang-btn {
  background: rgba(12, 18, 30, 0.9);
  color: #cbd5e1;
  border-color: var(--neo-border);
}

.site-neo .lang-btn:hover {
  color: var(--neo-text);
  border-color: rgba(34, 211, 238, 0.35);
}

.site-neo .lang-btn.active {
  color: #041018;
  font-weight: 700;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  border-color: rgba(34, 211, 238, 0.55);
}

/* Hero */
.hero-neo {
  position: relative;
  min-height: min(92vh, 920px);
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  color: var(--neo-text);
}

.hero-neo__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 15% 20%, rgba(129, 140, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(34, 211, 238, 0.18), transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(201, 162, 39, 0.08), transparent 45%),
    linear-gradient(180deg, #060a12 0%, #04060c 55%, #030508 100%);
}

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

.hero-neo__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 3px
  );
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.hero-neo__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: min(72vh, 720px);
}

.hero-neo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(0.72rem * 1.35);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neo-glow);
  margin-bottom: 18px;
}

html[lang="zh-CN"] .hero-neo__eyebrow {
  font-size: calc(0.82rem * 1.35);
}

.hero-neo__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neo-glow);
  box-shadow: 0 0 12px var(--neo-glow);
  animation: neoPulse 2s ease-in-out infinite;
}

@keyframes neoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-neo__title {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: #f8fafc;
  text-wrap: balance;
  white-space: pre-line;
}

html[lang="zh-CN"] .hero-neo__title {
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.38;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
}

html[lang="en"] .hero-neo__title {
  color: #f8fafc;
  letter-spacing: -0.03em;
  line-height: 1.18;
  font-weight: 700;
}

html[lang="en"] .hero-neo__desc,
html[lang="en"] .section-header p,
html[lang="en"] .story-text,
html[lang="en"] .card--neo p,
html[lang="en"] .cta-desc,
html[lang="en"] .contact-note {
  font-size: 1.02rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.hero-neo__desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--neo-muted);
  max-width: 34rem;
  margin-bottom: 28px;
}

html[lang="zh-CN"] .hero-neo__desc {
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #a8b4c8;
}

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

.btn-neo-primary,
.btn-neo-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-neo-primary {
  color: #021018;
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 45%, #818cf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 24px rgba(34, 211, 238, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.2);
  overflow: hidden;
}

.btn-neo-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

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

.btn-neo-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 40px rgba(34, 211, 238, 0.55),
    0 0 0 1px rgba(129, 140, 248, 0.3);
  color: #021018;
  text-decoration: none;
}

.btn-neo-primary .btn-neo__arrow {
  transition: transform 0.25s ease;
}

.btn-neo-primary:hover .btn-neo__arrow {
  transform: translateX(4px);
}

.btn-neo-ghost {
  color: var(--neo-text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-neo-ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.15);
  color: #fff;
  text-decoration: none;
}

html[lang="zh-CN"] .btn-neo-primary,
html[lang="zh-CN"] .btn-neo-ghost {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-neo__scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neo-muted);
}

.hero-neo__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--neo-glow), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-neo__visual {
  --hero-visual-size: min(100%, 420px, 72vw, 52vh);
  position: relative;
  width: var(--hero-visual-size);
  height: var(--hero-visual-size);
  max-width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  aspect-ratio: 1;
}

/* CSS 3D scene — always visible, square viewport */
.hero-3d {
  --hero-cycle: 22s;
  --hero-orb-slow: 0.75;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-3d__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-3d__stage {
  position: absolute;
  inset: 8%;
  perspective: 900px;
  transform-style: preserve-3d;
  z-index: 2;
}

/* Spheres in flat layer — stay perfect circles (no perspective squash) */
.hero-3d__satellites {
  position: absolute;
  inset: 8%;
  z-index: 3;
  pointer-events: none;
}

.hero-3d__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid transparent;
  transform-style: preserve-3d;
}

.hero-3d__ring--a {
  width: 100%;
  height: 100%;
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12), inset 0 0 30px rgba(34, 211, 238, 0.08);
  animation: ring3dA var(--hero-cycle) linear infinite;
}

.hero-3d__ring--b {
  width: 78%;
  height: 78%;
  border-color: rgba(129, 140, 248, 0.4);
  border-style: dashed;
  animation: ring3dB var(--hero-cycle) linear infinite reverse;
}

.hero-3d__ring--c {
  width: 56%;
  height: 56%;
  border-color: rgba(201, 162, 39, 0.25);
  animation: ring3dC var(--hero-cycle) linear infinite;
}

@keyframes ring3dA {
  0% { transform: rotateX(68deg) rotateZ(0deg); }
  100% { transform: rotateX(68deg) rotateZ(360deg); }
}

@keyframes ring3dB {
  0% { transform: rotateX(72deg) rotateY(12deg) rotateZ(0deg); }
  100% { transform: rotateX(72deg) rotateY(12deg) rotateZ(-360deg); }
}

@keyframes ring3dC {
  0% { transform: rotateX(64deg) rotateZ(0deg) scale(1); }
  50% { transform: rotateX(64deg) rotateZ(180deg) scale(1.04); }
  100% { transform: rotateX(64deg) rotateZ(360deg) scale(1); }
}

.hero-3d__orbit {
  position: absolute;
  inset: 18%;
  margin: auto;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.2);
  animation: orbitSpin var(--hero-cycle) linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.hero-3d__core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38%;
  height: 38%;
  aspect-ratio: 1;
}

.hero-3d__core-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e0f2fe, #22d3ee 35%, #4f46e5 85%);
  box-shadow:
    0 0 60px rgba(34, 211, 238, 0.65),
    0 0 120px rgba(129, 140, 248, 0.35),
    inset 0 -8px 24px rgba(15, 23, 42, 0.4);
}

.hero-3d__core-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32) 0%, transparent 70%);
  opacity: 0.8;
}

.hero-3d__orb {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
}

.hero-3d__orb--purple {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle at 30% 28%, #e9d5ff, #a855f7 45%, #6b21a8 90%);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.65);
  animation: orbOrbitPurple calc(var(--hero-cycle) / var(--hero-orb-slow)) linear infinite;
}

.hero-3d__orb--green {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle at 30% 28%, #bbf7d0, #22c55e 45%, #15803d 90%);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
  animation: orbOrbitGreen calc(var(--hero-cycle) / var(--hero-orb-slow)) linear infinite reverse;
}

.hero-3d__orb--yellow {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background: radial-gradient(circle at 30% 28%, #fef9c3, #eab308 45%, #a16207 90%);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.65);
  animation: orbOrbitYellow var(--hero-cycle) linear infinite;
}

/* 2D orbits — flat layer keeps spheres circular */
@keyframes orbOrbitPurple {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(36%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(36%) rotate(-360deg); }
}

@keyframes orbOrbitGreen {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(28%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg) translateX(28%) rotate(360deg); }
}

/* Yellow — tilted ellipse along ring B */
@keyframes orbOrbitYellow {
  0%   { left: 71%; top: 24%; transform: translate(-50%, -50%); }
  25%  { left: 56%; top: 58%; transform: translate(-50%, -50%); }
  50%  { left: 29%; top: 50%; transform: translate(-50%, -50%); }
  75%  { left: 40%; top: 20%; transform: translate(-50%, -50%); }
  100% { left: 71%; top: 24%; transform: translate(-50%, -50%); }
}


/* Spline overlay — fades in when loaded */
.hero-neo__spline-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: var(--neo-radius);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  z-index: 4;
  aspect-ratio: 1;
}

.hero-neo__spline-shell.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.hero-neo__spline {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d__ring,
  .hero-3d__core,
  .hero-3d__orb,
  .hero-3d__orbit,
  .hero-3d__satellites .hero-3d__core {
    animation: none !important;
  }

  .hero-neo__spline-shell { display: none; }
}

/* Stats */
.story-stats--neo {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  padding: 0 0 56px;
  background: transparent;
  border: none;
}

.story-stats--neo .story-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
  background: rgba(12, 16, 25, 0.85);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.story-stats--neo .story-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--neo-border);
  border-radius: 10px;
  padding: 20px 14px;
  box-shadow: none;
}

.story-stats--neo .story-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--neo-glow);
}

.story-stats--neo .story-stat-label {
  color: var(--neo-muted);
}

/* Page body */
.site-neo .page-body {
  background: var(--neo-bg);
}

.site-neo .section--neo,
.site-neo .section-story {
  background: transparent;
}

.site-neo .section-alt {
  background: var(--neo-surface);
}

.site-neo .section-header .section-label,
.site-neo .split-content .section-label {
  display: inline-block;
  padding: 8px 17px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2.625vw, 1.58rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #021018;
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 38%, #a78bfa 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  outline: none;
  box-shadow:
    0 0 22px rgba(34, 211, 238, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-neo .page-hero .section-label,
.site-neo .section-story-bottom .section-label {
  font-size: clamp(0.75rem, 1.875vw, 1.02rem);
  padding: 6px 12px;
}

html[lang="zh-CN"] .site-neo .section-header .section-label,
html[lang="zh-CN"] .site-neo .split-content .section-label {
  letter-spacing: 0.04em;
  text-transform: none;
}

.site-neo .section-header p {
  color: var(--neo-muted);
}

.site-neo .story-founded time {
  color: var(--neo-accent);
}

.site-neo .story-text {
  color: var(--neo-muted);
}

/* Bento cards */
.card-grid--bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card--neo {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card--neo:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 48px rgba(34, 211, 238, 0.08);
}

.card--neo h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card--neo p {
  color: var(--neo-muted);
}

.card--wide { grid-column: span 6; }
.card--span-8 { grid-column: span 8; }
.card--span-4 { grid-column: span 4; }

.card--featured.card--neo {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(129, 140, 248, 0.06));
  border-color: rgba(34, 211, 238, 0.25);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.2);
  position: relative;
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neo-glow), var(--neo-glow-2));
  opacity: 0.85;
}

.card-icon--mvp::after { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); inset: 10px; }
.card-icon--ecom::after { border-radius: 2px; inset: 11px 8px; }
.card-icon--portal::after { inset: 10px; border-radius: 2px; box-shadow: inset 0 -8px 0 rgba(4, 6, 12, 0.35); }
.card-icon--booking::after { inset: 11px; border-radius: 50%; }
.card-icon--landing::after { clip-path: polygon(0 100%, 50% 0, 100% 100%); inset: 12px 10px; }
.card-icon--api::after { inset: 14px; border-radius: 0; transform: rotate(45deg); }
.card-icon--saas::after { inset: 10px; border-radius: 50% 50% 4px 4px; }
.card-icon--mobile::after { inset: 8px 14px; border-radius: 6px; }

.site-neo .card-tags li {
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Split / checklist */
.split-layout--neo .checklist {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--neo-border);
}

.site-neo .checklist li {
  color: var(--neo-text);
}

.site-neo .checklist li::before {
  color: var(--neo-glow);
}

.site-neo .split-content p {
  color: var(--neo-muted);
}

/* Steps */
.step-card--neo {
  background: rgba(18, 24, 38, 0.8);
  border-color: var(--neo-border);
  border-radius: var(--neo-radius);
}

.step-card--neo .step-num {
  color: var(--neo-glow);
  font-family: var(--font-display);
}

.step-card--neo p {
  color: var(--neo-muted);
}

/* Business */
.site-neo .business-fact {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--neo-border);
}

.site-neo .business-fact dt {
  color: var(--neo-muted);
}

.site-neo .business-fact dd {
  color: var(--neo-text);
}

/* Process + contact: one continuous background (fixes black gap band) */
.site-neo .neo-bottom-band {
  background: linear-gradient(
    180deg,
    var(--neo-bg) 0%,
    #080d16 22%,
    #0c1422 48%,
    #0f1a2e 72%,
    #0a0f18 88%,
    #060a12 100%
  );
}

.site-neo .neo-bottom-band #process.section--neo {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(20px, 4vw, 36px);
  background: transparent;
}

.site-neo .neo-bottom-band #contact.cta-banner--neo,
.site-neo .neo-bottom-band .cta-banner.cta-banner--neo {
  margin-top: 0;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(64px, 10vw, 96px);
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none;
}

.site-neo .neo-bottom-band .cta-banner--neo .tech-scene,
.site-neo .neo-bottom-band .cta-banner--neo .tech-scene--echo {
  background: none !important;
  opacity: 1;
}

.site-neo .neo-bottom-band .cta-banner--neo .tech-ambient--purple {
  width: 55%;
  height: 50%;
  top: 5%;
  left: -5%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, transparent 70%);
}

.site-neo .neo-bottom-band .cta-banner--neo .tech-ambient--teal {
  width: 50%;
  height: 45%;
  bottom: 0;
  right: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
}

.site-neo .neo-bottom-band .tech-grid {
  display: none;
}

.site-neo .site-footer {
  border-top: none;
  background: linear-gradient(180deg, #060a12 0%, var(--neo-bg) 100%);
}

.cta-banner--neo .contact-links .btn {
  padding: 9px 21px;
  font-size: 0.85rem;
  min-height: 42px;
}

.cta-banner--neo .btn-primary {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  color: #041018 !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-banner--neo .btn-primary:hover {
  color: #021018 !important;
  filter: brightness(1.05);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cta-banner--neo .btn-outline-dark {
  background: rgba(12, 18, 30, 0.65);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--neo-text) !important;
  box-shadow:
    0 0 14px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-banner--neo .btn-outline-dark:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(103, 232, 249, 0.55);
  color: #fff !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.22);
}

/* Footer — see .neo-bottom-band block above for gradient */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Spline logo hide attempt */
.hero-neo__spline::part(logo) {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-neo__grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }

  .hero-neo__copy {
    order: 2;
  }

  .hero-neo__visual {
    order: 1;
    --hero-visual-size: min(88vw, 360px, 48vh);
    min-height: 0;
  }

  .hero-neo__desc {
    margin-inline: auto;
  }

  .hero-neo__actions,
  .hero-neo__scroll {
    justify-content: center;
    align-items: center;
  }

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

  .hero-neo__actions .btn-neo-primary,
  .hero-neo__actions .btn-neo-ghost {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 220px;
  }

  .card--wide,
  .card--span-8,
  .card--span-4 {
    grid-column: span 12;
  }

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

@media (max-width: 768px) {
  .story-stats--neo .story-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-neo {
    min-height: auto;
  }

  .hero-neo__spline-shell {
    display: none !important;
  }

  .hero-neo {
    overflow: visible;
    padding-bottom: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid--bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1025px) {
  .card-grid--bento .card--neo:not(.card--wide):not(.card--span-8):not(.card--span-4) {
    grid-column: span 3;
  }
}

/* Horizontal scroll — homepage preview */
.section-header--rail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  text-align: left;
  margin-bottom: 28px;
}

.section-header--rail .section-header__copy {
  flex: 1 1 280px;
}

.section-header--rail h2,
.section-header--rail p {
  margin-left: 0;
  margin-right: 0;
}

.section-header--rail p {
  max-width: 36rem;
}

.section-header__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.scroll-rail {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, var(--safe-left));
  margin: 0 calc(-1 * max(24px, var(--safe-left)));
  padding: 8px max(24px, var(--safe-left)) 16px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.35) transparent;
}

@media (min-width: 901px) {
  .scroll-rail {
    overflow-x: hidden;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  .scroll-rail::-webkit-scrollbar {
    display: none;
  }

  .scroll-rail.is-paused .scroll-rail__track {
    animation-play-state: paused;
  }

  .scroll-rail__track--auto {
    will-change: transform;
    animation: scrollRailPingPong 22s ease-in-out infinite;
  }
}

@keyframes scrollRailPingPong {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(var(--scroll-rail-shift, -50%)); }
}

.scroll-rail__track {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}

.scroll-card {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  min-height: 220px;
}

.scroll-rail .scroll-card.card--neo {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.1), rgba(18, 24, 38, 0.9));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.scroll-card h3 {
  font-size: 1.08rem;
}

.scroll-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.scroll-rail__hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--neo-muted);
  text-align: center;
}

/* Subpages */
.page-sub .site-main {
  padding-top: calc(var(--header-height) + var(--safe-top) + 12px);
}

.page-hero {
  padding: clamp(40px, 6vw, 64px) 0 32px;
  border-bottom: 1px solid var(--neo-border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--neo-muted);
  max-width: 40rem;
  line-height: 1.7;
}

.page-hero__cta {
  margin-top: 24px;
}

.site-neo .business-facts {
  max-width: 42rem;
  margin: 0 auto;
}

.section-story-bottom {
  border-top: 1px solid var(--neo-border);
  background: var(--neo-surface);
  padding-top: clamp(48px, 7vw, 72px);
}

.site-neo .section-story-bottom .section-header {
  text-align: center;
}

.site-neo .section-story-bottom .story-block {
  max-width: 40rem;
  margin-inline: auto;
}

/* Services page — mobile-friendly full-width cards */
.page-services .section--neo {
  overflow: visible;
  padding-bottom: clamp(48px, 8vw, 80px);
}

.card-grid--services-page {
  width: 100%;
}

@media (max-width: 768px) {
  .page-services .card-grid--services-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .page-services .card-grid--services-page .card--neo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: unset !important;
    transform: none !important;
    will-change: auto;
  }

  .page-services .card--neo h2,
  .page-services .card--neo h3 {
    font-size: 1.1rem;
    word-wrap: break-word;
  }

  .page-services .card--neo p {
    font-size: 0.95rem;
  }

  .page-services .business-fact,
  .site-neo .business-fact {
    grid-template-columns: 1fr;
  }

  .page-hero__cta .btn-neo-primary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .page-services .card--neo {
    padding: 20px 18px;
  }

  .page-sub .container {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }
}

.nav-link.is-active,
.nav-link--active {
  color: var(--neo-text) !important;
}

@media (max-width: 900px) {
  .site-neo .nav-toggle span {
    background: var(--neo-text);
  }
}

/* Mobile / tablet — full-width panel below header (nav is outside header) */
@media (max-width: 1024px) {
  .site-neo .main-nav.site-nav-panel {
    order: unset;
  }

  .site-neo .nav-toggle {
    display: flex;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
  }

  .site-neo .lang-switcher {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    margin-left: auto;
  }

  .site-neo .logo {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    max-width: 52%;
  }

  .site-neo .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-neo .site-nav-panel {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding: 20px max(20px, var(--safe-left)) max(28px, env(safe-area-inset-bottom)) max(20px, var(--safe-right));
    background: var(--neo-surface);
    border-top: 1px solid var(--neo-border);
    transform: translateY(-108%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.28s ease, visibility 0.28s;
    z-index: 450;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    visibility: hidden;
    pointer-events: none;
  }

  .site-neo .site-nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-neo .site-nav-panel .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-neo .site-nav-panel .nav-list li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .site-neo .site-nav-panel .nav-link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 16px 18px;
    font-size: 1.12rem;
    border-radius: 10px;
    min-height: var(--touch-min);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
  }

  .site-neo .site-nav-panel .nav-link--cta {
    margin-top: 4px;
  }

  .site-neo .nav-backdrop {
    position: fixed;
    inset: 0;
    top: calc(var(--header-height) + var(--safe-top));
    z-index: 440;
  }

  .site-neo .nav-backdrop.visible {
    display: block;
  }

  body.nav-open.site-neo {
    overflow: hidden;
    touch-action: none;
  }
}

/* Desktop: fixed centered nav in header band */
@media (min-width: 1025px) {
  .site-neo .site-nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--safe-top);
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    z-index: 325;
  }

  .site-neo .site-nav-panel .nav-list,
  .site-neo .site-nav-panel .nav-link {
    pointer-events: auto;
  }

  .site-neo .nav-backdrop {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .site-neo .nav-toggle {
    display: none;
  }

  .site-neo .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-neo .nav-link {
    padding: 8px 11px;
    font-size: 0.86rem;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .site-neo .nav-link {
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .site-neo .logo-wordmark {
    font-size: 0.95rem;
  }
}
