/* ============================================================
   NINE2TECH — "Levitate" · handcrafted, zero frameworks
   ============================================================ */

:root {
  --bg: #F7F7FB;
  --bg-dark: #0E1020;
  --panel-dark: #181B30;
  --ink: #14162E;
  --muted: #5A5E7A;
  --faint: #8A8EA8;
  --ink-inv: #EDEEFF;
  --muted-inv: #9BA0C4;

  --uv: #5840FF;
  --violet: #8B5CF6;
  --coral: #FF7849;
  --mint: #00C9A7;
  --amber: #FFC53D;

  --grad: linear-gradient(135deg, #6A5CFF 0%, #5840FF 38%, #8B5CF6 64%, #FF7849 100%);

  --border: rgba(20, 22, 46, 0.06);
  --border-inv: rgba(255, 255, 255, 0.07);
  --shadow-card:
    0 1px 2px rgba(20, 22, 46, 0.05),
    0 12px 32px rgba(88, 64, 255, 0.10),
    0 48px 80px -32px rgba(20, 22, 46, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-d: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-m: 'JetBrains Mono', 'SF Mono', monospace;

  --nav-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
section { scroll-margin-top: calc(var(--nav-h) + 16px); }

::selection { background: rgba(88, 64, 255, 0.18); }

:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 0.875rem; transition: top 0.25s var(--ease-soft);
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--font-m);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 210; pointer-events: none; }

/* ---------- cursor halo ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 250;
  width: 28px; height: 28px; border-radius: 999px;
  border: 1.5px solid rgba(88, 64, 255, 0.65);
  display: none; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft),
              background-color 0.25s, border-color 0.25s, opacity 0.3s;
}
body.has-cursor .cursor { display: flex; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 46px; height: 46px; background: rgba(88, 64, 255, 0.08); border-color: var(--uv); }
.cursor.is-drag { width: 68px; height: 34px; background: var(--ink); border-color: var(--ink); }
.cursor-label {
  display: none; font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.14em; color: #fff;
}
.cursor.is-drag .cursor-label { display: block; }

/* ---------- splash ---------- */
#splash { display: none; }
html.splash-on #splash {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  transition: background-color 0.5s ease;
}
html.splash-on #splash.fading { background: transparent; }
.splash-tile {
  width: 96px; height: 96px; border-radius: 28px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 24px 64px -12px rgba(88, 64, 255, 0.45);
  animation: splashPop 0.5s var(--ease-spring) both;
  will-change: transform;
}
.splash-tile .orbit9 { width: 44px; height: 48px; }
@keyframes splashPop {
  from { transform: scale(0.6); opacity: 0; box-shadow: 0 0 0 rgba(88, 64, 255, 0); }
  to   { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 247, 251, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 8px 32px -16px rgba(20, 22, 46, 0.15); }
.nav-inner {
  max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-tile {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; flex: none;
}
html.splash-on body:not(.loaded) .nav .brand-tile { opacity: 0; }
.brand-tile .orbit9 { width: 16px; height: 18px; }
.brand-word {
  font-family: var(--font-d); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--ink);
}
.brand-word em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: rgba(88, 64, 255, 0.07); }
.nav-side { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-time { color: var(--faint); white-space: nowrap; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 10px;
}
.nav-burger span {
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-soft);
}
body.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(247, 247, 251, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-soft);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mobile-menu nav a {
  font-family: var(--font-d); font-weight: 700; font-size: 1.8rem; color: var(--ink);
  padding: 4px 16px;
}
.mobile-menu nav a.btn { font-size: 1.05rem; margin-top: 16px; }
.mm-foot { position: absolute; bottom: 32px; color: var(--faint); }
body.menu-open { overflow: hidden; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding-inline: 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform 0.6s var(--ease-spring), box-shadow 0.3s;
  will-change: transform;
}
.btn-sm { height: 42px; padding-inline: 20px; font-size: 0.9rem; }
.btn-grad {
  background: var(--grad); background-size: 160% 160%; color: #fff;
  box-shadow: 0 12px 32px -10px rgba(88, 64, 255, 0.55);
}
.btn-grad:hover { box-shadow: 0 16px 44px -10px rgba(88, 64, 255, 0.7); }
.btn-ghost { border: 1px solid rgba(20, 22, 46, 0.16); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(20, 22, 46, 0.4); }
.btn-arrow { display: inline-block; transition: transform 0.35s var(--ease-soft); }
.btn-ghost:hover .btn-arrow { transform: translateX(6px); }
.btn .btn-label { position: relative; z-index: 1; pointer-events: none; }
/* JS lerp owns the transform on magnetic buttons */
.btn.magnetic { transition: box-shadow 0.3s; }

/* ============================================================
   SECTION HEADERS / TYPE
   ============================================================ */
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.02; }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .eyebrow { display: block; margin-bottom: 18px; }
.eyebrow { color: var(--faint); }
.sec-sub { margin-top: 18px; color: var(--muted); max-width: 56ch; }

.grad-ink {
  background: var(--grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* kinetic mask reveal */
html.js [data-mask] { opacity: 0; }
html.js [data-mask].mask-ready { opacity: 1; }
.mask-w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.mask-i {
  display: inline-block;
  transform: translateY(110%) skewY(4deg);
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.in-view .mask-i, [data-mask].in-view .mask-i { transform: translateY(0) skewY(0); }

/* scroll reveal rise */
html.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
  transition-delay: calc(var(--d, 0) * 70ms);
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
[data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; } [data-d="4"] { --d: 4; }

/* ============================================================
   v1.0 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 24px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-uv {
  width: 70vw; height: 70vw; top: -28%; right: -18%;
  background: radial-gradient(closest-side, rgba(88, 64, 255, 0.13), transparent 72%);
}
.orb-coral {
  width: 58vw; height: 58vw; bottom: -26%; left: -16%;
  background: radial-gradient(closest-side, rgba(255, 120, 73, 0.09), transparent 72%);
}
.dot-lattice {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20, 22, 46, 0.08) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 62% 42%, #000 25%, transparent 72%);
  mask-image: radial-gradient(70% 60% at 62% 42%, #000 25%, transparent 72%);
}

.hero-inner {
  position: relative;
  max-width: 1280px; width: 100%; margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 55fr 45fr; align-items: center; gap: 24px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 800;
  margin-top: 20px;
}
.hero-sub { margin-top: 24px; color: var(--muted); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stores { margin-top: 44px; }
.stores-cap { color: var(--faint); margin-bottom: 12px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(20, 22, 46, 0.8);
  border-radius: 12px; padding: 7px 14px;
  color: var(--ink);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(20, 22, 46, 0.3); }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.sb-txt { display: flex; flex-direction: column; line-height: 1.15; }
.sb-txt small { font-size: 0.625rem; color: var(--muted); letter-spacing: 0.02em; }
.sb-txt b { font-family: var(--font-d); font-weight: 700; font-size: 0.9375rem; }
.store-badges.sm .store-badge { padding: 6px 12px; }
.store-badges.sm .sb-txt b { font-size: 0.85rem; }

/* ---------- device constellation ---------- */
.hero-scene {
  position: relative; height: 620px;
  perspective: 1200px;
}
.phone-slot { position: absolute; transform-style: preserve-3d; will-change: transform; }
.slot-center {
  left: 50%; top: 50%;
  transform: translate3d(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)), 0)
             rotateY(var(--ry, 0deg)) translateZ(60px) scale(1.06);
  z-index: 3;
  --pw: 228px;
}
.slot-left {
  left: -4%; top: 54%;
  transform: translate3d(var(--dx, 0px), calc(-50% + var(--dy, 0px)), 0)
             rotateY(calc(22deg + var(--ry, 0deg))) rotateX(6deg) translateZ(-40px);
  z-index: 2;
  --pw: 196px;
}
.slot-right {
  right: -5%; top: 58%;
  transform: translate3d(var(--dx, 0px), calc(-50% + var(--dy, 0px)), 0)
             rotateY(calc(-20deg + var(--ry, 0deg))) rotateX(5deg) translateZ(-60px);
  z-index: 1;
  --pw: 196px;
}

.phone { position: relative; }
.levitate { animation: levitate 7s ease-in-out infinite; }
.lev-a { animation-delay: 0s; }
.lev-b { animation-delay: -2.3s; }
.lev-c { animation-delay: -4.1s; }
@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-shade {
  position: absolute; left: 10%; right: 10%; bottom: -34px; height: 22px;
  background: radial-gradient(closest-side, rgba(20, 22, 46, 0.32), transparent 75%);
  filter: blur(6px);
  animation: shadeBreathe 7s ease-in-out infinite;
}
.lev-a .phone-shade { animation-delay: 0s; }
.lev-b .phone-shade { animation-delay: -2.3s; }
.lev-c .phone-shade { animation-delay: -4.1s; }
@keyframes shadeBreathe {
  0%, 100% { transform: scaleX(1); opacity: 0.35; }
  50% { transform: scaleX(0.88); opacity: 0.22; }
}

.phone-frame {
  position: relative;
  width: var(--pw, 228px);
  aspect-ratio: 9 / 19;
  background: #14162E;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(20, 22, 46, 0.2),
    0 30px 60px -20px rgba(20, 22, 46, 0.45);
}
.phone-island {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 18px; border-radius: 10px; background: #14162E; z-index: 6;
}
.screen {
  position: relative; width: 100%; height: 100%;
  background: #FBFBFE; border-radius: 36px; overflow: hidden;
}

/* in-screen app UI (shared) */
.app-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px 0; font-size: 10px; font-weight: 600; color: var(--ink);
}
.st-ic { display: inline-flex; gap: 3px; align-items: center; }
.st-ic i { width: 11px; height: 7px; border-radius: 2px; background: var(--ink); opacity: 0.85; }
.st-ic i:first-child { width: 7px; border-radius: 50%; height: 7px; }
.app-tabbar {
  position: absolute; bottom: 10px; left: 16px; right: 16px;
  display: flex; justify-content: space-around; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 9px 0;
  box-shadow: 0 6px 16px -8px rgba(20, 22, 46, 0.16);
}
.app-tabbar i { width: 16px; height: 16px; border-radius: 5px; background: #DDDEEC; }
.app-tabbar i.on { background: var(--uv); }

/* fintech app */
.pay-hi { font-family: var(--font-d); font-weight: 700; font-size: 14px; padding: 14px 18px 0; color: var(--ink); }
.pay-card {
  margin: 10px 14px 0; padding: 12px 14px; border-radius: 16px;
  background: var(--grad); color: #fff;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 10px 24px -10px rgba(88, 64, 255, 0.55);
}
.pc-label { font-size: 8px; opacity: 0.85; letter-spacing: 0.14em; }
.pc-amount { font-family: var(--font-d); font-weight: 800; font-size: 21px; line-height: 1.1; font-feature-settings: 'tnum'; }
.pc-amount small { font-size: 13px; opacity: 0.8; }
.pc-trend { font-size: 9px; font-weight: 600; color: #D9FFF4; }
.pay-spark { width: calc(100% - 28px); height: 42px; margin: 8px 14px 0; }
.pay-rows { padding: 8px 14px 0; display: flex; flex-direction: column; gap: 7px; }
.pr {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 7px 9px;
}
.pr-ic { width: 24px; height: 24px; border-radius: 8px; flex: none; }
.ic-uv { background: linear-gradient(135deg, #6A5CFF, #8B5CF6); }
.ic-coral { background: linear-gradient(135deg, #FF7849, #FFA178); }
.ic-mint { background: linear-gradient(135deg, #00C9A7, #4DE3C8); }
.ic-amber { background: linear-gradient(135deg, #FFC53D, #FFD978); }
.pr-t { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.pr-t b { font-size: 10.5px; font-weight: 600; color: var(--ink); }
.pr-t small { font-size: 8.5px; color: var(--faint); }
.pr-amt { font-size: 10px; font-weight: 600; color: var(--ink); font-feature-settings: 'tnum'; }
.pr-amt.pos { color: #00A287; }

/* fitness app */
.fit-day { padding: 16px 18px 0; color: var(--faint); font-size: 9px; }
.fit-ring {
  --p: 72; width: 108px; height: 108px; border-radius: 50%;
  margin: 14px auto 0;
  background: conic-gradient(var(--coral) calc(var(--p) * 1%), #F0F0F7 0);
  display: grid; place-items: center;
}
.fit-ring.big { width: 130px; height: 130px; }
.fit-ring::before {
  content: ""; grid-area: 1 / 1; width: 78%; height: 78%; border-radius: 50%; background: #FBFBFE;
}
.fit-num {
  grid-area: 1 / 1; z-index: 1; font-family: var(--font-d); font-weight: 800; font-size: 24px;
  color: var(--ink); font-feature-settings: 'tnum';
}
.fit-num small { font-size: 12px; color: var(--faint); }
.fit-stats { padding: 14px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.fs-row {
  display: flex; justify-content: space-between; font-size: 10.5px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px;
}
.fs-row span { color: var(--muted); }
.fs-row b { color: var(--ink); font-feature-settings: 'tnum'; }
.fit-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 52px;
  padding: 14px 18px 0;
}
.fit-bars i {
  flex: 1; height: var(--h, 50%); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--coral), #FFA178);
}
.fit-bars i:nth-child(even) { background: linear-gradient(180deg, #6A5CFF, #8B5CF6); }

/* food app */
.food-search {
  margin: 14px 14px 0; padding: 9px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--faint);
}
.food-search i {
  width: 11px; height: 11px; border: 1.5px solid var(--faint); border-radius: 50%;
  position: relative; flex: none;
}
.food-search i::after {
  content: ""; position: absolute; width: 5px; height: 1.5px; background: var(--faint);
  bottom: -2px; right: -3px; transform: rotate(45deg);
}
.dish {
  margin: 9px 14px 0; padding: 8px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px;
}
.dish-img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.dg-a { background: linear-gradient(135deg, #FFC53D, #FF7849); }
.dg-b { background: linear-gradient(135deg, #FF7849, #8B5CF6); }
.dg-c { background: linear-gradient(135deg, #00C9A7, #6A5CFF); }
.dish-t { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.dish-t b { font-size: 10.5px; font-weight: 600; color: var(--ink); }
.dish-t small { font-size: 8.5px; color: var(--faint); }
.dish-p { font-size: 10.5px; font-weight: 600; color: var(--ink); }
.food-cta {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  background: var(--ink); color: #fff; border-radius: 13px;
  text-align: center; padding: 9px 0; font-size: 11px; font-weight: 600;
}

/* floating fragments */
.float-el { position: absolute; will-change: transform; transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0); }
.f-in { display: inline-flex; align-items: center; gap: 6px; animation: levitate 8s ease-in-out infinite; }
.chip {
  z-index: 4;
  font-family: var(--font-d); font-weight: 700; font-size: 0.9rem; color: var(--ink);
}
.chip .f-in {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px;
  box-shadow: var(--shadow-card);
}
.chip small { font-weight: 500; font-size: 0.72rem; color: var(--muted); font-family: var(--font-b); }
.chip .star { color: var(--amber); }
.chip-rating { top: 4%; left: 4%; }
.chip-installs { bottom: 11%; left: -3%; z-index: 4; }
.chip-installs .f-in { animation-delay: -3s; }

.mini-app { z-index: 4; }
.mini-app .f-in {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(20, 22, 46, 0.4);
}
.mini-app svg { width: 22px; height: 22px; }
.ma-1 { top: -2%; right: 8%; } .ma-1 .f-in { background: linear-gradient(135deg, #6A5CFF, #8B5CF6); animation-delay: -1.5s; }
.ma-2 { bottom: 26%; right: -4%; } .ma-2 .f-in { background: linear-gradient(135deg, #FF7849, #FFC53D); animation-delay: -5s; }
.ma-3 { top: 36%; left: -7%; } .ma-3 .f-in { background: linear-gradient(135deg, #00C9A7, #6A5CFF); animation-delay: -6.5s; }

.toast {
  top: 0; left: 50%; z-index: 5;
  width: min(300px, 80%);
  transform: translate3d(calc(-50% + var(--dx, 0px)), calc(-24px + var(--dy, 0px)), 0);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}
.toast.show { opacity: 1; transform: translate3d(calc(-50% + var(--dx, 0px)), var(--dy, 0px), 0); }
.toast-ic {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; flex: none;
}
.toast-ic .orbit9 { width: 16px; height: 18px; }
.toast-t { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.toast-t b { font-size: 0.875rem; color: var(--ink); }
.toast-t small { font-size: 0.72rem; color: var(--muted); }
.toast-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; flex: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(0, 201, 167, 0); }
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--faint); font-size: 0.625rem;
}
.cue-phone {
  width: 19px; height: 32px; border: 1.5px solid var(--faint); border-radius: 6px;
  display: flex; justify-content: center; padding-top: 5px;
}
.cue-phone i { width: 2px; height: 7px; border-radius: 2px; background: var(--faint); animation: cueSwipe 1.8s var(--ease-soft) infinite; }
@keyframes cueSwipe {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   v1.1 — PROOF TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}
.ticker-rail { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-rail { animation-play-state: paused; }
.ticker-track { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker-track .mono { color: var(--muted); white-space: nowrap; }
.ticker-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   v2.0 — SERVICES
   ============================================================ */
.services { padding: clamp(80px, 11vw, 140px) 0; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc-card { perspective: 900px; }
.tilt-inner {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-soft), border-color 0.3s;
  overflow: hidden;
}
.svc-live .tilt-inner { border-color: rgba(88, 64, 255, 0.28); }
.glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.9), transparent 65%);
  transition: opacity 0.3s;
}
.tilt-inner:hover .glare { opacity: 0.5; }
.svc-ic { width: 48px; height: 48px; color: var(--uv); transform: translateZ(40px); margin-bottom: 22px; }
.svc-card h3 { font-size: 1.35rem; margin-bottom: 10px; transform: translateZ(24px); }
.svc-card p { color: var(--muted); font-size: 0.96875rem; transform: translateZ(16px); }
.svc-tags { margin-top: 16px; color: var(--faint); letter-spacing: 0.1em; }
.svc-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-weight: 600; font-size: 0.9rem; color: var(--coral);
}
.svc-more i { font-style: normal; transition: transform 0.35s var(--ease-soft); }
.tilt-inner:hover .svc-more i { transform: translateX(8px); }
.live-dot {
  position: absolute; top: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mint); font-size: 0.65rem;
}
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }

/* self-drawing icons — dash values set by JS */
.draw .dp { will-change: stroke-dashoffset; }

/* ============================================================
   v3.0 — PROCESS
   ============================================================ */
.process { padding: clamp(80px, 11vw, 140px) 0; background: linear-gradient(180deg, var(--bg), #F1F1F8 50%, var(--bg)); }
.proc-layout { display: grid; grid-template-columns: 1fr 420px; gap: clamp(32px, 5vw, 80px); align-items: start; }

.proc-stages { position: relative; padding-left: 36px; }
.proc-rail {
  position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(20, 22, 46, 0.08); border-radius: 2px; overflow: hidden;
}
.proc-rail i {
  position: absolute; inset: 0;
  background: var(--grad);
  transform-origin: top; transform: scaleY(var(--fill, 0));
}
.stage { padding: clamp(36px, 6vh, 64px) 0; position: relative; }
.stage::before {
  content: ""; position: absolute; left: -33px; top: calc(clamp(36px, 6vh, 64px) + 8px);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(20, 22, 46, 0.18);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}
.stage.is-on::before { background: var(--uv); border-color: var(--uv); box-shadow: 0 0 0 5px rgba(88, 64, 255, 0.15); }
.st-tag { color: var(--faint); margin-bottom: 12px; display: flex; gap: 14px; align-items: baseline; }
.st-tag em { font-style: normal; color: var(--coral); font-size: 0.65rem; }
.stage h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.stage p:not(.st-tag) { color: var(--muted); max-width: 46ch; }
.stage.is-on h3 { color: var(--ink); }

.proc-device { position: relative; }
.proc-sticky { position: sticky; top: calc(var(--nav-h) + 8vh); display: flex; justify-content: center; }
.proc-phone { --pw: 258px; position: relative; }
.proc-phone .phone-shade { bottom: -30px; }
.proc-flip {
  position: relative; transform-style: preserve-3d;
  transition: transform 1s var(--ease-soft);
}
.proc-phone[data-stage="5"] .proc-flip { transform: rotateY(180deg); }
.proc-face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.proc-front { position: relative; }
.proc-back { position: absolute; inset: 0; transform: rotateY(180deg); }

.proc-screen .lay { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease-soft); }
.lay-sketch { padding: 0; }
.proc-phone[data-stage="1"] .lay-sketch { opacity: 1; }
.proc-phone[data-stage="2"] .lay-sketch { opacity: 0.22; }
.proc-phone[data-stage="2"] .lay-wire { opacity: 1; }
.proc-phone[data-stage="3"] .lay-color { opacity: 1; }
.proc-phone[data-stage="4"] .lay-ui,
.proc-phone[data-stage="5"] .lay-ui { opacity: 1; }

.lay-wire, .lay-color { display: flex; flex-direction: column; gap: 15px; padding: 44px 18px 20px; }
.w-title { height: 14px; width: 48%; border-radius: 7px; background: #E5E6F1; }
.w-card { height: 88px; border-radius: 14px; background: #E5E6F1; }
.w-row { display: flex; align-items: center; gap: 10px; }
.w-row i { width: 22px; height: 22px; border-radius: 50%; background: #E5E6F1; flex: none; }
.w-row u { flex: 1; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.w-row b { height: 8px; border-radius: 4px; background: #E5E6F1; display: block; }
.w-row b.short { width: 55%; }
.w-btn { margin-top: auto; height: 42px; border-radius: 21px; background: #E5E6F1; }
.lay-color .w-title { background: #EEEBFF; }
.lay-color .w-card { background: var(--grad); box-shadow: 0 10px 24px -10px rgba(88, 64, 255, 0.5); }
.lay-color .w-row b { background: #ECECF5; }
.lay-color .w-btn { background: var(--uv); }
.lay-color .c-uv { background: linear-gradient(135deg, #6A5CFF, #8B5CF6); }
.lay-color .c-coral { background: linear-gradient(135deg, #FF7849, #FFA178); }
.lay-color .c-mint { background: linear-gradient(135deg, #00C9A7, #4DE3C8); }
.lay-ui { background: #FBFBFE; }

/* store-listing back face */
.store-screen { background: #FBFBFE; padding: 48px 16px 16px; }
.store-head { display: flex; align-items: center; gap: 11px; }
.store-ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad); flex: none;
  box-shadow: 0 8px 20px -8px rgba(88, 64, 255, 0.6);
}
.store-t { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.store-t b { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink); }
.store-t small { font-size: 9.5px; color: var(--faint); }
.store-get {
  background: var(--mint); color: #fff; font-size: 10px;
  border-radius: 999px; padding: 6px 16px;
}
.proc-phone[data-stage="5"] .store-get { animation: getPulse 1.6s var(--ease-soft) infinite; }
@keyframes getPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.4); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 8px rgba(0, 201, 167, 0); }
}
.store-stars { margin-top: 12px; color: var(--amber); font-size: 12px; letter-spacing: 2px; }
.store-stars small { color: var(--faint); font-size: 9px; letter-spacing: 0; margin-left: 4px; }
.store-shots { display: flex; gap: 8px; margin-top: 12px; }
.store-shots i { flex: 1; aspect-ratio: 9 / 16; border-radius: 10px; }
.ss-a { background: linear-gradient(160deg, #6A5CFF, #8B5CF6); }
.ss-b { background: linear-gradient(160deg, #8B5CF6, #FF7849); }
.ss-c { background: linear-gradient(160deg, #FF7849, #FFC53D); }
.store-new { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.store-new .mono { font-size: 8px; color: var(--faint); }
.store-new p:last-child { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   v4.0 — SHOWROOM (dark)
   ============================================================ */
.dark { background: var(--bg-dark); color: var(--ink-inv); }
.dark h2, .dark h3 { color: var(--ink-inv); }
.dark .sec-sub { color: var(--muted-inv); }
.dark .eyebrow { color: var(--muted-inv); }

.showroom { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.showroom::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 72% 24%, var(--case-glow, rgba(88, 64, 255, 0.14)), transparent 70%);
}
.showroom .wrap { position: relative; }

.case {
  position: relative;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: var(--panel-dark);
  border: 1px solid var(--border-inv);
  border-radius: 28px;
  padding: clamp(28px, 4.5vw, 56px);
  margin-bottom: clamp(28px, 4vw, 48px);
  overflow: hidden;
}
.case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(240px at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 70%);
  transition: opacity 0.4s;
}
.case::after {
  content: ""; position: absolute; inset: 0; border-radius: 28px; padding: 1px;
  pointer-events: none; opacity: 0;
  background: radial-gradient(260px at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  transition: opacity 0.4s;
}
.case:hover::before, .case:hover::after { opacity: 1; }

.case-flip .case-device { order: 2; }
.case-flip .case-info { order: 1; }

.case-device { display: flex; justify-content: center; }
.case-phone { --pw: min(258px, 64vw); }
.case-screen-inner { position: absolute; left: 0; right: 0; top: 0; min-height: 142%; will-change: transform; }
.case-screen-inner .app-status { padding-top: 44px; }

.case-info h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 10px 0 14px; }
.case-info > p:not(.mono) { color: var(--muted-inv); max-width: 52ch; }
.case-tags { margin-top: 16px; color: var(--accent, var(--violet)); }
.case-metrics { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.5vw, 40px); margin-top: 26px; }
.cm { display: flex; flex-direction: column; gap: 4px; }
.cm b {
  font-family: var(--font-d); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ink-inv); font-feature-settings: 'tnum'; line-height: 1;
}
.cm .mono { color: var(--muted-inv); font-size: 0.625rem; }
.store-chips { display: flex; gap: 10px; margin-top: 26px; }
.store-chips .mono {
  border: 1px solid var(--border-inv); border-radius: 999px;
  padding: 7px 14px; color: var(--muted-inv); font-size: 0.625rem;
}

/* ============================================================
   v5.0 — NUMBERS IN ORBIT
   ============================================================ */
.orbitstats { padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.os-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.os-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 22px;
  padding: clamp(20px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card:nth-child(even) { transform: translateY(18px); }
html.js .stat-card.reveal:nth-child(even) { transform: translateY(42px); }
html.js .stat-card.reveal.in-view:nth-child(even) { transform: translateY(18px); }
.stat-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-feature-settings: 'tnum';
}
.stat-num em { font-style: normal; font-size: 0.55em; }
.stat-num .star,
.stat-num em.star { -webkit-text-fill-color: var(--amber); color: var(--amber); }
.stat-card .mono { color: var(--faint); font-size: 0.65rem; }

/* orbit stack */
.orbit {
  position: relative;
  width: min(440px, 88vw); aspect-ratio: 1;
  margin-inline: auto;
}
.orbit-track { position: absolute; border-radius: 50%; border: 1px dashed rgba(20, 22, 46, 0.14); }
.t-a { inset: 19%; }
.t-b { inset: 2%; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 104px; height: 104px; border-radius: 30px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 24px 56px -16px rgba(88, 64, 255, 0.55);
  z-index: 2;
}
.orbit-core .orbit9 { width: 44px; height: 48px; }
.ring { position: absolute; }
.ring-a { inset: 19%; animation: spin 60s linear infinite; }
.ring-b { inset: 2%; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.opos { position: absolute; inset: 0; transform: rotate(var(--a, 0deg)); }
.orot { position: absolute; top: 0; left: 50%; }
.ring-a .orot { animation: orotRev 60s linear infinite; }
.ring-b .orot { animation: orotRev 90s linear infinite; }
@keyframes orotRev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
.obadge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; color: var(--ink); white-space: nowrap;
  box-shadow: 0 10px 28px -12px rgba(20, 22, 46, 0.25);
  transform: rotate(var(--fix, 0deg));
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.obadge:hover { transform: rotate(var(--fix, 0deg)) scale(1.12); box-shadow: 0 16px 36px -12px rgba(88, 64, 255, 0.4); }
.orbit:hover .ring, .orbit:hover .orot { animation-play-state: paused; }
.bd { width: 8px; height: 8px; border-radius: 50%; }
.bd-coral { background: var(--coral); }
.bd-uv { background: var(--uv); }
.bd-mint { background: var(--mint); }
.bd-violet { background: var(--violet); }
.bd-amber { background: var(--amber); }

/* ============================================================
   v6.0 — SIGNALS (testimonials)
   ============================================================ */
.signals { padding: clamp(80px, 11vw, 140px) 0; background: linear-gradient(180deg, var(--bg), #F1F1F8 60%, var(--bg)); }
.tcarousel { outline-offset: 8px; }
.t-stage {
  position: relative;
  perspective: 1100px;
  min-height: 340px;
  touch-action: pan-y;
}
.t-card {
  position: absolute; left: 50%; top: 0;
  width: min(480px, 86vw);
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-card);
  transform: translateX(-50%) translateZ(-160px);
  opacity: 0; pointer-events: none;
  transition: transform 0.6s var(--ease-soft), opacity 0.6s var(--ease-soft);
  will-change: transform, opacity;
}
.t-card.is-center { transform: translateX(-50%) translateZ(0); opacity: 1; pointer-events: auto; z-index: 3; }
.t-card.is-left { transform: translateX(calc(-50% - 58%)) rotateY(28deg) translateZ(-90px) scale(0.9); opacity: 0.55; z-index: 2; }
.t-card.is-right { transform: translateX(calc(-50% + 58%)) rotateY(-28deg) translateZ(-90px) scale(0.9); opacity: 0.55; z-index: 2; }
.t-stars { color: var(--amber); letter-spacing: 3px; font-size: 0.9rem; }
.t-stars.sm { font-size: 0.7rem; letter-spacing: 2px; }
.t-card blockquote { margin: 14px 0 22px; font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: 0.85rem; color: var(--uv);
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
}
.t-card figcaption b { display: block; font-size: 0.9375rem; color: var(--ink); }
.t-card figcaption small { color: var(--muted); font-size: 0.8125rem; }

.t-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.t-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(20, 22, 46, 0.14);
  display: grid; place-items: center; color: var(--ink);
  transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-spring);
}
.t-arrow:hover { border-color: var(--uv); background: rgba(88, 64, 255, 0.06); transform: scale(1.08); }
.t-arrow svg { width: 18px; height: 18px; }
.t-dots { display: flex; gap: 8px; }
.t-dots button {
  width: 8px; height: 8px; border-radius: 999px; padding: 0;
  background: rgba(20, 22, 46, 0.18);
  transition: width 0.35s var(--ease-soft), background-color 0.3s;
}
.t-dots button.on { width: 26px; background: var(--uv); }

/* ============================================================
   v7.0 — CONTACT
   ============================================================ */
.contact { padding: clamp(80px, 11vw, 140px) 0 clamp(90px, 12vw, 150px); }
.contact-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.listing-card {
  background: #fff; border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(26px, 3.6vw, 44px);
  box-shadow: var(--shadow-card);
}
.listing-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px; margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.listing-ic {
  width: 64px; height: 64px; border-radius: 18px; background: var(--grad); flex: none;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px -12px rgba(88, 64, 255, 0.55);
}
.listing-ic .orbit9 { width: 26px; height: 30px; }
.listing-t { display: flex; flex-direction: column; gap: 2px; }
.listing-t b { font-family: var(--font-d); font-weight: 700; font-size: 1.25rem; }
.listing-t small { color: var(--muted); font-size: 0.8125rem; }

.field { position: relative; margin-bottom: 24px; }
.field label, .field legend { display: block; color: var(--faint); font-size: 0.65rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(20, 22, 46, 0.14);
  background: transparent; padding: 8px 2px 10px;
  font: inherit; color: var(--ink); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #B9BCD0; }
.field input:focus, .field textarea:focus { outline: none; }
.field .underline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--uv); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-soft);
}
.field:focus-within .underline { transform: scaleX(1); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--coral); }

.ptypes { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ptypes legend { margin-bottom: 10px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(20, 22, 46, 0.14); font-size: 0.875rem; font-weight: 500;
  color: var(--muted); cursor: pointer;
  transition: all 0.3s var(--ease-soft);
}
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--uv); outline-offset: 3px; }

/* install-button morph */
.install-btn { width: 100%; overflow: hidden; transition: width 0.3s var(--ease-soft), transform 0.6s var(--ease-spring); }
.install-btn .btn-label { transition: opacity 0.2s; }
.install-btn.morphing { padding-inline: 0; }
.install-btn.morphing .btn-label { opacity: 0; }
.install-ring {
  position: absolute; inset: 5px; border-radius: 50%; opacity: 0;
  background: conic-gradient(var(--mint) calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.25) 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  transition: opacity 0.25s;
}
.install-btn.progress .install-ring { opacity: 1; }
.install-check {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px;
  transform: translate(-50%, -50%); opacity: 0;
}
.install-btn.done .install-check { opacity: 1; }
.install-btn.done { background: var(--mint); box-shadow: 0 12px 32px -10px rgba(0, 201, 167, 0.6); }
.install-btn.open .install-check, .install-btn.open .install-ring { opacity: 0; display: none; }
.install-btn.open .btn-label { opacity: 1; }
.form-note { margin-top: 14px; font-size: 0.875rem; color: var(--mint); font-weight: 500; min-height: 1.4em; }
.form-note.err { color: var(--coral); }

.contact-side { display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }
.side-block { border-left: 2px solid rgba(88, 64, 255, 0.25); padding-left: 20px; }
.side-label { color: var(--faint); margin-bottom: 8px; }
.side-mail { font-size: 1rem; color: var(--uv); letter-spacing: 0.04em; text-transform: none; }
.side-mail:hover { text-decoration: underline; }
.side-note { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.availability { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; flex: none; }

/* ============================================================
   v8.0 — FOOTER
   ============================================================ */
.footer { position: relative; padding-top: 56px; }
.footer-hairline {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad); background-size: 200% 100%;
  animation: hairPan 8s linear infinite alternate;
}
@keyframes hairPan { to { background-position: 100% 0; } }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.f-brand .brand-word { color: var(--ink-inv); }
.f-logo { padding: 0; }
.f-tag { color: var(--muted-inv); margin-top: 14px; font-size: 0.9375rem; max-width: 28ch; }
.f-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.f-head { color: var(--muted-inv); font-size: 0.65rem; margin-bottom: 6px; }
.f-col a:not(.soc) { color: var(--ink-inv); font-size: 0.9375rem; opacity: 0.85; transition: opacity 0.25s, color 0.25s; }
.f-col a:not(.soc):hover { opacity: 1; color: #fff; }
.f-social { display: flex; gap: 10px; }
.soc {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-inv);
  background: rgba(255, 255, 255, 0.04);
  display: grid; place-items: center;
  color: var(--muted-inv); font-size: 0.625rem;
  transition: all 0.3s var(--ease-soft);
}
.soc:hover {
  color: #fff; border-color: var(--uv);
  background: rgba(88, 64, 255, 0.18);
  box-shadow: 0 0 24px -4px rgba(88, 64, 255, 0.5);
  transform: translateY(-3px);
}
.rocket-top {
  margin-top: 18px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border-inv);
  background: rgba(255, 255, 255, 0.04);
  display: grid; place-items: center; color: var(--ink-inv);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rocket-top svg { width: 24px; height: 24px; transition: transform 0.5s var(--ease-out), opacity 0.4s; }
.rocket-top:hover { border-color: var(--coral); box-shadow: 0 0 24px -4px rgba(255, 120, 73, 0.5); }
.rocket-top:hover svg { transform: translateY(-3px); }
.rocket-top.launching svg { transform: translateY(-52px); opacity: 0; }
.footer-bottom {
  border-top: 1px solid var(--border-inv);
  padding-top: 22px; padding-bottom: 28px;
}
.footer-bottom .mono { color: var(--muted-inv); font-size: 0.625rem; line-height: 1.8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-time { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-scene { height: 540px; margin-top: 48px; }
  .slot-center { --pw: 200px; }
  .slot-left, .slot-right { --pw: 172px; }
  .slot-left { left: 2%; }
  .slot-right { right: 2%; }
  .proc-layout { grid-template-columns: 1fr 340px; }
  .proc-phone { --pw: 226px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-side .btn { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case-flip .case-device { order: 0; }
  .case-flip .case-info { order: 1; }
  .case-phone { --pw: 218px; }
  .os-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { padding-top: 0; }
  .proc-layout { grid-template-columns: 1fr; }
  .proc-device { order: -1; }
  .proc-sticky { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 5; padding: 12px 0; }
  .proc-phone { --pw: 168px; }
  .proc-phone .phone-shade { display: none; }
  .proc-stages { padding-left: 28px; }
  .stage { padding: 32px 0; }
  .stage::before { left: -25px; top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-scene { height: 440px; margin-top: 36px; }
  .slot-center { --pw: 168px; }
  .slot-left, .slot-right { --pw: 138px; }
  .slot-left { left: -6%; }
  .slot-right { right: -7%; }
  .chip-installs, .ma-3 { display: none; }
  .toast { width: min(260px, 88%); }
  .scroll-cue { display: none; }
  .os-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .t-card.is-left, .t-card.is-right { opacity: 0; pointer-events: none; }
  .stat-card:nth-child(even),
  html.js .stat-card.reveal:nth-child(even),
  html.js .stat-card.reveal.in-view:nth-child(even) { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   REDUCED MOTION CONTRACT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js [data-mask] { opacity: 1; }
  .mask-i { transform: none; }
  .ticker-rail { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .ticker-track:last-child { display: none; }
  .toast { opacity: 1; transform: translate3d(-50%, 0, 0); }
  .levitate, .f-in, .phone-shade { animation: none; }
  .cursor, #fx { display: none !important; }
  .grad-ink { animation: none; }
  .ring-a, .ring-b, .orot { animation: none; }
  .ring-a .orot, .ring-b .orot { transform: translate(-50%, -50%); }
  .scroll-cue .cue-phone i { animation: none; }
}
