/* Jaydiem "Showroom" mock system.
   Layout concept: a dark product-studio canvas where each project gets its own lit stage,
   tinted by the project's real brand colour, with real screens in clean device frames at depth. */
:root {
  --bg: #08090b;
  --bg-2: #0d0f12;
  --surface: #14171c;
  --line: rgb(255 255 255 / .09);
  --line-2: rgb(255 255 255 / .16);
  --text: #f3f4f6;
  --text-2: #a9b0bb;
  --text-3: #8a929e;
  --white: #ffffff;
  --ok: #3ddc84;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-inline: max(40px, var(--gutter-l)); } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -.03em; }
.d1 { font-size: clamp(42px, 6.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.d2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
.d3 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.d4 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--text-2); margin: 0; max-width: 52ch; }
p { margin: 0; }
.muted { color: var(--text-2); }
.grad { background: linear-gradient(180deg, #fff 30%, #9aa3ae 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--c1, #fff); box-shadow: 0 0 12px var(--c1, #fff); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.btn.primary { background: #fff; color: #0a0b0d; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn.ghost:hover { background: rgb(255 255 255 / .1); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); min-height: 38px; transition: background .3s var(--ease), color .3s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: #0a0b0d; }
.seg button:hover:not([aria-pressed="true"]):not([aria-selected="true"]) { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); white-space: nowrap; }
.code { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: -.01em; padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); white-space: nowrap; }
.prov { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 5px 10px 5px 9px; border-radius: 999px; background: rgb(10 11 13 / .72); box-shadow: inset 0 0 0 1px var(--line-2); color: #e7e9ec; backdrop-filter: blur(10px); white-space: nowrap; }
.prov::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.prov.concept::before { background: #f5b84a; }
.prov.recon::before { background: #6fa8ff; }
.prov.demo::before { background: #c9ced6; }
.prov.dir::before { background: #b18cff; }
.light-stage .prov { background: rgb(255 255 255 / .85); color: #1a1d22; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 50; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(8 9 11 / .72); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }
.logo-lg img { height: 44px; }
@media (max-width: 860px) { .logo img { height: 28px; } }
.nav nav { display: flex; gap: 4px; margin-left: 12px; }
.nav nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--text-2); transition: color .2s, background .2s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); background: rgb(255 255 255 / .06); }
.nav .cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav .menu { display: none; }
@media (max-width: 860px) { .nav nav { display: none; } .nav .cta { display: none; } .nav .menu { display: inline-flex; margin-left: auto; min-height: 40px; } }

/* ---------- Device frames ---------- */
.win { position: relative; border-radius: 14px; background: #101216; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 1px 0 rgb(255 255 255 / .18) inset, 0 40px 90px -30px rgb(0 0 0 / .75), 0 18px 40px -20px rgb(0 0 0 / .6); overflow: hidden; }
.win .bar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: linear-gradient(#1b1e23, #15181c); border-bottom: 1px solid rgb(255 255 255 / .07); }
.win .dots { display: flex; gap: 6px; }
.win .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e45; }
.win .url { flex: 1; max-width: 340px; margin-inline: auto; height: 22px; border-radius: 6px; background: rgb(255 255 255 / .06); font-size: 11.5px; color: #9aa1ac; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .url::before { content: ""; width: 8px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; border-top-width: 3px; opacity: .7; }
.win .title { flex: 1; text-align: center; font-size: 12px; color: #9aa1ac; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0f12; }
.win .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.win .scr img + img { position: absolute; inset: 0; }
.win.light { background: #f6f7f8; }
.win.light .bar { background: linear-gradient(#f4f5f7, #eceef1); border-bottom-color: rgb(0 0 0 / .07); }
.win.light .dots i { background: #d3d6db; }
.win.light .url, .win.light .title { background: rgb(0 0 0 / .05); color: #5d636c; }
.win.light .title { background: none; }
.win .prov { position: absolute; left: 12px; bottom: 12px; z-index: 3; }

.phone { position: relative; width: var(--pw, 260px); aspect-ratio: 9 / 19.4; border-radius: calc(var(--pw, 260px) * .17); padding: calc(var(--pw, 260px) * .035); background: linear-gradient(145deg, #4a4d53, #1c1d20 30%, #0d0e10 60%, #3a3c41); box-shadow: 0 0 0 1px rgb(255 255 255 / .1) inset, 0 50px 90px -30px rgb(0 0 0 / .8), 0 20px 40px -20px rgb(0 0 0 / .6); flex: none; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw, 260px) * .135); overflow: hidden; background: #000; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .45s var(--ease); }
.phone .scr img + img { position: absolute; inset: 0; }
.phone .island { position: absolute; z-index: 2; top: calc(var(--pw, 260px) * .055); left: 50%; transform: translateX(-50%); width: 30%; height: calc(var(--pw, 260px) * .085); border-radius: 999px; background: #000; }
.phone .island { display: none; } /* real captures carry their own status area; a drawn notch would cover content */
.phone .prov { position: absolute; left: 50%; transform: translateX(-50%); bottom: -40px; }
.card-shot { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 40px 80px -30px rgb(0 0 0 / .8); background: #fff; }

/* ---------- Stages ---------- */
.stage { position: relative; border-radius: 32px; overflow: hidden; isolation: isolate; background: var(--base, #0d0f12); box-shadow: inset 0 0 0 1px var(--line); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at var(--gx, 75%) var(--gy, 40%), color-mix(in srgb, var(--c1) 38%, transparent), transparent 70%),
  radial-gradient(45% 45% at var(--hx, 20%) var(--hy, 90%), color-mix(in srgb, var(--c2, var(--c1)) 26%, transparent), transparent 70%); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgb(255 255 255 / .04), transparent 30%); pointer-events: none; }
.stage .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.stage .head .t { display: grid; gap: 14px; max-width: 640px; }
.stage .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-2); }
.stage .facts b { color: var(--text); font-weight: 600; }
.stage .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.stage .more:hover .arr { transform: translateX(3px); }
.stage .more .arr { transition: transform .3s var(--ease); }
.light-stage { color: #0e1116; }
.light-stage .muted, .light-stage .lead, .light-stage .facts { color: #4c5561; }
.light-stage .facts b { color: #0e1116; }
.light-stage .eyebrow { color: #4c5561; }
.light-stage .chip { background: rgb(255 255 255 / .6); color: #303741; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.light-stage .seg { background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.light-stage .seg button { color: #4c5561; }
.light-stage .seg button[aria-pressed="true"] { background: #0e1116; color: #fff; }

/* Depth: pointer tilt (desktop, motion allowed) */
.tilt { perspective: 1800px; }
.tilt > .plane { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease); }
.z1 { transform: translateZ(30px); } .z2 { transform: translateZ(70px); } .z3 { transform: translateZ(120px); }

/* Reveal: transform only, never hidden at rest */
.rv { transform: translateY(28px) scale(.985); transition: transform 1.1s var(--ease); }
.rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { transform: none; transition: none; }
  .tilt > .plane { transform: none !important; transition: none; }
  .win .scr img, .phone .scr img { transition: none; }
}
.section { padding-block: clamp(80px, 10vw, 140px); }
footer.ft { border-top: 1px solid var(--line); padding-block: 48px 120px; color: var(--text-2); font-size: 14px; }
.reviewbar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgb(20 23 28 / .92); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px rgb(0 0 0 / .5); backdrop-filter: blur(12px); font-size: 13px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.reviewbar a { padding: 8px 13px; border-radius: 999px; white-space: nowrap; color: var(--text-2); font-weight: 500; }
.reviewbar a[aria-current] { background: #fff; color: #0a0b0d; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
