/* ============================================================
   Zemam — زمام | Shared stylesheet
   Design source: Figma "Zemam - Website" (kmPg4NnhF6huykIWDwv39a)
   ============================================================ */

/* ---------- Fonts -------------------------------------------------
   The Figma file uses the commercial family "Madani Arabic".
   Drop MadaniArabic-Regular.woff2 / MadaniArabic-SemiBold.woff2 into
   assets/fonts/ and the first two @font-face rules pick them up
   automatically (they also match the font if it is installed locally).
   Until then the page falls back to Tajawal — a free geometric Arabic
   face with a very similar rhythm — which is self-hosted below, so the
   site needs no external font CDN and works fully offline.
------------------------------------------------------------------ */
@font-face {
  font-family: "Madani Arabic";
  src: local("MadaniArabic-Regular"), local("Madani Arabic Regular");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Madani Arabic";
  src: local("MadaniArabic-SemiBold"), local("Madani Arabic SemiBold");
  font-weight: 600;
  font-display: swap;
}

/* When you have the licensed web fonts, drop the files into
   assets/fonts/ and add the url() sources:

   src: local("MadaniArabic-Regular"),
        url("../fonts/MadaniArabic-Regular.woff2") format("woff2");
   src: local("MadaniArabic-SemiBold"),
        url("../fonts/MadaniArabic-SemiBold.woff2") format("woff2");
*/

/* ---------- Design tokens (from Figma variables) ---------- */
:root {
  --purple: #4d03a9;
  --purple-2: #6d1ac9;
  --purple-tint-90: #573fc2;
  --purple-tint-10: #f3edf9;
  --purple-a04: rgba(77, 3, 169, 0.04);
  --purple-a07: rgba(77, 3, 169, 0.07);
  --purple-a10: rgba(77, 3, 169, 0.1);
  --purple-a25: rgba(77, 3, 169, 0.25);
  --purple-grad: linear-gradient(135deg, #4d03a9 0%, #6d1ac9 100%);

  --neon: #e3ff00;
  --neon-a90: rgba(227, 255, 0, 0.9);
  --neon-a60: rgba(227, 255, 0, 0.6);

  --black: #1e1e1e;
  --black-70: rgba(30, 30, 30, 0.7);
  --black-60: rgba(30, 30, 30, 0.6);
  --black-40: rgba(30, 30, 30, 0.4);
  --white: #ffffff;

  --ink-900: #111827;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --grey-dark: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-100: #f3f4f6;
  --grey-3: #fafbf8;
  --lavender: #f8f5fc;
  --footer-bg: #27074f;
  --footer-rule: #3a1a63;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                  0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-nav: 0 1px 0 rgba(17, 24, 39, 0.06);

  --page-max: 1200px;
  --nav-h: 80px;

  --font: "Madani Arabic", "Tajawal", "IBM Plex Sans Arabic",
          "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink-600);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.2;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--solid { fill: currentColor; stroke: none; }
.icon .fill { fill: currentColor; stroke: none; }

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--page-max) + 240px);
  margin-inline: auto;
  padding-inline: 120px;
}
.shell > * { max-width: var(--page-max); margin-inline: auto; }

.section { padding-block: 80px; }
.section--tint { background: var(--lavender); }
.section--soft { background: var(--grey-3); }

.section-head {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  padding-bottom: 64px;
}
.section-head h2 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.section-head p {
  font-size: 18px;
  line-height: 1.625;
  color: var(--ink-600);
  max-width: 768px;
  margin-inline: auto;
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.pill--neon { background: var(--neon-a60); color: var(--ink-700); }
.pill--purple { background: var(--purple-a10); color: var(--purple); }
.pill--glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.pill .icon { font-size: 16px; }
.section-head .pill { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 32px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn .icon { font-size: 20px; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover {
  background: #5c0cc4;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(77, 3, 169, 0.6);
}
.btn--ghost { background: var(--purple-a07); color: var(--purple); }
.btn--ghost:hover { background: var(--purple-a10); transform: translateY(-2px); }
.btn--neon { background: var(--neon); color: var(--purple); height: 40px; padding-inline: 16px;
  border-radius: var(--radius-pill); font-size: 14px; }
.btn--neon:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(227,255,0,.9); }
.btn:active { transform: translateY(0); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav.is-stuck { box-shadow: 0 4px 20px -8px rgba(17, 24, 39, 0.18); }
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 48px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink-700);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--purple); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--purple); }
.nav__cta {
  height: 40px;
  padding-inline: 24px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(77,3,169,.7); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  background: var(--purple-a07);
  color: var(--purple);
}
.nav__burger .icon { font-size: 22px; }

/* mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: #fff;
  border-top: 1px solid var(--grey-100);
  padding: 20px 24px 28px;
  display: grid;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 20px 30px -18px rgba(17, 24, 39, 0.35);
  z-index: 99;
}
.nav__drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drawer a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: 10px;
}
.nav__drawer a:hover { color: var(--purple); background: var(--purple-a04); padding-inline: 12px; }
.nav__drawer .btn { margin-top: 8px; width: 100%; }

/* ============================================================
   HERO (index)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 96px 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto 0;
  height: 1420px;
  background: linear-gradient(224.6deg,
      rgba(77, 3, 169, 0.15) 0%,
      rgba(247, 243, 249, 0.04) 50%,
      rgba(227, 255, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 444px);
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}
.hero__copy { text-align: start; }
.hero h1 {
  font-size: clamp(40px, 3.9vw, 56px);
  text-wrap: balance;
  line-height: 1.28;
  color: var(--ink-900);
  margin-block: 24px;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--purple-tint-90); }
.hero__lede {
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.75;
  max-width: 576px;
  color: var(--ink-600);
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* phone + floating cards */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}
.hero__phone {
  width: 275px;
  filter: drop-shadow(0 40px 60px rgba(77, 3, 169, 0.25));
  transform: rotate(-4deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-14px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-float);
  width: 227px;
  text-align: start;
  z-index: 2;
}
.float-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  flex: none;
}
.float-card__icon .icon { font-size: 24px; }
.float-card__icon--purple { background: var(--purple); color: #fff; }
.float-card__icon--neon { background: var(--neon); color: var(--purple); }
.float-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 20px;
}
.float-card span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--black-60);
}
.float-card--top { top: 24px; inset-inline-start: -28px; }
.float-card--bottom { bottom: 24px; inset-inline-end: -34px; }
.float-card::after {
  content: "";
  position: absolute;
  width: 76px; height: 76px;
  border-radius: var(--radius-pill);
  filter: blur(32px);
  z-index: -1;
}
.float-card--top::after { background: rgba(77, 3, 169, 0.25); inset-inline-start: -20px; top: 28px; }
.float-card--bottom::after { background: rgba(227, 255, 0, 0.45); inset-inline-end: -20px; top: -26px; }

/* ============================================================
   CATEGORY CARDS  (عن زمام)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--grey-3);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.cat-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 24px 40px -24px rgba(77, 3, 169, 0.35);
}
.icon-tile {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: transform 0.3s var(--ease);
}
.icon-tile .icon { font-size: 30px; }
.icon-tile--neon { background: var(--neon-a90); color: var(--purple); }
.icon-tile--purple { background: var(--purple); color: #fff; }
.cat-card:hover .icon-tile { transform: rotate(-6deg) scale(1.06); }
.cat-card h3 {
  font-size: 20px;
  color: var(--black);
  margin-bottom: 12px;
}
.cat-card p {
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 1.65;
  color: var(--grey-dark);
}

/* ============================================================
   FEATURE CARDS  (ليش تختار زمام)
   ============================================================ */
.feat-rows { display: grid; gap: 32px; }
.feat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.feat-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-height: 210px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -26px rgba(77, 3, 169, 0.4);
}
.feat-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--purple-grad);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}
.feat-card__icon .icon { font-size: 24px; }
.feat-card:hover .feat-card__icon { transform: rotate(-6deg) scale(1.06); }
.feat-card h3 {
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--black);
}
.feat-card p {
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.75;
  color: var(--grey-dark);
}

/* ============================================================
   SHOWCASE CAROUSEL  (تصميم جميل وسهل الاستخدام)
   ============================================================ */
.showcase {
  border-radius: var(--radius-xl);
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(210deg, rgba(77, 3, 169, 0.05) 0%, rgba(227, 255, 0, 0.05) 100%);
}
.showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 568px);
  gap: 48px;
  align-items: center;
  min-height: 600px;
}
.showcase__copy { position: relative; min-height: 220px; }
.slide-index {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--purple);
  margin-bottom: 12px;
}
.showcase__copy h3 {
  font-size: 36px;
  line-height: 40px;
  margin-bottom: 16px;
}
.showcase__copy > p {
  font-size: 18px;
  line-height: 29px;
  color: var(--ink-600);
  margin-bottom: 32px;
  max-width: 460px;
}
.showcase__text { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.showcase__text.is-swapping { opacity: 0; transform: translateY(10px); }

.showcase__controls { display: flex; align-items: center; gap: 16px; }
.dots { display: flex; gap: 8px; align-items: center; margin-inline-end: 16px; }
.dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--grey-300);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.dot.is-active { width: 32px; background: var(--purple); }
.circle-btn {
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.circle-btn .icon { font-size: 20px; }
.circle-btn--solid { background: var(--purple); color: #fff; }
.circle-btn--outline { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.circle-btn:hover { transform: scale(1.08); }
.circle-btn--solid:hover { background: #5c0cc4; }
.circle-btn--outline:hover { background: var(--purple-a07); }

.showcase__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.showcase__glow {
  position: absolute;
  width: 471px; height: 560px;
  border-radius: var(--radius-xl);
  filter: blur(32px);
  background: linear-gradient(208deg, rgba(77, 3, 169, 0.16) 14%, rgba(227, 255, 0, 0.16) 89%);
}
.showcase__phone {
  position: relative;
  width: 253px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.showcase__phone.is-swapping { opacity: 0; transform: scale(0.96) translateY(10px); }

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 64px;
}
.mini-feature { text-align: center; }
.mini-feature .icon-tile { margin-inline: auto; margin-bottom: 16px; }
.mini-feature h4 {
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 8px;
}
.mini-feature p {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--grey-dark);
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download { padding-block: 80px; }
.download__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 64px;
  background: linear-gradient(204deg, #4d03a9 0%, #5d13b9 50%, #4d03a9 100%);
  color: #fff;
}
.download__card::before,
.download__card::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.download__card::before {
  width: 351px; height: 351px;
  background: rgba(221, 221, 221, 0.22);
  filter: blur(50px);
  inset-inline-start: 233px;
  top: 190px;
}
.download__card::after {
  width: 256px; height: 256px;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(32px);
  inset-inline-end: 40px;
  bottom: -40px;
}
.download__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}
.download h2 {
  font-size: 48px;
  color: #fff;
  margin-block: 24px;
}
.download__lede {
  font-size: 18px;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 552px;
}
.stores { display: flex; gap: 22px; margin-bottom: 32px; flex-wrap: wrap; }
.store {
  flex: 1 1 220px;
  height: 80px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.store:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6); }
.store__arrow { color: var(--grey-400); font-size: 20px; display: grid; place-items: center; }
.store:hover .store__arrow { color: var(--purple); }
.store__text { display: flex; align-items: center; gap: 8px; }
.store__label { text-align: start; }
.store__label small { display: block; font-size: 12px; line-height: 16px; color: var(--grey-dark); }
.store__label strong { display: block; font-size: 18px; line-height: 28px; color: var(--ink-900); font-weight: 600; }
.store__badge {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.store__badge .icon { font-size: 24px; }

.qr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  max-width: 552px;
}
.qr__text strong { display: block; font-size: 14px; line-height: 20px; color: #fff; font-weight: 600; }
.qr__text small { display: block; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.8); }
.qr__code {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.qr__code .icon { font-size: 64px; color: var(--ink-900); }

.download__art { position: relative; display: grid; place-items: end center; }
.download__art-plate {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 226px;
  border-radius: var(--radius-lg);
  background: var(--purple-tint-10);
}
.download__art img { position: relative; width: 88%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer-bg); color: var(--grey-400); }
.footer__top { padding-block: 64px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}
.footer h4 { font-size: 18px; line-height: 28px; color: #fff; margin-bottom: 24px; }
.footer__list { display: grid; gap: 12px; }
.footer__list a,
.footer__list span { font-size: 14px; line-height: 20px; color: var(--grey-400); }
.footer__list a { transition: color 0.2s var(--ease); }
.footer__list a:hover { color: var(--neon); }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contact .icon { font-size: 18px; margin-top: 2px; flex: none; }
.footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 22px; margin-bottom: 24px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a .icon { font-size: 18px; }
.socials a:hover { background: var(--neon); color: var(--purple); transform: translateY(-3px); }

.footer__bottom { border-top: 1px solid var(--footer-rule); }
.footer__bottom-inner {
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 20px;
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--neon); }

/* ============================================================
   TERMS PAGE
   ============================================================ */
.terms-hero {
  position: relative;
  overflow: hidden;
  padding-block: 128px 80px;
}
.terms-hero::before {
  content: "";
  position: absolute;
  inset: 85px 0 auto 0;
  height: 387px;
  background: linear-gradient(195deg,
      rgba(77, 3, 169, 0.5) 0%,
      rgba(247, 243, 249, 0.04) 51%,
      rgba(227, 255, 0, 0.5) 100%);
  opacity: 0.55;
  pointer-events: none;
}
.terms-hero > * { position: relative; z-index: 1; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--grey-dark);
  margin-bottom: 24px;
}
.crumbs a { color: var(--purple); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { font-size: 14px; }
.terms-hero h1 { font-size: 48px; line-height: 60px; margin-block: 24px 20px; }
.terms-hero h1 .accent { color: var(--purple); }
.terms-hero p {
  font-size: 18px;
  line-height: 29px;
  max-width: 672px;
  color: var(--ink-600);
}

.terms-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 76px;
  align-items: start;
  padding-block: 64px 96px;
}

/* -- section cards -- */
.terms-list { display: grid; gap: 40px; }
.terms-card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.terms-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--grey-100);
  width: 100%;
  text-align: start;
}
.terms-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--purple-grad);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.terms-card__icon .icon { font-size: 20px; }
.terms-card__titles { flex: 1; }
.terms-card__titles small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--black-40);
  margin-bottom: 2px;
}
.terms-card__titles h2 { font-size: 20px; color: var(--black); }
.terms-card__toggle {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--grey-dark);
  background: var(--grey-100);
  flex: none;
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.terms-card__toggle .icon { font-size: 18px; }
.terms-card__head:hover .terms-card__toggle { background: var(--purple-a10); color: var(--purple); }
.terms-card.is-collapsed .terms-card__toggle { transform: rotate(-90deg); }
.terms-card__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s var(--ease), opacity 0.25s var(--ease);
}
.terms-card.is-collapsed .terms-card__body { grid-template-rows: 0fr; opacity: 0; }
.terms-card__body > div { overflow: hidden; }
.terms-card ul { padding: 24px 32px; display: grid; gap: 12px; }
.terms-card li { display: flex; align-items: flex-start; gap: 12px; }
.terms-card li p {
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 22.75px;
  color: var(--black-70);
}
.tick {
  width: 24px; height: 24px;
  border-radius: var(--radius-pill);
  background: var(--neon-a90);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.tick .icon { font-size: 12px; stroke-width: 3; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 25px;
  border-radius: var(--radius-lg);
  background: var(--purple-a04);
  border: 1px solid var(--purple-a25);
}
.note__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--purple-a10);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex: none;
}
.note__icon .icon { font-size: 20px; }
.note h4 { font-size: 16px; letter-spacing: 0.03em; color: var(--black); margin-bottom: 4px; }
.note p { font-size: 14px; letter-spacing: 0.03em; line-height: 1.6; color: var(--black-70); }

/* -- sticky sidebar -- */
.terms-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 24px; }
.toc {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.toc__head {
  background: var(--purple);
  color: #fff;
  padding: 16px 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.toc__nav { padding: 12px; display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.toc__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
  text-align: start;
  width: 100%;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.toc__link span:last-child { flex: 1; }
.toc__chip {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  color: var(--grey-dark);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.toc__chip .icon { font-size: 14px; }
.toc__link:hover { background: var(--purple-a04); color: var(--purple); }
.toc__link.is-active { background: var(--purple-a10); color: var(--purple); font-weight: 600; }
.toc__link.is-active .toc__chip { background: var(--purple); color: #fff; }

.help-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(140deg, #4d03a9 0%, #6d1ac9 100%);
  color: #fff;
}
.help-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--neon);
  color: var(--purple);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.help-card__icon .icon { font-size: 20px; }
.help-card h4 { font-size: 16px; line-height: 24px; color: #fff; margin-bottom: 8px; }
.help-card p { font-size: 14px; line-height: 22.75px; color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; }

/* ============================================================
   CONTACT FORM (modal)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 8, 56, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal__head h3 { font-size: 24px; }
.modal__close {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--grey-100);
  color: var(--ink-600);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover { background: var(--purple-a10); color: var(--purple); }
.modal p.modal__lede { font-size: 14px; color: var(--grey-dark); margin-bottom: 24px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  padding: 12px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-a10);
}
.field.has-error input,
.field.has-error textarea { border-color: #dc2626; }
.field__error { font-size: 12px; color: #dc2626; min-height: 16px; }
.modal .btn { width: 100%; margin-top: 8px; }

/* toast */
.toasts {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 300;
  display: grid;
  gap: 12px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.7);
  animation: toast-in 0.3s var(--ease);
  max-width: 380px;
}
.toast--ok { background: #14532d; }
.toast--err { background: #7f1d1d; }
.toast .icon { font-size: 18px; flex: none; }
.toast.is-out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(14px); }
}

/* back to top */
.to-top {
  position: fixed;
  inset-block-end: 28px;
  inset-inline-end: 28px;
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 90;
  box-shadow: 0 14px 24px -12px rgba(77, 3, 169, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #5c0cc4; }
.to-top .icon { font-size: 22px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--right { transform: translateX(28px); }
.reveal--left  { transform: translateX(-28px); }
.reveal--right.is-in, .reveal--left.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__phone { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .shell { padding-inline: 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .terms-layout { gap: 40px; }
}

@media (max-width: 1080px) {
  .shell { padding-inline: 40px; }
  .hero h1 { font-size: 46px; }
  .section-head h2, .download h2 { font-size: 38px; }
  .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .showcase__copy h3 { font-size: 30px; }
  .mini-features { gap: 24px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .terms-layout { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }

  .hero { padding-block: 56px 80px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__visual { order: -1; min-height: 480px; }
  .hero h1 { font-size: 40px; line-height: 1.3; }
  .hero__lede { font-size: 15px; }

  .section { padding-block: 56px; }
  .section-head { padding-bottom: 40px; }
  .section-head h2, .download h2 { font-size: 32px; }
  .section-head p { font-size: 16px; }

  .feat-card { min-height: 0; }

  .showcase { padding: 28px; }
  .showcase__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; }
  .showcase__stage { order: -1; min-height: 420px; }
  .showcase__glow { width: 320px; height: 400px; }
  .mini-features { padding-top: 40px; gap: 24px; }

  .download { padding-block: 56px; }
  .download__card { padding: 32px 24px; }
  .download__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .download__art { order: -1; }
  .stores { gap: 12px; }
  .store { flex: 1 1 100%; }

  .terms-hero { padding-block: 88px 56px; }
  .terms-hero h1 { font-size: 34px; line-height: 1.3; }
  .terms-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 64px; }
  .terms-aside { position: static; order: -1; }
  .toc__nav { max-height: 320px; }

  .footer__top { padding-block: 48px; }
}

@media (max-width: 700px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat-rows, .feat-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mini-features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 620px) {
  .shell { padding-inline: 20px; }
  .hero h1 { font-size: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card { width: min(210px, 62%); padding: 12px; }
  .float-card--top { inset-inline-start: 0; top: 4px; }
  .float-card--bottom { inset-inline-end: 0; bottom: 4px; }
  .float-card span { font-size: 11px; line-height: 15px; }
  .float-card__icon { width: 40px; height: 40px; }
  .float-card__icon .icon { font-size: 20px; }
  .hero__phone { width: 210px; }
  .showcase__phone { width: 200px; }

  .section-head h2, .download h2, .terms-hero h1 { font-size: 26px; }
  .cat-card, .feat-card { padding: 24px; }
  .feat-card h3 { font-size: 20px; }
  .showcase__copy h3 { font-size: 24px; }
  .showcase__copy > p { font-size: 15px; }

  .terms-card__head { padding: 18px 20px; gap: 12px; }
  .terms-card ul { padding: 20px; }
  .terms-card__titles h2 { font-size: 17px; }

  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__legal { gap: 16px; }

  .modal__panel { padding: 24px; }
  .toasts { inset-inline: 16px; }
  .toast { max-width: none; }
  .to-top { inset-block-end: 18px; inset-inline-end: 18px; }
}
