/* Akiliva · akiliva.com
   One stylesheet for the whole site. Dark by design: the apps' colours glow
   against it. Every animation stops under prefers-reduced-motion. */

/* ------------------------------------------------------------ fonts */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Akiliva Urdu"; src: url("../fonts/NotoNastaliqUrdu-Arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Akiliva Arabic"; src: url("../fonts/NotoNaskhArabic-Arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Akiliva Devanagari"; src: url("../fonts/NotoSansDevanagari-Devanagari.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --bg: #060709;
  --bg-2: #0A0B0F;
  --card: #0D0F13;
  --card-2: #12141A;
  --raise: #181B22;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --ink: #F4F5F7;
  --ink-2: #B2B7C2;
  --ink-3: #848A99;
  --prose: #D3D6DD;

  --amber: #FFB547;
  --ember: #FF6A3D;
  --violet: #B678FF;
  --sky: #4CC3FF;
  --mint: #3CE0B0;
  --spark: linear-gradient(100deg, #FFB547 0%, #FF6A3D 24%, #B678FF 52%, #4CC3FF 78%, #3CE0B0 100%);

  --accent: #FFB547;
  --accent-2: #B678FF;
  --base: #0D0F14;

  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #2A2D36 var(--bg); scroll-padding-top: calc(var(--header) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font); font-optical-sizing: auto; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(255, 181, 71, .32); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
/* Taps. Phones flash a rectangle over whatever is tapped, whatever its shape,
   so the flash is off and every rounded control presses in its own shape
   instead. `scale` (not transform) so it adds to tilt and magnetic moves. */
html { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .nav a:active, .doc-tabs a:active, .lang-switch a:active, .legal-jump a:active, .filter:active, .menu-button:active, .footer-mail:active, .badge:active, .skip:active, .copy-btn:active { scale: .95; }
  .btn:active { scale: .97; }
  .doc-link:active, .support-links a:active, .menu-app:active, .more-app:active, .mail-card:active { scale: .98; }
  .app-card:active, .pillar:active, .built-cta:active { scale: .985; }
}
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.center-text { text-align: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: scale .35s var(--spring); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ type */
.display { font-size: clamp(48px, 8.6vw, 132px); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.display-2 { font-size: clamp(42px, 6.4vw, 96px); line-height: .98; letter-spacing: -.048em; font-weight: 600; }
.display-3 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.serif, em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.app-page em.serif, .built-section em.serif { color: var(--accent); }
.display, .display-2, .display-3, .h2, .h3, .doc-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--ink-2); letter-spacing: -.012em; max-width: 58ch; }
.fine { font-size: 14px; color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 14px rgba(255, 140, 70, .7); }
.app-page .eyebrow::before, .built-section .eyebrow::before { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.eyebrow.center-text { display: flex; justify-content: center; }
.text-link { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-3); padding-bottom: 2px; transition: border-color .3s, gap .3s var(--ease-out); }
.text-link:hover { border-color: var(--ink); gap: 12px; }

/* words rising out of a mask (headlines) */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.w { display: inline-block; transform: translateY(108%) rotate(2deg); transform-origin: 0 100%; animation: word-up 1.15s var(--ease-out) forwards; animation-delay: calc(.12s + var(--i, 0) * .075s); }
.w .serif { padding-right: .06em; }
@keyframes word-up { to { transform: none; } }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s, border-color .3s, color .3s, scale .35s var(--spring);
}
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: #fff; color: #08090B; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 40px -14px rgba(255, 255, 255, .45); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 190, 120, .55) 46%, rgba(190, 140, 255, .5) 54%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease-out); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 50px -12px rgba(255, 200, 150, .55); }
.btn-ghost { background: rgba(255, 255, 255, .045); color: var(--ink); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16.5px; }

/* ------------------------------------------------------------ header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .55s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(6, 7, 9, .66); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); border-bottom-color: var(--line); }
.site-header.hidden { transform: translateY(-101%); }
.bar { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .mark { transition: transform .8s var(--spring); }
.brand:hover .mark { transform: rotate(-12deg) scale(1.06); }
.brand .mark-spark { transform-origin: 23.2px 4.6px; animation: spark 3.6s ease-in-out infinite; }
@keyframes spark { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.brand-word { font-size: 22px; font-weight: 650; letter-spacing: -.045em; line-height: 1; padding-bottom: 2px; }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.nav a { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .25s, background-color .25s, scale .35s var(--spring); }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .09); }
.bar-end { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; transition: scale .35s var(--spring); }
.menu-button span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 25px; }
.menu-open .menu-button span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-button span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: rgba(6, 7, 9, .94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding-top: calc(var(--header) + 24px); overflow-y: auto; opacity: 0; transition: opacity .4s var(--ease-out); }
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
.menu-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 36px; }
.menu-link { font-size: clamp(36px, 10vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.05s + var(--i) * .05s); }
.menu-link:last-child { background: var(--spark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu.open .menu-link { opacity: 1; transform: none; }
.menu-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 40px; }
.menu-app { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-weight: 600; transition: scale .35s var(--spring); }
.menu-icon { border-radius: 11px; }
.murmur-dot { width: 40px; height: 40px; border-radius: 11px; background: radial-gradient(circle at 30% 30%, #FF9A7A, #FF5A36 50%, #5B5BD6); }

/* ------------------------------------------------------------ hero (home) */
.hero { position: relative; isolation: isolate; min-height: 100svh; padding-top: calc(var(--header) + clamp(32px, 6.5vh, 92px)); display: flex; flex-direction: column; overflow: hidden; }
.hero-bg, .page-hero-bg, .app-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::after, .app-hero-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--bg)); }
.aurora { position: absolute; inset: -20%; }
.blob { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; opacity: .78; will-change: transform; }
.hero-glow { position: absolute; left: 50%; bottom: -34%; width: 140vmax; height: 70vmax; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 150, 90, .34), rgba(182, 120, 255, .2) 45%, rgba(76, 195, 255, .08) 70%, transparent); animation: glow-breathe 9s ease-in-out infinite; }
@keyframes glow-breathe { 50% { transform: translateX(-50%) scale(1.06); opacity: .85; } }
.b1 { left: -18%; top: -22%; background: radial-gradient(circle, rgba(255, 106, 61, .55), transparent 62%); animation: drift-1 26s ease-in-out infinite alternate; }
.b2 { right: -22%; top: -10%; background: radial-gradient(circle, rgba(182, 120, 255, .5), transparent 62%); animation: drift-2 30s ease-in-out infinite alternate; }
.b3 { left: 18%; top: 28%; background: radial-gradient(circle, rgba(76, 195, 255, .38), transparent 62%); animation: drift-3 34s ease-in-out infinite alternate; }
.b4 { right: 4%; top: 40%; background: radial-gradient(circle, rgba(60, 224, 176, .32), transparent 62%); animation: drift-1 38s ease-in-out infinite alternate-reverse; }
.aurora.soft .blob { opacity: .45; }
@keyframes drift-1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-16vw, 14vh) scale(.9); } }
@keyframes drift-3 { to { transform: translate(-8vw, -12vh) scale(1.2); } }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 11, 15, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 34px; transition: border-color .3s, color .3s, scale .35s var(--spring); }
.badge:hover { border-color: var(--line-3); color: var(--ink); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(60, 224, 176, .6); animation: ping 2.2s var(--ease-out) infinite; }
.badge-go { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: transform .4s var(--ease-out); }
.badge:hover .badge-go { transform: translateX(3px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60, 224, 176, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(60, 224, 176, 0); } }
.hero-title { display: flex; flex-direction: column; align-items: center; }
.hero-line { display: block; white-space: nowrap; }
.hero-title .serif { background: linear-gradient(100deg, #FFD08A, #FF8A5C 45%, #C99BFF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.rotator { position: relative; display: inline-grid; vertical-align: top; overflow: hidden; padding: 0 .04em .14em; margin: 0 -.04em -.14em; transition: width .7s var(--ease-out); text-align: left; }
.rot-sizer { visibility: hidden; grid-area: 1 / 1; white-space: nowrap; }
.rot-word { grid-area: 1 / 1; white-space: nowrap; background: var(--spark); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; transform: translateY(110%); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s var(--ease-out), filter .9s var(--ease-out); filter: blur(6px); }
.rot-word.is-active { transform: none; opacity: 1; filter: none; }
.rot-word.is-leaving { transform: translateY(-80%); opacity: 0; filter: blur(8px); }
.rotator:not(.ready) .rot-word:first-of-type { transform: translateY(108%); opacity: 1; filter: none; animation: word-up 1.15s var(--ease-out) .5s forwards, shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero-lead { margin: 32px auto 0; text-align: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }
.hero-ctas.left { justify-content: flex-start; }

.stage { --pw: clamp(150px, 19vw, 280px); --s: 0; position: relative; height: calc(var(--pw) * 1.5); margin-top: clamp(40px, 6vh, 72px); perspective: 1600px; mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); animation: stage-in 1.6s var(--ease-out) .55s both; }
.stage-inner, .stage { transform-style: preserve-3d; }
@keyframes stage-in { from { opacity: 0; transform: translateY(120px); } }
.stage .stage-phone { position: absolute; left: 50%; top: 0; width: var(--pw); transform: translateX(calc(-50% + var(--x, 0px) * (1 + var(--s) * .35))) translateY(calc(var(--y, 0px) + var(--s) * var(--lift, 0px))) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--try, 0deg))) rotate(var(--r, 0deg)) scale(var(--sc, 1)); animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.p-c { z-index: 5; --y: 0px; --lift: -30px; --fd: 0s; }
.p-l { z-index: 4; --x: calc(var(--pw) * -.95); --y: calc(var(--pw) * .16); --r: -5deg; --sc: .92; --fd: -1.4s; --lift: 10px; }
.p-r { z-index: 4; --x: calc(var(--pw) * .95); --y: calc(var(--pw) * .16); --r: 5deg; --sc: .92; --fd: -2.8s; --lift: 10px; }
.p-far-l { z-index: 3; --x: calc(var(--pw) * -1.82); --y: calc(var(--pw) * .42); --r: -10deg; --sc: .84; --fd: -4.2s; --lift: 40px; }
.p-far-r { z-index: 3; --x: calc(var(--pw) * 1.82); --y: calc(var(--pw) * .42); --r: 10deg; --sc: .84; --fd: -5.6s; --lift: 40px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ------------------------------------------------------------ phone frame */
.phone { position: relative; aspect-ratio: 720 / 1560; border-radius: 16% / 7.4%; background: linear-gradient(150deg, #34373F, #0D0E12 34%, #16181E 70%, #2A2C33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 2.5px #08090B, 0 50px 90px -30px rgba(0,0,0,.9), 0 30px 80px -40px var(--glow, rgba(0,0,0,0)); }
.phone::after { content: ""; position: absolute; top: 2.3%; left: 50%; width: 3.6%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #050507; z-index: 2; box-shadow: 0 0 0 1.5px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-screen { position: absolute; inset: 1.45% 3.2%; border-radius: 13.2% / 6.2%; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.1), transparent 32%); pointer-events: none; }

/* ------------------------------------------------------------ marquee band */
.band { padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); display: grid; gap: 14px; background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee.reverse .mq-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; flex-shrink: 0; }
.mq-item { font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; color: var(--ink-3); padding: 0 clamp(16px, 2.2vw, 30px); white-space: nowrap; transition: color .3s; }
.mq-item:hover { color: var(--ink); }
.mq-sep { font-size: clamp(14px, 1.6vw, 20px); background: var(--spark); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding-block: clamp(80px, 9.5vw, 148px); }
.section.tight { padding-block: clamp(40px, 6vw, 88px); }
.section-head { margin-bottom: clamp(40px, 5.5vw, 80px); }
.section-head .lead { margin-top: 24px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.section-head.split .lead { margin-top: 0; justify-self: end; }

/* reveal on scroll (only with JavaScript, so content never hides without it) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------ app cards */
.apps-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.app-card {
  --mx: 50%; --my: 50%; --tx: 0deg; --ty: 0deg;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(580px, 48vw, 660px); padding: clamp(24px, 2.6vw, 38px); border-radius: 34px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--base) 75%, #10121A), #0A0B0F 85%);
  border: 1px solid var(--line); transform: perspective(1200px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .7s var(--ease-out), border-color .5s, box-shadow .6s var(--ease-out), scale .35s var(--spring);
}
.w-narrow, .w-half { justify-content: flex-start; }
.app-card:hover { border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: 0 40px 100px -50px color-mix(in srgb, var(--accent) 60%, transparent); }
.w-wide { grid-column: span 7; }
.w-narrow { grid-column: span 5; }
.w-half { grid-column: span 6; }
.card-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 88% 105%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 58%), radial-gradient(70% 55% at 0% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%); opacity: .8; transition: opacity .6s; }
.app-card:hover .card-glow { opacity: 1; }
.app-card::after, [data-spotlight]::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.075), transparent 42%); opacity: 0; transition: opacity .4s; }
.app-card:hover::after, [data-spotlight]:hover::after { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.app-icon { border-radius: 23%; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 18px 40px -16px color-mix(in srgb, var(--accent) 70%, #000); }
.card-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); transition: transform .6s var(--ease-out), background-color .4s, color .4s; }
.app-card:hover .card-arrow { transform: rotate(45deg); background: #fff; color: #000; }
.card-copy { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; max-width: 100%; margin-top: 28px; }
.w-wide .card-copy { max-width: 48%; }
.card-cat { font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.card-name { font-size: clamp(38px, 4.2vw, 60px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.card-tag { font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 26ch; }
.card-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.card-visual { position: absolute; z-index: 1; right: 7%; bottom: 0; width: 44%; max-width: 280px; height: 72%; pointer-events: none; }
.w-narrow .card-visual, .w-half .card-visual { width: 52%; height: 47%; right: 8%; }
.card-visual .card-phone { position: absolute; left: 0; right: 0; top: 0; transform: translateY(14%) rotate(-5deg); transition: transform 1s var(--ease-out); --glow: var(--accent); }
.app-card:hover .card-phone { transform: translateY(4%) rotate(0deg); }
.app-card .card-visual:has(.murmur-visual) { left: clamp(24px, 2.6vw, 38px); right: clamp(24px, 2.6vw, 38px); bottom: clamp(24px, 2.6vw, 38px); width: auto; height: auto; max-width: none; }
.card-visual .murmur-visual { grid-template-columns: 84px 1fr; align-items: center; gap: 18px 22px; justify-items: stretch; }
.card-visual .orb { width: 70px; height: 70px; margin: 7px; }
.card-visual .wave { overflow: hidden; }
.card-visual .transcript { grid-column: 1 / -1; width: 100%; max-width: none; }

/* Murmur's placeholder art */
.murmur-icon { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 72px; height: 72px; background: linear-gradient(140deg, #FF7A57, #FF5A36 40%, #6E5BF0); }
.murmur-icon.small { width: 48px; height: 48px; gap: 2px; }
.murmur-icon.big { width: 88px; height: 88px; }
.murmur-icon i { width: 5px; border-radius: 4px; background: #fff; height: 30%; animation: bar 1.4s ease-in-out infinite; }
.murmur-icon.small i { width: 3.5px; }
.murmur-icon i:nth-child(2) { height: 55%; animation-delay: -.3s; }
.murmur-icon i:nth-child(3) { height: 75%; animation-delay: -.6s; }
.murmur-icon i:nth-child(4) { height: 45%; animation-delay: -.9s; }
.murmur-icon i:nth-child(5) { height: 25%; animation-delay: -1.2s; }
@keyframes bar { 50% { transform: scaleY(.45); } }
.murmur-visual { position: relative; display: grid; gap: 18px; justify-items: center; }
.orb { position: relative; width: 120px; height: 120px; }
.orb span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFB199, #FF5A36 45%, #6E5BF0 100%); filter: blur(.5px); animation: orb 3.2s ease-in-out infinite; }
.orb span:nth-child(2) { inset: -18px; opacity: .25; animation-delay: -.8s; filter: blur(14px); }
.orb span:nth-child(3) { inset: -40px; opacity: .14; animation-delay: -1.6s; filter: blur(30px); }
@keyframes orb { 50% { transform: scale(1.08); } }
.wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.wave i { width: 4px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #FF8A65, #8B8BFF); transform: scaleY(calc(.15 + .85 * var(--h, .5))); animation: wave 1.6s ease-in-out infinite; animation-delay: calc(var(--b) * -0.09s); }
.wave i:nth-child(3n) { --h: .9; } .wave i:nth-child(3n+1) { --h: .45; } .wave i:nth-child(4n) { --h: .7; } .wave i:nth-child(5n) { --h: .25; }
@keyframes wave { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(calc(.25 + .75 * var(--h, .5))); } }
.transcript { width: min(100%, 360px); padding: 18px 20px; border-radius: 20px; background: rgba(23, 26, 33, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); text-align: left; display: grid; gap: 8px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.t-title { font-weight: 650; letter-spacing: -.02em; }
.t-line { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.t-line span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #FF8A65; margin-bottom: 2px; }


/* ------------------------------------------------------------ AI and web demos */
.ai-chat, .ai-voice { width: min(100%, 420px); border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(24, 26, 33, .94), rgba(12, 13, 18, .96)); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); text-align: left; position: relative; }
.ai-chat { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(140deg, #B678FF, #4CC3FF); color: #fff; }
.chat-head strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.chat-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.chat-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; height: 280px; overflow: hidden; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: msg-in .55s var(--ease-out) both; }
.msg.user { align-self: flex-end; background: #fff; color: #0A0B0F; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cite { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 500; color: #C3ADFF; animation: msg-in .5s var(--ease-out) both; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 14px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); font-size: 14px; }
.chat-send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; }

.ai-voice { padding: 18px; }
.v-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.v-live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 95, 87, .12); color: #FF8F87; font-weight: 600; }
.v-live i { width: 7px; height: 7px; border-radius: 50%; background: #FF5F57; animation: pulse 1.4s infinite; }
.v-wave { display: flex; align-items: center; gap: 4px; height: 54px; margin: 16px 0; }
.v-wave i { flex: 1; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #4CC3FF, #B678FF); transform: scaleY(.3); animation: wave 1.3s ease-in-out infinite; animation-delay: calc(var(--b) * -.07s); --h: .55; }
.v-wave i:nth-child(3n) { --h: .95; } .v-wave i:nth-child(4n) { --h: .7; } .v-wave i:nth-child(5n) { --h: .3; }
.v-lines { display: grid; gap: 8px; align-content: start; min-height: 196px; }
.v-line { padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; transition: opacity .5s, transform .6s var(--ease-out); }
.v-line span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.v-line.agent { background: rgba(76, 195, 255, .07); border-color: rgba(76, 195, 255, .22); }
.v-line.agent span { color: #82D4FF; }
.v-done { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: rgba(60, 224, 176, .12); border: 1px solid rgba(60, 224, 176, .32); color: #84EDCD; font-size: 13.5px; font-weight: 600; transition: opacity .5s, transform .6s var(--spring); }
.js .ai-voice[data-voice] .v-line:not(.show) { opacity: 0; transform: translateY(8px); }
.js .ai-voice[data-voice]:not(.done) .v-done { opacity: 0; transform: scale(.96); }

.ai-flow { display: grid; width: min(100%, 380px); text-align: left; }
.f-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(18, 20, 26, .94); transition: border-color .45s, box-shadow .45s, transform .6s var(--ease-out); }
.f-node.on { border-color: rgba(182, 120, 255, .65); box-shadow: 0 0 0 4px rgba(182, 120, 255, .1), 0 24px 50px -24px rgba(182, 120, 255, .55); transform: translateX(6px); }
.f-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; transition: background-color .45s; }
.f-node.on .f-icon { background: linear-gradient(140deg, #B678FF, #4CC3FF); }
.f-node strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.f-node small { display: block; font-size: 13px; color: var(--ink-3); }
.f-link { position: relative; width: 2px; height: 26px; margin-left: 35px; background: var(--line-2); }
.f-link i { position: absolute; left: -3px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #C9A8FF; box-shadow: 0 0 14px #B678FF; opacity: 0; }
.f-link.run i { animation: drop .55s var(--ease) forwards; }
@keyframes drop { 0% { opacity: 1; top: -4px; } 100% { opacity: 1; top: 22px; } }

.browser { --glow: transparent; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0E1015; box-shadow: 0 60px 120px -50px rgba(0,0,0,.95), 0 40px 90px -60px var(--glow); text-align: left; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #16181E; border-bottom: 1px solid var(--line); }
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #3B3E47; }
.browser-url { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 12px; color: var(--ink-3); transform: translateX(-18px); white-space: nowrap; }
.browser-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.browser-screen img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 7s cubic-bezier(.45, 0, .25, 1); }
.browser:hover .browser-screen img, a:hover .browser .browser-screen img { transform: translateY(var(--shift, 0px)); }


/* ------------------------------------------------------------ hero stage: a website, two apps and AI at work */
.stage-mix { --bw: min(860px, 66vw); --pw: clamp(130px, 14vw, 200px); height: calc(var(--bw) * .66); margin-top: clamp(44px, 6.5vh, 76px); }
.s-item { position: absolute; left: 50%; top: 0; transform: translateX(-50%) translateY(calc(var(--s) * var(--lift, 0px))) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); animation: float 8s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.s-browser { width: var(--bw); z-index: 2; --lift: -24px; }
.s-browser .browser { --glow: rgba(139, 124, 255, .7); }
.s-phone-l, .s-phone-r { width: var(--pw); top: calc(var(--bw) * .14); z-index: 3; }
.s-phone-l { left: calc(50% - var(--bw) / 2 - var(--pw) * .35); transform: translateX(-50%) translateY(calc(var(--s) * 30px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-7deg); --fd: -2s; }
.s-phone-r { left: calc(50% + var(--bw) / 2 + var(--pw) * .35); transform: translateX(-50%) translateY(calc(var(--s) * 30px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(7deg); --fd: -4s; }
.s-chat { left: calc(50% - var(--bw) / 2 + 40px); top: calc(var(--bw) * .4); transform: translateX(-30%) translateY(calc(var(--s) * -40px)); z-index: 4; --fd: -1s; }
.s-voice { left: calc(50% + var(--bw) / 2 - 40px); top: calc(var(--bw) * .06); transform: translateX(-70%) translateY(calc(var(--s) * -50px)); z-index: 4; --fd: -3s; }
.mini-chat { width: 290px; padding: 14px; border-radius: 20px; background: rgba(18, 20, 27, .9); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px -30px rgba(182, 120, 255, .6); text-align: left; display: grid; gap: 8px; }
.mc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mc-head .chat-avatar { width: 26px; height: 26px; border-radius: 9px; }
.mc-head i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.mc { font-size: 13px; line-height: 1.45; padding: 8px 11px; border-radius: 14px; }
.mc.user { justify-self: end; background: #fff; color: #0A0B0F; border-bottom-right-radius: 4px; }
.mc.bot { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mc .cite { margin-top: 5px; font-size: 11px; }
.mini-voice { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: rgba(18, 20, 27, .9); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 50px -25px rgba(76, 195, 255, .7); white-space: nowrap; font-size: 13px; }
.mini-voice .v-live { font-size: 12px; padding: 4px 9px; }
.mv-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.mv-wave i { width: 3px; height: 100%; border-radius: 3px; background: linear-gradient(#4CC3FF, #B678FF); animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--b) * -.08s); --h: .6; }
.mv-wave i:nth-child(3n) { --h: 1; } .mv-wave i:nth-child(4n) { --h: .35; }
.mv-done { display: inline-flex; align-items: center; gap: 6px; color: #84EDCD; font-weight: 600; }

/* ------------------------------------------------------------ the three crafts */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.pillar { --mx: 50%; --my: 50%; --tx: 0deg; --ty: 0deg; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 640px; padding: clamp(24px, 2.6vw, 36px); border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(180deg, #10121A, #0A0B0F 85%); transform: perspective(1200px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .7s var(--ease-out), border-color .5s, box-shadow .6s var(--ease-out), scale .35s var(--spring); }
.pillar:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 40px 100px -50px color-mix(in srgb, var(--accent) 60%, transparent); }
.pillar-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.pillar-top .service-icon { margin-bottom: 0; background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pillar:hover .card-arrow { transform: rotate(45deg); background: #fff; color: #000; }
.pillar-name { position: relative; z-index: 2; margin-top: 30px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.pillar-short { position: relative; z-index: 2; margin-top: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.pillar-list { position: relative; z-index: 2; list-style: none; display: grid; gap: 9px; margin-top: 22px; }
.pillar-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.pillar-list .icon { color: var(--accent); flex-shrink: 0; }
.pillar-visual { position: relative; z-index: 1; margin-top: auto; padding-top: 30px; height: 290px; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.pillar-visual > * { transition: transform .9s var(--ease-out); }
.pillar:hover .pillar-visual > * { transform: translateY(-14px); }
.pillar-visual .ai-chat { width: 100%; transform-origin: top center; }
.pillar-visual .chat-body { height: 168px; padding: 14px; }
.pillar-visual .chat-input { display: none; }
.pillar-visual .msg { font-size: 13.5px; }
.pillar-visual .browser { width: 118%; flex-shrink: 0; transform: rotate(-3deg); }
.pillar:hover .pillar-visual .browser { transform: rotate(0) translateY(-14px); }
.pillar-visual .phone { width: 62%; }

/* ------------------------------------------------------------ card visuals for case studies */
.kind-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); color: var(--ink); }
.kind-badge .icon { color: var(--accent); }
.card-visual.v-browser { width: 74%; max-width: 640px; height: 44%; right: -6%; }
.w-wide .card-visual.v-browser { width: 56%; height: 70%; right: -4%; }
.card-browser { position: absolute; left: 0; right: 0; top: 0; transform: translateY(12%) rotate(-3deg); transition: transform 1s var(--ease-out); --glow: var(--accent); }
.app-card:hover .card-browser { transform: translateY(2%) rotate(0); }
.card-visual.v-demo { width: auto; max-width: none; height: auto; left: clamp(24px, 2.6vw, 38px); right: clamp(24px, 2.6vw, 38px); bottom: clamp(-60px, -3vw, -20px); display: flex; justify-content: flex-end; }
.w-wide .card-visual.v-demo { left: 54%; bottom: clamp(24px, 2.6vw, 38px); }
.w-wide .card-visual.v-demo > * { width: 100%; }
.w-half .card-visual.v-demo, .w-narrow .card-visual.v-demo { bottom: -80px; }
.card-visual .chat-body, .pillar-visual .chat-body { justify-content: flex-start; }
.card-visual .chat-input { display: none; }
.card-visual .ai-voice .v-lines { min-height: 0; }
.w-wide .card-copy { max-width: 46%; }
.card-visual.v-demo > * { transform-origin: bottom right; transition: transform .9s var(--ease-out); }
.app-card:hover .card-visual.v-demo > * { transform: translateY(-10px); }
.card-visual .ai-chat .chat-body { height: 190px; }
.card-visual.v-phone .wa-phone { position: absolute; left: 0; right: 0; top: 0; transform: translateY(14%) rotate(-5deg); transition: transform 1s var(--ease-out); --glow: var(--accent); }
.app-card:hover .card-visual.v-phone .wa-phone { transform: translateY(4%) rotate(0); }

/* ------------------------------------------------------------ WhatsApp mock */
.wa-screen { display: flex; flex-direction: column; background: #0B141A; font-size: 11.5px; line-height: 1.4; text-align: left; }
.wa-head { display: flex; align-items: center; gap: 8px; padding: 13% 10px 8px; background: #1F2C33; color: #E9EDEF; }
.wa-head strong { display: block; font-size: 12px; } .wa-head small { display: block; font-size: 10px; color: #8696A0; }
.wa-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #25D366; color: #fff; flex-shrink: 0; }
.wa-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.025) 1px, transparent 1.5px) 0 0 / 14px 14px, #0B141A; }
.wa-msg { position: relative; max-width: 82%; padding: 6px 8px 14px; border-radius: 8px; color: #E9EDEF; }
.wa-msg small { position: absolute; right: 6px; bottom: 2px; font-size: 8.5px; color: rgba(233, 237, 239, .55); }
.wa-msg.in { align-self: flex-start; background: #202C33; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #005C4B; border-top-right-radius: 2px; }
.wa-buttons { display: flex; gap: 5px; margin-top: 7px; }
.wa-buttons span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 6px; background: rgba(255,255,255,.08); color: #53BDEB; font-weight: 600; }
.wa-input { display: flex; align-items: center; justify-content: space-between; margin: 6px; padding: 7px 7px 7px 12px; border-radius: 999px; background: #1F2C33; color: #8696A0; }
.wa-input i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #25D366; color: #fff; }
.js .wa-body[data-wa] .wa-msg { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .45s, transform .55s var(--ease-out); }
.js .wa-body[data-wa] .wa-msg.show { opacity: 1; transform: none; }

/* ------------------------------------------------------------ work index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, scale .35s var(--spring); }
.filter span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--ink-3); }
.filter:hover { color: var(--ink); border-color: var(--line-3); }
.filter.on { background: #fff; color: #000; border-color: #fff; }
.filter.on span { background: rgba(0,0,0,.08); color: #000; }
.work-grid.filtered .app-card { grid-column: span 6; }
.work-grid .app-card.out { display: none; }
.work-grid .app-card.pop { animation: card-pop .7s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes card-pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.more-link { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }

/* ------------------------------------------------------------ case study pages */
.work-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header) + clamp(40px, 7vw, 90px)) 0 clamp(48px, 6vw, 88px); }
.work-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.work-copy .lead { margin-top: 26px; }
.work-title { max-width: 14ch; }
.work-hero.stacked .work-title { max-width: 18ch; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.work-visual { display: flex; justify-content: center; }
.work-visual .ai-chat, .work-visual .ai-voice { width: min(100%, 440px); }
.work-visual .ai-flow { width: min(100%, 420px); }
.work-visual .phone { width: min(70%, 300px); --glow: var(--accent); }
.work-visual .browser { width: 112%; --glow: var(--accent); }
.work-shot { margin-top: clamp(40px, 6vw, 72px); }
.hero-browser { --glow: var(--accent); }
.hero-browser .browser-screen { aspect-ratio: 16 / 9.4; }
.stack-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stack-chips li { padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 28px); }
.shots-grid figure { margin: 0; }
.shots-grid figcaption { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.shots-grid .browser { --glow: var(--accent); }
.what-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.what-grid .lead { margin-top: 22px; }
.what-grid .check-list li { font-size: 16.5px; }
.how { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: how; }
.how-step { position: relative; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.how-step::after { content: ""; position: absolute; top: 46px; right: -18px; width: 14px; height: 2px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.how-step:last-child::after { display: none; }
.how-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 20px; font-size: 13px; font-weight: 700; color: #000; background: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.how-step h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.how-step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.built-section .stack { justify-content: flex-start; margin: clamp(28px, 4vw, 44px) 0 0; max-width: none; }

/* ------------------------------------------------------------ services pages */
.pillar-block { border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 85% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.pillar-block.flip { background: radial-gradient(50% 60% at 15% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.pillar-block-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pillar-block.flip .pb-copy { order: 2; }
.pillar-block .eyebrow::before { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.pillar-block em.serif, .service-page em.serif { color: var(--accent); }
.pb-copy .lead { margin-top: 22px; }
.pb-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 32px 0 34px; }
.pb-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pb-list strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.pb-list .icon { color: var(--accent); margin-top: 2px; }
.pb-visual { display: flex; justify-content: center; }
.pb-visual .ai-chat { width: min(100%, 440px); }
.pb-visual .browser { width: 110%; --glow: var(--accent); }
.pb-visual .phone { width: min(60%, 300px); }
.ways.flush { margin-top: 0; }
.stack.spaced { margin-top: clamp(40px, 5vw, 64px); }
.other-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 760px; margin: 22px auto 0; }

/* ------------------------------------------------------------ stats */
.stats-section { border-block: 1px solid var(--line); background: radial-gradient(60% 120% at 50% 0%, rgba(255, 140, 70, .06), transparent 70%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(36px, 5vw, 64px) clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(52px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.45)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.stat-suffix { font-size: .4em; letter-spacing: -.02em; margin-left: .06em; }
.stat-label { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; max-width: 26ch; }

/* ------------------------------------------------------------ services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.service, .feature, .value, .built-card, .way, .principle, .support-card, .plan {
  --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); transition: border-color .4s, transform .6s var(--ease-out), background-color .4s;
}
.service { padding: clamp(26px, 2.6vw, 38px); min-height: 300px; display: flex; flex-direction: column; }
.service:hover, .feature:hover, .value:hover, .built-card:hover, .support-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; background: linear-gradient(140deg, rgba(255, 181, 71, .16), rgba(182, 120, 255, .14)); border: 1px solid var(--line-2); color: #fff; margin-bottom: 36px; transition: transform .8s var(--spring); }
.service:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-num { position: absolute; top: clamp(26px, 2.6vw, 38px); right: clamp(26px, 2.6vw, 38px); font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.service h3, .feature h3, .value h3, .built-card h3, .way h3, .principle-copy h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 12px; }
.service p, .value p, .built-card p, .way p, .principle-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ------------------------------------------------------------ craft demos */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.principle { display: flex; flex-direction: column; }
.principle-copy { padding: 28px clamp(24px, 2.6vw, 36px) clamp(26px, 2.6vw, 36px); }
.demo { position: relative; height: 290px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(90% 90% at 50% 100%, rgba(255,255,255,.05), transparent 70%), #0A0B0E; display: grid; place-items: center; }

.demo-digits { background: radial-gradient(70% 90% at 50% 110%, rgba(61, 219, 176, .22), transparent 70%), #0A0B0E; }
.receipt { position: relative; z-index: 2; width: 250px; padding: 22px 22px 26px; border-radius: 18px 18px 6px 6px; background: #FBF7F2; color: #1F1A17; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); text-align: center; animation: receipt 5s ease-in-out infinite; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 6px, #FBF7F2 6.5px) 0 0 / 12px 10px repeat-x; transform: rotate(180deg); }
@keyframes receipt { 50% { transform: translateY(-6px) rotate(-1deg); } }
.receipt-label { font-size: 13px; color: #655C55; font-weight: 500; }
.receipt-amount { display: flex; justify-content: center; align-items: baseline; gap: 2px; font-size: 52px; font-weight: 650; letter-spacing: -.05em; line-height: 1.15; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.receipt-amount .cur { font-size: 30px; color: #0B7A5E; margin-right: 2px; }
.digits { display: inline-flex; }
.dcol { display: inline-block; height: 1.15em; overflow: hidden; }
.dstrip { display: flex; flex-direction: column; transition: transform 1s var(--ease-out); transition-delay: calc(var(--k, 0) * 60ms); }
.dstrip span, .dsep { height: 1.15em; line-height: 1.15; display: block; }
.receipt-split { font-size: 13px; color: #0B7A5E; font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt-people { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.receipt-people span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #E7F5EF; color: #0B7A5E; border: 2px solid #fff; }
.receipt-people span:nth-child(2) { background: #FDEBE6; color: #B8432F; }
.receipt-people span:nth-child(3) { background: #ECE9FB; color: #5B4BC4; }
.receipt-people span:nth-child(4) { background: #FFF3DC; color: #8A5A00; }
.coin { position: absolute; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE6A6, #F2B84B 55%, #B8822A); box-shadow: 0 4px 10px rgba(0,0,0,.4); left: 50%; top: 70%; opacity: 0; animation: coin 3s var(--ease-out) infinite; animation-delay: calc(var(--c) * .25s + .6s); }
@keyframes coin { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 60% { opacity: 1; transform: translate(var(--tx), 50px) scale(1); } 100% { opacity: 0; transform: translate(var(--tx), 80px) scale(.8); } }

.demo-privacy { background: radial-gradient(70% 90% at 50% 100%, rgba(60, 196, 181, .2), transparent 70%), #0A0B0E; }
.device { position: relative; width: 150px; height: 230px; border-radius: 30px; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #101620, #0C1019); box-shadow: 0 0 0 6px rgba(255,255,255,.03), 0 30px 60px -20px rgba(0,0,0,.8); }
.device .ring { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid rgba(60, 196, 181, .7); animation: radar 3s var(--ease-out) infinite; animation-delay: calc(var(--r, 0) * 1s); opacity: 0; }
@keyframes radar { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.6); opacity: 0; } }
.device .pin { position: relative; z-index: 2; color: #3CC4B5; filter: drop-shadow(0 6px 14px rgba(60, 196, 181, .6)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.device-label { position: absolute; bottom: 18px; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.wall { position: absolute; right: clamp(14px, 4vw, 40px); top: 28px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(60, 196, 181, .12); border: 1px solid rgba(60, 196, 181, .35); color: #7FE3D8; font-size: 13px; font-weight: 600; }

.demo-lang { background: radial-gradient(70% 90% at 50% 100%, rgba(79, 209, 197, .18), transparent 70%), #0A0B0E; }
.lang-card { width: min(84%, 380px); padding: 26px 30px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); transition: text-align .3s; }
.lang-card[dir="rtl"] { text-align: right; }
.lang-word { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.3; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), filter .45s; }
.lang-card[dir="rtl"] .lang-word { font-family: "Akiliva Arabic", "Geeza Pro", "Noto Naskh Arabic", serif; letter-spacing: 0; font-weight: 500; }
.lang-name { font-size: 14px; color: #6FE0D4; font-weight: 600; margin-top: 4px; transition: opacity .45s; }
.lang-card.swap .lang-word, .lang-card.swap .lang-name { opacity: 0; filter: blur(6px); transform: translateY(10px); }
.lang-dots { position: absolute; bottom: 22px; display: flex; gap: 6px; }
.lang-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background-color .3s, width .4s var(--ease-out); }
.lang-dots i.on { width: 20px; border-radius: 6px; background: #4FD1C5; }

.demo-tests { display: block; padding: 22px; background: radial-gradient(70% 90% at 50% 110%, rgba(110, 231, 160, .14), transparent 70%), #0A0B0E; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(255,255,255,.04); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; } .term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.term-body { margin: 0; height: 206px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 0 0 14px 14px; background: rgba(4, 5, 7, .8); font: 13.5px/1.75 var(--mono); color: #C9CED8; white-space: pre-wrap; overflow: hidden; }
.term-body .ok { color: #6EE7A0; } .term-body .cmd { color: #fff; } .term-body .dim { color: var(--ink-3); }
.term-body .pass { color: #0A0B0E; background: #6EE7A0; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: #C9CED8; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ------------------------------------------------------------ process */
.process { position: relative; }
.process ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.process-line { position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.process-line span { position: absolute; inset: 0; background: var(--spark); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-3); margin-bottom: 28px; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s; }
.step.lit .step-dot { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 30px rgba(255, 200, 140, .4); }
.step h3 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(56px, 7vw, 96px); }
.way { padding: 30px; }
.way-check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(60, 224, 176, .14); color: var(--mint); margin-bottom: 22px; }

/* ------------------------------------------------------------ CTA */
.cta-section { padding-block: clamp(40px, 6vw, 96px) clamp(96px, 12vw, 160px); }
.cta-card { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; padding: clamp(64px, 9vw, 140px) clamp(20px, 5vw, 80px); border-radius: clamp(28px, 3.5vw, 48px); border: 1px solid var(--line-2); background: #0A0B0F; }
.cta-glow { position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from var(--angle), #FF6A3D, #B678FF, #4CC3FF, #3CE0B0, #FFB547, #FF6A3D); filter: blur(90px); opacity: .32; animation: spin-angle 14s linear infinite; }
.cta-card::before { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: radial-gradient(80% 70% at 50% 0%, rgba(10, 11, 15, .3), rgba(10, 11, 15, .85) 70%); }
@keyframes spin-angle { to { --angle: 360deg; } }
.cta-card h2 em.serif { background: linear-gradient(100deg, #FFD08A, #FF8A5C 45%, #C99BFF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.cta-card .lead { margin: 26px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ------------------------------------------------------------ footer */
.site-footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.footer-brand p { color: var(--ink-2); margin: 22px 0 24px; max-width: 34ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-weight: 500; transition: background-color .3s, border-color .3s, scale .35s var(--spring); }
.footer-mail:hover { background: rgba(255,255,255,.07); border-color: var(--line-3); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer-cols ul { list-style: none; display: grid; gap: 11px; }
.footer-cols a { color: var(--ink-2); font-size: 15.5px; transition: color .25s; }
.footer-cols a:hover { color: var(--ink); }
.mega { --mx: 50%; --my: 150%; font-size: clamp(88px, 23vw, 350px); font-weight: 700; letter-spacing: -.075em; line-height: .78; text-align: center; margin: clamp(56px, 8vw, 110px) 0 0; padding-bottom: .06em; user-select: none;
  background: radial-gradient(26vw circle at var(--mx) var(--my), rgba(255, 150, 100, .5), rgba(182, 120, 255, .22) 45%, transparent 72%), linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.02) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* ------------------------------------------------------------ inner page heroes */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--header) + clamp(64px, 11vw, 150px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.page-hero-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(to bottom, transparent, var(--bg)); }
.page-hero .display-2 { max-width: 15ch; }
.page-hero .lead { margin-top: 28px; }

/* ------------------------------------------------------------ app page */
.app-hero { position: relative; isolation: isolate; min-height: min(100svh, 1000px); padding: calc(var(--header) + clamp(40px, 7vw, 90px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; display: flex; align-items: center; }
.app-hero-bg .blob { width: 55vmax; height: 55vmax; opacity: .5; }
.app-hero-bg .b1 { left: auto; right: -14%; top: -10%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 62%); }
.app-hero-bg .b2 { right: auto; left: -24%; top: 30%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 42%, transparent), transparent 62%); }
.app-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 32px; transition: color .25s, gap .3s var(--ease-out); }
.crumb:hover { color: var(--ink); gap: 12px; }
[dir="rtl"] .crumb .icon, [dir="rtl"] .doc-link .arrow { transform: scaleX(-1); }
[dir="rtl"] .doc-app-name, [dir="rtl"] .doc-app .muted { direction: ltr; text-align: right; }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.app-icon.big { border-radius: 23%; animation: icon-float 6s ease-in-out infinite; }
@keyframes icon-float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.app-id-name { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.app-id-cat { color: var(--ink-2); font-size: 15px; }
.app-title { max-width: 13ch; }
.app-hero-copy .lead { margin-top: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chips .icon { color: var(--accent); }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; height: 58px; padding: 0 22px; border-radius: 16px; background: #fff; color: #000; font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.05; transition: transform .4s var(--ease-out); }
.store-btn small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.store-btn:hover { transform: translateY(-2px); }
.soon-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: 14.5px; font-weight: 600; }
.app-hero-copy .fine { margin-top: 18px; }
.app-hero-visual { --pw: clamp(220px, 23vw, 320px); position: relative; height: calc(var(--pw) * 2.25); display: grid; place-items: center; perspective: 1400px; --tx: 0deg; --ty: 0deg; }
.app-hero-visual::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%); filter: blur(30px); animation: pulse-glow 6s ease-in-out infinite; }
@keyframes pulse-glow { 50% { transform: scale(1.12); opacity: .7; } }
.app-hero-visual .hero-phone { position: absolute; width: var(--pw); --glow: var(--accent); transition: transform 1s var(--ease-out); }
.app-hero-visual .hero-phone.front { transform: translateX(14%) rotateX(var(--tx)) rotateY(var(--ty)); animation: float 7s ease-in-out infinite, phone-in 1.4s var(--ease-out) .3s both; z-index: 2; }
.app-hero-visual .hero-phone.back { transform: translateX(-34%) translateY(6%) rotate(-8deg) scale(.88); filter: brightness(.75); animation: float 8s ease-in-out -2s infinite, phone-in-back 1.6s var(--ease-out) .5s both; z-index: 1; }
@keyframes phone-in { from { opacity: 0; translate: 0 120px; } }
@keyframes phone-in-back { from { opacity: 0; translate: 80px 60px; } }
.app-hero-visual .murmur-visual { transform: scale(1.15); }

.gallery-section { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 64px); }
.gallery { display: flex; justify-content: center; gap: clamp(16px, 3vw, 44px); padding: 0 var(--gutter) 40px; }
.shot { margin: 0; width: clamp(180px, 20vw, 272px); flex-shrink: 0; }
.shot:nth-child(2) { margin-top: 90px; } .shot:nth-child(3) { margin-top: 30px; } .shot:nth-child(4) { margin-top: 120px; }
.shot .phone { --glow: var(--accent); }
.shot > div { will-change: transform; }
.shot figcaption { text-align: center; margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.feature { padding: clamp(26px, 2.6vw, 36px); }
.feature-num { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 28px; letter-spacing: .1em; }
.feature ul { list-style: none; display: grid; gap: 14px; margin-top: 18px; }
.feature li, .plan li, .check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.feature li .icon, .plan li .icon, .check-list li .icon { color: var(--accent); margin-top: 2px; }
.app-note { margin-top: 32px; max-width: 70ch; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); max-width: 1000px; margin-inline: auto; }
.plan { padding: clamp(28px, 3vw, 44px); }
.plan.plus { background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border-color: transparent; }
.plan-border { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--angle), var(--accent), var(--accent-2), rgba(255,255,255,.08) 35%, rgba(255,255,255,.08) 65%, var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 7s linear infinite; }
.plan-name { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 26px; }
.plan ul { list-style: none; display: grid; gap: 14px; }
.plan li { color: var(--ink); }
.plan-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

.privacy-band { background: radial-gradient(60% 80% at 20% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.privacy-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); margin-bottom: 30px; }
.privacy-grid .text-link { margin-top: 32px; }
.check-list { list-style: none; display: grid; gap: 20px; }
.check-list li { font-size: 18px; color: var(--ink); }

.built-section { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.built { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.built-card { padding: clamp(28px, 3vw, 40px); }
.built-num { display: block; font-size: clamp(44px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.06em; line-height: 1; margin-bottom: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff), transparent 115%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.built-cta { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(14px, 1.6vw, 22px); padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-radius: 28px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), rgba(255,255,255,.02); transition: scale .35s var(--spring); }
.built-cta strong { display: block; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; }
.built-cta small { display: block; color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.built-cta:hover .arrow { transform: translateX(4px); }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.facts { margin: 26px 0 0; display: grid; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: 14.5px; }
.facts dd { margin: 0; font-size: 15.5px; }
.doc-links { display: grid; gap: 10px; margin-top: 4px; }
.doc-link { display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-weight: 500; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out), scale .35s var(--spring); }
.doc-link .icon:first-child { color: var(--accent); }
.doc-link:hover { background: rgba(255,255,255,.06); border-color: var(--line-2); transform: translateX(4px); }
.doc-link:hover .arrow { transform: translateX(3px); }
.doc-link span { overflow-wrap: anywhere; }
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 22px; color: var(--ink-3); }
.lang-switch .icon { margin-right: 6px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 14px; color: var(--ink-2); border: 1px solid transparent; transition: background-color .25s, color .25s, scale .35s var(--spring); }
.lang-switch a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.lang-switch a[aria-current] { color: var(--ink); border-color: var(--line-2); background: rgba(255,255,255,.06); }
.more-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 26px; }
.more-app { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .3s, transform .5s var(--ease-out), background-color .3s, scale .35s var(--spring); }
.more-app:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-3px); background: rgba(255,255,255,.05); }
.more-app .app-icon { border-radius: 23%; flex-shrink: 0; }
.more-app strong { display: block; letter-spacing: -.02em; }
.more-app small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.3; }

/* ------------------------------------------------------------ studio */
.studio-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.orbit { --size: min(480px, 40vw); position: relative; width: var(--size); aspect-ratio: 1; justify-self: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-3); inset: 0; }
.orbit-ring.r2 { inset: 22%; border-style: solid; border-color: var(--line); }
.orbit-core { position: absolute; inset: 36%; border-radius: 30%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #20232B, #0B0C10); border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(255, 140, 80, .25); color: #fff; }
.orbit-spin { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; transform: rotate(var(--a)) translateX(calc(var(--size) / 2)) rotate(calc(-1 * var(--a))); }
.orbit-item > * { animation: spin 48s linear infinite reverse; }
.orbit-item .app-icon { width: 64px; height: 64px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stack { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin-inline: auto; }
.stack li { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 16px; font-weight: 500; color: var(--ink-2); transition: color .3s, border-color .3s, background-color .3s, transform .5s var(--spring); }
.stack li:hover { color: var(--ink); border-color: var(--line-3); background: rgba(255,255,255,.07); transform: translateY(-3px); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .3s, background-color .3s; }
.faq-item[open] { border-color: var(--line-2); background: rgba(255,255,255,.045); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: #fff; color: #000; }
.faq-a { padding: 0 24px 24px; color: var(--ink-2); line-height: 1.65; }
.faq-item[open] .faq-a { animation: faq-in .6s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------------------------------------------------ about */
.name-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.name-card { --mx: 50%; --my: 50%; position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px); border-radius: 36px; border: 1px solid var(--line-2); background: radial-gradient(90% 80% at 0% 0%, rgba(255, 140, 70, .16), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(182, 120, 255, .16), transparent 60%), var(--card); text-align: center; }
.name-word { font-family: var(--serif); font-style: italic; font-size: clamp(80px, 11vw, 150px); line-height: .9; background: var(--spark); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; padding: 0 .08em .08em; }
.name-ipa { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.name-mean { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.name-root { font-family: "Akiliva Arabic", "Geeza Pro", serif; font-size: 64px; line-height: 1.4; margin-top: 30px; color: var(--ink); }
.name-grid .lead { margin-top: 24px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.value { padding: clamp(28px, 3vw, 44px); }
.value-num { display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--amber); margin-bottom: 24px; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-copy .display-2 { max-width: 12ch; }
.contact-copy .lead { margin-top: 26px; }
.next-steps { list-style: none; display: grid; gap: 22px; margin-top: 44px; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.next-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-3); font-weight: 650; font-size: 15px; }
.next-steps strong { display: block; font-size: 17.5px; letter-spacing: -.015em; }
.next-steps p { color: var(--ink-2); font-size: 15.5px; margin-top: 2px; }
.mail-card { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; padding: 18px 24px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 18px; font-weight: 600; letter-spacing: -.015em; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out), scale .35s var(--spring); }
.mail-card small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.mail-card:hover { background: rgba(255,255,255,.07); border-color: var(--line-3); transform: translateY(-2px); }
.mail-card .icon { color: var(--amber); }
.mail-card.inline { margin-top: 36px; }
.form-card { position: relative; display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: 32px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 22, 28, .86), rgba(12, 13, 17, .9)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 50px 120px -60px rgba(0,0,0,.9); }
.form-card.compact { margin-top: 26px; gap: 16px; padding: 26px; border-radius: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 9px; }
.field legend { margin-bottom: 12px; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--ink); font-size: 16px; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B2B7C2' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #12141A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255, 181, 71, .7); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(255, 181, 71, .14); }
.field input::placeholder, .field textarea::placeholder { color: #6B7180; }
.field.invalid input, .field.invalid textarea { border-color: #FF6B6E; box-shadow: 0 0 0 4px rgba(255, 107, 110, .14); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--spring); }
.choice:hover span { border-color: var(--line-3); color: var(--ink); }
.choice input:checked + span { background: #fff; color: #000; border-color: #fff; transform: scale(1.03); }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.submit { width: 100%; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; text-align: center; }
.form-note.done { color: #6EE7A0; }

/* ------------------------------------------------------------ support, legal */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.support-card { padding: 24px; }
.support-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.support-head strong { display: block; font-size: 20px; letter-spacing: -.025em; }
.support-head small { display: block; color: var(--ink-3); font-size: 14px; }
.support-links { display: grid; gap: 4px; }
.support-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; color: var(--ink-2); font-size: 15.5px; transition: background-color .25s, color .25s, scale .35s var(--spring); }
.support-links a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.support-links .icon { color: var(--accent); }
.legal-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.legal-jump a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); font-size: 14.5px; transition: color .25s, border-color .25s, background-color .25s, scale .35s var(--spring); }
.legal-jump a:hover { color: var(--ink); border-color: var(--line-3); background: rgba(255,255,255,.06); }
.legal-jump .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.legal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.legal-card { position: relative; padding: 22px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), rgba(255,255,255,.02); scroll-margin-top: calc(var(--header) + 24px); }
.legal-card:target { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.legal-card.site { grid-column: 1 / -1; }
.legal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.legal-app { display: flex; align-items: center; gap: 14px; min-width: 0; }
.legal-app strong { display: block; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.legal-app small { display: block; color: var(--ink-3); font-size: 13.5px; }
.legal-app:hover strong { color: var(--accent); }
.legal-docs { list-style: none; display: grid; gap: 8px; }
.legal-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 10px 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .25s, background-color .25s; }
.legal-doc:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.legal-doc-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.legal-doc-link .icon { flex: none; color: var(--accent); }
.legal-doc-text { display: grid; min-width: 0; }
.legal-doc-name { font-size: 15.5px; font-weight: 550; transition: color .25s; }
.legal-doc-link:hover .legal-doc-name { color: var(--accent); }
.legal-url { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-left: 32px; font-size: 13px; color: var(--ink-3); }
.legal-langs a { color: var(--ink-2); }
.legal-langs a:hover { color: var(--ink); }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink-2); font: 500 13px/1 var(--font); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s, transform .2s var(--spring), scale .35s var(--spring); }
.copy-btn:hover { color: var(--ink); border-color: var(--line-3); background: rgba(255,255,255,.08); }
.copy-btn.copied { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); background: color-mix(in srgb, var(--mint) 10%, transparent); }
html:not(.js) .copy-btn { display: none; }

/* legal documents */
.doc-hero { position: relative; isolation: isolate; padding: calc(var(--header) + clamp(40px, 6vw, 80px)) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); overflow: hidden; }
.doc-hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(40% 100% at 0% 100%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%); }
.doc-hero .crumb { margin-bottom: 26px; }
.doc-app { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.doc-app-name { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.doc-title { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; max-width: 18ch; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.doc-tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); transition: color .25s, background-color .25s, border-color .25s, scale .35s var(--spring); }
.doc-tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.doc-tabs a[aria-current="page"] { background: #fff; color: #000; border-color: #fff; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px) clamp(80px, 10vw, 140px); }
.doc-layout.no-toc { grid-template-columns: minmax(0, 780px); justify-content: center; }
.toc { position: sticky; top: calc(var(--header) + 32px); align-self: start; max-height: calc(100vh - var(--header) - 64px); overflow-y: auto; }
.toc p { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc[dir="rtl"] ol { border-left: 0; border-right: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); font-size: 14.5px; line-height: 1.4; transition: color .25s, border-color .25s; }
.toc[dir="rtl"] a { padding: 7px 16px 7px 0; margin: 0 -1px 0 0; border-left: 0; border-right: 1px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-color: var(--accent); }
.prose { max-width: 74ch; color: var(--prose); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; margin-top: 2.4em; padding-top: .2em; }
.prose h2:first-child, .prose .doc-note + h2 { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 19.5px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin-top: 1.9em; }
.prose h4 { color: var(--ink); font-size: 17px; margin-top: 1.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.35em; }
.prose li { margin: .45em 0; padding-inline-start: .2em; }
.prose li::marker { color: var(--accent); }
.prose li > p { margin: 0; }
.prose li > ul, .prose li > ol, .prose li > p + p { margin-top: .5em; }
.prose code { font-family: var(--mono); font-size: .88em; padding: .12em .4em; border-radius: 6px; background: rgba(255,255,255,.07); }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th { text-align: start; color: var(--ink); font-weight: 600; background: rgba(255,255,255,.04); }
.prose th, .prose td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.doc-note { padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 15px; color: var(--ink); }
.doc-contact { display: flex; gap: 16px; align-items: flex-start; margin-top: 3em !important; padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); line-height: 1.5; }
.doc-contact .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.doc-contact p + p { margin-top: 4px; }
.prose:lang(ur), .doc-title:lang(ur), .toc:lang(ur), .tally-lang [lang="ur"] { font-family: "Akiliva Urdu", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; }
.prose:lang(ur) { line-height: 2.25; font-size: 18px; }
.prose:lang(ur) h2, .prose:lang(ur) h3 { line-height: 1.9; letter-spacing: 0; }
.prose:lang(ar), .doc-title:lang(ar), .toc:lang(ar), .tally-lang [lang="ar"] { font-family: "Akiliva Arabic", "Noto Naskh Arabic", "Geeza Pro", serif; }
.prose:lang(ar) { line-height: 1.95; font-size: 18px; }
.prose:lang(ar) h2, .prose:lang(ar) h3, .doc-title:lang(ar), .doc-title:lang(ur) { letter-spacing: 0; line-height: 1.6; }
.prose:lang(hi), .doc-title:lang(hi), .toc:lang(hi), .tally-lang [lang="hi"] { font-family: "Inter", "Akiliva Devanagari", "Noto Sans Devanagari", sans-serif; }
.prose:lang(hi) { line-height: 1.9; }
.doc-title:lang(hi) { letter-spacing: -.01em; line-height: 1.3; }
[dir="rtl"] .display-3 { letter-spacing: 0; line-height: 1.6; }
.tally-lang .narrow-wrap { max-width: 860px; }
.tally-lang .display-3 { margin-top: 10px; }
.tally-lang .lead { margin-top: 20px; }
.tally-lang .doc-links { margin-top: 34px; max-width: 520px; }
.tally-lang[dir="rtl"] .doc-link .arrow, [dir="rtl"] .doc-link .arrow { transform: scaleX(-1); }

/* ------------------------------------------------------------ 404 */
.nf { min-height: 100svh; display: flex; align-items: center; }
.nf-code { display: flex; justify-content: center; align-items: center; font-size: clamp(120px, 20vw, 240px); font-weight: 700; letter-spacing: -.07em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255,255,255,.3)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.nf-o { display: inline-grid; place-items: center; width: .62em; height: .62em; margin: 0 .04em; color: #fff; }
.nf-o .mark { width: 100%; height: 100%; animation: nf-spin 9s var(--ease) infinite; }
@keyframes nf-spin { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(12deg) translateY(-12px); } }
.center-lead { margin: 22px auto 0; }

/* ------------------------------------------------------------ view transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
.site-header { view-transition-name: header; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-button { display: block; }
  .w-wide, .w-narrow, .w-half { grid-column: span 6; }
  .w-wide .card-copy { max-width: 100%; }
  .w-wide .card-visual { width: 50%; height: 56%; }
  .services, .features, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process ol { grid-template-columns: 1fr; gap: 34px; padding-left: 74px; }
  .process-line { left: 24px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .process-line span { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { position: relative; }
  .step-dot { position: absolute; left: -74px; top: -6px; margin: 0; }
  .more-apps { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .studio-hero-grid { grid-template-columns: 1fr; }
  .orbit { --size: min(400px, 78vw); margin-top: 40px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --header: 64px; }
  .nav-cta { display: none; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .section-head.split .lead { justify-self: start; }
  .apps-grid { grid-template-columns: 1fr; }
  .w-wide, .w-narrow, .w-half { grid-column: auto; }
  .app-card, .w-wide { min-height: 620px; justify-content: flex-start; }
  .w-wide .card-copy { max-width: 100%; }
  .card-visual, .w-wide .card-visual, .w-narrow .card-visual, .w-half .card-visual { width: min(54%, 300px); height: 45%; right: 8%; }
  .principles, .built, .values, .plans, .ways, .privacy-grid, .details-grid, .faq-grid, .name-grid, .contact-grid { grid-template-columns: 1fr; }
  .app-hero { min-height: 0; }
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-hero-visual { --pw: min(62vw, 300px); margin-top: 10px; }
  .gallery { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; width: min(64vw, 260px); }
  .shot:nth-child(n) { margin-top: 0; }
  .shot > div { transform: none !important; }
  .legal-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .legal-url { white-space: normal; overflow-wrap: anywhere; }
  .legal-card { padding: 16px; }
  body { font-size: 16.5px; }
  .hero { padding-top: calc(var(--header) + 40px); }
  .hero-line { white-space: normal; }
  .stage { --pw: 46vw; height: calc(var(--pw) * 1.45); }
  .p-far-l, .p-far-r { display: none; }
  .p-l { --x: calc(var(--pw) * -.72); --sc: .86; }
  .p-r { --x: calc(var(--pw) * .72); --sc: .86; }
  .hero-ctas .btn { width: 100%; }
  .services, .features, .support-grid, .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .more-apps { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .built-cta { flex-direction: column; align-items: flex-start; }
  .app-card, .w-wide { min-height: 600px; border-radius: 28px; }
  .card-visual, .w-wide .card-visual, .w-narrow .card-visual, .w-half .card-visual { width: 60%; height: 42%; }
  .demo { height: 260px; }
  .term-body { font-size: 12px; }
  .facts div { grid-template-columns: 100px 1fr; }
  .mail-card { font-size: 16px; }
  .cta-actions .btn { width: 100%; }
  .cta-actions .btn-ghost { font-size: 15px; }
}


@media (max-width: 1100px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar-visual { height: 280px; }
  .pillar-visual .ai-chat, .pillar-visual .browser { width: min(100%, 520px); }
  .work-hero-grid, .pillar-block-grid, .what-grid { grid-template-columns: 1fr; }
  .pillar-block.flip .pb-copy { order: 0; }
  .work-visual .browser, .pb-visual .browser { width: 100%; }
  .stage-mix { --bw: 78vw; }
  .s-voice { display: none; }
}
@media (max-width: 860px) {
  .card-visual.v-browser, .w-wide .card-visual.v-browser { width: 86%; height: 46%; right: -10%; }
  .w-wide .card-visual.v-demo { left: clamp(24px, 2.6vw, 38px); bottom: -40px; }
  .shots-grid, .pb-list, .other-services { grid-template-columns: 1fr; }
  .how-step::after { display: none; }
  .work-grid.filtered .app-card { grid-column: auto; }
}
@media (max-width: 640px) {
  .stage-mix { --bw: 92vw; --pw: 30vw; height: calc(var(--bw) * .82); }
  .s-phone-l { left: 12%; top: calc(var(--bw) * .3); }
  .s-phone-r { left: 88%; top: calc(var(--bw) * .3); }
  .s-chat { left: 50%; top: calc(var(--bw) * .52); transform: translateX(-50%) scale(.86); }
  .card-visual.v-demo { left: 18px; right: 18px; }
  .card-visual.v-demo .ai-chat, .card-visual.v-demo .ai-voice, .card-visual.v-demo .ai-flow { width: 100%; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; scroll-behavior: auto !important; }
  .w, .rotator:not(.ready) .rot-word:first-of-type { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .mq-track { animation: none !important; }
  .stage { animation: none; }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------ print */
@media print {
  body { background: #fff; color: #000; }
  body::after, .site-header, .site-footer, .menu, .toc, .doc-tabs, .lang-switch, .doc-hero-bg, .cta-section { display: none !important; }
  .prose, .prose strong, .prose h2, .prose h3, .doc-title { color: #000; }
  .doc-hero { padding: 0 0 12px; }
}
