/* ==========================================================================
   4uApps, Inc. — styles
   Palette pulled from the 4U brand art: deep navy, electric blue, cyan, leaf green.
   ========================================================================== */
:root {
  --bg: #030718;
  --bg-2: #07103a;
  --ink: #eaf2ff;
  --ink-dim: #9fb2d9;
  --blue: #1f7bff;
  --cyan: #3fd8ff;
  --leaf: #5dff7a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --line: rgba(160, 200, 255, 0.16);
  --grad: linear-gradient(100deg, #3fd8ff 0%, #1f7bff 45%, #8a5cff 80%, #ff4fd8 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-2: "Space Grotesk", var(--font);
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 80% -10%, #0b2a7a 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 30%, #10125a 0%, transparent 55%),
              var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Ambient layers ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; filter: blur(80px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 45vw; height: 45vw; left: -10vw; top: 10vh; background: #1f4bff; }
.aurora span:nth-child(2) { width: 35vw; height: 35vw; right: -8vw; top: 40vh; background: #00b7ff; animation-delay: -7s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 35vw; bottom: -15vh; background: #6a2bff; animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(8vw, -6vh, 0) scale(1.2); } }

.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: -30vh; height: 70vh; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(63,216,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(63,216,255,.18) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(70deg);
  mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  animation: gridMove 4s linear infinite;
  opacity: .5;
}
@keyframes gridMove { to { background-position: 0 60px; } }

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,216,255,.16), transparent 65%);
  pointer-events: none; z-index: -1; transition: opacity .3s; will-change: transform;
}
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 200; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 500; transition: opacity .6s var(--ease), visibility .6s; perspective: 600px; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-cube { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: spinCube 1.6s var(--ease) infinite; }
.loader-cube .f { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: linear-gradient(135deg, rgba(31,123,255,.9), rgba(63,216,255,.7)); border: 1px solid rgba(255,255,255,.4); }
.f1 { transform: translateZ(35px); } .f2 { transform: rotateY(180deg) translateZ(35px); }
.f3 { transform: rotateY(90deg) translateZ(35px); } .f4 { transform: rotateY(-90deg) translateZ(35px); }
.f5 { transform: rotateX(90deg) translateZ(35px); } .f6 { transform: rotateX(-90deg) translateZ(35px); }
@keyframes spinCube { to { transform: rotateX(360deg) rotateY(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 18px; border-radius: 999px;
  background: rgba(6, 14, 44, .45); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, box-shadow .3s, top .3s;
}
.nav.scrolled { background: rgba(4, 10, 32, .78); box-shadow: 0 10px 40px rgba(0,0,0,.35); top: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #0e2a7a, #050b2a); border: 1px solid rgba(63,216,255,.35); box-shadow: 0 0 18px rgba(31,123,255,.45), inset 0 1px 0 rgba(255,255,255,.2); font-weight: 900; font-size: 18px; line-height: 1; }
.brand-mark b { color: #fff; } .brand-mark i { font-style: normal; background: linear-gradient(#7fe9ff, #1f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text { font-size: 20px; } .brand-text small { font-size: 13px; color: var(--ink-dim); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--ink-dim); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: #fff; background: var(--glass); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--glass); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .3s; will-change: transform; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-glow { background: linear-gradient(135deg, #3fd8ff, #1f7bff 55%, #5b3dff); color: #fff; box-shadow: 0 10px 30px -8px rgba(31,123,255,.8), inset 0 1px 0 rgba(255,255,255,.35); overflow: hidden; }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-glow:hover { box-shadow: 0 16px 44px -8px rgba(63,216,255,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: var(--glass); border-color: var(--line); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--glass-2); }
.arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 120px var(--gutter) 80px; max-width: 1320px; margin: 0 auto; position: relative;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-dim); font-size: 14px; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 12px var(--leaf); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.hero-title { margin: 0; font-weight: 900; line-height: .98; letter-spacing: -.04em; font-size: clamp(44px, 6.3vw, 94px); }
.hero-title .line { display: block; }
.hero-title .small { font-size: .36em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-dim); margin-top: 18px; line-height: 1.2; }
.shine { font-style: normal; background: linear-gradient(100deg, #fff 0%, #7fe9ff 25%, #1f7bff 50%, #fff 75%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; filter: drop-shadow(0 6px 30px rgba(31,123,255,.55)); }
@keyframes shine { to { background-position: -250% 0; } }
.typer { color: #fff; border-right: 3px solid var(--cyan); padding-right: 4px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-dim); max-width: 560px; margin: 26px 0 32px; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(#fff, #8fc6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .12em; }

/* 3D scene */
.hero-scene { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; perspective: 1100px; }
.scene-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid rgba(63,216,255,.35); transform-style: preserve-3d; box-shadow: 0 0 30px rgba(63,216,255,.15), inset 0 0 30px rgba(63,216,255,.1); }
.ring-1 { width: 88%; height: 88%; margin: -44% 0 0 -44%; animation: ringSpin 14s linear infinite; }
.ring-2 { width: 70%; height: 70%; margin: -35% 0 0 -35%; border-color: rgba(138,92,255,.4); animation: ringSpin2 18s linear infinite; }
.ring-3 { width: 104%; height: 104%; margin: -52% 0 0 -52%; border-style: dashed; border-color: rgba(255,255,255,.12); animation: ringSpin3 30s linear infinite; }
.ring-1::after, .ring-2::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.ring-2::after { background: #b28cff; box-shadow: 0 0 20px #8a5cff; }
@keyframes ringSpin { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ringSpin2 { from { transform: rotateY(65deg) rotateZ(0); } to { transform: rotateY(65deg) rotateZ(-360deg); } }
@keyframes ringSpin3 { from { transform: rotateX(60deg) rotateY(20deg) rotateZ(0); } to { transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg); } }

.logo3d { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transform: translate(-50%, -50%); animation: logoFloat 7s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translate(-50%, -50%) rotateY(-18deg) rotateX(8deg); } 50% { transform: translate(-50%, -54%) rotateY(18deg) rotateX(-4deg); } }
.logo-face, .logo-layers span { font-weight: 900; font-size: clamp(110px, 17vw, 230px); letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.logo-face { position: relative; transform: translateZ(1px); }
.logo-face b { color: #fff; text-shadow: 0 0 40px rgba(255,255,255,.35); }
.logo-face i { font-style: normal; background: linear-gradient(180deg, #9ff0ff 0%, #3fd8ff 35%, #1f7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo3d::before { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(closest-side, rgba(63,216,255,.35), rgba(31,123,255,.15) 55%, transparent); transform: translateZ(-60px); pointer-events: none; }
.logo-layers { position: absolute; inset: 0; transform-style: preserve-3d; }
.logo-layers span { position: absolute; left: 0; top: 0; color: #0d2a78; }
.logo-layers span b { color: #8ea3c9; font-weight: 900; } .logo-layers span i { font-style: normal; color: #0d4fc2; }

.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; font-weight: 600; font-size: 14px; white-space: nowrap; background: rgba(10, 22, 70, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); animation: bob 6s ease-in-out infinite; animation-delay: var(--d); }
.chip-a { left: -2%; top: 14%; transform: translateZ(80px); }
.chip-b { right: -4%; top: 22%; transform: translateZ(120px); }
.chip-c { left: 2%; bottom: 16%; transform: translateZ(140px); }
.chip-d { right: 2%; bottom: 10%; transform: translateZ(60px); }
@keyframes bob { 50% { translate: 0 -16px; } }
.ico { width: 30px; height: 30px; border-radius: 9px; display: inline-block; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.ico-walls { background: linear-gradient(135deg, #7b5cff, #ff4fd8); }
.ico-ring { background: linear-gradient(135deg, #ff8a3d, #ff3d6e); }
.ico-clean { background: linear-gradient(135deg, #1fa2ff, #12d8fa); }
.ico-tools { background: linear-gradient(135deg, #00c983, #a6ff3d); }

.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #3fd8ff 30%, #1f3bff 70%, #0a0f40); box-shadow: 0 0 40px rgba(63,216,255,.6); animation: bob 8s ease-in-out infinite; }
.orb-1 { width: 46px; height: 46px; right: 16%; top: 4%; transform: translateZ(180px); }
.orb-2 { width: 26px; height: 26px; left: 18%; bottom: 2%; transform: translateZ(40px); animation-delay: -3s; background: radial-gradient(circle at 30% 30%, #fff, #c49bff 30%, #6a2bff 70%, #1a0a40); }
.leaf { position: absolute; width: 54px; height: 54px; background: linear-gradient(135deg, #b8ff7a, #22c55e 60%, #0f7a36); border-radius: 0 100% 0 100%; box-shadow: 0 0 30px rgba(93,255,122,.45); animation: leafSway 5s ease-in-out infinite; }
.leaf::after { content: ""; position: absolute; left: 10%; top: 50%; width: 80%; height: 2px; background: rgba(255,255,255,.55); transform: rotate(-45deg); }
.leaf-1 { right: 12%; top: 58%; transform: translateZ(100px) rotate(-20deg); }
.leaf-2 { right: 4%; top: 68%; width: 34px; height: 34px; animation-delay: -2s; transform: translateZ(90px) rotate(10deg); }
@keyframes leafSway { 50% { rotate: 14deg; translate: 0 -8px; } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--cyan); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 18, 60, .4); padding: 20px 0; transform: rotate(-2deg) scale(1.04); margin: 20px 0 40px; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 34s linear infinite; font-size: clamp(22px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span { background: linear-gradient(#fff, #7aa7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee-track i { font-style: normal; color: var(--cyan); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) var(--gutter); max-width: 1280px; margin: 0 auto; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.kicker { display: inline-block; margin: 0 0 14px; font-family: var(--font-2); text-transform: uppercase; letter-spacing: .24em; font-size: 13px; color: var(--cyan); }
.section h2 { margin: 0; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }
.lead { color: var(--ink-dim); font-size: clamp(16px, 1.3vw, 19px); margin: 18px auto 0; }

/* Filters */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-dim); cursor: pointer; font-weight: 500; transition: all .25s var(--ease); }
.filter:hover { color: #fff; }
.filter.active { background: linear-gradient(135deg, #3fd8ff, #1f7bff); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -6px rgba(31,123,255,.8); }

/* App cards */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; perspective: 1200px; }
.app-card {
  position: relative; padding: 28px 24px 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s, opacity .4s, border-color .3s;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
}
.app-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--c1), transparent 40%, transparent 60%, var(--c2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; transition: opacity .3s; pointer-events: none; }
.app-card:hover { box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c1) 60%, transparent), 0 0 0 1px rgba(255,255,255,.08); }
.app-card:hover::before { opacity: 1; }
.card-shine { position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.app-card:hover .card-shine { opacity: 1; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 16px 30px -10px var(--c1), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 10px rgba(0,0,0,.2); transform: translateZ(50px); margin-bottom: 22px; transition: transform .5s var(--ease); }
.app-card:hover .app-icon { transform: translateZ(70px) rotate(-6deg) scale(1.05); }
.app-icon svg { width: 42px; height: 42px; }
.app-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; transform: translateZ(35px); }
.app-card h3 em { font-style: normal; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-card p { margin: 0 0 16px; color: var(--ink-dim); font-size: 15px; transform: translateZ(20px); }
.tags { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; transform: translateZ(20px); }
.tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #cfe0ff; }
.badge { position: absolute; top: 22px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; transform: translateZ(40px); }
.badge.live { background: rgba(93,255,122,.14); color: #8dff9f; border: 1px solid rgba(93,255,122,.35); }
.badge.soon { background: rgba(255,210,61,.12); color: #ffe07a; border: 1px solid rgba(255,210,61,.3); }
.card-link { display: inline-flex; gap: 6px; font-weight: 600; font-size: 15px; transform: translateZ(30px); color: #fff; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(5px); }
.card-link.muted { color: var(--ink-dim); }
.app-card.featured { background: linear-gradient(160deg, rgba(31,162,255,.22), rgba(18,216,250,.04)); }
.app-card.hide { display: none; }
.app-card.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } }

/* ---------- Orbit ---------- */
.orbit-stage { position: relative; transform-style: preserve-3d; height: clamp(360px, 48vw, 520px); perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none; }
.orbit-stage:active { cursor: grabbing; }
.orbit { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; --r: clamp(170px, 30vw, 380px); }
.planet {
  position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 30px;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 30px 50px -18px var(--c1), inset 0 2px 0 rgba(255,255,255,.4), inset 0 -8px 20px rgba(0,0,0,.25);
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--r));
  backface-visibility: visible;
}
.planet b { font-size: 34px; font-weight: 900; letter-spacing: -.05em; line-height: 1; text-shadow: 0 4px 12px rgba(0,0,0,.3); }
.planet span { font-size: 13px; font-weight: 600; padding: 0 8px; line-height: 1.2; }
.orbit-core { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) translateZ(0); font-size: clamp(60px, 9vw, 110px); font-weight: 900; letter-spacing: -.06em; line-height: 1; filter: drop-shadow(0 0 40px rgba(31,123,255,.7)); pointer-events: none; }
.orbit-core b { color: #fff; } .orbit-core i { font-style: normal; background: linear-gradient(#9ff0ff, #1f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orbit-floor { position: absolute; left: 50%; bottom: 4%; width: 80%; height: 60px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(63,216,255,.35), transparent 70%); filter: blur(8px); pointer-events: none; }

/* ---------- Spotlight ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.spot-visual { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1200px; }
.spot-art { position: absolute; inset: 6% 0 auto auto; width: 72%; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(31,123,255,.8); transform: rotate(6deg) translateZ(-40px); opacity: .9; }
.spot-art img { width: 100%; height: auto; }
.phone { position: relative; z-index: 2; width: 250px; height: 510px; border-radius: 42px; padding: 10px; margin-right: 34%;
  background: linear-gradient(145deg, #c9d6ee, #6a7a99 40%, #2b354c); box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.2), inset 0 0 0 2px rgba(255,255,255,.3);
  transform-style: preserve-3d; transform: rotateY(18deg) rotateX(6deg); transition: transform .6s var(--ease); }
.phone-edge { position: absolute; inset: 0; border-radius: inherit; transform: translateZ(-14px); background: #1b2436; }
.phone-screen { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #0d3a9a, #030a2a 70%); transform: translateZ(1px); }
.phone-notch { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #000; }
.phone-app { position: absolute; inset: 50px 18px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pa-title { margin: 0 0 30px; font-weight: 700; font-size: 17px; }
.pa-btn { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #7fe9ff, #1f7bff 60%, #0a2a8a); box-shadow: 0 0 40px rgba(63,216,255,.6), inset 0 4px 10px rgba(255,255,255,.45), inset 0 -8px 20px rgba(0,0,0,.35); transition: transform .2s; }
.pa-btn:active { transform: scale(.95); }
.pa-core { position: relative; z-index: 2; font-weight: 800; letter-spacing: .1em; font-size: 18px; }
.pa-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(63,216,255,.8); opacity: 0; }
.cleaning .pa-rings i { animation: ripple 1.4s ease-out infinite; }
.cleaning .pa-rings i:nth-child(2) { animation-delay: .45s; } .cleaning .pa-rings i:nth-child(3) { animation-delay: .9s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 3px; height: 50px; margin: 26px 0 8px; }
.wave i { width: 4px; border-radius: 2px; background: linear-gradient(#7fe9ff, #1f7bff); height: 6px; transition: height .12s; }
.pa-hz { margin: 0; font-family: var(--font-2); font-size: 28px; font-weight: 700; }
.pa-bar { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: 14px; overflow: hidden; }
.pa-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--leaf)); border-radius: inherit; transition: width .2s linear; }
.tagline { font-family: var(--font-2); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--ink-dim); margin: 16px 0 0; }
.tagline span { color: var(--cyan); }
.spot-copy .lead { margin-left: 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: transform .3s var(--ease), background .3s; }
.checks li:hover { transform: translateX(6px); background: var(--glass-2); }
.checks span { font-size: 26px; }
.checks b { display: block; } .checks p { margin: 2px 0 0; color: var(--ink-dim); font-size: 15px; }
.hint { color: var(--ink-dim); font-size: 14px; margin-top: 20px; } .hint b { color: var(--cyan); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.bento-item { --rx: 0deg; --ry: 0deg; position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s; overflow: hidden; }
.bento-item:hover { box-shadow: 0 30px 60px -25px rgba(31,123,255,.7); }
.bento-item h3 { margin: 0 0 6px; font-size: 22px; transform: translateZ(30px); }
.bento-item p { margin: 0; color: var(--ink-dim); transform: translateZ(20px); }
.b-emoji { display: inline-grid; place-items: center; width: 54px; height: 54px; font-size: 26px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); margin-bottom: 18px; transform: translateZ(40px); }
.b-big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; background: linear-gradient(160deg, rgba(31,123,255,.25), rgba(138,92,255,.08)); }
.b-big h3 { font-size: 34px; }
.cube-wrap { position: absolute; top: 40px; right: 50px; perspective: 700px; transform: translateZ(60px); }
.cube { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; animation: spinCube 12s linear infinite; }
.cube i { position: absolute; inset: 0; border: 1px solid rgba(127,233,255,.7); background: linear-gradient(135deg, rgba(63,216,255,.25), rgba(31,123,255,.08)); box-shadow: inset 0 0 30px rgba(63,216,255,.35); display: grid; place-items: center; }
.cube i::after { content: "4U"; font-weight: 900; font-size: 30px; font-style: normal; color: rgba(255,255,255,.9); }
.cube i:nth-child(1) { transform: translateZ(55px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(55px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(55px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(55px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(55px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(55px); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent); opacity: .5; }
.steps li { position: relative; text-align: center; padding: 0 12px; }
.step-n { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 26px; font-family: var(--font-2); font-weight: 700; font-size: 28px; background: linear-gradient(145deg, #0e2a7a, #050b2a); border: 1px solid rgba(63,216,255,.4); box-shadow: 0 0 30px rgba(31,123,255,.4), inset 0 1px 0 rgba(255,255,255,.2); transform: rotate(45deg); }
.step-n::first-line { line-height: 1; }
.steps li:hover .step-n { transform: rotate(225deg); transition: transform .8s var(--ease); }
.steps h3 { margin: 0 0 6px; font-size: 22px; } .steps p { margin: 0; color: var(--ink-dim); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; transition: background .3s, border-color .3s; }
.faq details[open] { background: var(--glass-2); border-color: rgba(63,216,255,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border-radius: 50%; background: rgba(63,216,255,.15); color: var(--cyan); font-size: 20px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-dim); }
.faq details a { color: var(--cyan); }

/* ---------- CTA ---------- */
.cta-card { position: relative; text-align: center; padding: clamp(50px, 8vw, 90px) clamp(20px, 5vw, 60px); border-radius: 36px; overflow: hidden; background: linear-gradient(145deg, rgba(31,123,255,.35), rgba(10,20,70,.6) 50%, rgba(138,92,255,.3)); border: 1px solid rgba(127,233,255,.3); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.cta-glow { position: absolute; width: 500px; height: 500px; left: 50%; top: -250px; margin-left: -250px; background: radial-gradient(circle, rgba(63,216,255,.5), transparent 60%); filter: blur(30px); animation: pulse 5s ease-in-out infinite; pointer-events: none; }
.cta-card h2 { position: relative; font-size: clamp(30px, 4.6vw, 58px); max-width: 820px; margin: 0 auto; }
.cta-card p { position: relative; color: var(--ink-dim); font-size: 18px; margin: 16px 0 34px; }
.stores { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 16px; background: #000; border: 1px solid rgba(255,255,255,.25); transition: transform .25s var(--ease), box-shadow .3s; }
.store:hover { box-shadow: 0 14px 30px -10px rgba(63,216,255,.7); }
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; text-align: left; font-weight: 700; font-size: 18px; line-height: 1.1; }
.store small { font-weight: 400; font-size: 11px; color: #bbb; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 70px var(--gutter) 30px; max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-top p { color: var(--ink-dim); margin: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 44px 0; }
.foot-cols h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--cyan); font-family: var(--font-2); }
.foot-cols a { display: block; color: var(--ink-dim); padding: 4px 0; transition: color .2s, transform .2s; }
.foot-cols a:hover { color: #fff; transform: translateX(4px); }
.copy { color: var(--ink-dim); font-size: 14px; margin: 0; position: relative; z-index: 1; }
.foot-giant { font-size: clamp(80px, 20vw, 280px); font-weight: 900; letter-spacing: -.06em; line-height: .8; text-align: center; margin-top: 30px; background: linear-gradient(180deg, rgba(63,216,255,.35), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.app-card.reveal.in, .bento-item.reveal.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.app-card.reveal.in:hover, .bento-item.reveal.in:hover { transition: transform .15s linear, box-shadow .4s, opacity .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
  .spot-visual { order: 2; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 10px; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-scene { max-width: 460px; width: 88%; order: -1; margin-top: 10px; }
  .scroll-hint { display: none; }
  .burger { display: block; }
  .nav-links { position: fixed; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border-radius: 22px; background: rgba(4, 10, 32, .95); border: 1px solid var(--line); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: all .3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 12px 16px; font-size: 17px; }
  .nav-links .btn { justify-content: center; margin-top: 6px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .chip { font-size: 12px; padding: 7px 12px 7px 7px; }
  .ico { width: 22px; height: 22px; border-radius: 7px; }
  .chip-a { left: 0; transform: translateZ(40px); } .chip-b { right: 0; transform: translateZ(50px); }
  .chip-c { left: 4%; transform: translateZ(50px); } .chip-d { right: 4%; transform: translateZ(30px); }
  .bento { grid-template-columns: 1fr; }
  .b-big { grid-column: auto; grid-row: auto; }
  .cube-wrap { right: 30px; top: 30px; } .cube { width: 80px; height: 80px; }
  .cube i:nth-child(1) { transform: translateZ(40px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(40px); }
  .cube i:nth-child(3) { transform: rotateY(90deg) translateZ(40px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(40px); }
  .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(40px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(40px); }
  .cube i::after { font-size: 22px; }
  .planet { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 24px; }
  .planet b { font-size: 26px; } .planet span { font-size: 11px; }
  .spot-visual { min-height: 480px; }
  .phone { width: 210px; height: 430px; margin-right: 34%; }
  .pa-btn { width: 120px; height: 120px; }
  .spot-art { width: 64%; inset: 10% 0 auto auto; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
