/* Jm3a Studio — site styles */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plex-mono-500-latin.woff2) format('woff2'); 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: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plex-arabic-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plex-arabic-400-latin.woff2) format('woff2'); 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: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plex-arabic-500-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plex-arabic-500-latin.woff2) format('woff2'); 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: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/plex-arabic-600-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/plex-arabic-600-latin.woff2) format('woff2'); 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: 'Readex Pro'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/readex-pro-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/readex-pro-latin.woff2) format('woff2'); 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; }

:root {
  --paper: #F5F1E8;
  --paper-2: #EDE7DA;
  --ink: #15161A;
  --ink-2: #34363D;
  --muted: #5E5F66;
  --line: rgba(21, 22, 26, .14);
  --saffron: #F2A93B;
  --saffron-ink: #8A5A0B;

  --qayd-petrol: #123E45;
  --qayd-cream: #F4EFE4;
  --qayd-gold: #D9AE5E;

  --mafia-cream: #FFFDF7;
  --mafia-pink: #EC3F8C;
  --mafia-yellow: #FFD23F;
  --mafia-cyan: #35C5E0;
  --mafia-green: #5BC84F;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sine: cubic-bezier(0.37, 0, 0.63, 1);

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
section[id], div[id], article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 2.5px solid var(--saffron-ink); outline-offset: 3px; border-radius: 6px; }
.qayd-band :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--saffron); }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.skip {
  position: fixed; top: 12px; right: 12px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flip { transform: scaleX(-1); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--font-display);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn .i { transition: transform 200ms var(--ease-out); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-ghost-light { border-color: rgba(245, 241, 232, .35); color: var(--paper); }
.btn-mafia {
  background: var(--mafia-pink); color: var(--ink); border: 2px solid var(--ink);
  font-weight: 600; box-shadow: 4px 4px 0 var(--ink);
}
.btn-mafia:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.icon-btn {
  width: 48px; height: 48px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); color: inherit; background: transparent; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }

@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #2C2E35; }
  .btn-ink:hover .i, .btn-saffron:hover .i { transform: translateX(-3px); }
  .btn-ghost:hover { background: rgba(21, 22, 26, .06); }
  .btn-saffron:hover { background: #F6B955; }
  .btn-ghost-light:hover { border-color: rgba(245, 241, 232, .7); }
  .btn-mafia:hover { background: #F05A9C; }
  .icon-btn:hover { background: rgba(21, 22, 26, .06); border-color: rgba(21, 22, 26, .3); }
  .qayd-band .icon-btn:hover { background: rgba(244, 239, 228, .08); border-color: rgba(244, 239, 228, .4); }
}

/* ---------- Brand + header ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; color: var(--ink); flex: none; }
.brand-name { font: 700 18px/1.1 var(--font-display); }
.brand-name small { display: block; margin-top: 4px; font: 300 10.5px/1 var(--font-display); letter-spacing: .14em; color: var(--ink); }
.brand-name small b { font-weight: 700; letter-spacing: .04em; }
.brand-name small span { color: var(--saffron); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-stuck {
  background: rgba(245, 241, 232, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }

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

.hero { position: relative; padding-block: 8px 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 28% 48%, rgba(242, 169, 59, .16), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px;
  min-height: min(660px, calc(100svh - var(--header-h) - 64px));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: rgba(255, 255, 255, .45);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DAA5C; animation: live 1.6s var(--ease-sine) infinite alternate; }
@keyframes live { from { opacity: .35; } to { opacity: 1; } }

.hero-title { margin-top: 22px; font-size: clamp(44px, 5.3vw, 76px); line-height: 1.18; font-weight: 700; }
.hero-title > span { display: block; }
.underline { position: relative; z-index: 0; font-style: normal; }
.underline::after {
  content: ""; position: absolute; z-index: -1; inset-inline: -.04em; bottom: .12em; height: .2em;
  background: var(--saffron); border-radius: 4px;
  animation: draw 900ms var(--ease-out) 750ms both;
}
@keyframes draw { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

.hero-lead { margin-top: 22px; max-width: 38ch; font-size: 19px; color: var(--ink-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-products { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-products a {
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .5);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.hero-products img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.hero-products b { display: block; font: 600 15px/1.2 var(--font-display); }
.hero-products small { display: block; font: 400 12.5px/1.4 var(--font-body); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .hero-products a:hover { border-color: rgba(21, 22, 26, .32); background: rgba(255, 255, 255, .85); } }

.hero-in { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--h) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-visual { position: relative; }

/* ---------- Isometric scene ---------- */

.scene { display: block; width: 100%; height: auto; overflow: visible; }
.scene polygon { stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.scene .p.ft { fill: #FFFDF8; } .scene .p.fl { fill: #ECE6DA; } .scene .p.fr { fill: #DAD2C1; }
.scene .c.ft { fill: #FFFFFF; } .scene .c.fl { fill: #EFEAE0; } .scene .c.fr { fill: #E2DBCC; }
.scene .k.ft { fill: #24262D; } .scene .k.fl { fill: #131418; } .scene .k.fr { fill: #0B0C0E; }
.scene .y.ft { fill: #F7BD55; } .scene .y.fl { fill: #E39D2B; } .scene .y.fr { fill: #C8831C; }
.scene .q.ft { fill: #22626B; } .scene .q.fl { fill: #123E45; } .scene .q.fr { fill: #0B2A2F; }
.scene .m.ft { fill: #F36CA9; } .scene .m.fl { fill: #EC3F8C; } .scene .m.fr { fill: #C92E72; }
.scene .shadow { fill: var(--ink); fill-opacity: .07; stroke: none; }

.scene .grid path { stroke: rgba(21, 22, 26, .12); stroke-width: 1; fill: none; }
.scene .wire { fill: none; stroke: rgba(21, 22, 26, .38); stroke-width: 1.2; }
.scene .riser { fill: none; stroke: rgba(21, 22, 26, .38); stroke-width: 1.2; stroke-dasharray: 3 4; }
.scene .pulse { fill: none; stroke: var(--saffron); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 7 93; animation: pulse 3.2s linear infinite; animation-delay: var(--d); }
.scene .wires { animation: fade 800ms ease-out 1s both; }
@keyframes pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.scene .inset { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.scene .tick { stroke: rgba(255, 255, 255, .32); stroke-width: 1.2; }
.scene .ring { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.scene .hub { fill: var(--saffron); }
.scene .hub-glow { fill: var(--saffron); transform-box: fill-box; transform-origin: center; animation: glow 2.6s var(--ease-sine) infinite alternate; }
.scene .seat { fill: #FFFDF8; animation: seat 1.8s var(--ease-sine) infinite alternate; animation-delay: var(--s); }
@keyframes glow { from { transform: scale(.9); opacity: .12; } to { transform: scale(1.45); opacity: .32; } }
@keyframes seat { from { opacity: .35; } to { opacity: 1; } }

.scene .led { fill: #5BC84F; stroke: none; animation: blink 2.4s steps(1) infinite; animation-delay: var(--l); }
.scene .slot { stroke: var(--ink); stroke-width: 1.2; }
@keyframes blink { 50% { opacity: .2; } }

.scene .icon { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scene .icon path { vector-effect: non-scaling-stroke; }
.scene .icon-pink { stroke: var(--mafia-pink); }
.scene .icon-red .suit { fill: #D4001A; stroke: none; }

.scene .win { fill: var(--mafia-cream); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.scene .win-bar { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.scene .win-dot.d0 { fill: var(--mafia-pink); } .scene .win-dot.d1 { fill: var(--mafia-yellow); } .scene .win-dot.d2 { fill: var(--mafia-green); }
.scene .win-url { fill: #EFE9DC; }
.scene .win-text { font: 500 .15px var(--font-mono); fill: var(--muted); text-anchor: middle; direction: ltr; }

.scene .tags { animation: fade 600ms ease-out 1.3s both; }
.scene .tag rect { fill: rgba(245, 241, 232, .92); stroke: rgba(21, 22, 26, .22); stroke-width: 1; }
.scene .tag text { font: 500 11px var(--font-mono); letter-spacing: .06em; fill: var(--muted); text-anchor: middle; direction: ltr; }
.scene .tag-lead { stroke: rgba(21, 22, 26, .4); stroke-width: 1; }
.scene .tag-dot { fill: var(--ink); }

.scene .swap { opacity: 0; animation: swap 9s linear infinite; animation-delay: var(--sw); }
@keyframes swap { 0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }

.scene .drop { animation: drop 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.scene .bob { animation: bob 5.2s var(--ease-sine) infinite alternate; animation-delay: var(--b); }
@keyframes bob { to { transform: translateY(var(--amp, -6px)); } }

.scene.is-paused, .scene.is-paused * { animation-play-state: paused; }

/* ---------- Stats ---------- */

.stats { border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); padding-inline: 0; }
.stat { background: var(--paper); padding: 30px clamp(20px, 3vw, 32px); }
.stat b { display: block; font: 500 44px/1.1 var(--font-mono); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Section heads ---------- */

.section-head { max-width: 720px; }
.label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.label span { font: 500 13px/1 var(--font-mono); color: var(--saffron-ink); padding: 5px 8px; border: 1px solid currentColor; border-radius: 6px; }
.section-head h2 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.22; font-weight: 700; }
.section-head > p:last-child { margin-top: 18px; max-width: 52ch; font-size: 18px; color: var(--muted); }

/* ---------- Products ---------- */

.products { padding-top: clamp(88px, 11vw, 140px); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 56px; }

.product-id { display: flex; align-items: center; gap: 16px; }
.product-id img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.product-kind { font-size: 14px; color: var(--muted); }
.product-id h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; font-weight: 700; }
.product-lead { margin-top: 20px; max-width: 46ch; font-size: 19px; color: var(--ink-2); }

.features { margin-top: 28px; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features li > .i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; }
.features b { display: block; font: 600 16px/1.5 var(--font-display); }
.features span { font-size: 15px; line-height: 1.6; color: var(--muted); }

.product-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Jm3t Mafia — its own doodle language */
.mafia {
  background: var(--mafia-cream); border: 2px solid var(--ink); border-radius: 28px;
  padding: clamp(24px, 4.5vw, 56px); box-shadow: 8px 8px 0 var(--ink);
}
.mafia .features li > .i { background: #FFF1C2; }
.mafia .icon-btn { border: 2px solid var(--ink); }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px;
  font: 600 14px/1.5 var(--font-display); box-shadow: 2px 2px 0 var(--ink);
}
.chip-green { background: var(--mafia-green); }
.chip-cyan { background: var(--mafia-cyan); }
.chip-pink { background: #F57CB3; }

.mafia-visual { position: relative; aspect-ratio: 1 / .92; }
.browser {
  position: absolute; top: 16%; left: 0; width: 90%;
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(-2.5deg);
}
.browser-bar { direction: ltr; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #FFF6DB; border-bottom: 2px solid var(--ink); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); }
.browser-bar i:nth-child(1) { background: var(--mafia-pink); }
.browser-bar i:nth-child(2) { background: var(--mafia-yellow); }
.browser-bar i:nth-child(3) { background: var(--mafia-green); }
.browser-bar span { margin-inline: auto; padding: 2px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink); font: 500 12px/1.4 var(--font-mono); }
.browser img { display: block; width: 100%; }

.boss {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1;
  border-radius: 50%; border: 2px solid var(--ink); background: #fff; overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  animation: float 6s var(--ease-sine) infinite alternate;
}
.boss img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bubble {
  position: absolute; top: 0; right: 6%;
  padding: 8px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  font: 700 clamp(16px, 1.8vw, 22px)/1.4 var(--font-display); box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
}
.doodle { position: absolute; width: 36px; height: 36px; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; animation: twinkle 4s var(--ease-sine) infinite alternate; }
.d1 { top: 4%; left: 6%; fill: var(--mafia-yellow); }
.d2 { bottom: 20%; left: 2%; width: 28px; height: 28px; fill: var(--mafia-pink); animation-delay: -1.3s; }
.d3 { top: 50%; right: 46%; width: 24px; height: 24px; fill: var(--mafia-cyan); animation-delay: -2.4s; }
@keyframes float { from { transform: translateY(0) rotate(3deg); } to { transform: translateY(-10px) rotate(1deg); } }
@keyframes twinkle { from { transform: rotate(-10deg) scale(.92); } to { transform: rotate(12deg) scale(1.06); } }

/* Qayd — petrol & gold, matching its store art */
.qayd-band {
  position: relative; overflow: hidden; margin-top: clamp(88px, 11vw, 140px);
  padding-block: clamp(72px, 9vw, 120px); background: var(--qayd-petrol); color: var(--qayd-cream);
}
.qayd-band::before, .qayd-band::after {
  content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(217, 174, 94, .35); pointer-events: none;
}
.qayd-band::before { width: 1400px; height: 1400px; top: -1240px; left: -520px; }
.qayd-band::after { width: 1100px; height: 1100px; bottom: -960px; right: -420px; border-color: rgba(217, 174, 94, .2); }
.qayd { position: relative; margin-top: 0; }
.qayd .product-kind { color: rgba(244, 239, 228, .68); }
.qayd .product-lead { color: rgba(244, 239, 228, .86); }
.qayd .product-id img, .legal-hero img { box-shadow: 0 0 0 1px rgba(244, 239, 228, .22); }
.qayd .features li > .i { background: rgba(217, 174, 94, .14); color: var(--qayd-gold); }
.qayd .features span { color: rgba(244, 239, 228, .7); }
.qayd .features b { color: var(--qayd-cream); }

.games { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.games li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(217, 174, 94, .4); background: rgba(255, 255, 255, .05); font-size: 15px; font-weight: 500; }
.games small { font-size: 12px; opacity: .65; margin-inline-start: 4px; }

.stores { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 20px;
  border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}
.store .i { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; font: 600 19px/1.15 var(--font-display); }
.store small { font: 400 12px/1.3 var(--font-body); opacity: .75; }
.store:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); } }

.phones { position: relative; aspect-ratio: 1 / 1.02; }
.phone {
  position: absolute; top: 50%; padding: 2.2%;
  border-radius: 15% / 7%; background: #0B0C0E;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px #2F3137;
  transition: transform 500ms var(--ease-out);
}
.phone img { display: block; width: 100%; border-radius: 12.5% / 5.8%; }
.p-center { left: 50%; width: 43%; z-index: 2; transform: translate(-50%, -50%); }
.p-side { width: 36%; }
.p-side img { filter: brightness(.82); }
.p-right { right: 1%; transform: translateY(-46%) rotate(8deg); }
.p-left { left: 1%; transform: translateY(-46%) rotate(-8deg); }
@media (hover: hover) and (pointer: fine) {
  .phones:hover .p-center { transform: translate(-50%, -52%); }
  .phones:hover .p-right { transform: translate(4%, -46%) rotate(11deg); }
  .phones:hover .p-left { transform: translate(-4%, -46%) rotate(-11deg); }
}

.tour { position: relative; margin-top: clamp(64px, 8vw, 104px); }
.tour-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tour-head h3 { font-size: 24px; font-weight: 600; }
.tour-nav { display: flex; gap: 8px; }
.tour-nav .icon-btn { border-color: rgba(244, 239, 228, .25); }
.tour-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-track img { flex: none; display: block; height: clamp(420px, 62vh, 640px); width: auto; scroll-snap-align: start; border-radius: 18px; }

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

.studio { padding-block: clamp(88px, 11vw, 140px); }
.process { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.process::before, .process::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1.5px; }
.process::before { background: var(--line); }
.process::after { background: var(--saffron); clip-path: inset(0 0 0 100%); transition: clip-path 1400ms var(--ease-out) 150ms; }
.process.is-in::after { clip-path: inset(0 0 0 0); }
.process li { position: relative; padding-top: 34px; }
.process li::before {
  content: ""; position: absolute; top: -6px; right: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  transition: background-color 300ms ease calc(var(--rd, 0ms) + 350ms);
}
.process li.is-in::before { background: var(--saffron); }
.step { font: 500 13px/1 var(--font-mono); color: var(--saffron-ink); }
.process h3 { margin-top: 14px; font-size: 22px; font-weight: 600; }
.process p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* ---------- Contact + footer ---------- */

.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(88px, 11vw, 136px); text-align: center; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, rgba(245, 241, 232, .06) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(150deg, rgba(245, 241, 232, .06) 0 1px, transparent 1px 36px);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact-mark { width: 64px; height: 64px; color: var(--paper); }
.contact h2 { margin-top: 28px; font-size: clamp(34px, 5vw, 64px); line-height: 1.2; font-weight: 700; }
.contact p { margin-top: 18px; max-width: 48ch; font-size: 18px; color: rgba(245, 241, 232, .72); }
.contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(245, 241, 232, .1); padding-block: 32px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.brand-light .brand-mark { color: var(--paper); }
.brand-light .brand-name small { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer-links a { color: rgba(245, 241, 232, .72); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--paper); } }
.copy { font-size: 14px; color: rgba(245, 241, 232, .5); }

/* ---------- Qayd legal & support pages ---------- */

.legal-hero { background: var(--qayd-petrol); color: var(--qayd-cream); padding-block: clamp(48px, 7vw, 88px); }
.legal-hero-inner { display: flex; align-items: center; gap: 22px; }
.legal-hero img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.legal-kicker { font-size: 15px; font-weight: 500; color: var(--qayd-gold); }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; font-weight: 700; }
.legal-meta { margin-top: 8px; max-width: 56ch; font-size: 16px; color: rgba(244, 239, 228, .72); }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: 64px 112px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 15px; }
.legal-toc p { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { display: grid; gap: 4px; border-inline-start: 1.5px solid var(--line); }
.legal-toc a { display: block; padding: 6px 16px; color: var(--ink-2); margin-inline-start: -1.5px; border-inline-start: 1.5px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--ink); border-color: var(--saffron); } }

.legal { max-width: 760px; }
.legal section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.3; }
.legal h2 span { font: 500 13px/1 var(--font-mono); color: var(--saffron-ink); padding: 5px 8px; border: 1px solid currentColor; border-radius: 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; display: grid; gap: 10px; }
.legal ul li { position: relative; padding-inline-start: 22px; }
.legal ul li::before { content: ""; position: absolute; top: .78em; right: 2px; width: 7px; height: 7px; border-radius: 2px; background: var(--saffron); }
.legal b { color: var(--ink); font-weight: 600; }
.legal a, .faq a { color: var(--qayd-petrol); text-decoration: underline; text-decoration-color: rgba(18, 62, 69, .35); text-underline-offset: 4px; }
.legal-note { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(18, 62, 69, .07); color: var(--qayd-petrol) !important; font-weight: 500; }
.legal-note .i { width: 24px; height: 24px; }
.legal-contact { margin: 18px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.legal-contact div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #FBF8F2; }
.legal-contact dt { color: var(--muted); }
.legal-contact dd { margin: 0; font-weight: 500; }

.legal-narrow { max-width: 860px; padding-block: 56px 112px; }
.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px;
  background: #FBF8F2; border: 1px solid var(--line);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.support-card > .i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--qayd-petrol); color: var(--qayd-gold); }
.support-card b { display: block; font: 600 18px/1.4 var(--font-display); }
.support-card small { display: block; font-size: 14px; color: var(--muted); }
.support-card em { display: block; margin-top: 8px; font: 500 15px/1.4 var(--font-mono); font-style: normal; color: var(--qayd-petrol); text-align: right; }
.support-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .support-card:hover { border-color: rgba(18, 62, 69, .45); transform: translateY(-2px); } }

.faq-title { margin-top: 64px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; }
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font: 500 18px/1.5 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 200ms var(--ease-out); color: var(--muted); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p, .faq details ol { margin: 0 4px 20px; color: var(--ink-2); max-width: 64ch; }
.faq details p + ol { margin-top: -8px; }
.faq details ol { padding-inline-start: 22px; list-style: decimal; display: grid; gap: 6px; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; padding-top: 40px; }
  .legal-toc { position: static; }
  .support-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .legal-hero-inner { align-items: flex-start; }
  .legal-hero img { width: 56px; height: 56px; border-radius: 14px; }
  .legal-contact div { flex-direction: column; gap: 2px; }
}

/* ---------- Scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

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

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 24px; }
  .hero-visual { width: min(720px, 100%); margin-inline: auto; }
  .product { grid-template-columns: 1fr; }
  .mafia-visual { width: min(560px, 100%); margin-inline: auto; }
  .phones { width: min(520px, 100%); margin-inline: auto; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .process::before, .process::after { display: none; }
  .process li { border-top: 1.5px solid var(--line); }
}
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name small { display: none; }
  .hero-lead { font-size: 17px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 36px; }
  .mafia { box-shadow: 5px 5px 0 var(--ink); border-radius: 22px; }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .tour-track img { height: 460px; }
  .coord { display: none; }
}

/* ---------- Reduced motion: keep fades, drop movement ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-in { animation-name: fade; }
  .underline::after { animation: none; }
  .scene .drop { animation-name: fade; }
  .scene .bob, .scene .pulse, .scene .led, .scene .seat, .scene .hub-glow, .scene .swap,
  .boss, .doodle, .live-dot { animation: none; }
  .scene .pulse { opacity: 0; }
  html.js [data-reveal] { transform: none; transition: opacity 500ms ease; }
  .phone, .store { transition: none; }
  .process::after { transition: none; }
}

/* ---------- Pop Sky — candy sky, pixel clouds ---------- */

.popsky {
  margin-top: clamp(88px, 11vw, 140px); padding: clamp(24px, 4.5vw, 56px);
  background: linear-gradient(180deg, #DDF3FF 0%, #FFF1F6 100%); border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(21, 22, 26, .08);
}
.popsky .product-id img { image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(21, 22, 26, .12); }
.popsky .product-id h3 { text-align: start; }
.product-lead-en { margin-top: 10px; font-size: 16px; color: var(--muted); text-align: left; }
.popsky .chips li { background: #fff; }
.popsky .chips li:nth-child(1) { background: #FFD8E8; }
.popsky .chips li:nth-child(2) { background: #CFEFFF; }
.popsky .chips li:nth-child(3) { background: #FFF2B8; }
.store-soon { cursor: default; opacity: .55; }
.store-soon:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .store-soon:hover { transform: none; border-color: rgba(255, 255, 255, .22); } }
.popsky-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; }
.popsky-visual img {
  position: relative; width: min(62%, 300px); border-radius: 22%; image-rendering: pixelated;
  box-shadow: 0 30px 60px -28px rgba(18, 62, 120, .55); animation: float 4.5s var(--ease-sine) infinite alternate;
}
.cloud {
  position: absolute; width: 18%; aspect-ratio: 3 / 1; background: #fff;
  box-shadow: 8px -8px 0 #fff, -8px -8px 0 #fff, 0 0 0 0 #fff;
}
.cloud.c1 { top: 12%; right: 6%; }
.cloud.c2 { top: 46%; left: 2%; width: 14%; }
.cloud.c3 { bottom: 8%; right: 16%; width: 12%; }
@media (max-width: 1024px) { .popsky-visual { width: min(480px, 100%); margin-inline: auto; } }
@media (max-width: 640px) { .popsky { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .popsky-visual img { animation: none; } }
