/* =============================================================
   MyAppShop — stylesheet
   Layout uses logical properties throughout, so right-to-left
   languages mirror correctly with no extra rules.
   ============================================================= */

/* ---------- tokens ------------------------------------------ */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-rtl: 'Vazirmatn', 'Cairo', 'Inter', system-ui, sans-serif;

  --brand: #7c6cf6;
  --brand-2: #22d3ee;
  --brand-3: #f472b6;

  --bg: #0b0d17;
  --bg-2: #10131f;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #eef1f8;
  --text-dim: #a6adc3;
  --text-faint: #737b93;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .55);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --pad: clamp(18px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .82);
  --surface-2: #ffffff;
  --border: rgba(16, 20, 40, .10);
  --border-strong: rgba(16, 20, 40, .18);
  --text: #131728;
  --text-dim: #545c74;
  --text-faint: #7b8296;
  --shadow: 0 24px 60px -26px rgba(20, 24, 60, .28);
  --shadow-sm: 0 10px 28px -16px rgba(20, 24, 60, .25);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: var(--font-rtl); line-height: 1.9; }

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: color-mix(in srgb, var(--brand) 45%, transparent); }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { inset-inline-start: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container.narrow { max-width: 820px; }

/* ---------- background art ---------------------------------- */
.bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 26s ease-in-out infinite; }
.orb-1 { width: 46vw; height: 46vw; background: var(--brand); top: -14vw; inset-inline-start: -10vw; }
.orb-2 { width: 40vw; height: 40vw; background: var(--brand-2); top: 34vh; inset-inline-end: -12vw; animation-delay: -8s; opacity: .38; }
.orb-3 { width: 34vw; height: 34vw; background: var(--brand-3); bottom: -10vw; inset-inline-start: 24vw; animation-delay: -16s; opacity: .30; }
[data-theme="light"] .orb { opacity: .22; filter: blur(110px); }
[data-theme="light"] .orb-2 { opacity: .18; }
[data-theme="light"] .orb-3 { opacity: .14; }

.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  opacity: .5;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4vw, 5vh, 0) scale(1.08); }
  66% { transform: translate3d(-3vw, -4vh, 0) scale(.95); }
}

/* ---------- buttons ------------------------------------------ */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--btn-bg); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 65%, var(--brand)));
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--brand) 85%, transparent); }

.btn-ghost { background: var(--surface); backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

.btn-invert { background: #fff; color: #16182b; border-color: transparent; }
[data-theme="light"] .btn-invert { background: #14162a; color: #fff; }

/* ---------- header ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; }
.brand-name { font-size: 1.06rem; }
.brand-name span { color: var(--brand-2); }

.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a {
  position: relative; padding: 9px 14px; border-radius: 999px; font-size: .93rem;
  color: var(--text-dim); font-weight: 500; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.is-current { color: var(--text); }
.site-nav a.is-current::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 40px; padding-inline: 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; color: var(--text-dim);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.lang-code { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

.ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }

/* language menu */
.lang-switch { position: relative; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 120;
  min-width: 236px; padding: 8px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: pop .18s var(--ease);
  max-height: 60vh; overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-menu li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  cursor: pointer; font-size: .92rem; transition: background .16s;
}
.lang-menu li:hover { background: var(--surface-2); }
.lang-menu li.is-active { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.lang-menu .flag { font-size: 1.1rem; line-height: 1; }
.lang-menu .native { font-weight: 600; }
.lang-menu .latin { margin-inline-start: auto; color: var(--text-faint); font-size: .8rem; }

/* mobile nav */
.menu-btn { display: none; }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .bars i:nth-child(2) { opacity: 0; }
.nav-open .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero --------------------------------------------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #22c55e 8%, transparent); } }

.hero-title {
  margin-block: 22px 18px;
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  font-weight: 800;
}
.hero-title span { display: inline; }
.grad {
  background: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% auto; animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.hero-sub { max-width: 55ch; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--text-dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 30px 40px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px); margin: 0; }
.hero-stats dt { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.hero-stats dd { margin: 2px 0 0; font-size: .84rem; color: var(--text-faint); }

.scroll-hint {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 42px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-hint i { width: 1px; height: 26px; background: linear-gradient(var(--text-faint), transparent); }

/* hero artwork */
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.phone {
  position: relative; width: min(272px, 70vw); aspect-ratio: 9 / 18.6;
  border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 40%, var(--bg-2)), var(--bg-2));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.phone-notch { position: absolute; top: 12px; inset-inline: 0; margin-inline: auto; width: 84px; height: 20px; border-radius: 0 0 14px 14px; background: rgba(0, 0, 0, .55); }
.phone-screen {
  height: 100%; border-radius: 30px; padding: 34px 16px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 92%, var(--brand)), var(--bg-2));
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.ps-row { display: flex; align-items: center; gap: 10px; }
.ps-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.ps-lines { display: grid; gap: 5px; flex: 1; }
.ps-lines i, .ps-card i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.ps-card { position: relative; display: grid; gap: 7px; padding: 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.ps-card-1 { animation: float 6s ease-in-out infinite .4s; }
.ps-chip { position: absolute; inset-inline-end: 12px; top: 12px; width: 26px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.ps-bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.ps-bars span { flex: 1; height: var(--h); border-radius: 5px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); opacity: .85; }
.ps-tabs { margin-top: auto; display: flex; gap: 14px; justify-content: center; padding-top: 10px; border-top: 1px solid var(--border); }
.ps-tabs i { width: 22px; height: 4px; border-radius: 3px; background: var(--surface-2); }
.ps-tabs i:first-child { background: var(--brand); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 14px; font-size: .84rem; font-weight: 700;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); animation: float 6.5s ease-in-out infinite;
}
.float-card b { direction: ltr; unicode-bidi: isolate; }
.float-card .fc-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .78rem; }
.fc-1 { top: 12%; inset-inline-start: 2%; animation-delay: -1s; }
.fc-2 { bottom: 20%; inset-inline-end: 0%; animation-delay: -3s; }
.fc-3 { bottom: 6%; inset-inline-start: 8%; animation-delay: -5s; }

/* placeholder bars inside the phone need a visible tone on light backgrounds */
[data-theme="light"] .ps-lines i,
[data-theme="light"] .ps-card i,
[data-theme="light"] .ps-tabs i { background: rgba(16, 20, 40, .12); }
[data-theme="light"] .ps-tabs i:first-child { background: var(--brand); }
[data-theme="light"] .phone-screen { background: linear-gradient(180deg, #eef0fb, #f8f9fe); }
[data-theme="light"] .ps-card, [data-theme="light"] .ps-bars { background: #fff; border-color: rgba(16, 20, 40, .08); }

/* ---------- trust marquee ------------------------------------ */
.trust { padding-block: 10px 46px; }
.trust-title { text-align: center; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.logo-pill {
  padding: 10px 22px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-weight: 600; font-size: .92rem;
}

/* ---------- sections ----------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-alt::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-block: 12px 14px; }
.section-head p { color: var(--text-dim); }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: transparent; background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- filters ------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.chip {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  transition: all .22s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 60%, var(--brand)));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--brand) 90%, transparent);
}

/* ---------- product cards ------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.empty-note { text-align: center; color: var(--text-faint); padding-block: 40px; }

.product {
  position: relative; display: flex; flex-direction: column; gap: 13px;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); overflow: hidden;
  transition: transform .34s var(--ease), border-color .34s, box-shadow .34s;
  animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.product::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .34s;
  background: radial-gradient(600px circle at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
}
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.product:hover::before { opacity: 1; }
.product > * { position: relative; }

.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.product-ico svg { width: 24px; height: 24px; }
.product-tag {
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}
.product h3 { font-size: 1.22rem; }
.product > p { color: var(--text-dim); font-size: .93rem; }

.platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.platforms li {
  padding: 4px 10px; border-radius: 7px; font-size: .74rem; color: var(--text-faint);
  border: 1px solid var(--border); background: var(--surface-2);
}

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.rating { font-size: .85rem; font-weight: 700; color: #fbbf24; }
.rating i { font-style: normal; color: var(--text-faint); font-weight: 500; margin-inline-start: 5px; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; font-weight: 600; color: var(--accent); }
.product-link svg { transition: transform .25s var(--ease); }
[dir="rtl"] .product-link svg { transform: scaleX(-1); }
.product-link:hover svg { transform: translateX(4px); }
[dir="rtl"] .product-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- features ----------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.feature {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, transparent), color-mix(in srgb, var(--brand-2) 18%, transparent));
  color: var(--brand-2); border: 1px solid var(--border);
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: .92rem; }

/* ---------- process ------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step::after {
  content: ''; position: absolute; top: 46px; inset-inline-end: -18px; width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.steps .step:last-child::after { display: none; }
.step-num {
  display: inline-block; margin-bottom: 12px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .91rem; }

/* ---------- reviews ------------------------------------------ */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review {
  margin: 0; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), border-color .3s;
}
.review:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stars { color: #fbbf24; letter-spacing: 3px; font-size: .95rem; }
.review blockquote { margin: 0; font-size: .97rem; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review figcaption span:last-child { display: grid; }
.review figcaption b { font-size: .92rem; }
.review figcaption i { font-style: normal; font-size: .8rem; color: var(--text-faint); }
.av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: .82rem; font-weight: 700; color: #fff; flex: none; }
.av-a { background: linear-gradient(135deg, #7c6cf6, #22d3ee); }
.av-b { background: linear-gradient(135deg, #22c55e, #a3e635); }
.av-c { background: linear-gradient(135deg, #f472b6, #f59e0b); }

/* ---------- contact / form ----------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-block: 12px 14px; }
.contact-copy .lead { color: var(--text-dim); }
.check-list { display: grid; gap: 12px; margin-block: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .93rem; color: var(--text-dim); }
.check-list svg { flex: none; margin-top: 4px; color: #22c55e; }
.contact-direct { display: grid; gap: 6px; font-weight: 600; }
.contact-direct a { color: var(--brand-2); font-size: .95rem; }
.contact-direct bdi, .footer-grid bdi { unicode-bidi: isolate; }
.contact-direct a:hover { text-decoration: underline; }

.form-card {
  position: relative; padding: clamp(22px, 3.4vw, 34px); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(18px);
}

.field { display: grid; gap: 7px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: .84rem; font-weight: 600; color: var(--text-dim); padding: 0; }

.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .94rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 108px; }
.field select { appearance: none; cursor: pointer; padding-inline-end: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
[dir="rtl"] .field select { background-position: left 13px center, left 18px center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field .is-invalid { border-color: #ef4444; }
.err { color: #f87171; font-size: .78rem; min-height: 1em; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented label, .chips-input label { position: relative; cursor: pointer; }
.segmented input, .chips-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented span, .chips-input span {
  display: block; text-align: center; padding: 11px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-size: .87rem; font-weight: 500;
  color: var(--text-dim); transition: all .2s var(--ease);
}
.segmented label:hover span, .chips-input label:hover span { border-color: var(--border-strong); color: var(--text); }
.segmented input:checked + span, .chips-input input:checked + span {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, transparent), color-mix(in srgb, var(--brand-2) 62%, var(--brand)));
  color: #fff; border-color: transparent;
}
.segmented input:focus-visible + span, .chips-input input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input span { padding-inline: 16px; border-radius: 999px; }

.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-note { margin-top: 12px; font-size: .78rem; color: var(--text-faint); text-align: center; }
.form-fail { margin-top: 10px; font-size: .85rem; color: #f87171; text-align: center; }
#submit-btn { margin-top: 6px; }

.form-success { display: grid; gap: 12px; justify-items: center; text-align: center; padding-block: 34px; }
.success-ico {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: color-mix(in srgb, #22c55e 18%, transparent); color: #22c55e;
  border: 1px solid color-mix(in srgb, #22c55e 40%, transparent);
}
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--text-dim); max-width: 40ch; }

/* ---------- FAQ ---------------------------------------------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .25s, background .25s; }
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  position: relative; flex: none; width: 18px; height: 18px;
}
.faq-item summary i::before, .faq-item summary i::after {
  content: ''; position: absolute; inset-inline-start: 50%; top: 50%; background: var(--brand-2);
  border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .2s;
}
.faq-item summary i::before { width: 14px; height: 2px; }
.faq-item summary i::after { width: 2px; height: 14px; }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-body { padding: 0 22px 20px; color: var(--text-dim); font-size: .94rem; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- CTA band ----------------------------------------- */
.cta-band { padding-block: clamp(40px, 6vw, 72px); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 88%, transparent), color-mix(in srgb, var(--brand-2) 72%, var(--brand)));
  color: #fff; box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--brand) 90%, transparent);
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ''; position: absolute; inset-inline-end: -10%; top: -60%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 60%);
}
.cta-inner > div { position: relative; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 6px; }
.cta-inner p { opacity: .88; }
.cta-inner .btn { position: relative; }

/* ---------- footer ------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 60%, transparent); padding-block: clamp(38px, 5vw, 60px) 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-tagline { margin-top: 14px; color: var(--text-dim); font-size: .92rem; max-width: 34ch; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-grid nav, .footer-grid > div:nth-child(3) { display: grid; gap: 9px; align-content: start; }
.footer-grid a:not(.brand) { color: var(--text-dim); font-size: .92rem; transition: color .2s; }
.footer-grid a:not(.brand):hover { color: var(--brand-2); }
.socials { display: flex; gap: 9px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  transition: all .22s var(--ease);
}
.socials a:hover { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; transform: translateY(-2px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-faint);
}
.to-top:hover { color: var(--brand-2); }

/* ---------- reveal animation --------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive --------------------------------------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-art { order: -1; min-height: 330px; }
  .phone { width: min(228px, 60vw); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 90;
    flex-direction: column; gap: 2px; margin: 0; padding: 14px var(--pad) 22px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 13px 16px; font-size: 1rem; }
  .site-nav a.is-current::after { display: none; }
}

@media (max-width: 620px) {
  /* Long labels in some languages are wider than a phone; let them wrap. */
  .btn { white-space: normal; }
  .field-row { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .float-card { font-size: .76rem; padding: 8px 12px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print -------------------------------------------- */
@media print {
  .bg-aurora, .site-header, .cta-band, .marquee, .hero-art, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- product detail page ------------------------------- */
.pv-nav { display: flex; align-items: center; gap: 18px; margin-inline-end: auto; min-width: 0; }
.pv-back {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  font-size: .88rem; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.pv-back:hover { color: var(--text); border-color: var(--border-strong); }
.pv-back svg { transition: transform .25s var(--ease); }
[dir="rtl"] .pv-back svg { transform: scaleX(-1); }
.pv-back:hover svg { transform: translateX(-3px); }
[dir="rtl"] .pv-back:hover svg { transform: scaleX(-1) translateX(-3px); }

.pv-page { padding-block: clamp(30px, 6vw, 60px) clamp(50px, 8vw, 90px); }

.pv-hero { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: clamp(40px, 7vw, 76px); }
.pv-ico {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 20px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 20px 50px -22px color-mix(in srgb, var(--accent) 85%, transparent);
}
.pv-ico svg { width: 40px; height: 40px; }
.pv-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-block: 14px 16px; }
.pv-lead { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 56ch; margin-inline: auto; }
.pv-platforms { justify-content: center; margin-top: 22px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.pv-section { margin-bottom: clamp(38px, 6vw, 66px); }
.pv-h { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }

/* placeholder screenshots */
.pv-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pv-shot {
  margin: 0; padding: 14px; border-radius: 26px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 26%, var(--bg-2)), var(--bg-2));
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease);
}
.pv-shot:hover { transform: translateY(-6px); }
.pv-screen {
  aspect-ratio: 9 / 13.5; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 92%, var(--accent)); border: 1px solid var(--border);
}
.pv-bar { height: 11px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.pv-tile { display: grid; gap: 7px; padding: 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.pv-tile i, .pv-lines i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
[data-theme="light"] .pv-tile i, [data-theme="light"] .pv-lines i { background: rgba(16, 20, 40, .12); }
.w35 { width: 35%; } .w55 { width: 55%; } .w65 { width: 65%; }
.pv-chart { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding: 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.pv-chart span { flex: 1; height: var(--h); border-radius: 5px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, white), var(--accent)); }
.pv-avatar-row { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.pv-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--accent) 70%, transparent); }
.pv-lines { display: grid; gap: 5px; flex: 1; }
.pv-pill { margin-top: auto; height: 34px; border-radius: 999px; flex: none; background: color-mix(in srgb, var(--accent) 72%, transparent); }
.pv-tile, .pv-avatar-row, .pv-chart { flex: none; }

.pv-columns { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: clamp(38px, 6vw, 66px); }
.pv-long { color: var(--text-dim); font-size: 1rem; margin-bottom: 34px; }
.pv-highlights { display: grid; gap: 12px; }
.pv-highlights li {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  font-size: .95rem; transition: border-color .25s, transform .25s var(--ease);
}
.pv-highlights li:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateX(3px); }
[dir="rtl"] .pv-highlights li:hover { transform: translateX(-3px); }
.pv-highlights svg { flex: none; margin-top: 3px; color: var(--accent); }

.pv-specs { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); position: sticky; top: calc(var(--header-h) + 20px); }
.pv-specs dl { display: grid; gap: 0; }
.pv-specs dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--border); }
.pv-specs dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pv-specs dt { font-size: .82rem; color: var(--text-faint); flex: none; }
.pv-specs dd { margin: 0; font-size: .9rem; font-weight: 600; text-align: end; }
.pv-rating { color: #fbbf24; }

.pv-cta { padding-block: 0; margin-bottom: clamp(38px, 6vw, 66px); }
.pv-cta .cta-inner { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 92%, transparent), color-mix(in srgb, var(--accent) 55%, var(--brand-2))); box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--accent) 90%, transparent); }

.pv-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pv-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .28s var(--ease), border-color .28s, background .28s;
}
.pv-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--surface-2); }
.pv-card .product-ico { width: 42px; height: 42px; border-radius: 13px; flex: none; }
.pv-card .product-ico svg { width: 20px; height: 20px; }
.pv-card-text { display: grid; flex: 1; min-width: 0; }
.pv-card-text b { font-size: .95rem; }
.pv-card-text i { font-style: normal; font-size: .78rem; color: var(--text-faint); }
.pv-card > svg:last-child { flex: none; color: var(--text-faint); transition: transform .25s var(--ease); }
[dir="rtl"] .pv-card > svg:last-child { transform: scaleX(-1); }
.pv-card:hover > svg:last-child { transform: translateX(4px); }
[dir="rtl"] .pv-card:hover > svg:last-child { transform: scaleX(-1) translateX(4px); }

.pv-missing { text-align: center; display: grid; gap: 20px; justify-items: center; padding-block: clamp(60px, 14vw, 140px); }
.pv-missing h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); }

@media (max-width: 900px) {
  .pv-columns { grid-template-columns: 1fr; }
  .pv-specs { position: static; }
}
@media (max-width: 560px) {
  .pv-actions { flex-direction: column; align-items: stretch; }
  .pv-nav { gap: 10px; }
  .pv-back span { display: none; }
  .pv-back { padding: 8px 11px; }
}
