:root {
  --bg-0: #05050d;
  --bg-1: #080817;
  --bg-2: #0b0a1a;
  --violet: #8b5cf6;
  --violet-deep: #7c3aed;
  --purple: #a855f7;
  --indigo: #4f46e5;
  --indigo-soft: #6366f1;
  --lilac: #c4b5fd;
  --text: #ffffff;
  --text-2: #e5e7eb;
  --text-3: #9ca3af;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(139, 92, 246, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --glow: 0 0 40px rgba(139, 92, 246, 0.28);
  --radius: 22px;
  --header-h: 76px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-2);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--violet);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* ========== Background ========== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(79, 70, 229, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #070616 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 78%);
  animation: grid-drift 48s linear infinite;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.bg-glow-a {
  width: 520px;
  height: 520px;
  left: -120px;
  top: 80px;
  background: rgba(124, 58, 237, 0.22);
  animation: glow-float 18s ease-in-out infinite;
}

.bg-glow-b {
  width: 640px;
  height: 640px;
  right: -180px;
  top: 120px;
  background: rgba(79, 70, 229, 0.18);
  animation: glow-float 22s ease-in-out infinite reverse;
}

.bg-glow-c {
  width: 480px;
  height: 480px;
  left: 35%;
  bottom: -160px;
  background: rgba(168, 85, 247, 0.12);
  animation: glow-float 26s ease-in-out infinite;
}

.bg-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 62%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 23, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(139, 92, 246, 0.14);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark,
.logo-svg {
  width: 34px;
  height: 34px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-3);
  transition: color 0.25s;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--indigo-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 30;
  background: rgba(5, 5, 13, 0.88);
  backdrop-filter: blur(22px);
  padding: 28px;
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}

.mobile-link {
  padding: 14px 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-cta {
  margin-top: 18px;
  justify-content: center;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s, background 0.35s;
}

.btn-glow {
  color: #fff;
  background: linear-gradient(135deg, #9d6cff 0%, var(--violet-deep) 48%, var(--indigo) 100%);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 8px 28px rgba(124, 58, 237, 0.32);
}

.btn-glow:hover {
  box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.45), 0 10px 36px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

.btn-lg {
  padding: 14px 24px;
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

/* ========== Shared ========== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 108px 28px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.08);
  color: var(--lilac);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  animation: pulse 2.4s ease-in-out infinite;
}

.text-gradient {
  background: linear-gradient(105deg, #ddd6fe 0%, #a855f7 42%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  margin-bottom: 48px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-top: 18px;
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  max-width: 640px;
}

.section-desc {
  max-width: 360px;
  color: var(--text-3);
  font-size: 1.02rem;
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.45), transparent 38%, transparent 62%, rgba(99, 102, 241, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.35s;
}

.glass-card:hover::before {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

/* ========== Hero ========== */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 40px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.hero-title {
  margin: 22px 0 20px;
  font-size: clamp(2.8rem, 7.2vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 520px;
  color: var(--text-3);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.holo-stage {
  position: relative;
  width: min(100%, 540px);
  height: 540px;
  perspective: 1100px;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}

.holo-platform {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 280px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.35), transparent 68%);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.18);
}

.holo-platform::after {
  content: "";
  position: absolute;
  inset: 18px 30px;
  border: 1px solid rgba(196, 181, 253, 0.25);
  border-radius: 50%;
}

.holo-reflection {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 160px;
  height: 90px;
  transform: translateX(-50%) scaleY(-1);
  opacity: 0.18;
  filter: blur(8px);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.7), transparent 70%);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.08);
}

.orbit-a {
  width: 250px;
  height: 250px;
  animation: orbit-spin 18s linear infinite;
}

.orbit-b {
  width: 330px;
  height: 330px;
  border-color: rgba(99, 102, 241, 0.18);
  animation: orbit-spin 28s linear infinite reverse;
}

.orbit-c {
  width: 400px;
  height: 400px;
  border-style: dashed;
  border-color: rgba(196, 181, 253, 0.12);
  animation: orbit-spin 40s linear infinite;
}

.holo-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pulse-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3.6s ease-in-out infinite;
}

.energy-sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ede9fe, var(--violet) 45%, transparent 70%);
  filter: blur(0.2px);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
  animation: float-y 7s ease-in-out infinite;
}

.s1 { width: 10px; height: 10px; left: 18%; top: 28%; animation-delay: 0s; }
.s2 { width: 7px; height: 7px; right: 16%; top: 22%; animation-delay: 1.2s; }
.s3 { width: 12px; height: 12px; left: 12%; bottom: 32%; animation-delay: 0.6s; }
.s4 { width: 6px; height: 6px; right: 22%; bottom: 28%; animation-delay: 1.8s; }
.s5 { width: 8px; height: 8px; left: 46%; top: 12%; animation-delay: 0.4s; }

.cube-float {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 168px;
  height: 168px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: cube-bob 7s ease-in-out infinite;
}

.cube {
  width: 168px;
  height: 168px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 22s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(15, 14, 32, 0.35) 55%, rgba(79, 70, 229, 0.1));
  border: 1px solid rgba(196, 181, 253, 0.38);
  box-shadow: inset 0 0 28px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(6px);
}

.cube-face::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cube-front { transform: translateZ(84px); }
.cube-back { transform: rotateY(180deg) translateZ(84px); }
.cube-right { transform: rotateY(90deg) translateZ(84px); }
.cube-left { transform: rotateY(-90deg) translateZ(84px); }
.cube-top { transform: rotateX(90deg) translateZ(84px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(84px); }

.cube-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(1px);
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.7));
  animation: core-pulse 4.5s ease-in-out infinite;
}

.core-logo {
  width: 78px;
  height: 78px;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 11, 28, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.28);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  animation: float-y 6.5s ease-in-out infinite;
  white-space: nowrap;
}

.float-card-icon {
  width: 18px;
  height: 18px;
  color: var(--lilac);
}

.float-card-icon svg {
  width: 18px;
  height: 18px;
}

.fc-1 { top: 58px; left: 8px; animation-delay: 0s; }
.fc-2 { top: 78px; right: 0; animation-delay: 0.8s; }
.fc-3 { bottom: 86px; left: 0; animation-delay: 1.4s; }
.fc-4 { bottom: 108px; right: 6px; animation-delay: 0.4s; }

/* ========== Services ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  grid-column: span 2;
  padding: 26px 24px 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

@media (min-width: 1101px) {
  .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--lilac);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.service-card p {
  color: var(--text-3);
  font-size: 0.95rem;
  flex: 1;
}

.card-arrow {
  margin-top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--lilac);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
}

.card-arrow:hover {
  background: rgba(139, 92, 246, 0.18);
  transform: translateX(3px);
}

/* ========== Work ========== */
.work .section-head-row {
  align-items: flex-end;
}

.text-link {
  color: var(--lilac);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}

.text-link:hover {
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.work-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease);
}

.work-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12), var(--glow);
  transform: translateY(-4px);
}

.work-visual {
  height: 230px;
  position: relative;
  overflow: hidden;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-visual {
  transform: scale(1.05);
}

.work-body {
  padding: 22px 22px 24px;
}

.work-cat {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 8px;
}

.work-body h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.work-body p {
  color: var(--text-3);
}

.vis-astral {
  background:
    radial-gradient(circle at 50% 48%, rgba(168, 85, 247, 0.35), transparent 28%),
    radial-gradient(circle at 70% 20%, rgba(79, 70, 229, 0.35), transparent 40%),
    linear-gradient(160deg, #120b28, #070616);
}

.vis-orb {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ede9fe, #7c3aed 55%, #1e1b4b);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.55);
}

.vis-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(62deg);
}

.vis-ring.r1 { width: 110px; height: 110px; }
.vis-ring.r2 { width: 170px; height: 170px; animation: orbit-spin 16s linear infinite; }
.vis-ring.r3 { width: 230px; height: 230px; border-style: dashed; opacity: 0.6; }

.vis-lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vis-eclipse {
  background:
    radial-gradient(circle at 62% 42%, rgba(99, 102, 241, 0.4), transparent 35%),
    linear-gradient(135deg, #0c0820, #1a1038 55%, #070616);
}

.eclipse-body {
  position: absolute;
  width: 150px;
  height: 150px;
  right: 18%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, #4f46e5 60%, #0b0a1a);
}

.eclipse-shadow {
  position: absolute;
  width: 150px;
  height: 150px;
  right: 28%;
  top: 18%;
  border-radius: 50%;
  background: #070616;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.25);
}

.vis-hex {
  position: absolute;
  inset: 0;
}

.vis-nova {
  background: linear-gradient(180deg, #100a24, #070616);
  display: grid;
  place-items: center;
}

.layer {
  position: absolute;
  left: 50%;
  width: 210px;
  height: 70px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  transform: translateX(-50%) rotateX(62deg);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.18));
}

.layer.l1 { top: 48px; }
.layer.l2 { top: 88px; width: 250px; }
.layer.l3 { top: 128px; width: 290px; opacity: 0.7; }

.layer-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 10px #a855f7;
}

.n1 { left: 32%; top: 70px; }
.n2 { left: 58%; top: 108px; }
.n3 { left: 44%; top: 150px; }

.vis-craft {
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.25), transparent 40%),
    linear-gradient(180deg, #12102a, #080617);
}

.iso-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(139, 92, 246, 0.12) 1px, transparent 1px),
    linear-gradient(150deg, rgba(139, 92, 246, 0.12) 1px, transparent 1px);
  background-size: 28px 48px;
  opacity: 0.5;
}

.voxel {
  position: absolute;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.35), rgba(79, 70, 229, 0.4));
  border: 1px solid rgba(196, 181, 253, 0.4);
  transform: rotateX(50deg) rotateZ(45deg);
  box-shadow: 10px 10px 0 rgba(79, 70, 229, 0.18);
}

.v1 { left: 28%; top: 48px; }
.v2 { left: 46%; top: 78px; width: 54px; height: 54px; }
.v3 { left: 62%; top: 42px; }
.v4 { left: 38%; top: 128px; width: 34px; height: 34px; }

/* ========== Why ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-card {
  padding: 28px;
  min-height: 190px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.why-index {
  font-family: var(--font-display);
  color: var(--violet);
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-3);
}

/* ========== Tech marquee ========== */
.tech {
  margin-top: 100px;
  padding: 10px 0 0;
  overflow: hidden;
}

.tech-badge {
  display: flex;
  width: max-content;
  margin: 0 auto 28px;
}

.marquee {
  border-block: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.015);
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(229, 231, 235, 0.42);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tech-item svg {
  width: 18px;
  height: 18px;
}

/* ========== Insights ========== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.insight-card {
  padding: 26px;
  min-height: 220px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.insight-meta {
  color: var(--lilac);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.insight-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.insight-card p {
  color: var(--text-3);
  font-size: 0.95rem;
}

/* ========== CTA ========== */
.cta-section {
  padding-bottom: 40px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  padding: 48px 48px 40px;
  border-radius: 32px;
  background:
    radial-gradient(600px 240px at 80% 20%, rgba(139, 92, 246, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(168, 85, 247, 0.08), transparent 70%);
  animation: sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.cta-copy p {
  margin: 16px 0 28px;
  color: var(--text-3);
  max-width: 440px;
}

.cta-globe {
  position: relative;
  height: 280px;
  display: grid;
  place-items: center;
}

.globe {
  width: 240px;
  height: 240px;
  animation: globe-spin 7s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.35));
}

.globe-orbit {
  position: absolute;
  width: 270px;
  height: 90px;
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: 50%;
  transform: rotateX(66deg) rotate(-18deg);
  animation: globe-orbit-spin 12s linear infinite;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 80px;
  padding: 64px 28px 28px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  background: linear-gradient(180deg, rgba(11, 10, 26, 0.4), transparent);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 0.7fr 1.1fr;
  gap: 32px;
}

.footer-tag {
  margin: 16px 0 20px;
  color: var(--text-3);
  font-size: 0.92rem;
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.socials a svg {
  width: 16px;
  height: 16px;
}

.socials a:hover {
  color: #fff;
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
}

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer li a {
  color: var(--text-2);
  font-size: 0.94rem;
  transition: color 0.25s;
}

.site-footer li a:hover {
  color: var(--lilac);
}

.footer-news p {
  color: var(--text-3);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.news-form {
  display: flex;
  gap: 8px;
}

.news-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
}

.news-form input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.news-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.news-form button svg {
  width: 16px;
  height: 16px;
}

.news-status {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--lilac);
}

.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-right {
  color: var(--lilac);
}

/* ========== Animations ========== */
@keyframes globe-orbit-spin {
  from { transform: rotateX(66deg) rotate(-18deg); }
  to { transform: rotateX(66deg) rotate(342deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

@keyframes glow-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(30px, -24px, 0); }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(20deg); }
  to { transform: rotateX(-18deg) rotateY(380deg); }
}

@keyframes cube-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 12px)); }
}

@keyframes core-pulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.55)); }
  50% { filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.95)); }
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}

.mobile-nav[hidden] {
  display: none !important;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes globe-spin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sheen {
  0%, 100% { transform: translateX(-20%); opacity: 0.3; }
  50% { transform: translateX(20%); opacity: 0.7; }
}

@keyframes ripple {
  to { transform: scale(16); opacity: 0; }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .holo-stage {
    height: 460px;
  }

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

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-brand,
  .footer-news {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 16px;
  }

  .hero-grid,
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .services-grid,
  .work-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: auto;
  }

  .float-card {
    font-size: 0.7rem;
    padding: 8px 10px;
  }

  .fc-1 { top: 24px; left: 0; }
  .fc-2 { top: 24px; right: 0; }
  .fc-3 { bottom: 64px; }
  .fc-4 { bottom: 64px; }

  .cta-panel {
    padding: 28px 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .holo-stage {
    height: 420px;
  }

  .cube,
  .cube-float {
    width: 132px;
    height: 132px;
  }

  .cube-front { transform: translateZ(66px); }
  .cube-back { transform: rotateY(180deg) translateZ(66px); }
  .cube-right { transform: rotateY(90deg) translateZ(66px); }
  .cube-left { transform: rotateY(-90deg) translateZ(66px); }
  .cube-top { transform: rotateX(90deg) translateZ(66px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(66px); }

  .core-logo {
    width: 62px;
    height: 62px;
  }

  .orbit-c {
    display: none;
  }

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

@media (min-width: 1800px) {
  :root {
    --max: 1360px;
  }

  .hero-title {
    font-size: 7.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .cube,
  .cube-float,
  .cube-core,
  .orbit,
  .float-card,
  .energy-sphere,
  .marquee-track,
  .globe,
  .globe-orbit,
  .bg-grid,
  .bg-glow,
  .cta-panel::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cursor-glow {
    display: none;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--indigo));
  border-radius: 10px;
}
