/* BeautifAI — Home. Tokens mirror the Figma DS (BeautifAI theme, dark). */
:root {
  --bg: #000000;
  --card: #111113;
  --muted-bg: #1C1C1F;
  --fg: #F5F5F7;
  --muted: #A1A1AA;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #0A0A0B;
  --coral: #FF7A59;
  --pink: #F0508C;
  --violet: #8B5CF6;
  --indigo: #6366F1;
  --grad: linear-gradient(90deg, var(--coral), var(--pink) 50%, var(--violet));
  --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-3xl: 40px;
  --gutter: 120px;
  --section-y: 160px;
  --max: 1200px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 1100px) { :root { --gutter: 48px; --section-y: 128px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --section-y: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; align-items: center; gap: 64px; }
@media (max-width: 767px) { .stack { gap: 40px; } }
.only-mobile { display: none !important; }
@media (max-width: 767px) { .only-mobile { display: flex !important; } .only-desktop { display: none !important; } }

/* Type */
.display { font-size: clamp(48px, 6.7vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--pink); }
@media (max-width: 767px) { .lead { font-size: 16px; } }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.head__cta { margin-top: 8px; }
.head--ink .eyebrow, .head--ink .h2 { color: var(--ink); }
.head--ink .lead { color: rgba(10, 10, 11, .72); }

/* Buttons (DS: Solid / Outline, lg) */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--font); border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 30px -10px rgba(240, 80, 140, .7); }
.btn--primary:hover { background: #f2659a; }
.btn--outline { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--fg); }
.btn--outline:hover { background: rgba(255,255,255,.09); }
.btn--dark { background: var(--muted-bg); color: var(--fg); }
.btn--dark:hover { background: #26262a; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 767px) { .btn-row { flex-direction: column; width: 100%; } .btn-row .btn { width: 100%; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter); }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav > a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--fg); }
.header__mobile { display: none; align-items: center; gap: 12px; }
.menu-btn { width: 40px; height: 40px; border-radius: 20px; border: 0; background: rgba(255,255,255,.08); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.mobile-menu { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; }
.mobile-menu[hidden], [hidden] { display: none !important; }
.mobile-menu a { padding: 14px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .nav { display: none; } .header__mobile { display: flex; } .header__logo img { height: 32px; } .header__inner { padding-top: 14px; padding-bottom: 14px; } }

/* Sections */
.section { padding: var(--section-y) 0; position: relative; }
.section--tight-top { padding-top: calc(var(--section-y) / 2); }
.section--bleed { padding-bottom: 0; overflow: hidden; }
.band { background: var(--grad); }

/* Reveal on enter */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Scale box: fixed-size artboards scaled to the container width */
.scale-box { position: relative; width: 100%; max-width: 1200px; }
.scale-box__inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* 01 Hero */
.hero { position: relative; height: 180vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.hero__copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding-top: clamp(64px, 12vh, 140px); }
.hero__word { position: absolute; z-index: 1; left: 50%; bottom: clamp(-40px, -2vh, 0px); font-size: clamp(88px, 26vw, 372px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; white-space: nowrap; transform: translateX(-50%) scale(var(--ws, .92)); transform-origin: 50% 100%; opacity: var(--wo, .55); padding: 0 .04em; }
.hero__glow { position: absolute; z-index: 0; left: 50%; bottom: -12vh; width: 90vw; height: 55vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(240,80,140,.55), rgba(139,92,246,.22) 55%, transparent); filter: blur(60px); opacity: var(--go, .4); }
.hero__device { position: absolute; z-index: 2; left: 50%; bottom: 0; width: clamp(170px, 23.6vw, 340px); aspect-ratio: 340 / 560; transform: translate(-50%, calc(var(--dy, 1) * 100% + 0%)) translateY(28%); border-radius: clamp(32px, 4vw, 56px); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1.5px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: 0 40px 120px rgba(240,80,140,.35); display: flex; flex-direction: column; align-items: center; padding-top: 6%; gap: 4%; }
@media (max-width: 767px) { .hero__word { bottom: 22vh; } .hero__device { width: 46vw; } }
.hero__island { width: 28%; height: 5%; border-radius: 99px; background: rgba(0,0,0,.6); }
.hero__mark { width: 36%; margin: 14% 0 10%; }
.hero__line { height: 2.5%; border-radius: 6px; background: rgba(255,255,255,.22); align-self: flex-start; margin-left: 17.6%; }
.hero__line--dim { background: rgba(255,255,255,.12); }
.hero__block { width: 65%; height: 17%; border-radius: 20px; background: rgba(255,255,255,.08); margin-top: 4%; }

/* Gradient tile with logo mark */
.tile { display: grid; place-items: center; background: var(--grad); aspect-ratio: 1; }
.tile--mark img { width: 60%; height: auto; }
.hero__mark { border-radius: 28%; }

/* 02 Orbit */
.orbit .ring { fill: none; stroke: #fff; stroke-width: 1; }
.orbit__ribbon { fill: none; stroke-width: 3; stroke-dasharray: 2100; stroke-dashoffset: 2100; transition: stroke-dashoffset 1.6s var(--ease) .6s; }
.orbit.is-in .orbit__ribbon { stroke-dashoffset: 0; }
.orbit__rings { position: absolute; inset: 0; }
.orbit__halo { position: absolute; left: 390px; top: 110px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,80,140,.5), rgba(139,92,246,.2) 60%, transparent); filter: blur(40px); }
.orbit__core { position: absolute; left: 500px; top: 220px; width: 200px; border-radius: 60px; box-shadow: inset 0 6px 16px rgba(255,255,255,.45), 0 30px 80px rgba(240,80,140,.5); }
.orbit__chips .chip { position: absolute; left: var(--x); top: var(--y); transform: translate(calc(600px - var(--x) - 50%), calc(320px - var(--y) - 50%)) scale(.6); opacity: 0; transition: transform 1s var(--ease), opacity .6s var(--ease); }
.orbit.is-in .chip { transform: none; opacity: 1; }
.orbit.is-in .chip:nth-child(2) { transition-delay: .08s; } .orbit.is-in .chip:nth-child(3) { transition-delay: .16s; }
.orbit.is-in .chip:nth-child(4) { transition-delay: .24s; } .orbit.is-in .chip:nth-child(5) { transition-delay: .32s; }
.orbit.is-in .chip:nth-child(6) { transition-delay: .40s; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 999px; background: rgba(18,18,19,.85); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 16px; font-weight: 500; white-space: nowrap; }
.chip__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.chip__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip--sm { padding: 8px 14px; font-size: 14px; background: rgba(255,255,255,.06); border-color: var(--border); }
.chip--float { position: absolute; padding: 12px 20px; }
.orbit-m { flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.orbit-m__core { position: relative; width: 220px; height: 200px; display: grid; place-items: center; }
.orbit-m__core .orbit__halo { left: 0; top: -10px; width: 220px; height: 220px; }
.orbit-m__core .tile { position: relative; width: 120px; border-radius: 36px; box-shadow: 0 20px 60px rgba(240,80,140,.5); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cta-group { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; width: 100%; }

/* 03 Assemble */
.section--pin { height: 220vh; padding: 0; }
.pin__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 96px 0 48px; }
.stage-card { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; position: relative; }
.stage-card__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); opacity: var(--cap, 0); }
.stage { width: 1200px; height: 520px; }
.stage__glow { position: absolute; left: 200px; top: 120px; width: 800px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,92,246,.35), transparent); filter: blur(60px); }
.piece { position: absolute; will-change: transform; }
.p1 { left: 280px; top: 60px; width: 640px; height: 400px; border-radius: 32px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.p2 { left: 304px; top: 108px; width: 140px; height: 328px; border-radius: 20px; background: rgba(255,255,255,.07); }
.p3 { left: 460px; top: 108px; width: 436px; height: 124px; border-radius: 22px; background: var(--grad); }
.p4 { left: 460px; top: 248px; width: 136px; height: 188px; border-radius: 20px; background: linear-gradient(135deg, var(--coral), var(--pink)); }
.p5 { left: 612px; top: 248px; width: 132px; height: 86px; border-radius: 20px; background: linear-gradient(135deg, var(--violet), var(--indigo)); }
.p6 { left: 612px; top: 350px; width: 132px; height: 86px; border-radius: 20px; background: linear-gradient(135deg, rgba(99,102,241,.7), rgba(139,92,246,.7)); }
.p7 { left: 760px; top: 248px; width: 136px; height: 188px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.piece-dots { position: absolute; left: 306px; top: 80px; display: flex; gap: 8px; opacity: var(--dots, 0); }
.piece-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
@media (max-width: 767px) { .section--pin { height: 200vh; } .pin__sticky { padding: 72px 0 32px; } .stage-card__cap { position: static; padding: 12px 0 16px; } }

/* 04 Enhance */
.ai-badge { position: relative; width: 480px; height: 320px; max-width: 100%; display: grid; place-items: center; }
.ai-badge__halo { position: absolute; width: 360px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,80,140,.6), rgba(139,92,246,.3) 60%, transparent); filter: blur(50px); opacity: 0; transition: opacity 1.2s var(--ease) .2s; }
.ai-badge__tile { position: relative; width: 160px; height: 160px; border-radius: 40px; background: var(--grad); display: grid; place-items: center; font-size: 64px; font-weight: 800; color: #fff; transform: scale(.6); opacity: .2; transition: transform 1s var(--ease), opacity .8s var(--ease); }
[data-anim="enhance"].is-in .ai-badge__halo { opacity: 1; }
[data-anim="enhance"].is-in .ai-badge__tile { transform: none; opacity: 1; }
[data-anim="enhance"].is-in .grad--sweep { background-size: 220% 100%; background-position: 0 0; transition: background-position 1.4s var(--ease); background-image: linear-gradient(90deg, var(--fg) 0 45%, var(--coral) 55%, var(--pink) 75%, var(--violet)); }
[data-anim="enhance"].is-in .grad--sweep { background-position: 100% 0; }
@media (max-width: 767px) { .ai-badge { height: 220px; } .ai-badge__tile { width: 120px; height: 120px; border-radius: 32px; font-size: 48px; } }

/* 05 Steps */
.steps { position: relative; width: 100%; display: flex; justify-content: space-between; padding: 40px 48px; border-radius: var(--r-2xl); background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: .3; transition: opacity .4s var(--ease); }
.step.is-on { opacity: 1; }
.step__dot { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.step.is-on .step__dot { transform: scale(1.06); }
.step__dot svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step__label { font-size: 16px; font-weight: 500; color: var(--ink); }
.steps__line { position: absolute; z-index: 0; left: 80px; right: 80px; top: 72px; height: 2px; background: rgba(10,10,11,.15); }
.steps__line span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); }
@media (max-width: 767px) {
  .steps { flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-xl); }
  .step { flex-direction: row; gap: 16px; }
  .step__dot { width: 48px; height: 48px; } .step__dot svg { width: 20px; height: 20px; }
  .steps__line { left: 47px; right: auto; top: 48px; bottom: 48px; width: 2px; height: auto; }
  .steps__line span { width: 100%; height: calc(var(--p, 0) * 100%); }
}

/* 06 Trust (pixel) */
.trust-card { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; }
.trust { width: 1200px; height: 440px; }
.trust__col { position: absolute; top: 96px; width: 260px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.trust__col p { text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); font-size: 16px; font-weight: 500; }
.pill::before { content: ""; width: 10px; height: 10px; flex: none; background:
  linear-gradient(var(--pink), var(--pink)) 0 0 / 4px 4px no-repeat,
  linear-gradient(rgba(139,92,246,.6), rgba(139,92,246,.6)) 6px 0 / 4px 4px no-repeat,
  linear-gradient(rgba(139,92,246,.6), rgba(139,92,246,.6)) 0 6px / 4px 4px no-repeat,
  linear-gradient(var(--coral), var(--coral)) 6px 6px / 4px 4px no-repeat; }
.trust__streams i { position: absolute; width: 6px; height: 6px; opacity: .1; }
[data-anim="trust"].is-in .trust__streams i { animation: packet 1.8s linear infinite; animation-delay: var(--d); }
@keyframes packet { 0% { opacity: .08; } 40% { opacity: var(--o); } 100% { opacity: .08; } }
.pixel-core { position: absolute; display: grid; grid-template-columns: repeat(13, var(--c)); grid-auto-rows: var(--c); filter: drop-shadow(0 0 40px rgba(240,80,140,.55)); }
.pixel-core i { width: var(--c); height: var(--c); transition: transform 1.2s var(--ease), opacity 1s var(--ease); transition-delay: var(--dl, 0s); }
.pixel-core:not(.is-built) i { transform: translate(var(--sx), var(--sy)); opacity: .3; }
.pixel-shackle { position: absolute; display: grid; grid-template-columns: repeat(9, var(--c)); grid-auto-rows: var(--c); filter: drop-shadow(0 0 24px rgba(240,80,140,.45)); opacity: 0; transform: translateY(calc(var(--c) * -2.5)); transition: opacity .4s 1.2s, transform .7s cubic-bezier(.3,1.45,.5,1) 1.35s; }
.pixel-shackle i { width: var(--c); height: var(--c); }
[data-anim="trust"].is-in .pixel-shackle { opacity: 1; transform: none; }
.secure-chip { position: absolute; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; color: #86EFAC; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.5); opacity: 0; transition: opacity .6s 1.8s; white-space: nowrap; }
.secure-chip--static { position: static; transform: none; }
.secure-chip__opt { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; animation: opt-glow 3.2s ease-in-out infinite; }
.secure-chip__opt--local { border-left: 1px solid rgba(34,197,94,.4); }
.secure-chip__opt--cloud { padding-left: 0; animation-delay: -1.6s; }
.secure-chip__opt svg { width: 16px; height: 16px; fill: currentColor; shape-rendering: crispEdges; }
.secure-chip__or { color: rgba(134,239,172,.55); font-weight: 400; }
@keyframes opt-glow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
[data-anim="trust"].is-in .secure-chip { opacity: 1; }
.trust-m { flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 28px 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; }
.trust-m__label { font-size: 14px; font-weight: 500; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill-row .pill { height: auto; padding: 10px 14px; font-size: 14px; border-radius: 6px; gap: 8px; }
.trust-m__core { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.trust-m__corewrap { position: relative; width: 104px; height: 104px; }
.trust-m__corewrap .pixel-core { left: 0; top: 0; }
.trust-m__corewrap { margin-top: 40px; } .trust-m__corewrap .pixel-shackle { left: 16px; top: -40px; }
.vstream { width: 5px; height: 36px; background: repeating-linear-gradient(to bottom, var(--pink) 0 5px, transparent 5px 9px); opacity: .8; -webkit-mask-image: linear-gradient(to bottom, transparent, #000); mask-image: linear-gradient(to bottom, transparent, #000); }
.vstream--down { -webkit-mask-image: linear-gradient(to top, transparent, #000); mask-image: linear-gradient(to top, transparent, #000); background: repeating-linear-gradient(to bottom, var(--violet) 0 5px, transparent 5px 9px); }

/* 07 Rings + 08 Fan (rise from section edge) */
.rings .scale-box__inner, .fan .scale-box__inner { transform-origin: 0 0; }
.rings svg { transform: translateY(80px); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.rings.is-in svg { transform: none; opacity: 1; }
.rings .chip--float { opacity: 0; transition: opacity .6s var(--ease) .7s; }
.rings.is-in .chip--float { opacity: 1; }

.fan__halo { position: absolute; left: 150px; top: 160px; width: 900px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,80,140,.45), transparent); filter: blur(60px); }
.glass { position: absolute; width: 200px; height: 400px; left: 500px; top: 300px; border-radius: 40px; border: 1.5px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); transition: transform 1.2s var(--ease), left 1.2s var(--ease), top 1.2s var(--ease); overflow: hidden; }
.glass::before { content: ""; position: absolute; left: 68px; top: 16px; width: 64px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.5); }
.glass::after { content: ""; position: absolute; left: 24px; top: 70px; width: 152px; height: 174px; background:
  linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) 0 0 / 152px 10px no-repeat,
  linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)) 0 20px / 100px 10px no-repeat,
  linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 54px / 152px 120px no-repeat; border-radius: 6px; }
.g1 { background: linear-gradient(180deg, rgba(255,122,89,.55), rgba(240,80,140,.15)); }
.g2 { background: linear-gradient(180deg, rgba(240,80,140,.55), rgba(139,92,246,.15)); }
.g3 { background: linear-gradient(180deg, rgba(139,92,246,.55), rgba(99,102,241,.15)); }
.g4 { background: linear-gradient(180deg, rgba(99,102,241,.55), rgba(139,92,246,.15)); }
.fan.is-in .glass { left: var(--x); top: var(--y); transform: rotate(var(--r)); }
.fan.is-in .g2 { transition-delay: .06s; } .fan.is-in .g3 { transition-delay: .12s; } .fan.is-in .g4 { transition-delay: .18s; }

/* 09 Closing */
.closing { padding-top: var(--section-y); padding-bottom: 120px; }
.closing__band { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 120px 24px; border-radius: var(--r-3xl); background: var(--grad); text-align: center; }
.closing__band .h2 { color: var(--ink); }
@media (max-width: 767px) { .closing { padding-bottom: 72px; } .closing__band { padding: 72px 24px; border-radius: 28px; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer__company { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__company img { height: 48px; width: auto; }
.footer__company p, .footer__bottom p { font-size: 14px; color: var(--muted); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a, .footer__bottom a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.footer__links a:hover, .footer__bottom a:hover { color: var(--fg); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 32px; gap: 16px; }
@media (max-width: 767px) { .footer { padding: 40px 0 32px; } .footer__top { flex-direction: column; align-items: flex-start; } .footer__bottom { flex-direction: column; } .footer__company img { height: 40px; } }

/* Reduced motion: show end states, no pinning */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .section--pin { height: auto; }
  .hero__sticky, .pin__sticky { position: relative; }
  .reveal, .orbit__chips .chip, .rings svg, .rings .chip--float, .glass, .ai-badge__tile, .ai-badge__halo, .ai-badge__spark, .pixel-core i, .pixel-shackle, .secure-chip, .secure-chip__opt { transition: none !important; animation: none !important; }
}

/* ===== v2: editorial heads, pixel layers, details ===== */

/* Editorial heads */
.head { width: 100%; }
.head--left { align-items: flex-start; text-align: left; gap: 20px; }
.head--left .lead { max-width: 600px; }
.head--left .head__cta { margin-top: 8px; }
.index-rule { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 28px; }
.index { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(250,250,250,.86); white-space: nowrap; }
.index > .pxb { transform: scale(1.25); }
.rule { flex: 1; height: 1px; background: var(--border); }
.head--ink .index { color: rgba(10,10,11,.82); }
.head--ink .rule { background: rgba(10,10,11,.2); }
.head--ink .pxb { --pxc: var(--ink); }
@media (max-width: 767px) { .index { font-size: 14px; gap: 10px; } .index-rule { margin-bottom: 12px; gap: 12px; } .head--left { gap: 16px; } }

/* Pixel bullet (2x2) */
.pxb { --pxc: var(--pink); display: inline-block; width: 8px; height: 8px; flex: none; background:
  linear-gradient(var(--pxc), var(--pxc)) 0 0 / 4px 4px no-repeat,
  linear-gradient(color-mix(in srgb, var(--pxc) 50%, transparent), color-mix(in srgb, var(--pxc) 50%, transparent)) 4px 0 / 4px 4px no-repeat,
  linear-gradient(color-mix(in srgb, var(--pxc) 50%, transparent), color-mix(in srgb, var(--pxc) 50%, transparent)) 0 4px / 4px 4px no-repeat,
  linear-gradient(var(--pxc), var(--pxc)) 4px 4px / 4px 4px no-repeat; }

/* Background pixel grid with a slow light wave */
.px-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.24) 1px, transparent 1.3px); background-size: 24px 24px; background-position: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse var(--rx, 55%) var(--ry, 60%) at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 100%);
          mask-image: radial-gradient(ellipse var(--rx, 55%) var(--ry, 60%) at var(--mx, 50%) var(--my, 50%), #000 10%, transparent 100%); }
.px-grid::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.4px); background-size: 24px 24px; background-position: 12px 12px;
  -webkit-mask-image: linear-gradient(115deg, transparent 42%, #000 50%, transparent 58%); mask-image: linear-gradient(115deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; animation: px-wave 6s linear infinite; }
.px-grid--fine { background-size: 16px 16px; background-position: 8px 8px; }
.px-grid--fine::after { background-size: 16px 16px; background-position: 8px 8px; }
@keyframes px-wave { from { -webkit-mask-position: 120% 0; mask-position: 120% 0; } to { -webkit-mask-position: -20% 0; mask-position: -20% 0; } }

/* Foreground pixel particles (filled by JS) */
.px-field { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.px-field i { position: absolute; width: var(--s); height: var(--s); background: var(--c); opacity: var(--o); animation: px-float var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes px-float { from { opacity: calc(var(--o) * .25); transform: translate(0, 0); } to { opacity: var(--o); transform: translate(var(--dx), var(--dy)); } }

/* Ink pixel texture at band edges */
.px-edge { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(10,10,11,.55) 1.5px, transparent 1.8px); background-size: 28px 28px; background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 55%, #000 100%); opacity: .7; }
.band > .container { position: relative; z-index: 1; }

/* Hero crop marks */
.crop { position: absolute; top: -24px; width: 20px; height: 20px; opacity: var(--cm, 0); }
.crop--l { left: -24px; border-left: 1px solid rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.35); }
.crop--r { right: -24px; border-right: 1px solid rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.35); }
.hero__copy, .hero__word, .hero__device { z-index: 3; } .hero__word { z-index: 1; } .hero__device { z-index: 2; }

/* Orbit: travelling ring pixels */
.orbit__sats { position: absolute; inset: 0; }
.orbit__sats i { position: absolute; left: 0; top: 0; will-change: transform; }

/* Stage UI details (fade in at the end of assembly) */
.details { position: absolute; inset: 0; opacity: var(--det, 0); transition: opacity .3s; }
.details .d { position: absolute; display: block; }
.details .t { color: #fff; white-space: nowrap; line-height: 1.2; }
.details .bar { width: 12px; border-radius: 3px; background: rgba(255,255,255,.75); }
.details .av { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #6b62e6; }
.details .ck { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.25); }
.details .ck.on { background: var(--pink); }
.details .ln { height: 5px; border-radius: 3px; background: rgba(255,255,255,.45); }
.details .ln--dim { background: rgba(255,255,255,.2); }
.stage .piece, .stage .piece-dots { z-index: 1; } .stage .details { z-index: 2; }

/* Enhanced: pixel accents pop in */
.pxa { position: absolute; width: var(--s); height: var(--s); background: var(--pink); opacity: 0; transform: scale(0); transition: transform .5s var(--ease), opacity .5s; }
[data-anim="enhance"].is-in .pxa { opacity: var(--o); transform: none; }
[data-anim="enhance"].is-in .pxa:nth-of-type(2) { transition-delay: .6s; } [data-anim="enhance"].is-in .pxa:nth-of-type(3) { transition-delay: .7s; }
[data-anim="enhance"].is-in .pxa:nth-of-type(4) { transition-delay: .8s; } [data-anim="enhance"].is-in .pxa:nth-of-type(5) { transition-delay: .9s; } [data-anim="enhance"].is-in .pxa:nth-of-type(6) { transition-delay: 1s; }
.ai-badge .px-grid { opacity: .5; transition: opacity 1s; } [data-anim="enhance"].is-in .ai-badge .px-grid { opacity: 1; }
@media (max-width: 767px) { .pxa { display: none; } }

/* Services: pixel ring turns, chips land */
.rings__px { transform-box: fill-box; transform-origin: center; animation: px-spin 60s linear infinite; animation-play-state: paused; }
.rings.is-in .rings__px { animation-play-state: running; }
@keyframes px-spin { to { transform: rotate(360deg); } }
.rings .chip--float { transform: translateY(-30px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.rings.is-in .chip--float { transform: none; }
.rings.is-in .chip--float:nth-of-type(1) { transition-delay: .7s; } .rings.is-in .chip--float:nth-of-type(2) { transition-delay: .82s; }
.rings.is-in .chip--float:nth-of-type(3) { transition-delay: .94s; } .rings.is-in .chip--float:nth-of-type(4) { transition-delay: 1.06s; }

/* Products: specular light line on glass */
.glass { box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.glass > i { display: none; }

/* Closing: band scales in, edge pixels pulse once */
.closing__band { position: relative; overflow: hidden; transform: scale(.96); opacity: .6; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.closing__band > *:not(.px-edge) { position: relative; z-index: 1; }
[data-anim="closing"].is-in .closing__band { transform: none; opacity: 1; }
.px-edge--band { opacity: 0; }
[data-anim="closing"].is-in .px-edge--band { animation: px-pulse 1.6s var(--ease) .3s forwards; }
@keyframes px-pulse { 0% { opacity: 0; transform: scale(1.08); } 50% { opacity: .95; } 100% { opacity: .6; transform: none; } }
.closing__mail { font-size: 14px; color: rgba(10,10,11,.7); margin-top: -8px; }
.closing__mail a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer contact line */
.footer__contact { display: inline-flex; align-items: center; gap: 12px; }
.footer__contact a { color: var(--fg); }

/* Mobile pieces */
.orbit-m__core .px-grid { --rx: 50%; --ry: 50%; }
.trust-m .px-grid { --rx: 60%; --ry: 45%; }
.trust-m > *:not(.px-grid) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .px-grid::after, .px-field i, .rings__px, .px-edge--band { animation: none !important; }
  .px-edge--band { opacity: .6; }
  .pxa, .closing__band, .rings .chip--float { transition: none !important; }
  .closing__band { transform: none; opacity: 1; }
}

/* ===== v3: canvas pixel grids, star twinkle, optical centering ===== */
.px-grid.has-canvas { background: none; -webkit-mask-image: none; mask-image: none; }
.px-grid.has-canvas::after { display: none; }
.px-grid canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__sticky { touch-action: pan-y; }

/* Foreground particles: soft, random star twinkle while drifting */
.px-field i { animation: px-star var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes px-star {
  0%   { opacity: calc(var(--o) * .2);  transform: translate(0, 0) scale(1); box-shadow: none; }
  42%  { opacity: calc(var(--o) * .35); }
  55%  { opacity: 1; transform: translate(calc(var(--dx) * .5), calc(var(--dy) * .5)) scale(1.4); box-shadow: 0 0 10px 1px var(--c); }
  70%  { opacity: calc(var(--o) * .45); box-shadow: 0 0 2px var(--c); }
  100% { opacity: calc(var(--o) * .25); transform: translate(var(--dx), var(--dy)) scale(1); box-shadow: none; }
}

/* Logo mark is right-heavy (two stars on the right): nudge left to center it optically */
.tile--mark img { transform: translateX(-5.5%); }

/* Brand sparkle among particles */
.px-field i.star { background: var(--c); -webkit-mask: url(assets/star.svg) center / contain no-repeat; mask: url(assets/star.svg) center / contain no-repeat; }
@keyframes px-star-glow { 0%, 100% { filter: none; } 55% { filter: drop-shadow(0 0 6px var(--c)); } }
.px-field i.star { animation: px-star var(--t) ease-in-out var(--d) infinite alternate; box-shadow: none !important; }

/* ===== Inner pages ===== */
.nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--fg); }
.page-hero { position: relative; overflow: hidden; padding: clamp(96px, 14vh, 150px) 0 clamp(64px, 10vh, 120px); }
.page-hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.page-hero .lead { max-width: 720px; }
.h3 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.h3--sm { font-size: 20px; }
.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); margin: 0; }
.card .pxb.lg { width: 20px; height: 20px; --pxc: var(--pink); background-size: 10px 10px !important; margin-bottom: 20px; }
.pxb.lg { background:
  linear-gradient(var(--pxc), var(--pxc)) 0 0 / 9px 9px no-repeat,
  linear-gradient(color-mix(in srgb, var(--pxc) 50%, transparent), color-mix(in srgb, var(--pxc) 50%, transparent)) 11px 0 / 9px 9px no-repeat,
  linear-gradient(color-mix(in srgb, var(--pxc) 50%, transparent), color-mix(in srgb, var(--pxc) 50%, transparent)) 0 11px / 9px 9px no-repeat,
  linear-gradient(var(--pxc), var(--pxc)) 11px 11px / 9px 9px no-repeat; }
.grid { display: grid; gap: 24px; width: 100%; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .card { padding: 24px; border-radius: var(--r-xl); } .h3 { font-size: 20px; } }

/* Services: pixel mosaic hero */
.mosaic { position: relative; display: grid; grid-template-columns: repeat(10, var(--cs)); gap: var(--gp); --cs: 40px; --gp: 6px; margin-top: 40px; filter: drop-shadow(0 0 60px rgba(240,80,140,.45)); }
.mosaic i { width: var(--cs); height: var(--cs); border-radius: 4px; opacity: 0; transform: scale(.4) translateY(20px); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: var(--dl); }
.mosaic.is-in i { opacity: 1; transform: none; }
.mosaic i.off { visibility: hidden; }
@media (max-width: 767px) { .mosaic { --cs: 24px; --gp: 4px; } }
/* bento */
.bento { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.bento-ai { display: grid; grid-template-columns: 1fr 480px; gap: 40px; align-items: center; padding: 56px; border-radius: var(--r-2xl); background: var(--grad); color: var(--ink); }
.bento-ai h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.bento-ai p { color: rgba(10,10,11,.72); margin: 0 0 8px; }
.bento-ai .tag { font-weight: 500; color: var(--ink); }
.bento-ai .btn { margin-top: 16px; }
.mini-dia { position: relative; height: 260px; border-radius: var(--r-xl); background: rgba(10,10,11,.88); overflow: hidden; }
.mini-dia .pills { position: absolute; top: 50px; display: flex; flex-direction: column; gap: 22px; }
.mini-dia .pills span { font-size: 13px; font-weight: 500; color: var(--fg); padding: 8px 12px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.mini-dia .mini-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (max-width: 1000px) { .bento-ai { grid-template-columns: 1fr; padding: 32px; } .mini-dia { display: none; } }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip-list li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.card--plum { background: linear-gradient(135deg, #331a38, #521f33); border-color: transparent; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.option { padding: 28px; border-radius: 20px; display: flex; flex-direction: column; gap: 6px; }
.option b { font-weight: 500; } .option span { font-size: 14px; color: var(--muted); }
.option--indigo { background: linear-gradient(90deg, rgba(99,102,241,.28), rgba(99,102,241,.08)); border: 1px solid rgba(99,102,241,.35); --pxc: var(--indigo); }
.option--pink { background: linear-gradient(90deg, rgba(240,80,140,.28), rgba(240,80,140,.08)); border: 1px solid rgba(240,80,140,.35); }
@media (max-width: 767px) { .options { grid-template-columns: 1fr; } }
.mini-win { margin-top: 16px; height: 150px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.04); position: relative; overflow: hidden; }
.mini-win::before { content: ""; position: absolute; left: 14px; top: 14px; width: 36px; height: 8px; background: radial-gradient(circle, rgba(255,255,255,.25) 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x; }
.mini-win i { position: absolute; border-radius: 8px; background: rgba(255,255,255,.07); }
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; font-size: 14px; font-weight: 500; color: var(--muted); opacity: .6; }
/* vertical steps */
.vsteps { width: 100%; display: flex; flex-direction: column; }
.vstep { display: grid; grid-template-columns: 48px 1fr; gap: 40px; position: relative; padding-bottom: 56px; }
.vstep::before { content: ""; position: absolute; left: 23px; top: 56px; bottom: 0; width: 2px; background: var(--border); }
.vstep:last-child::before { display: none; }
.vstep__dot { width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; transition: background .4s; }
.vstep.is-in .vstep__dot { background: var(--grad); border-color: transparent; }
.vstep__dot .pxb { --pxc: #fff; width: 10px; height: 10px; background-size: 5px 5px !important; }
.vstep h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.vstep .tag { color: var(--pink); font-weight: 500; margin: 8px 0 12px; }
.vstep p { color: var(--muted); max-width: 760px; margin: 0 0 20px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); margin-bottom: 16px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.step-link { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 4px; transition: border-color .2s; }
.step-link span { color: var(--pink); transition: transform .2s; } .step-link:hover { border-color: var(--pink); } .step-link:hover span { transform: translateX(3px); }
@media (max-width: 767px) { .vstep { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; } .vstep::before { display: none; } .vstep h3 { font-size: 24px; } .checks { grid-template-columns: 1fr; } }
/* ways (gradient band) */
.way { padding: 32px; border-radius: var(--r-xl); background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.way .pxb { --pxc: var(--ink); width: 12px; height: 12px; background-size: 6px 6px !important; margin-bottom: 10px; }
.way h3 { font-size: 20px; font-weight: 700; margin: 0; } .way p { color: rgba(10,10,11,.72); margin: 0; flex: 1; } .way b { font-size: 14px; font-weight: 500; }
.glyph { display: grid; grid-template-columns: repeat(4, 14px); gap: 2px; margin-bottom: 16px; }
.glyph i { width: 14px; height: 14px; background: var(--gc); }
.glyph i:nth-child(odd) { opacity: .45; } .glyph i:nth-child(4n+2), .glyph i:nth-child(4n+3) { opacity: .9; }

/* Products */
.pulse-line { position: relative; width: 100%; height: 300px; margin-top: 24px; filter: drop-shadow(0 0 30px rgba(240,80,140,.5)); }
.pulse-line i { position: absolute; width: 12px; height: 12px; border-radius: 2px; opacity: 0; transition: opacity .3s; transition-delay: var(--dl); }
.pulse-line.is-in i { opacity: var(--o); }
@media (max-width: 767px) { .pulse-line { height: 160px; } .pulse-line i { width: 6px; height: 6px; } }
.prod { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; }
.prod--flip .prod__visual { order: 2; }
.prod__copy { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.prod__name { display: flex; align-items: center; gap: 16px; }
.prod__name h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.app-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: 26px; color: #fff; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.prod__tag { font-weight: 500; }
.prod__body { font-size: 18px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.badges img { height: 48px; width: auto; }
.web-badge { display: inline-flex; flex-direction: column; padding: 8px 20px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.2); line-height: 1.15; transition: background .2s; }
.web-badge:hover { background: rgba(255,255,255,.1); } .web-badge small { font-size: 11px; color: rgba(255,255,255,.7); } .web-badge b { font-size: 18px; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 260px; aspect-ratio: 260 / 540; border-radius: 44px; background: #121214; border: 2px solid rgba(255,255,255,.18); padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.5); transition: transform 1s var(--ease), opacity .8s; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; display: block; background: #1c1c1f; }
.phone--back { left: 12%; top: 60px; transform: rotate(-8deg); }
.phone--front { left: 44%; top: 20px; transform: rotate(6deg); }
.phone--solo { left: 50%; top: 30px; transform: translateX(-50%) rotate(-4deg); }
.reveal-phones .phone { opacity: 0; } .reveal-phones .phone--back { transform: translateY(60px) rotate(0); } .reveal-phones .phone--front { transform: translateY(80px) rotate(0); } .reveal-phones .phone--solo { transform: translate(-50%, 80px) rotate(0); }
.reveal-phones.is-in .phone { opacity: 1; } .reveal-phones.is-in .phone--back { transform: rotate(-8deg); } .reveal-phones.is-in .phone--front { transform: rotate(6deg); transition-delay: .12s; } .reveal-phones.is-in .phone--solo { transform: translateX(-50%) rotate(-4deg); }
.prod-block { width: 100%; padding: 72px 64px; border-radius: 40px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 56px; }
.divider-chip { display: flex; align-items: center; gap: 16px; } .divider-chip::before, .divider-chip::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.divider-chip span { padding: 8px 16px; border-radius: 999px; background: var(--grad); color: var(--ink); font-size: 14px; font-weight: 500; }
.screen-ph { position: relative; height: 420px; border-radius: 28px; border: 1px solid rgba(255,255,255,.14); overflow: hidden; }
.screen-ph small { position: absolute; right: 20px; top: 18px; font-size: 11px; color: rgba(255,255,255,.35); font-weight: 500; }
.screen-ph--search { background: linear-gradient(135deg, #29215c, #57214d); }
.screen-ph--search .bar { position: absolute; left: 13%; right: 13%; top: 36%; height: 64px; border-radius: 32px; background: #fff; }
.screen-ph--search .bar::before { content: ""; position: absolute; left: 28px; top: 27px; width: 45%; height: 10px; border-radius: 5px; background: rgba(0,0,0,.15); }
.screen-ph--search .bar::after { content: ""; position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); }
.screen-ph--code { background: #121214; }
.screen-ph i { position: absolute; border-radius: 5px; }
@media (max-width: 1000px) {
  .prod { grid-template-columns: 1fr; } .prod--flip .prod__visual { order: 0; } .prod-block { padding: 32px 20px; border-radius: 28px; gap: 40px; }
  .phones { height: 380px; } .phone { width: 160px; border-radius: 28px; padding: 8px; } .phone img { border-radius: 21px; } .phone--back { left: 14%; } .phone--front { left: 46%; }
  .screen-ph { height: 260px; }
}
/* About */
.photo { width: 100%; border-radius: 40px; overflow: hidden; aspect-ratio: 1200 / 620; background: #1c1c1f; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.photo.is-in img { transform: none; }
.statement { font-size: clamp(40px, 6.6vw, 96px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; margin: 0; }
.statement .sweep { background: linear-gradient(90deg, var(--coral), var(--pink) 30%, var(--violet) 48%, var(--fg) 52%, var(--fg)); background-size: 220% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.6s var(--ease); }
.reveal.is-in .statement .sweep, .statement.is-in .sweep { background-position: 0 0; }
.stack-statements { display: flex; flex-direction: column; gap: 96px; width: 100%; }
.stack-statements > div { display: flex; flex-direction: column; gap: 24px; }
.saudi { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.saudi .lead { color: rgba(10,10,11,.72); }
.ar-tile { height: 340px; border-radius: 32px; background: var(--ink); display: grid; place-items: center; padding: 24px; }
.ar-tile span { font-family: "Noto Sans Arabic", sans-serif; font-weight: 700; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.4; text-align: center; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .saudi { grid-template-columns: 1fr; gap: 32px; } .ar-tile { height: 200px; } .ar-tile span { white-space: normal; font-size: 36px; } .photo { border-radius: 24px; aspect-ratio: 4 / 3; } .stack-statements { gap: 56px; } }
/* Careers */
.roles { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.role { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.role h3 { flex: 1; font-size: 20px; margin: 0; } .role span { color: var(--muted); }
.empty-roles { padding: 40px; border-radius: 24px; border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 10px; }
.empty-roles p { color: var(--muted); margin: 0; } .empty-roles a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .role { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; } .empty-roles { padding: 24px; } }
/* Contact */
.contact-hero { width: 100%; display: grid; grid-template-columns: 640px 1fr; gap: 80px; align-items: center; text-align: left; }
.contact-hero .display { font-size: clamp(48px, 5vw, 72px); }
.contact-hero .mail { font-size: 24px; font-weight: 700; }
.contact-hero .mail .grad { display: inline; }
.marhaba { position: relative; height: 440px; }
.marhaba__tile { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; border-radius: 72px; background: var(--grad); transform: translate(-50%, -50%) rotate(-6deg); display: grid; place-items: center; box-shadow: inset 0 6px 16px rgba(255,255,255,.4), 0 40px 100px rgba(240,80,140,.35); animation: float 6s ease-in-out infinite; }
.marhaba__tile span { font-family: "Noto Sans Arabic", sans-serif; font-weight: 700; font-size: 84px; color: var(--ink); }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 12px)) rotate(-3deg); } }
.star { position: absolute; background: var(--c); -webkit-mask: url(assets/star.svg) center / contain no-repeat; mask: url(assets/star.svg) center / contain no-repeat; animation: px-star 5s ease-in-out infinite alternate; --o: .9; --dx: 0px; --dy: -6px; }
@media (max-width: 1100px) { .contact-hero { grid-template-columns: 1fr; gap: 24px; } .marhaba { height: 180px; order: -1; } .marhaba__tile { width: 140px; height: 140px; border-radius: 36px; left: 70px; } .marhaba__tile span { font-size: 40px; } .marhaba .star { display: none; } }
.channel .lbl { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.channel .val { font-size: 20px; font-weight: 700; } .channel a.val:hover { color: var(--pink); }
.project { display: grid; grid-template-columns: 440px 1fr; gap: 80px; width: 100%; align-items: start; }
.project__intro { display: flex; flex-direction: column; gap: 20px; }
.project__intro .next { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.project__intro .next li { display: flex; gap: 12px; align-items: center; }
.project__intro a.job { font-size: 14px; font-weight: 500; }
.form { background: var(--card); border: 1px solid var(--border); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field > span em, .field legend em { color: var(--pink); font-style: normal; } .field small.opt { color: var(--muted); font-weight: 400; font-size: 14px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field textarea { font: 400 16px/1.4 var(--font); color: var(--fg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(161,161,170,.7); }
.field input:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(240,80,140,.25); }
.field.has-error input, .field.has-error textarea { border-color: #F87171; }
.field .err { display: none; font-size: 14px; color: #F87171; } .field.has-error .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15); cursor: pointer; transition: background .2s, border-color .2s; }
.choice span:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.choice input:checked + span { background: rgba(240,80,140,.18); border-color: var(--pink); }
.choice input:checked + span::before { content: ""; width: 6px; height: 6px; background: linear-gradient(var(--pink), var(--pink)) 0 0 / 3px 3px no-repeat, linear-gradient(rgba(240,80,140,.5), rgba(240,80,140,.5)) 3px 0 / 3px 3px no-repeat, linear-gradient(rgba(240,80,140,.5), rgba(240,80,140,.5)) 0 3px / 3px 3px no-repeat, linear-gradient(var(--pink), var(--pink)) 3px 3px / 3px 3px no-repeat; }
.choice input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.form .privacy { font-size: 14px; color: var(--muted); } .form .privacy a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form button[disabled] { opacity: .7; cursor: progress; }
.form-banner { padding: 18px 20px; border-radius: 16px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.5); display: flex; flex-direction: column; gap: 4px; }
.form-banner b { font-weight: 600; } .form-banner span { color: var(--muted); font-size: 14px; }
.form-done { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.4); border-radius: 32px; padding: 48px 40px; display: flex; flex-direction: column; gap: 14px; }
.form-done .star { position: static; width: 40px; height: 40px; --c: #86EFAC; }
.form-done h3 { font-size: 24px; font-weight: 700; margin: 0; } .form-done p { color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 1000px) { .project { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) { .form { padding: 20px; border-radius: 24px; } .form .row2 { grid-template-columns: 1fr; } }

/* Products: stacked web screenshots (INSAIGHTS) */
.web-shots { position: relative; aspect-ratio: 16 / 11.5; }
.web-shot { position: absolute; width: 84%; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #0c2a2a; box-shadow: 0 30px 80px rgba(0,0,0,.55); transition: transform 1s var(--ease), opacity .8s var(--ease); }
.web-shot img { display: block; width: 100%; height: auto; }
.web-shot--back { left: 0; top: 0; opacity: .55; transform: translateY(30px); }
.web-shot--front { right: 0; bottom: 0; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(240,80,140,.25); opacity: 0; transform: translateY(60px); }
.web-shots.is-in .web-shot--back { transform: none; }
.web-shots.is-in .web-shot--front { opacity: 1; transform: none; transition-delay: .15s; }
@media (max-width: 767px) { .web-shot { border-radius: 12px; width: 88%; } }

/* Complex made simple -> Enhanced with AI (one pinned scene) */
[data-anim="assemble"].section--pin { height: 380vh; }
.head-swap { display: grid; width: 100%; }
.head-swap > .head { grid-area: 1 / 1; }
.head-swap .head--a { opacity: calc(1 - var(--hb, 0)); transform: translateY(calc(var(--hb, 0) * -16px)); }
.head-swap .head--b { opacity: var(--hb, 0); transform: translateY(calc((1 - var(--hb, 0)) * 16px)); }
.details--ai { opacity: var(--det2, 0); z-index: 3 !important; }
.stage-card__cap--ai { opacity: var(--cap2, 0); }
.details .st, .p9 .st, .av--ai .st { display: block; background: #fff; -webkit-mask: url(assets/star.svg) center / contain no-repeat; mask: url(assets/star.svg) center / contain no-repeat; }
.details .bar--fc { background: repeating-linear-gradient(to top, rgba(255,255,255,.85) 0 4px, transparent 4px 7px); box-shadow: 0 0 12px rgba(255,255,255,.35); }
.details .av--ai { background: var(--grad); box-shadow: 0 0 0 2px #6b62e6, 0 0 14px rgba(240,80,140,.7); display: grid; place-items: center; }
.details .av--ai .st { width: 12px; height: 12px; }
.p8 { left: 760px; top: 248px; width: 136px; height: 188px; border-radius: 20px; background: linear-gradient(160deg, rgba(240,80,140,.22), rgba(139,92,246,.22)); border: 1px solid rgba(240,80,140,.55); box-shadow: 0 0 40px rgba(240,80,140,.35); }
.p9 { left: 868px; top: 32px; width: 72px; height: 72px; border-radius: 22px; background: var(--grad); display: grid; place-items: center; box-shadow: inset 0 4px 12px rgba(255,255,255,.35), 0 20px 60px rgba(240,80,140,.55); z-index: 4 !important; }
.p9 .st { width: 34px; height: 34px; }
@media (max-width: 767px) {
  [data-anim="assemble"].section--pin { height: 320vh; }
  .stage-card__cap--ai { position: absolute; left: 0; right: 0; bottom: 12px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { [data-anim="assemble"].section--pin { height: auto; } }

/* Orbit: per-service color pairs for more variation (PM feedback) */
.orbit__chips .chip:nth-child(1), .chip-cloud .chip:nth-child(1) { --a: #FF7A59; --b: #FFB547; }
.orbit__chips .chip:nth-child(2), .chip-cloud .chip:nth-child(2) { --a: #F0508C; --b: #8B5CF6; }
.orbit__chips .chip:nth-child(3), .chip-cloud .chip:nth-child(3) { --a: #8B5CF6; --b: #38BDF8; }
.orbit__chips .chip:nth-child(4), .chip-cloud .chip:nth-child(4) { --a: #38BDF8; --b: #34D399; }
.orbit__chips .chip:nth-child(5), .chip-cloud .chip:nth-child(5) { --a: #FFB547; --b: #F0508C; }
.orbit__chips .chip:nth-child(6), .chip-cloud .chip:nth-child(6) { --a: #6366F1; --b: #F0508C; }
.orbit__chips .chip { border-color: color-mix(in srgb, var(--a) 45%, transparent); box-shadow: 0 0 32px color-mix(in srgb, var(--a) 22%, transparent); }
.orbit__chips .chip__icon { background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 0 18px color-mix(in srgb, var(--b) 55%, transparent); }
.chip-cloud .chip { display: inline-flex; align-items: center; gap: 8px; border-color: color-mix(in srgb, var(--a) 40%, transparent); }
.chip-cloud .chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--a), var(--b)); }
.orbit__halo { background: conic-gradient(from 0deg, rgba(255,122,89,.55), rgba(255,181,71,.45), rgba(240,80,140,.55), rgba(139,92,246,.55), rgba(56,189,248,.45), rgba(52,211,153,.35), rgba(255,122,89,.55)); -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); filter: blur(46px); animation: halo-spin 24s linear infinite; }
@keyframes halo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit__halo { animation: none; } }

/* Voxel icons on cards */
.vx { display: block; width: 76px; height: 80px; margin-bottom: 18px; filter: drop-shadow(0 10px 18px rgba(240,80,140,.28)); transition: transform .5s var(--ease), filter .5s var(--ease); }
.vx svg { width: 100%; height: 100%; overflow: visible; }
.vx g { transition: transform .5s var(--ease), opacity .4s var(--ease); transition-delay: var(--d, 0ms); }
.reveal:not(.is-in) .vx g { opacity: 0; transform: translateY(-8px); }
.card:hover .vx { transform: translateY(-4px) rotate(-3deg); filter: drop-shadow(0 16px 24px rgba(240,80,140,.45)); }
@media (prefers-reduced-motion: reduce) { .vx, .vx g { transition: none !important; } .reveal:not(.is-in) .vx g { opacity: 1; transform: none; } }
@media (max-width: 767px) { .vx { width: 60px; height: 64px; margin-bottom: 14px; } }

/* Heartbeat: the heart cells beat once the line has drawn in */
.pulse-line.is-in i.h { animation: heartbeat 1.6s ease-in-out 1.4s infinite; }
@keyframes heartbeat { 0%, 40%, 100% { filter: none; } 12% { filter: brightness(1.45) drop-shadow(0 0 6px rgba(240,80,140,.9)); } 26% { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .pulse-line.is-in i.h { animation: none; } }

/* Brand tiles now use the B symbol (the symbol is its own gradient tile) */
.tile--mark { background: none !important; box-shadow: none !important; filter: drop-shadow(0 24px 50px rgba(240,80,140,.45)); }
.tile--mark { display: block; }
.tile--mark img, .tile--mark img[src*="logo-mark"] { display: block; width: 100%; height: 100%; transform: none !important; }
/* Mobile: keep the ring chips readable by undoing the artboard scale */
@media (max-width: 767px) {
  .rings .chip--float { left: var(--cx) !important; top: var(--cy) !important; padding: 8px 12px; font-size: 13px; gap: 6px; white-space: nowrap; transform: translate(-50%, -50%) scale(calc(var(--inv, 1) * .92)) translateY(-14px); transform-origin: center; }
  .rings.is-in .chip--float { transform: translate(-50%, -50%) scale(calc(var(--inv, 1) * .92)); }
}

/* ---------- Arabic (RTL) ---------- */
html[lang="ar"] { --font: "Readex Pro", "Hanken Grotesk", system-ui, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .display, html[lang="ar"] .h2, html[lang="ar"] .statement { line-height: 1.3; }
html[lang="ar"] .h3, html[lang="ar"] .vstep h3, html[lang="ar"] .prod__name h2, html[lang="ar"] .bento-ai h3 { line-height: 1.4; }
html[lang="ar"] .lead, html[lang="ar"] p { line-height: 1.75; }
html[lang="ar"] .hero__word { font-family: "Hanken Grotesk", sans-serif; letter-spacing: -0.06em !important; direction: ltr; }
[dir="rtl"] .skip { left: auto; right: -999px; } [dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .hp { left: auto; right: -9999px; }
.lang-switch { font-family: "Hanken Grotesk", sans-serif; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] [data-mosaic], [dir="rtl"] .pixel-core, [dir="rtl"] [data-pulse] { direction: ltr; }
