/* ═══════════════════════════════════════════════════════════════
   Mawaard Marketing Site — Design System
   Token-driven (brand → semantic → component), light-first with
   a dark mode, RTL-aware, accessibility-first.

   Conventions:
     · Logical properties (margin-inline, padding-inline, inset-inline)
       so RTL works without overrides.
     · Focus is always visible via :focus-visible rings.
     · Motion honors prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Design tokens ────────────────────────────────────────── */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Brand (abstract) */
  --brand-50:  #ECFDF8;
  --brand-100: #D1FAEA;
  --brand-200: #A7F3DD;
  --brand-300: #6EE7C8;
  --brand-400: #34D3AE;
  --brand-500: #10B98F;
  --brand-600: #0D9488;
  --brand-700: #0F766E;
  --brand-800: #115E59;
  --cyan-400:  #22D3EE;
  --cyan-500:  #06B6D4;
  --cyan-600:  #0891B2;
  --indigo-500:#6366F1;
  --indigo-600:#4F46E5;
  --amber-400: #FBBF24;

  /* Semantic */
  --bg: #F8FAFC;
  --bg-elevated: #FFFFFF;
  --bg-alt: #F1F5F9;
  --bg-gradient: radial-gradient(1200px 600px at 80% -10%, rgba(16,185,143,0.12), transparent 60%),
                 radial-gradient(900px 500px at 10% 0%, rgba(34,211,238,0.10), transparent 55%),
                 linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --muted: #64748B;
  --muted-strong: #475569;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --card: #FFFFFF;
  --card-hover: #FFFFFF;
  --primary: #0D9488;
  --primary-strong: #0F766E;
  --primary-gradient: linear-gradient(135deg, #10B98F 0%, #06B6D4 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(16,185,143,0.12), rgba(6,182,212,0.12));
  --on-primary: #FFFFFF;
  --accent: #0D9488;
  --ring: rgba(13, 148, 136, 0.55);
  --ring-color: #0D9488;
  --danger: #DC2626;
  --warn: #D97706;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.10), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 24px 60px -12px rgba(13, 148, 136, 0.35);
  --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -8px rgba(15,23,42,0.08);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Tajawal', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 3.5vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 5vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 6.5vw, 4rem);

  /* Layout */
  --wrap: 1200px;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;

  /* Nav surface (light) */
  --nav-bg: rgba(255, 255, 255, 0.82);
  --app-bar-bg: #E9EEF5;
  --app-screen-bg: #0F172A;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #070D1A;
  --bg-elevated: #0D1626;
  --bg-alt: #0B1424;
  --bg-gradient: radial-gradient(1200px 600px at 80% -10%, rgba(16,185,143,0.14), transparent 60%),
                 radial-gradient(900px 500px at 10% 0%, rgba(6,182,212,0.10), transparent 55%),
                 linear-gradient(180deg, #0A1222 0%, #070D1A 100%);
  --ink: #F1F5F9;
  --ink-soft: #E2E8F0;
  --muted: #94A3B8;
  --muted-strong: #CBD5E1;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --card: #0E1728;
  --card-hover: #111D31;
  --primary: #34D3AE;
  --primary-strong: #2DD4BF;
  --primary-gradient: linear-gradient(135deg, #10B98F 0%, #06B6D4 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(16,185,143,0.16), rgba(6,182,212,0.16));
  --on-primary: #06221E;
  --accent: #2DD4BF;
  --ring: rgba(52, 211, 174, 0.55);
  --ring-color: #34D3AE;
  --danger: #F87171;
  --warn: #FBBF24;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 24px 60px -12px rgba(16, 185, 143, 0.40);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -8px rgba(0,0,0,0.45);

  --nav-bg: rgba(7, 13, 26, 0.82);
  --app-bar-bg: #16202F;
  --app-screen-bg: #0B1220;
}

/* ── 2. Base & reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html[dir="ltr"] body {
  font-family: var(--font-sans);
  text-align: left;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
  text-align: right;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Accessible focus — never suppressed */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: rgba(13, 148, 136, 0.25);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}
h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
}
h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  text-wrap: pretty;
}

/* ── 3. Utilities ────────────────────────────────────────────── */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  width: 100%;
}

.section {
  padding-block: var(--section-pad);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

/* Skip link */
.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1.1rem;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  transform: translateY(-300%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* Eyebrow + section intro */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-block-end: 1rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-gradient);
}

.sec-sub {
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 640px;
  margin-block-start: 1rem;
  margin-inline: auto;
}

/* ── 4. Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  color: var(--on-primary);
  background: var(--primary-gradient);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--ink);
  background: var(--bg-elevated);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: var(--text-base);
}

/* CTA with live pulse dot */
.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  position: relative;
}
.nav-cta .cta-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.45;
  animation: pulse 2.4s var(--ease) infinite;
}
.nav-cta.is-open .cta-dot::after {
  animation: none;
  opacity: 0.25;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.45; }
  50% { transform: scale(1.25); opacity: 0.15; }
}

/* ── 5. Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.125rem;
}
.logo-chip {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-gradient);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.erp-chip {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.18rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 6px;
  color: var(--primary-strong);
  background: var(--primary-gradient-soft);
  border: 1px solid rgba(13, 148, 136, 0.25);
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted-strong);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.theme-toggle:hover {
  color: var(--primary-strong);
  border-color: var(--primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.lang-btn {
  padding: 0.35rem 0.6rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
  border-radius: 6px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn.active {
  color: var(--primary-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xs);
}

.nav-cta-desktop {
  display: inline-flex;
}

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg-elevated);
}
.hamburger-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  overscroll-behavior: contain;
}
.mobile-drawer.open {
  display: flex;
}
.mobile-drawer a:not(.btn) {
  padding: 0.8rem 0.5rem;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}
.mobile-drawer a:not(.btn):hover {
  background: var(--bg-alt);
}
.mobile-drawer .btn {
  margin-block-start: 0.75rem;
}

/* ── 6. Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block-start: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-block-end: clamp(3.5rem, 8vw, 6rem);
  background: var(--bg-gradient);
  overflow: hidden;
}
/* Soft brand glows */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  width: 480px;
  height: 480px;
  inset-block-start: -160px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(16, 185, 143, 0.35), transparent 70%);
}
.hero::after {
  width: 420px;
  height: 420px;
  inset-block-end: -180px;
  inset-inline-start: -140px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.30), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-strong);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-block-end: 1.5rem;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 143, 0.18);
}

.hero h1 {
  margin-block-end: 1.25rem;
}
.hero h1 .accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  font-size: var(--text-lg);
  color: var(--muted-strong);
  max-width: 560px;
  margin-block-end: 2rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-end: 1.5rem;
}

.platforms {
  font-size: var(--text-xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.platforms svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* Browser window mockup */
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% -8%;
  border-radius: var(--radius-xl);
  background: var(--primary-gradient);
  opacity: 0.22;
  filter: blur(50px);
  z-index: 0;
}

.app-window {
  position: relative;
  z-index: 1;
  background: var(--app-screen-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(0);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.app-window:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}
.bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--app-bar-bg);
  border-bottom: 1px solid var(--line);
}
.bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bar .url {
  margin-inline: auto;
  font-size: var(--text-xs);
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-shot {
  width: 100%;
  height: auto;
}

/* ── 7. Stats bar ────────────────────────────────────────────── */
.stats {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.4rem 1rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-align: center;
  border-inline-end: 1px solid var(--line);
}
.stat:last-child {
  border-inline-end: none;
}
.stat svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
html[dir="rtl"] .stat {
  text-align: center;
}

/* ── 8. Feature cards ────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block-start: 2.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
}

.ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-block-end: 1.1rem;
  color: var(--primary-strong);
  background: var(--primary-gradient-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.ficon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-block-end: 0.5rem;
}
.feature p {
  color: var(--muted);
  font-size: var(--text-sm);
  flex: 1;
  margin-block-end: 1rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary-strong);
  margin-block-start: auto;
  transition: gap var(--dur) var(--ease);
}
.feature-link::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
html[dir="rtl"] .feature-link::after {
  content: "→";
  transform: scaleX(-1);
}
.feature:hover .feature-link::after {
  transform: translateX(3px);
}
html[dir="rtl"] .feature:hover .feature-link::after {
  transform: scaleX(-1) translateX(3px);
}

/* ── 9. Tour / gallery tabs ──────────────────────────────────── */
.tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 4px;
  margin-block-start: 2.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.tab {
  padding: 0.55rem 1.2rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.tab:hover {
  color: var(--ink);
}
.tab.active {
  color: var(--ink);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.gallery-stage {
  margin-block-start: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
}
.gallery-stage .bar {
  background: var(--app-bar-bg);
}
.mockup {
  display: none;
  width: 100%;
  height: auto;
}
.mockup.active {
  display: block;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-block-start: 1.25rem;
}
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease);
}
.dots i.active {
  width: 22px;
  border-radius: var(--radius-pill);
  background: var(--primary);
}

/* ── 10. Downloads / platforms ───────────────────────────────── */
.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block-start: 2.5rem;
}
.dl {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-block-end: 1.25rem;
}
.dicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--primary-strong);
  background: var(--primary-gradient-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.dicon svg {
  width: 22px;
  height: 22px;
}
.badge-live {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--brand-700);
  background: var(--brand-100);
  border: 1px solid rgba(16, 185, 143, 0.3);
}
[data-theme="dark"] .badge-live {
  color: var(--brand-300);
  background: rgba(16, 185, 143, 0.14);
}
.dl h3 {
  margin-block-end: 0.5rem;
}
.dl p {
  color: var(--muted);
  font-size: var(--text-sm);
  flex: 1;
  margin-block-end: 1.5rem;
}

/* ── 11. Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-block-start: 2.5rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--primary-gradient) border-box;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.price-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.featured-badge {
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--primary-gradient);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
html[dir="rtl"] .featured-badge {
  transform: translateX(50%);
}

.price-card h3 {
  font-size: var(--text-xl);
  margin-block-end: 0.4rem;
}
.price-desc {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-block-end: 1.5rem;
}
.price-val {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-block-end: 1.75rem;
  font-variant-numeric: tabular-nums;
}
.price-val .currency {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--muted-strong);
}
.price-val .val {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-val .per {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 600;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-block-end: 2rem;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.price-features svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-block-start: 2px;
}

.price-card .btn {
  width: 100%;
}

.pricing-note {
  margin-block-start: 1.75rem;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}
.pricing-more {
  margin-block-start: 1.5rem;
  text-align: center;
}

/* Billing toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-block-start: 2.25rem;
  font-weight: 700;
  font-size: var(--text-sm);
}
.billing-toggle span:not(.switch):not(.slider) {
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.billing-toggle span.active {
  color: var(--ink);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur) var(--ease);
}
.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked + .slider {
  background: var(--primary-gradient);
}
.switch input:checked + .slider::before {
  transform: translateX(24px);
}
html[dir="rtl"] .switch input:checked + .slider::before {
  transform: translateX(-24px);
}
.switch input:focus-visible + .slider {
  outline: 2px solid var(--ring-color);
  outline-offset: 2px;
}

.save-badge {
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--brand-700);
  background: var(--brand-100);
  border: 1px solid rgba(16, 185, 143, 0.3);
}
[data-theme="dark"] .save-badge {
  color: var(--brand-300);
  background: rgba(16, 185, 143, 0.14);
}

/* ── 12. FAQ accordion ───────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  margin-block-start: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item.active {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow-md);
}
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  text-align: start;
}
.faq-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq-item.active .faq-btn svg {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-ans {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-sm);
  padding-inline: 1.4rem;
  transition: max-height 280ms var(--ease);
}
.faq-item.active .faq-ans {
  padding-block-end: 1.25rem;
}

/* ── 13. CTA band ────────────────────────────────────────────── */
.cta-band {
  padding-block: clamp(4rem, 8vw, 6rem);
}
.cta-band .box {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, #0F766E 0%, #0891B2 60%, #0369A1 100%);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}
.cta-band .box::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
              radial-gradient(500px 260px at 85% 100%, rgba(255, 255, 255, 0.14), transparent 55%);
  pointer-events: none;
}
.cta-band .box > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  margin-block-end: 0.75rem;
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-block-end: 1.75rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: #0F766E;
  box-shadow: var(--shadow-md);
}
.cta-band .btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.contact-box h2 {
  margin-block-end: 0.5rem;
}
.contact-box p {
  color: var(--muted);
  margin-block-end: 1.75rem;
}

/* ── 14. Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  padding-block-start: calc(var(--nav-h) + clamp(3rem, 6vw, 4.5rem));
  padding-block-end: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-gradient);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  inset-block-start: -180px;
  inset-inline-end: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 143, 0.28), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  margin-block-end: 1rem;
}
.page-hero .sub {
  font-size: var(--text-lg);
  color: var(--muted-strong);
  max-width: 620px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  margin-block-end: 1.5rem;
}
.crumbs a {
  transition: color var(--dur) var(--ease);
}
.crumbs a:hover {
  color: var(--primary-strong);
}
.crumb-sep {
  color: var(--muted);
  opacity: 0.6;
}

/* ── 15. Checklist grid (module pages) ───────────────────────── */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block-start: 2rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.check-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-block-start: 1px;
}

/* ── 16. Integrations status badges ──────────────────────────── */
.int-status {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.22rem 0.55rem;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}
.int-status.live {
  color: var(--brand-700);
  background: var(--brand-100);
  border: 1px solid rgba(16, 185, 143, 0.3);
}
.int-status.wip {
  color: var(--warn);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.int-status.planned {
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
[data-theme="dark"] .int-status.live {
  color: var(--brand-300);
  background: rgba(16, 185, 143, 0.14);
}

/* ── 17. Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-block-start: 1px solid var(--line);
  padding-block-start: clamp(3rem, 6vw, 4.5rem);
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-inner .tagline {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-block-start: 1rem;
  max-width: 280px;
}
.footer-inner h4 {
  margin-block-end: 1.1rem;
  color: var(--ink-soft);
}
.footer-inner > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-inner a {
  color: var(--muted);
  font-size: var(--text-sm);
  width: fit-content;
  transition: color var(--dur) var(--ease);
}
.footer-inner a:hover {
  color: var(--primary-strong);
}
.footer-inner .wordmark b {
  color: var(--ink);
}

.footer-bottom {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.75rem clamp(1.25rem, 4vw, 2rem) 2.25rem;
  margin-block-start: 2.5rem;
  border-block-start: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* ── 18. Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero .sub {
    margin-inline: auto;
  }
  .ctas {
    justify-content: center;
  }
  .hero-visual {
    max-width: 720px;
    margin-inline: auto;
    width: 100%;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }
  .hamburger-btn {
    display: inline-flex;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-block-end: 1px solid var(--line);
  }
  .stat:nth-child(2) {
    border-inline-end: none;
  }
  .stat:nth-child(n+3) {
    border-block-end: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .price-card.featured {
    order: -1;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
  .downloads {
    grid-template-columns: 1fr;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .tabs {
    display: flex;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }
  .bar .url {
    display: none;
  }
}

/* ── 19. Motion safety ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .feature:hover,
  .price-card:hover,
  .app-window:hover,
  .btn:hover {
    transform: none;
  }
}
