/* ==========================================================================
   FlowAI — Main Stylesheet
   RTL / Persian / Luxury UI
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --font: "Vazirmatn", "Segoe UI", Tahoma, "Iranian Sans", system-ui, sans-serif;

  --bg: #06060c;
  --bg-2: #0a0a14;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edeef4;
  --muted: #a2a3b8;
  --heading: #ffffff;

  --primary: #7c5cff;
  --primary-2: #a78bfa;
  --secondary: #22d3ee;
  --accent: #e9c97f;
  --success: #34d399;
  --danger: #fb7185;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 18px 50px -18px rgba(124, 92, 255, 0.65);

  --container: 1200px;
  --section-y: clamp(70px, 9vw, 128px);

  --grad-text: linear-gradient(100deg, var(--primary-2) 0%, var(--secondary) 55%, var(--accent) 100%);
  --grad-btn: linear-gradient(135deg, var(--primary) 0%, #6d8bff 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6f6fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(18, 18, 40, 0.09);
  --border-strong: rgba(18, 18, 40, 0.16);
  --text: #14141f;
  --muted: #5c5c74;
  --heading: #0c0c16;
  --shadow-sm: 0 6px 18px rgba(20, 20, 60, 0.08);
  --shadow: 0 24px 60px -24px rgba(20, 20, 60, 0.28);
  --shadow-glow: 0 18px 44px -20px rgba(124, 92, 255, 0.45);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
  font-feature-settings: "ss02" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 { margin: 0; color: var(--heading); line-height: 1.5; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Background decor ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-decor .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: float 22s var(--ease) infinite alternate;
}
.bg-decor .blob--1 { width: 46vw; height: 46vw; top: -14vw; inset-inline-start: -8vw; background: radial-gradient(circle at 30% 30%, #7c5cff, transparent 65%); }
.bg-decor .blob--2 { width: 40vw; height: 40vw; top: 22vh; inset-inline-end: -12vw; background: radial-gradient(circle at 60% 40%, #22d3ee, transparent 65%); animation-delay: -6s; opacity: 0.35; }
.bg-decor .blob--3 { width: 44vw; height: 44vw; bottom: -16vw; inset-inline-start: 22vw; background: radial-gradient(circle at 50% 50%, #e9c97f, transparent 65%); animation-delay: -11s; opacity: 0.18; }
[data-theme="light"] .bg-decor .blob { opacity: 0.3; }

.bg-decor .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: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3vw, 4vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(0.96); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  background: var(--grad-text); z-index: 90; transition: width 0.1s linear;
}

/* ---------- Announcement ---------- */
.announce {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.14));
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 0; flex-wrap: wrap; text-align: center; }
.announce b { color: var(--accent); font-weight: 700; }
.announce a { color: var(--secondary); display: inline-flex; align-items: center; gap: 4px; }
.announce a:hover { text-decoration: underline; }
.announce .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; box-shadow: var(--shadow-glow);
  font-weight: 900; font-size: 1.05rem; position: relative; overflow: hidden; flex: 0 0 auto;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 5.5s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text small { font-size: 0.66rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.25s, background 0.25s; position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }

.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid var(--border); background: var(--btn-bg); color: var(--text);
  overflow: hidden; isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s, filter 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; }

.btn--primary {
  background: var(--grad-btn); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 24px 60px -18px rgba(124, 92, 255, 0.8); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.38) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform 0.85s var(--ease);
}
.btn--primary:hover::before { transform: translateX(130%); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--accent {
  background: linear-gradient(135deg, var(--accent), #d9ab55); color: #241c05; border-color: transparent;
  box-shadow: 0 18px 45px -18px rgba(233, 201, 127, 0.7);
}
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.eyebrow span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 12px var(--secondary); }

h1 g, h2 g, h3 g {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: normal;
}

.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); margin-top: 16px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 110px) clamp(60px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 5.4vw, 3.6rem); line-height: 1.35; margin-top: 22px; font-weight: 900; }
.hero__sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.13rem); margin-top: 20px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 0.87rem; flex-wrap: wrap; }
.hero__meta .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.avalanche { display: flex; align-items: center; }
.avalanche i {
  width: 30px; height: 30px; border-radius: 50%; margin-inline-start: -9px; border: 2px solid var(--bg);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: #fff; font-style: normal;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
}
.avalanche i:nth-child(2) { background: linear-gradient(135deg, #e9c97f, #fb7185); }
.avalanche i:nth-child(3) { background: linear-gradient(135deg, #34d399, #22d3ee); }
.avalanche i:nth-child(4) { background: linear-gradient(135deg, #a78bfa, #7c5cff); }

.stats { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.84rem; }

/* Hero mockup */
.mockup-wrap { position: relative; }
.mockup {
  position: relative; border-radius: var(--radius-xl); padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: hover-float 7s var(--ease) infinite alternate;
  transform-style: preserve-3d;
}
@keyframes hover-float { from { transform: translateY(-8px); } to { transform: translateY(10px); } }

.mockup__bar { display: flex; align-items: center; gap: 7px; padding: 6px 8px 12px; }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mockup__bar i:nth-child(1) { background: #ff5f57; } .mockup__bar i:nth-child(2) { background: #febc2e; } .mockup__bar i:nth-child(3) { background: #28c840; }
.mockup__bar .url {
  margin-inline-start: 10px; flex: 1; font-size: 0.72rem; color: var(--muted); direction: ltr; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.mockup__body { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); }
.mockup__hero { padding: 22px; background: radial-gradient(120% 120% at 100% 0%, rgba(124, 92, 255, 0.35), transparent 60%), radial-gradient(100% 100% at 0% 100%, rgba(34, 211, 238, 0.22), transparent 60%); }
.mockup__hero h3 { font-size: 1.06rem; }
.mockup__hero p { color: var(--muted); font-size: 0.83rem; margin-top: 6px; }
.mockup__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 0.74rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text);
}
.chip--on { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.35); color: #7ff0c2; }
.mockup__lines { padding: 18px 22px 22px; display: grid; gap: 11px; }
.skel { height: 11px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-2) 25%, rgba(255, 255, 255, 0.14) 50%, var(--surface-2) 75%); background-size: 220% 100%; animation: skel 2.4s linear infinite; }
@keyframes skel { to { background-position: -220% 0; } }
.skel.w-90 { width: 90%; } .skel.w-70 { width: 70%; } .skel.w-80 { width: 80%; } .skel.w-55 { width: 55%; }
.mockup__cta { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.mockup__cta .mini { font-size: 0.76rem; padding: 8px 14px; border-radius: 10px; background: var(--grad-btn); color: #fff; font-weight: 700; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 600;
  animation: hover-float 6s var(--ease) infinite alternate;
}
.float-card--a { inset-inline-start: -22px; top: 16%; animation-delay: -1.5s; }
.float-card--b { inset-inline-end: -18px; bottom: 13%; animation-delay: -3.5s; }
.float-card .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, 0.15); color: var(--success); }
.float-card--b .ico { background: rgba(233, 201, 127, 0.16); color: var(--accent); }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 0.72rem; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.trust__item { display: flex; gap: 13px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s; }
.trust__item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.trust__item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--secondary); flex: 0 0 auto; }
.trust__item h4 { font-size: 0.95rem; }
.trust__item p { color: var(--muted); font-size: 0.82rem; margin-top: 3px; }

/* ---------- Features ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.card__ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.25), rgba(34, 211, 238, 0.14));
  border: 1px solid var(--border); color: var(--primary-2);
}
.card__ico svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.06rem; }
.card p { color: var(--muted); font-size: 0.9rem; margin-top: 9px; }

/* ---------- Download ---------- */
.download-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: stretch; }
.dl-card {
  position: relative; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.03) 45%), var(--surface);
  border: 1px solid var(--border); overflow: hidden;
}
.dl-card::before {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%); filter: blur(10px);
}
.dl-file { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: relative; }
.dl-file__ico { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; box-shadow: var(--shadow-glow); flex: 0 0 auto; }
.dl-file__ico svg { width: 30px; height: 30px; }
.dl-file h3 { font-size: 1.15rem; word-break: break-all; }
.dl-file .meta { color: var(--muted); font-size: 0.82rem; margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.dl-file .meta b { color: var(--accent); font-weight: 700; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-note { color: var(--muted); font-size: 0.83rem; margin-top: 18px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.9; }
.dl-note svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--secondary); margin-top: 4px; }

.dl-side { display: grid; gap: 18px; }
.dl-box { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.dl-box h4 { font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.dl-box h4 svg { width: 19px; height: 19px; color: var(--accent); }
.dl-box ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dl-box li { display: flex; gap: 9px; font-size: 0.87rem; color: var(--muted); align-items: flex-start; }
.dl-box li svg { width: 17px; height: 17px; color: var(--success); flex: 0 0 auto; margin-top: 5px; }

.progress-mini { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 14px; }
.progress-mini i { display: block; height: 100%; width: 0; background: var(--grad-text); transition: width 0.4s var(--ease); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.step:hover { transform: translateX(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.step__num {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 900; font-size: 1.05rem;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.3), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border-strong); color: #fff;
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin-top: 7px; }
.step__tip { margin-top: 11px; font-size: 0.82rem; color: var(--accent); display: flex; gap: 7px; align-items: flex-start; }

.code-row { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.code-row code { direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; color: var(--secondary); }
.copy-btn { font-size: 0.75rem; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: color 0.25s, border-color 0.25s; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.faq__item.open { border-color: var(--border-strong); background: var(--surface-2); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 19px 22px; text-align: start; font-weight: 700; font-size: 0.98rem; }
.faq__q .plus { margin-inline-start: auto; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); flex: 0 0 auto; transition: transform 0.35s var(--ease), background 0.3s; }
.faq__item.open .plus { transform: rotate(135deg); background: var(--grad-btn); border-color: transparent; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq__a > div { padding: 0 22px 22px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.support__card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s; }
.support__card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.support__card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--primary-2); }
.support__card .ico svg { width: 22px; height: 22px; }
.support__card b { font-size: 0.98rem; }
.support__card span { color: var(--muted); font-size: 0.85rem; direction: ltr; text-align: start; }
.support__card .arrow { margin-top: auto; color: var(--secondary); font-size: 0.82rem; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: clamp(34px, 5vw, 60px); border-radius: var(--radius-xl); text-align: center; overflow: hidden;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.28), rgba(34, 211, 238, 0.16)), var(--surface);
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { color: var(--muted); margin-top: 14px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--border); padding-block: clamp(40px, 6vw, 64px) 28px; margin-top: clamp(30px, 5vw, 60px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__about p { color: var(--muted); font-size: 0.9rem; margin-top: 16px; max-width: 380px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 0.88rem; transition: color 0.25s, padding 0.25s; }
.footer ul a:hover { color: var(--text); padding-inline-start: 4px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s; }
.socials a:hover { transform: translateY(-3px); color: var(--text); border-color: var(--border-strong); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Back to top / mobile bar ---------- */
.to-top {
  position: fixed; inset-inline-start: 22px; bottom: 24px; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
  backdrop-filter: blur(14px); color: var(--text); z-index: 60; opacity: 0; pointer-events: none;
  transform: translateY(14px); transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 65; display: none; gap: 10px; padding: 12px 16px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--border);
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; inset-block-start: 22px; inset-inline-start: 22px; z-index: 100; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong); backdrop-filter: blur(16px);
  box-shadow: var(--shadow); font-size: 0.88rem; animation: toast-in 0.4s var(--ease);
}
.toast.out { animation: toast-out 0.35s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; }
.toast--ok svg { color: var(--success); } .toast--err svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-20px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-20px); } }

/* ---------- Drawer (mobile nav) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px); transform: translateX(-100%); transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; padding: 26px; gap: 8px; overflow-y: auto;
}
[dir="rtl"] .drawer { transform: translateX(100%); }
.drawer.open { transform: none !important; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer a.drawer__link { padding: 15px 6px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 1.02rem; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.drawer a.drawer__link span { color: var(--muted); font-size: 0.8rem; direction: ltr; }
.drawer .btn { margin-top: 22px; }

/* ---------- Loader / skeleton state ---------- */
.is-loading [data-bind] { opacity: 0.999; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mockup-wrap { max-width: 560px; margin-inline: auto; }
  .float-card--a { inset-inline-start: 0; }
  .float-card--b { inset-inline-end: 0; }
  .download-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions .btn--primary { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 78px; }
  .to-top { bottom: 92px; }
  .announce { font-size: 0.8rem; }
}

@media (max-width: 620px) {
  :root { --section-y: 58px; }
  .brand__text small { display: none; }
  .hero h1 { letter-spacing: -0.02em; }
  .stats { gap: 18px 26px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__num { width: 40px; height: 40px; border-radius: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .float-card { display: none; }
  .hero__cta .btn { width: 100%; }
  .faq__q { padding: 16px 16px; font-size: 0.92rem; }
  .faq__a > div { padding: 0 16px 18px; }
}

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

@media print {
  .header, .footer, .to-top, .mobile-bar, .bg-decor, .announce { display: none !important; }
}
