/* =========================================================
   Jet Creative — app studio
   ========================================================= */

:root {
  --purple: #7b01f7;
  --purple-2: #9b4dff;
  --purple-3: #c9a2ff;
  --pink: #ff5fd2;
  --ink: #0b0118;
  --text: #f6f1ff;
  --text-2: rgba(246, 241, 255, .72);
  --text-3: rgba(246, 241, 255, .5);

  --glass-bg: rgba(255, 255, 255, .07);
  --glass-bg-strong: rgba(255, 255, 255, .12);
  --glass-border: rgba(255, 255, 255, .18);
  --glass-hi: rgba(255, 255, 255, .55);
  --glass-blur: 28px;

  --em-grad: linear-gradient(100deg, #e4ccff, var(--purple-2) 45%, var(--pink) 100%);
  --line: rgba(255, 255, 255, .08);
  --tooltip-bg: rgba(20, 4, 40, .75);
  --field-bg: rgba(255, 255, 255, .06);
  --field-border: rgba(255, 255, 255, .16);

  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-xl: 48px;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--purple); color: #fff; }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Background "video" ---------- */

.bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  background: var(--ink);
}
.bg canvas, .bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.bg.is-ready canvas, .bg.is-ready video { opacity: 1; }

.bg-fallback {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(123, 1, 247, .7), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(255, 95, 210, .35), transparent 70%),
    radial-gradient(50% 50% at 60% 80%, rgba(80, 30, 200, .6), transparent 70%);
  filter: blur(40px);
  animation: drift 24s ease-in-out infinite alternate;
}
.bg.is-ready .bg-fallback { opacity: 0; transition: opacity 1.6s; }

@keyframes drift {
  to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
}

.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(5, 0, 12, .75) 100%),
    linear-gradient(180deg, transparent 60%, rgba(5, 0, 12, .5));
}

.bg-grain {
  position: absolute; inset: -50%;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Liquid glass ---------- */

.glass {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 40%, rgba(255, 255, 255, .06)),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 0 rgba(255, 255, 255, .06),
    inset 0 0 24px rgba(255, 255, 255, .05),
    0 20px 60px -20px rgba(10, 0, 30, .6),
    0 2px 6px rgba(10, 0, 30, .25);
}
/* gradient hairline border */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--glass-hi), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
/* specular highlight that follows the pointer */
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 45%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
  z-index: -1; /* above the glass fill, below the content */
}
.glass:hover::after, .glass.is-lit::after { opacity: 1; }

.glass-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .82em;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6dffb0;
  box-shadow: 0 0 0 0 rgba(109, 255, 176, .6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(109, 255, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 255, 176, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  --pad-y: 16px; --pad-x: 26px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .5s var(--ease-spring), background .3s, box-shadow .4s var(--ease);
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn span { position: relative; z-index: 1; }
.btn svg {
  position: relative; z-index: 1;
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.96); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #9b3bff, var(--purple) 55%, #5a00c4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 6px rgba(40, 0, 90, .45),
    0 10px 30px -8px rgba(123, 1, 247, .8),
    0 0 0 1px rgba(255, 255, 255, .12);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 1px 1px 50% 1px;
  border-radius: 999px 999px 40% 40% / 999px 999px 20px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  opacity: .7;
}
.btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(40, 0, 90, .45), 0 16px 44px -8px rgba(155, 60, 255, .95), 0 0 0 1px rgba(255, 255, 255, .2); }

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
}
.btn-glass:hover { background: rgba(255, 255, 255, .16); }

.btn-small { --pad-y: 12px; --pad-x: 20px; font-size: .9em; }
.btn-large { --pad-y: 22px; --pad-x: 34px; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.btn-huge { --pad-y: clamp(22px, 2.4vw, 32px); --pad-x: clamp(26px, 3.4vw, 48px); font-size: clamp(1.05rem, 2.2vw, 1.75rem); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  animation: drop-in 1.2s var(--ease) .1s both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-30px) scale(.96); } }

.logo {
  position: relative;
  display: block;
  width: 150px;
  aspect-ratio: 329 / 76;
  flex: none;
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* keep the purple mark, turn the wordmark white for dark backgrounds */
.logo-mark { clip-path: inset(0 76% 0 0); transition: transform .8s var(--ease-spring); transform-origin: 12% 50%; }
.logo-word { clip-path: inset(0 0 0 24%); filter: brightness(0) invert(1); }
.logo:hover .logo-mark { transform: rotate(72deg); }

.nav-links {
  display: flex; gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .95em;
  font-weight: 500;
  color: var(--text-2);
  transition: color .3s, background .3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, .1); }

.menu-btn {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 2px;
  border-radius: 2px; background: var(--text);
  transition: transform .5s var(--ease-spring), top .3s var(--ease);
}
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 27px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; z-index: 40;
  inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 120px var(--gutter) max(40px, env(safe-area-inset-bottom));
  border-radius: 0;
  --glass-blur: 40px;
  background: rgba(20, 4, 40, .55);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a {
  font-size: clamp(2.6rem, 12vw, 4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.menu nav a, .menu .btn {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 100ms);
}
.menu.is-open nav a, .menu.is-open .btn { opacity: 1; transform: none; }
.menu .btn { align-self: flex-start; }

/* ---------- Layout ---------- */

main > section {
  position: relative;
  padding: clamp(96px, 14vh, 180px) var(--gutter);
}
.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 8vh, 96px);
  text-align: center;
}
.kicker {
  display: inline-block;
  margin-bottom: 20px;
  font-size: .85em;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple-3);
}
.section-title, .contact-title {
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section-title em, .contact-title em, .hero-title em {
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.section-lead {
  max-width: 34em;
  margin: 28px auto 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 120px !important;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 1400px; }
.eyebrow { margin-bottom: clamp(24px, 4vh, 40px); }
.hero-title {
  font-size: clamp(3.4rem, 11.5vw, 11rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 10px 60px rgba(40, 0, 90, .35);
}
.hero-title em { font-size: 1.08em; letter-spacing: -.03em; }
.hero-lead {
  max-width: 36em;
  margin: clamp(24px, 4vh, 40px) auto 0;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  color: var(--text-2);
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: clamp(32px, 5vh, 56px);
}

.hero-float { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-icon {
  position: absolute; left: 50%; top: 50%;
  width: clamp(64px, 7vw, 110px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 28%;
  translate: calc(-50% + var(--x)) calc(-50% + var(--y));
  rotate: var(--r);
  scale: var(--s);
  animation: bob 9s ease-in-out infinite, pop-in 1.4s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * -2s), .9s;
  opacity: .9;
}
.float-icon:nth-child(2) { --i: 1; }
.float-icon:nth-child(3) { --i: 2; }
.float-icon:nth-child(4) { --i: 3; }
.float-icon img { width: 100%; height: 100%; border-radius: 24%; object-fit: cover; }
.float-mark img { object-position: 0 50%; padding: 14%; border-radius: 0; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  50% { transform: translate3d(0, -18px, 0) rotate(4deg); }
}
@keyframes pop-in { from { opacity: 0; scale: .4; } }

.scroll-cue {
  position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%;
  translate: -50% 0;
  width: 30px; height: 50px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 9px; left: 50%;
  width: 4px; height: 10px; margin-left: -2px;
  border-radius: 2px; background: #fff;
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-block: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .85);
}
.marquee span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--purple-3); }
.marquee i {
  width: 14px; height: 14px; flex: none;
  background: var(--purple-2);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Apps (stacking cards) ---------- */

.stack {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vh, 48px);
}
.app-card {
  --accent: var(--purple-2);
  position: sticky;
  top: calc(96px + var(--n, 0) * 18px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(82vh, 820px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  overflow: hidden;
  transform-origin: 50% 0;
  background:
    radial-gradient(70% 90% at 90% 50%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .06)),
    rgba(22, 6, 44, .45);
}
.stack .app-card:nth-child(1) { --n: 0; }
.stack .app-card:nth-child(2) { --n: 1; }
.stack .app-card:nth-child(3) { --n: 2; }
.stack .app-card:nth-child(4) { --n: 3; }

.app-copy { position: relative; z-index: 3; }
.app-id { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(24px, 4vh, 40px); }
.app-icon {
  width: clamp(64px, 6vw, 88px); height: auto; aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.app-id h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.app-meta { margin-top: 4px; font-size: .9em; color: var(--text-3); }
.app-tagline {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.app-tagline em { color: color-mix(in srgb, var(--accent) 65%, white); }
.app-desc { max-width: 30em; margin-top: 24px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85em; font-weight: 500;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(28px, 4vh, 44px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .92em; color: var(--text-2); }
.status .dot { background: var(--accent); animation: none; box-shadow: 0 0 12px var(--accent); }

.app-visual {
  position: relative; z-index: 3;
  display: grid; place-items: center;
  perspective: 1200px;
}
.app-visual::before {
  content: "";
  position: absolute; width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: .35;
}
.phone {
  position: relative;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    inset 0 2px 1px rgba(255, 255, 255, .6),
    0 40px 80px -20px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .8s var(--ease);
}
.phone > img, .phone > .mock-logmeds {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 43px;
  background: #000;
}
.phone::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 43px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22), transparent 32%);
  pointer-events: none;
}

/* LogMeds illustrative screen */
.mock-logmeds {
  overflow: hidden;
  padding: 14px 14px 0;
  background: radial-gradient(120% 60% at 50% 0, #1a2233, #0a0c11 60%) !important;
  font-size: 11px;
  color: #eef1f6;
  text-align: left;
}
.lm-status { display: flex; justify-content: space-between; padding: 2px 10px 0; font-weight: 600; font-size: 1.05em; }
.lm-bars { width: 38px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #eef1f6 70%, rgba(238, 241, 246, .3) 0); }
.lm-date { margin-top: 18px; color: rgba(238, 241, 246, .55); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9em; }
.lm-title { font-size: 2.6em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.lm-people { display: flex; gap: 6px; margin-top: 10px; }
.lm-people span {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; background: var(--c, #333);
}
.lm-people .lm-add { background: rgba(255, 255, 255, .1); }
.lm-ring { position: relative; width: 58%; margin: 16px auto 12px; }
.lm-ring svg { width: 100%; transform: rotate(-90deg); }
.lm-ring circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 12; }
.lm-ring .lm-prog { stroke: #5ee7c1; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 78; }
.lm-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lm-ring b { font-size: 2.2em; letter-spacing: -.03em; }
.lm-ring small { color: rgba(238, 241, 246, .55); }
.lm-list { display: grid; gap: 6px; }
.lm-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
}
.lm-list i { width: 10px; height: 22px; border-radius: 6px; background: linear-gradient(#7cf0c8 50%, #fff 0); flex: none; }
.lm-list div { flex: 1; display: grid; }
.lm-list small { color: rgba(238, 241, 246, .5); }
.lm-list li > span { color: #5ee7c1; font-weight: 700; }
.lm-list li.done b { opacity: .6; }
.lm-take { padding: 4px 10px; border-radius: 999px; background: #5ee7c1; color: #0a0c11 !important; }

/* ---------- Statement ---------- */

.statement {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-block: clamp(120px, 24vh, 260px) !important;
}
.statement-text {
  font-size: clamp(2rem, 5.4vw, 5.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.statement-text .w {
  color: rgba(255, 255, 255, .16);
  transition: color .5s var(--ease), text-shadow .6s;
}
.statement-text .w.on { color: #fff; text-shadow: 0 0 40px rgba(155, 77, 255, .5); }

/* ---------- Studio bento ---------- */

.bento {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.tile {
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--r-lg);
  min-height: 300px;
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease), background .4s;
}
.tile.in:hover { transform: translateY(-6px); background-color: rgba(255, 255, 255, .1); }
.tile-wide { grid-column: span 2; }
.tile-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin-bottom: auto;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 30px -8px rgba(123, 1, 247, .8);
}
.tile-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 48px; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.tile p { margin-top: 14px; max-width: 34em; color: var(--text-2); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- Process ---------- */

.steps {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  counter-reset: s;
}
.step {
  padding: clamp(28px, 2.8vw, 44px);
  border-radius: var(--r-lg);
  min-height: 360px;
  display: flex; flex-direction: column;
}
.step-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: .9;
  background: linear-gradient(160deg, #fff, var(--purple-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-top: clamp(40px, 8vh, 96px); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 650; letter-spacing: -.03em; }
.step p { margin-top: 12px; color: var(--text-2); }

/* ---------- Contact ---------- */

.contact { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.contact-card {
  width: 100%;
  max-width: var(--max);
  padding: clamp(48px, 9vw, 140px) clamp(24px, 6vw, 96px);
  border-radius: var(--r-xl);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(123, 1, 247, .55), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .07)),
    rgba(22, 6, 44, .35);
}
.contact-card .btn-huge { margin-top: clamp(32px, 6vh, 56px); max-width: 100%; }
.contact-card .btn-huge span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */

.footer { padding: 0 var(--gutter) max(40px, env(safe-area-inset-bottom)); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-apps { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.footer-apps a { color: var(--text-2); transition: color .3s; }
.footer-apps a:hover { color: #fff; }
.legal { grid-column: 1 / -1; font-size: .8em; color: var(--text-3); max-width: 60em; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(.98);
  filter: blur(10px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

[data-split] .word { display: inline-block; white-space: nowrap; }
[data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .5em, 0) rotate(6deg);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-spring), filter .9s var(--ease);
  transition-delay: calc(var(--ci) * 22ms + var(--d, 0s));
}
[data-split].in .char { opacity: 1; transform: none; filter: none; }
/* gradient text lives on each unit once split (em text splits by word) */
[data-split] em { background: none; color: inherit; }
[data-split] em .char {
  background: var(--em-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: 280px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-inner { padding: 8px 8px 8px 20px; }
  .logo { width: 132px; }

  .app-card {
    grid-template-columns: 1fr;
    top: calc(84px + var(--n, 0) * 12px);
    min-height: 0;
    gap: 36px;
  }
  .app-visual { order: -1; }
  .phone { width: min(58vw, 260px); --ry: 0deg; --rx: 0deg; }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-apps { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .br-wide { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hero-float { display: none; }
  .phone { width: min(52vw, 220px); }

  .app-card { padding: 24px 20px 28px; border-radius: 36px; position: relative; top: auto; }
  .app-id { gap: 14px; }
  .app-actions .btn { width: 100%; }

  .bento, .steps { grid-template-columns: 1fr; }
  .tile, .step { min-height: 0; }
  .tile h3, .step h3 { margin-top: 28px; }

  .contact-card { border-radius: 36px; }
  .btn-huge { width: 100%; font-size: 1rem; }
}

@media (hover: none) {
  .phone { --ry: 0deg; --rx: 0deg; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* =========================================================
   Light theme — set with <html data-theme="light">
   ========================================================= */

:root[data-theme="light"] {
  --purple-3: #6a14d9;
  --ink: #f4eefe;
  --text: #1a0b2e;
  --text-2: rgba(26, 11, 46, .74);
  --text-3: rgba(26, 11, 46, .56);

  --glass-bg: rgba(255, 255, 255, .42);
  --glass-bg-strong: rgba(255, 255, 255, .6);
  --glass-border: rgba(123, 1, 247, .16);
  --glass-hi: rgba(255, 255, 255, .95);

  --em-grad: linear-gradient(100deg, #5a00c9, var(--purple) 45%, #d42f9c 100%);
  --line: rgba(123, 1, 247, .14);
  --tooltip-bg: rgba(255, 255, 255, .85);
  --field-bg: rgba(255, 255, 255, .6);
  --field-border: rgba(123, 1, 247, .2);

  color-scheme: light;
}

[data-theme="light"] .glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .25) 45%, rgba(255, 255, 255, .45)),
    var(--glass-bg);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 0 rgba(123, 1, 247, .06),
    inset 0 0 24px rgba(255, 255, 255, .35),
    0 20px 60px -20px rgba(80, 20, 160, .35),
    0 2px 6px rgba(80, 20, 160, .08);
}
[data-theme="light"] .glass::before {
  background: linear-gradient(160deg, #fff, rgba(123, 1, 247, .12) 35%, rgba(123, 1, 247, .06) 60%, rgba(255, 255, 255, .9));
}
[data-theme="light"] .glass::after {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 45%);
}
[data-theme="light"] .glass-chip {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(123, 1, 247, .16);
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px -8px rgba(80, 20, 160, .25);
}
[data-theme="light"] .btn-glass {
  background: rgba(255, 255, 255, .5);
  border-color: rgba(123, 1, 247, .18);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px -10px rgba(80, 20, 160, .3);
}
[data-theme="light"] .btn-glass:hover { background: rgba(255, 255, 255, .75); }
[data-theme="light"] .logo-word { filter: none; }
[data-theme="light"] .bg-vignette {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(236, 226, 255, .7) 100%),
    linear-gradient(180deg, transparent 60%, rgba(244, 238, 254, .5));
}
[data-theme="light"] .bg-grain { opacity: .05; mix-blend-mode: multiply; }
[data-theme="light"] .bg-fallback {
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(155, 77, 255, .35), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(255, 95, 210, .2), transparent 70%),
    radial-gradient(50% 50% at 60% 80%, rgba(123, 1, 247, .25), transparent 70%);
}
[data-theme="light"] .dot { background: #12b76a; }

/* Circular reveal when switching theme (browsers with View Transitions) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  animation: theme-reveal .7s var(--ease) both;
}
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0)); }
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .5s var(--ease-spring), background .3s;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); background: var(--glass-bg-strong); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg {
  position: absolute;
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease-spring), opacity .3s;
}
.theme-toggle .i-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .i-sun { transform: none; opacity: 1; }
[data-theme="light"] .theme-toggle .i-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }

/* =========================================================
   Contact popup
   ========================================================= */

.contact-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 36px;
  color: var(--text);
  background: transparent;
  overflow: visible;
}
.contact-dialog::backdrop {
  background: rgba(8, 0, 20, .45);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
[data-theme="light"] .contact-dialog::backdrop { background: rgba(236, 226, 255, .45); }

.contact-panel {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 5vw, 48px);
  border-radius: inherit;
  --glass-blur: 40px;
}
:root:not([data-theme="light"]) .contact-panel { background-color: rgba(22, 6, 44, .6); }

.contact-dialog[open] .contact-panel { animation: dialog-in .6s var(--ease-spring) both; }
.contact-dialog[open]::backdrop { animation: fade-in .4s var(--ease) both; }
.contact-dialog.is-closing .contact-panel { animation: dialog-out .25s var(--ease) both; }
.contact-dialog.is-closing::backdrop { animation: fade-in .25s var(--ease) reverse both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(6px); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

.contact-close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  transition: transform .4s var(--ease-spring), background .3s;
}
.contact-close:hover { transform: rotate(90deg); }
.contact-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.contact-panel h2 {
  padding-right: 48px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
}
.contact-panel h2 em {
  background: var(--em-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.contact-intro { margin-top: 12px; color: var(--text-2); }

.contact-form { display: grid; gap: 16px; margin-top: 28px; position: relative; z-index: 3; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85em; font-weight: 600; color: var(--text-2); }
.field label small { font-weight: 400; color: var(--text-3); }
.field input, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--field-border);
  border-radius: 18px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* stops iOS zooming into the field */
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple-2);
  box-shadow: 0 0 0 4px rgba(155, 77, 255, .25);
}
.field.has-error input, .field.has-error textarea { border-color: #ff6b8b; }
.field-error { min-height: 0; font-size: .82em; color: #ff8aa5; }
[data-theme="light"] .field-error { color: #c8103f; }

/* Honeypot: hidden from people, visible to naive bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-submit { justify-self: start; margin-top: 4px; }
.contact-submit[disabled] { opacity: .7; cursor: progress; }
.contact-submit .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
  position: relative; z-index: 1;
}
.contact-submit.is-loading .spinner { display: block; }
.contact-submit.is-loading svg { display: none; }

.form-status { font-size: .92em; }
.form-status.is-error { color: #ff8aa5; }
[data-theme="light"] .form-status.is-error { color: #c8103f; }

.recaptcha-note { font-size: .75em; color: var(--text-3); }
.recaptcha-note a { text-decoration: underline; text-underline-offset: 2px; }
/* Badge hidden: the note above is Google's required replacement */
.grecaptcha-badge { visibility: hidden; }

.contact-success { display: none; text-align: center; padding: 24px 0 8px; position: relative; z-index: 3; }
.contact-dialog.is-sent .contact-form,
.contact-dialog.is-sent .contact-intro { display: none; }
.contact-dialog.is-sent .contact-success { display: block; animation: dialog-in .6s var(--ease-spring) both; }
.success-mark {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 40px -10px rgba(123, 1, 247, .8);
}
.success-mark svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.contact-dialog.is-sent .success-mark svg { animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.contact-success p { margin-top: 10px; color: var(--text-2); }
.contact-success .btn { margin-top: 24px; }

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

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-submit { justify-self: stretch; }
  .contact-dialog { border-radius: 28px; }
}
