/* ==========================================================================
   KVM Soft — kvmsoft.ir
   Persian (RTL) static site — Vazirmatn font, blue / white / black palette
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Fallback for browsers without variable-font support */
@font-face {
  font-family: 'Vazirmatn Static';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Static';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Static';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Static';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Static';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --bg:            #070b14;
  --bg-soft:       #0c1322;
  --surface:       rgba(255, 255, 255, .045);
  --surface-2:     rgba(255, 255, 255, .075);
  --border:        rgba(255, 255, 255, .10);
  --border-strong: rgba(96, 165, 250, .38);

  --text:      #f2f6fc;
  --text-soft: #a9b6cd;
  --text-dim:  #74839c;

  --accent: var(--blue-500);
  --accent-soft: rgba(59, 130, 246, .14);
  --glow: 0 0 0 1px rgba(59, 130, 246, .25), 0 18px 50px -18px rgba(37, 99, 235, .65);

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

  --shadow: 0 20px 45px -25px rgba(0, 0, 0, .85);
  --container: 1160px;
  --header-h: 68px;
}

html[data-theme='light'] {
  --bg:            #f5f8fd;
  --bg-soft:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef3fb;
  --border:        rgba(12, 30, 60, .10);
  --border-strong: rgba(37, 99, 235, .35);

  --text:      #0b1220;
  --text-soft: #465268;
  --text-dim:  #6b7891;

  --accent: var(--blue-600);
  --accent-soft: rgba(37, 99, 235, .09);
  --shadow: 0 18px 40px -28px rgba(12, 30, 60, .55);
  --glow: 0 0 0 1px rgba(37, 99, 235, .18), 0 18px 45px -22px rgba(37, 99, 235, .35);
}

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

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

body {
  margin: 0;
  font-family: 'Vazirmatn', 'Vazirmatn Static', Tahoma, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 82% -10%, rgba(37, 99, 235, .30), transparent 62%),
    radial-gradient(48rem 34rem at 8% 8%,  rgba(96, 165, 250, .18), transparent 60%);
}
html[data-theme='light'] body::before {
  background:
    radial-gradient(60rem 40rem at 82% -12%, rgba(59, 130, 246, .18), transparent 62%),
    radial-gradient(48rem 34rem at 5% 6%,  rgba(37, 99, 235, .10), transparent 60%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.55; font-weight: 800; letter-spacing: -.2px; }
p { margin: 0; }

::selection { background: var(--blue-600); color: #fff; }

.container {
  width: min(100% - 2.2rem, var(--container));
  margin-inline: auto;
}

/* Numbers should stay latin for readability inside Persian text */
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.is-stuck { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100% - 2.2rem, var(--container));
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue-400), var(--blue-700));
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 15px;
  letter-spacing: .5px;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .9);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text b { font-size: 15px; }
.brand__text span { font-size: 11px; color: var(--text-dim); font-weight: 500; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .header__actions { margin-inline-start: 6px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }

.theme-btn .icon-moon { display: none; }
html[data-theme='light'] .theme-btn .icon-moon { display: block; }
html[data-theme='light'] .theme-btn .icon-sun  { display: none; }

.menu-btn { display: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  padding: 10px 1.1rem 20px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s, transform .2s, visibility 0s;
}
.mobile-nav a {
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.mobile-nav a:active { background: var(--surface-2); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .16s, box-shadow .25s, background .25s, border-color .25s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 14px 32px -14px rgba(37, 99, 235, .95);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(37, 99, 235, 1); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }

.section__head { max-width: 660px; margin-bottom: 42px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--blue-400);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
html[data-theme='light'] .eyebrow { color: var(--blue-700); }
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}

.section__title { font-size: clamp(25px, 5.2vw, 37px); font-weight: 900; }
.section__desc { margin-top: 12px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 62px 0 74px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 7.4vw, 55px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -1px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--blue-400), #a5c9ff 55%, var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme='light'] .hero h1 .grad {
  background: linear-gradient(110deg, var(--blue-600), #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p.lead {
  margin-top: 20px;
  font-size: clamp(15px, 3.9vw, 17.5px);
  color: var(--text-soft);
  max-width: 46ch;
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 470px;
}
.stat {
  padding: 16px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.stat b { display: block; font-size: clamp(19px, 5vw, 25px); font-weight: 900; color: var(--blue-400); }
html[data-theme='light'] .stat b { color: var(--blue-600); }
.stat span { font-size: 12.5px; color: var(--text-dim); }

/* Phone mockup */
.hero__art { display: grid; place-items: center; }
.phone {
  position: relative;
  width: 268px;
  aspect-ratio: 9 / 18.6;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  box-shadow: var(--glow), 0 50px 80px -40px rgba(0,0,0,.9);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(-9px) rotate(-1.4deg); }
  50%      { transform: translateY(9px)  rotate(1.4deg); }
}
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }

.phone__screen {
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(170deg, #0e1b33, #060a13 60%);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.phone__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 20px;
  border-radius: 999px;
  background: #05080f;
  z-index: 2;
}
.phone__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.phone__ico {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 11px;
  display: block;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.phone__ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__bars { flex: 1; display: grid; gap: 6px; }
.phone__bars i { display: block; height: 7px; border-radius: 99px; background: rgba(255,255,255,.16); }
.phone__bars i:last-child { width: 55%; background: rgba(255,255,255,.09); }

/* ---------- Apps ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s, box-shadow .28s;
}
.app-card::after {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  top: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(59,130,246,.28)), transparent 68%);
  opacity: .75;
  pointer-events: none;
  transition: opacity .3s, transform .5s;
}
.app-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.app-card:hover::after { opacity: 1; transform: scale(1.15); }

.app-card--featured { grid-column: span 2; }

.app-card__top { display: flex; align-items: center; gap: 13px; position: relative; }
.app-icon {
  width: 62px; height: 62px; flex: 0 0 62px;
  border-radius: 18px;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.9);
}
.app-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.app-card h3 { font-size: 17px; font-weight: 800; }
.app-card__cat { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.app-card__desc { font-size: 14.2px; color: var(--text-soft); line-height: 1.95; flex: 1; }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.store-links { display: flex; gap: 8px; flex-wrap: wrap; }
.store-link {
  flex: 1 1 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background .2s, border-color .2s, transform .15s;
}
.store-link:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.store-link:active { transform: scale(.98); }
.store-link svg { width: 17px; height: 17px; flex: none; }
.store-link--bazaar svg { color: #26bd68; }
.store-link--myket svg { color: #ff5a4d; }

/* ---------- Services ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.feature {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .28s, border-color .28s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.feature__ico {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--blue-400);
}
html[data-theme='light'] .feature__ico { color: var(--blue-600); }
.feature__ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.2px; color: var(--text-soft); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.about p { color: var(--text-soft); font-size: 15.3px; margin-top: 14px; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.6px; color: var(--text-soft); }
.check-list svg { width: 21px; height: 21px; flex: none; margin-top: 5px; color: var(--blue-400); }
html[data-theme='light'] .check-list svg { color: var(--blue-600); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.contact-info {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(37,99,235,.20), var(--surface));
  border: 1px solid var(--border);
}
html[data-theme='light'] .contact-info {
  background: linear-gradient(160deg, rgba(37,99,235,.10), #fff);
}
.contact-info h3 { font-size: 20px; }
.contact-info > p { margin-top: 10px; color: var(--text-soft); font-size: 14.5px; }

.info-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.info-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.info-list li:hover { border-color: var(--border-strong); }
.info-list svg { width: 20px; height: 20px; flex: none; color: var(--blue-400); }
html[data-theme='light'] .info-list svg { color: var(--blue-600); }
.info-list b { display: block; font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.info-list span { font-size: 14.2px; font-weight: 600; word-break: break-all; }

.form-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.field label .req { color: #f87171; }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
html[data-theme='light'] .field input,
html[data-theme='light'] .field textarea { background: #f7fafe; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.9; }
.field input.has-error, .field textarea.has-error { border-color: #f87171; }
.field .err { font-size: 12.2px; color: #f87171; min-height: 0; }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.form-note { margin-top: 12px; font-size: 12.4px; color: var(--text-dim); text-align: center; }

.form-alert {
  display: none;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.85;
}
.form-alert.is-visible { display: flex; }
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 5px; }
.form-alert--ok  { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.42);  color: #4ade80; }
.form-alert--err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.42); color: #fca5a5; }
html[data-theme='light'] .form-alert--ok  { color: #15803d; }
html[data-theme='light'] .form-alert--err { color: #b91c1c; }

.spinner {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.is-sending .spinner { display: block; }
.is-sending .btn-label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }

.faq__item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  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;
  gap: 12px;
  padding: 17px 20px;
  font-size: 15.3px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  margin-inline-start: auto;
  width: 11px; height: 11px;
  flex: none;
  border-inline-end: 2.4px solid var(--blue-400);
  border-block-end: 2.4px solid var(--blue-400);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .28s;
}
html[data-theme='light'] .faq__item summary::after {
  border-color: var(--blue-600);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__item summary:hover { color: var(--blue-400); }
html[data-theme='light'] .faq__item summary:hover { color: var(--blue-600); }

.faq__body {
  padding: 0 20px 19px;
  font-size: 14.4px;
  line-height: 2;
  color: var(--text-soft);
}
.faq__body a { color: var(--blue-400); font-weight: 600; }
html[data-theme='light'] .faq__body a { color: var(--blue-600); }
.faq__body a:hover { text-decoration: underline; }

/* ---------- CTA strip ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 52px 30px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  box-shadow: 0 30px 70px -35px rgba(37,99,235,.95);
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(30rem 18rem at 20% 0%, rgba(255,255,255,.25), transparent 62%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(22px, 5vw, 32px); font-weight: 900; }
.cta p { margin-top: 12px; opacity: .92; font-size: 15.5px; }
.cta .btn { margin-top: 26px; background: #fff; color: var(--blue-700); }
.cta .btn:hover { background: #f1f5ff; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding: 44px 0 30px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
}
.footer p { color: var(--text-soft); font-size: 14px; margin-top: 14px; max-width: 42ch; }
.footer h4 { font-size: 14.5px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { font-size: 14px; color: var(--text-soft); transition: color .2s; }
.footer ul a:hover { color: var(--blue-400); }
.footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  inset-inline-end: 18px;
  inset-block-end: 18px;
  z-index: 45;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(37,99,235,.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .phone { width: 232px; }
  .about { grid-template-columns: 1fr; padding: 32px 24px; gap: 26px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .app-card--featured { grid-column: span 1; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav { display: flex; }
  .header__actions { margin-inline-start: auto; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 58px 0; }
  .hero { padding: 34px 0 52px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: none; }
  .stat { padding: 13px 8px; }
  .stat span { font-size: 11px; }
  .apps-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .contact-info { padding: 22px 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 40px 20px; border-radius: 26px; }
  .brand__text span { display: none; }
}
