/* HomiOptimizer website — one stylesheet, no framework. Dark neon by default (like the app), light on request. */

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx-var.woff2") format("woff2-variations"), url("../fonts/iransansx-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink: #ff2bd6;
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --lime: #39ff88;
  --amber: #ffc93f;
  --bg: #06060d;
  --bg-2: #0a0a15;
  --surface: #0f0f1d;
  --surface-2: #16162a;
  --text: #f4f2ff;
  --muted: #a7a2c9;
  --line: rgba(255, 255, 255, 0.09);
  --line-glow: rgba(255, 43, 214, 0.32);
  --glass: rgba(16, 15, 30, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 100px -40px rgba(255, 43, 214, 0.45), 0 30px 80px -40px rgba(0, 229, 255, 0.35);
  --brand-text: #ff6be3;
  --radius: 22px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --pink: #d417ad;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --lime: #059669;
  --amber: #d97706;
  --bg: #f8f7fd;
  --bg-2: #f0eef9;
  --surface: #ffffff;
  --surface-2: #f4f2fb;
  --text: #13102a;
  --muted: #555175;
  --line: rgba(19, 16, 42, 0.1);
  --line-glow: rgba(212, 23, 173, 0.25);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 1px 2px rgba(19, 16, 42, 0.06), 0 14px 34px -14px rgba(19, 16, 42, 0.2);
  --shadow-lg: 0 40px 90px -40px rgba(212, 23, 173, 0.4), 0 30px 70px -40px rgba(8, 145, 178, 0.3);
  --brand-text: #b3128f;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "IRANSansX", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--pink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.12rem; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 12px rgba(124, 131, 255, 0.45)); }
.brand small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.brand b { display: block; line-height: 1.3; }
.nav-links { display: flex; gap: 2px; margin: 0; margin-inline-start: auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 999px; font-size: 0.93rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
}
.icon-btn .icon { width: 20px; height: 20px; }
.menu-btn { display: none; }
.theme-dark-icon { display: none; }
:root[data-theme="light"] .theme-dark-icon { display: block; }
:root[data-theme="light"] .theme-light-icon { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px; border-radius: 16px;
  font: inherit; font-weight: 800; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #ff2bd6, #a855f7 55%, #22d3ee);
  background-size: 160% 100%;
  box-shadow: 0 12px 34px -12px rgba(255, 43, 214, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: sheen 6s ease-in-out infinite alternate;
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(255, 43, 214, 0.95), 0 0 0 4px rgba(255, 43, 214, 0.15); }
@keyframes sheen { to { background-position: 100% 0; } }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-glow); }
.btn-sm { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: 0.9rem; }
.btn .btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.btn small { display: block; font-weight: 500; font-size: 0.74rem; opacity: 0.88; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 110px; overflow: hidden; isolation: isolate; }
.aurora {
  position: absolute; inset: -30% -10% auto; height: 1000px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 45% at 82% 25%, rgba(255, 43, 214, 0.28), transparent 70%),
    radial-gradient(34% 42% at 18% 40%, rgba(0, 229, 255, 0.2), transparent 70%),
    radial-gradient(30% 36% at 50% 75%, rgba(139, 92, 246, 0.2), transparent 70%);
  filter: blur(14px);
  animation: drift 20s ease-in-out infinite alternate;
}
:root[data-theme="light"] .aurora { opacity: 0.55; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 25%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(0, 50px, 0) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: 48px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 999px;
  border: 1px solid var(--line-glow); background: var(--glass); font-size: 0.87rem; color: var(--muted); backdrop-filter: blur(8px);
}
.pill b { padding: 2px 10px; border-radius: 999px; background: linear-gradient(120deg, var(--pink), var(--violet)); color: #fff; font-size: 0.76rem; }
.hero h1 { margin-top: 22px; font-size: clamp(2.15rem, 4.5vw, 3.7rem); font-weight: 900; line-height: 1.28; }
.grad { background: linear-gradient(115deg, var(--pink) 5%, var(--violet) 50%, var(--cyan) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.5vw, 1.17rem); color: var(--muted); max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--cyan); }

/* app window mockup */
.stage { position: relative; perspective: 1600px; }
.window {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #05050a; border: 1px solid rgba(255, 43, 214, 0.35);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.stage .window { transform: rotateY(9deg) rotateX(3deg); transition: transform 0.8s var(--ease); animation: float 8s ease-in-out infinite; }
html[dir="rtl"] .stage .window { transform: rotateY(-9deg) rotateX(3deg); }
.stage:hover .window { transform: none; }
@keyframes float { 50% { translate: 0 -12px; } }
.win-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-inline: 14px; background: #0c0c16; border-bottom: 1px solid rgba(255, 255, 255, 0.06); direction: ltr; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a3d; }
.win-bar span { margin-inline-start: auto; font-size: 11px; color: #8a86a8; letter-spacing: 0.02em; }
.window img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 0.84rem; line-height: 1.55; animation: float 6s ease-in-out infinite; z-index: 2;
}
.float-card b { display: block; font-size: 0.92rem; }
.float-card small { color: var(--muted); }
.badge-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; flex: none; background: linear-gradient(135deg, var(--c1, #ff2bd6), var(--c2, #9d174d)); box-shadow: 0 8px 20px -8px var(--c1, #ff2bd6); }
.badge-ic .icon { width: 20px; height: 20px; }
.fc-1 { top: -18px; inset-inline-end: 8%; animation-delay: -2s; }
.fc-2 { bottom: 14%; inset-inline-start: -28px; animation-delay: -4s; --c1: #22d3ee; --c2: #0e7490; }
.fc-3 { bottom: -22px; inset-inline-end: 14%; --c1: #39ff88; --c2: #047857; }
.fc-2 .badge-ic { --c1: #22d3ee; --c2: #0e7490; }
.fc-3 .badge-ic { --c1: #22c55e; --c2: #047857; }

/* ---------- sections ---------- */
section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 800; color: var(--brand-text); margin-bottom: 12px;
  padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--pink) 12%, transparent); border: 1px solid var(--line-glow);
}
.head h2, .h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 900; }
.head p { margin-top: 16px; color: var(--muted); font-size: 1.07rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: 2.1rem; font-weight: 900; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* showcase */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tabs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tab {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 0.95rem; text-align: start; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tab .icon { width: 22px; height: 22px; }
.tab:hover { background: var(--surface); color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--line-glow); box-shadow: var(--shadow); }
.tab[aria-selected="true"] .icon { color: var(--pink); }
.tab b { display: block; font-weight: 800; }
.tab small { display: block; font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.shot-wrap .window img { transition: opacity 0.35s var(--ease); }
.shot-wrap .window img.fade { opacity: 0; }
.shot-cap { margin-top: 16px; color: var(--muted); font-size: 0.95rem; text-align: center; min-height: 3.4em; }

/* feature groups */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.group {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.group:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c1, #ff2bd6) 45%, transparent); }
.group::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1, #ff2bd6) 22%, transparent), transparent 70%);
}
.group h3 { font-size: 1.14rem; margin-top: 16px; }
.group > p { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }
.group ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.group li { display: flex; gap: 8px; align-items: baseline; }
.group li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c1, #ff2bd6); box-shadow: 0 0 10px var(--c1, #ff2bd6); flex: none; translate: 0 -2px; }
.tile-ic {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--c1, #ff2bd6), var(--c2, #9d174d)); box-shadow: 0 10px 26px -10px var(--c1, #ff2bd6);
}
.tile-ic .icon { width: 26px; height: 26px; }
.c-pink { --c1: #ff2bd6; --c2: #9d174d; }
.c-cyan { --c1: #22d3ee; --c2: #0e7490; }
.c-violet { --c1: #a78bfa; --c2: #5b21b6; }
.c-lime { --c1: #4ade80; --c2: #047857; }
.c-amber { --c1: #fbbf24; --c2: #b45309; }
.c-rose { --c1: #fb7185; --c2: #9f1239; }
.c-sky { --c1: #60a5fa; --c2: #1d4ed8; }

/* homi */
.homi-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.homi-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.mascot { width: 120px; height: 120px; flex: none; filter: drop-shadow(0 18px 30px rgba(124, 131, 255, 0.45)); animation: float 5s ease-in-out infinite; }
.mascot .eyes { animation: blink 5s infinite; transform-origin: 100px 103px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.list { display: grid; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 14px; }
.list .tile-ic { width: 44px; height: 44px; border-radius: 14px; }
.list .tile-ic .icon { width: 22px; height: 22px; }
.list b { display: block; font-size: 1.02rem; }
.list li > span > span { display: block; color: var(--muted); font-size: 0.93rem; }
.chat { padding: 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-glow); box-shadow: var(--shadow-lg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 800; }
.chat-head img { width: 40px; height: 40px; }
.chat-head small { display: block; font-weight: 500; color: var(--lime); font-size: 0.78rem; }
.msgs { display: grid; gap: 12px; padding-top: 16px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 0.93rem; line-height: 1.75; opacity: 0; translate: 0 10px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); }
.chat.play .msg { opacity: 1; translate: 0 0; }
.chat.play .msg:nth-child(2) { transition-delay: 0.7s; }
.chat.play .msg:nth-child(3) { transition-delay: 1.5s; }
.chat.play .msg:nth-child(4) { transition-delay: 2.3s; }
.chat.play .msg:nth-child(5) { transition-delay: 3.1s; }
.msg.me { justify-self: end; background: linear-gradient(135deg, #ff2bd6, #8b5cf6); color: #fff; border-end-end-radius: 6px; }
.msg.bot { justify-self: start; background: var(--surface-2); border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-actions span { padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); }
.msg-actions span:first-child { background: var(--pink); border-color: transparent; color: #fff; }

/* game band */
.game { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.meter { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.meter b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.3; }
.meter span { font-size: 0.82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* safety */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.safe { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.safe h3 { font-size: 1.02rem; margin-top: 14px; }
.safe p { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.safe .tile-ic { width: 46px; height: 46px; border-radius: 14px; }
.safe .tile-ic .icon { width: 23px; height: 23px; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.plan { position: relative; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(130deg, #ff2bd6, #8b5cf6, #22d3ee) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-lg);
}
.plan h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.plan .tag { font-size: 0.74rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: linear-gradient(120deg, #ff2bd6, #8b5cf6); color: #fff; }
.plan > p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.plan ul { margin: 20px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 0.95rem; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--lime); stroke-width: 2.4; }
.plan li.off { color: var(--muted); }
.plan li.off .icon { color: var(--muted); opacity: 0.6; }
.plan .note { margin-top: 12px; font-size: 0.84rem; color: var(--muted); text-align: center; }

/* compare */
.table-wrap { overflow-x: auto; border-radius: var(--radius); margin-top: 48px; max-width: 980px; margin-inline: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-size: 0.94rem; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--surface-2); }
.compare thead th:nth-child(3) { color: var(--brand-text); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare td { color: var(--muted); }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.yes { color: var(--lime); }
.no { color: var(--muted); opacity: 0.75; }
.yes .icon, .no .icon { width: 18px; height: 18px; stroke-width: 2.4; }

/* download */
.downloads { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; }
.dl { padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.dl.main { background: radial-gradient(80% 120% at 100% 0%, rgba(255, 43, 214, 0.16), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(0, 229, 255, 0.12), transparent 60%), var(--surface); border-color: var(--line-glow); box-shadow: var(--shadow-lg); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head h3 { font-size: 1.35rem; }
.dl-head small { color: var(--muted); font-size: 0.9rem; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 24px 0; }
.meta div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.meta dt { font-size: 0.8rem; color: var(--muted); }
.meta dd { margin: 0; font-weight: 800; }
.install { list-style: persian; margin: 22px 0 0; padding-inline-start: 1.3em; color: var(--muted); font-size: 0.93rem; }
.install li + li { margin-top: 4px; }
.install b { color: var(--text); }
.hash { margin-top: 16px; font-size: 0.76rem; color: var(--muted); word-break: break-all; direction: ltr; text-align: left; font-family: ui-monospace, Consolas, monospace; }
.side-links { display: grid; gap: 12px; margin-top: 18px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s var(--ease); }
.side-link:hover { border-color: var(--line-glow); transform: translateY(-2px); }
.side-link img { width: 40px; height: 40px; border-radius: 10px; }
.side-link .tile-ic { width: 40px; height: 40px; border-radius: 12px; }
.side-link .tile-ic .icon { width: 20px; height: 20px; }
.side-link b { display: block; font-size: 0.96rem; }
.side-link small { color: var(--muted); font-size: 0.82rem; }

/* faq */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.faq details[open] { border-color: var(--line-glow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.3s var(--ease); color: var(--pink); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* cta + footer */
.cta {
  position: relative; overflow: hidden; padding: 68px 32px; border-radius: 34px; text-align: center; color: #fff;
  background: radial-gradient(60% 120% at 0% 0%, rgba(255, 43, 214, 0.65), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(0, 229, 255, 0.5), transparent 60%), linear-gradient(135deg, #1e1035, #0b0a1c);
  box-shadow: var(--shadow-lg);
}
.cta img { width: 96px; height: 96px; margin: 0 auto 10px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.4)); animation: float 5s ease-in-out infinite; }
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 900; }
.cta p { margin: 14px auto 0; max-width: 36em; opacity: 0.88; }
.cta .btn { margin-top: 28px; background: #fff; color: #1e1035; }
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .groups { grid-template-columns: repeat(2, 1fr); }
  .safety { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 8px 9px; font-size: 0.88rem; }
}
@media (max-width: 980px) {
  .hero-grid, .homi-sec, .game, .downloads, .showcase { grid-template-columns: 1fr; }
  .hero-grid { gap: 64px; }
  .stage .window, html[dir="rtl"] .stage .window { transform: none; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tab small { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 70px; inset-inline: 12px; flex-direction: column; padding: 10px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 0.95rem; }
  .menu-btn { display: inline-grid; }
  .nav-tools { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 32px 0 90px; }
  .groups, .safety, .meters { grid-template-columns: 1fr; }
  .meters { grid-template-columns: repeat(3, 1fr); }
  .meter { padding: 12px 6px; }
  .meter b { font-size: 1.25rem; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tab { padding: 10px; font-size: 0.88rem; }
  .hero-cta .btn { width: 100%; }
  .fc-2 { display: none; }
  .fc-1 { top: -26px; inset-inline-end: 4px; }
  .fc-3 { bottom: -30px; inset-inline-end: 4px; }
  .nav-tools .btn { display: none; }
  .brand small { display: none; }
  .dl, .plan { padding: 24px; }
  .homi-hero { flex-direction: column; align-items: flex-start; }
  .compare th, .compare td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .msg { opacity: 1; transform: none; translate: none; }
}
