/* ============================================================
   ITqaid Enterprise SaaS Design System v13.0
   Modern precision UI — Aurora glass, hairline borders,
   fluid type scale, dual theme (dark / light), full RTL.
   Structure & class names are unchanged: visual layer only.
   ============================================================ */

:root {
  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

:root[data-theme="dark"] {
  --bg: #06080f;
  --bg-elev: #0a1020;
  --bg-glass: rgba(8, 12, 22, 0.72);
  --card: #0d1424;
  --card-2: #131c31;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(129, 140, 248, 0.42);
  --text: #f6f8ff;
  --text-sub: #c6d0e4;
  --text-muted: #8b97ae;
  --primary: #5b5bf6;
  --primary-2: #0ea5e9;
  --accent: #7dd3fc;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 16px 40px -18px rgba(2, 6, 23, 0.75);
  --shadow-lg: 0 34px 80px -30px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px rgba(129, 140, 248, 0.10), 0 24px 70px -32px rgba(79, 70, 229, 0.55);
  --ring: rgba(125, 211, 252, 0.45);
  --grid-line: rgba(148, 163, 184, 0.045);
  --aurora-1: rgba(99, 102, 241, 0.30);
  --aurora-2: rgba(14, 165, 233, 0.22);
  --aurora-3: rgba(168, 85, 247, 0.16);
  --hairline: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-elev: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.80);
  --card: #ffffff;
  --card-2: #f1f4fa;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(79, 70, 229, 0.32);
  --text: #0b1220;
  --text-sub: #334155;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-2: #0284c7;
  --accent: #0369a1;
  --ok: #059669;
  --warn: #b45309;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px -24px rgba(15, 23, 42, 0.28);
  --shadow-lg: 0 34px 80px -40px rgba(15, 23, 42, 0.35);
  --glow: 0 18px 48px -26px rgba(79, 70, 229, 0.45);
  --ring: rgba(79, 70, 229, 0.35);
  --grid-line: rgba(15, 23, 42, 0.035);
  --aurora-1: rgba(99, 102, 241, 0.16);
  --aurora-2: rgba(14, 165, 233, 0.14);
  --aurora-3: rgba(168, 85, 247, 0.10);
  --hairline: rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
html[lang="en"] body {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 40% at 12% -8%, var(--aurora-1), transparent 62%),
    radial-gradient(52% 36% at 88% -4%, var(--aurora-2), transparent 66%),
    radial-gradient(60% 44% at 50% 108%, var(--aurora-3), transparent 70%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed, fixed, fixed, scroll, scroll;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
img { max-width: 100%; }
strong { font-weight: 800; }
code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--card-2);
  border: 1px solid var(--border);
}

::selection {
  background: rgba(99, 102, 241, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Slim modern scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: padding-box; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==================== STICKY GLASS NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.8);
}
.navbar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 18px;
}
.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
  filter: drop-shadow(0 4px 14px rgba(2, 6, 23, 0.35));
}
.brand-logo:hover { transform: scale(1.03); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-btn:hover {
  color: var(--text);
  background: var(--card-2);
}
.nav-btn.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(14, 165, 233, 0.14));
  border-color: var(--border-strong);
}
.nav-btn.active::after {
  content: "";
  position: absolute;
  inset-inline: 30%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme & language controls */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  background: var(--card-2);
  transform: translateY(-1px);
}

.lang-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.lang-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  background: var(--card-2);
}

/* ==================== BUTTONS ==================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.995); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px -12px rgba(79, 70, 229, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(79, 70, 229, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--card-2);
  transform: translateY(-2px);
}

.btn-google {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #d7dce7;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.btn-google:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

/* ==================== HERO SECTION & LIVE MOCKUP ==================== */
.hero {
  position: relative;
  padding: 84px 0 48px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline: 8%;
  top: 8px;
  height: 380px;
  background: radial-gradient(58% 100% at 50% 0%, var(--aurora-1), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text-sub);
  padding: 6px 16px 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.38); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.16;
  max-width: 940px;
  margin: 0 auto 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, #818cf8 46%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  font-weight: 400;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Desktop app preview window */
.app-showcase {
  position: relative;
  max-width: 1140px;
  margin: 0 auto 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--glow);
  overflow: hidden;
  text-align: start;
}
.app-showcase::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
  z-index: 3;
}
.app-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--card-2), var(--bg-elev));
  border-bottom: 1px solid var(--border);
}
.hero-preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-lang-switch {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px;
  gap: 4px;
}
.hero-lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.hero-lang-btn:hover { color: var(--text); }
.hero-lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  box-shadow: 0 4px 14px -6px rgba(79, 70, 229, 0.8);
}
.hero-screenshot-wrap {
  position: relative;
  background: #070b14;
  cursor: zoom-in;
  overflow: hidden;
}
.hero-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.hero-screenshot-wrap:hover .hero-screenshot-img { transform: scale(1.012); }
.hero-zoom-hint {
  position: absolute;
  bottom: 16px;
  inset-inline-end: 16px;
  background: rgba(8, 12, 22, 0.72);
  color: #f6f8ff;
  border: 1px solid rgba(125, 211, 252, 0.38);
  backdrop-filter: blur(14px);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.94;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.9);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}
.hero-screenshot-wrap:hover .hero-zoom-hint,
.guide-shot-wrap:hover .hero-zoom-hint {
  opacity: 1;
  transform: translateY(-2px);
}
.hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hero-lightbox-bar {
  width: 100%;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: #f6f8ff;
}
.hero-lightbox img {
  max-width: min(96vw, 1320px);
  max-height: 86vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(125, 211, 252, 0.30);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

/* ==================== VISUAL APP GUIDE PAGE (/guide) ==================== */
.guide-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.guide-search {
  max-width: 620px;
  margin: 0 !important;
  text-align: start;
}
.guide-jump-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 38px;
}
.guide-jump-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.18s var(--ease);
}
.guide-jump-pill:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--card-2);
  transform: translateY(-1px);
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.guide-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 100px;
  overflow: hidden;
}
.guide-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.guide-card-head h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.guide-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
}
.guide-shot-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #070b14;
  cursor: zoom-in;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.guide-shot-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s var(--ease);
}
.guide-shot-wrap:hover img { transform: scale(1.008); }
.guide-tools-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 14px;
}
.guide-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.guide-tool-item {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.guide-tool-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.guide-tool-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text);
}
.guide-tool-name svg { color: var(--ok); flex-shrink: 0; }
.guide-tool-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Window chrome */
.win-dots { display: flex; gap: 7px; }
.win-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.win-dots span:nth-child(1) { background: #f87171; }
.win-dots span:nth-child(2) { background: #fbbf24; }
.win-dots span:nth-child(3) { background: #34d399; }
.win-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Static mock window (kept for compatibility) */
.app-win-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 290px;
}
@media (max-width: 780px) {
  .app-win-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
}
.mock-sidebar {
  background: var(--bg-elev);
  border-inline-end: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.mock-nav-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
}
.mock-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.mock-kpi {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.mock-kpi-lbl { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.mock-kpi-val { font-size: 18px; font-weight: 800; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; }
.mock-kpi-sub { font-size: 11px; color: var(--ok); font-weight: 700; margin-top: 2px; }
.mock-rows {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.mock-row:last-child { border-bottom: none; padding-bottom: 0; }

/* ==================== STATS STRIP ==================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stat-card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  background: linear-gradient(120deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.6;
}

/* ==================== SECTIONS ==================== */
.section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 38px; }
.sec-head h2 {
  font-size: clamp(24px, 3.1vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 12px;
  text-wrap: balance;
}
.sec-head p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.8;
}

/* Filter chips */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}
.filter-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 22px -12px rgba(79, 70, 229, 0.9);
}

/* ==================== FEATURE CARDS ==================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease), background 0.26s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  transition: background 0.26s var(--ease);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aurora-1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--card), var(--card-2));
}
.feature-card:hover::after { opacity: 1; }
.f-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.14));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.26s var(--ease);
}
.feature-card:hover .f-icon { transform: translateY(-2px) scale(1.04); }
.feature-card h3 { font-size: 16.5px; font-weight: 800; line-height: 1.45; letter-spacing: -0.01em; }
.feature-card p { font-size: 13.8px; line-height: 1.8; color: var(--text-muted); }
.f-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.f-bullets li {
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.f-bullets li svg {
  color: var(--ok);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ==================== PRICING CARDS ==================== */
.pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 90% at 50% -20%, var(--aurora-1), transparent 62%),
    var(--card);
  box-shadow: var(--shadow-lg), 0 0 60px -30px rgba(99, 102, 241, 0.8);
}
.pop-ribbon {
  position: absolute;
  top: -13px;
  inset-inline-end: 24px;
  background: linear-gradient(95deg, var(--primary), var(--primary-2));
  color: #ffffff;
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 0.95);
}
.price-big {
  font-size: 42px;
  font-weight: 800;
  margin: 14px 0 4px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.price-big small { font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }

/* ==================== PANELS, FORMS & TABLES ==================== */
.panel-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.panel-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.panel-card h3 { letter-spacing: -0.01em; }

.auth-box {
  max-width: 460px;
  margin: 48px auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
}

.input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.input::placeholder { color: var(--text-muted); opacity: 0.85; }
.input:hover { border-color: var(--border-strong); }
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
  background: var(--card);
}
textarea.input { resize: vertical; min-height: 92px; }

select.input { cursor: pointer; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  text-align: start;
  vertical-align: middle;
}
th {
  color: var(--text-muted);
  background: var(--card-2);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
thead th:first-child { border-start-start-radius: var(--radius-xs); }
thead th:last-child { border-start-end-radius: var(--radius-xs); }
tbody tr { transition: background 0.16s var(--ease); }
tbody tr:hover { background: var(--card-2); }
tbody tr:last-child td { border-bottom: none; }
td small { color: var(--text-muted); font-size: 11.5px; }

.badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  line-height: 1.7;
}
.badge-ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.28);
}
.badge-warn {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.28);
}

/* ==================== LIVE CHAT ==================== */
.chat-window {
  height: 380px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, var(--card-2), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.msg-bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}
.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  border-end-end-radius: 6px;
}
.msg-support {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-end-start-radius: 6px;
}
.msg-meta {
  font-size: 10.5px;
  opacity: 0.8;
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-fab {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 95;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(79, 70, 229, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -18px rgba(79, 70, 229, 1), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.chat-popup {
  position: fixed;
  bottom: 88px;
  inset-inline-end: 26px;
  width: min(390px, calc(100vw - 28px));
  height: 510px;
  max-height: calc(100vh - 115px);
  z-index: 150;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-popup.open { display: flex; }
.chat-popup-head {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-popup-close {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-popup-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.chat-popup-foot {
  padding: 10px 12px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* ==================== MODAL & FOOTER ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg), 0 0 80px -40px rgba(99, 102, 241, 0.8);
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--bg-elev));
  padding: 34px 0 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.footer-link {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  transition: color 0.18s var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}
.footer-link:hover { color: var(--accent); }
.footer-link:hover::after { transform: scaleX(1); }

/* ==================== PLAN COMPARISON MATRIX ==================== */
.compare-wrap {
  overflow-x: auto;
  margin-top: 36px;
}
.compare-table th {
  text-align: center;
  padding: 16px 14px;
  font-size: 12px;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: start;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}
.compare-table td {
  text-align: center;
  padding: 13px 14px;
}
.compare-table .col-pro {
  background: rgba(99, 102, 241, 0.07);
}
.compare-table thead .col-pro {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent) !important;
}
.check-yes { color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.check-no { color: var(--text-muted); opacity: 0.4; display: inline-flex; align-items: center; justify-content: center; }

/* ==================== CONTACT PAGE ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.contact-item .f-icon { width: 40px; height: 40px; border-radius: 11px; }
.contact-item-title {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact-item-val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
  word-break: break-word;
}

/* ==================== LEGAL PROSE ==================== */
.legal-prose h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 22px 0 8px;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--primary);
  line-height: 1.5;
}
.legal-prose h3:first-child { margin-top: 0; }
.legal-prose p {
  font-size: 14.5px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.9;
}
.legal-prose ul {
  padding-inline-start: 22px;
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 14px;
}
.legal-prose li { margin-bottom: 7px; line-height: 1.85; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .nav-inner {
    height: auto;
    min-height: var(--nav-h);
    flex-wrap: wrap;
    padding-block: 12px;
    row-gap: 10px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-btn { padding: 7px 12px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 34px; }
  .hero .lead { font-size: 15.5px; }
  .hero-ctas { gap: 10px; margin-bottom: 38px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .btn span { white-space: normal; }
  .section { padding: 40px 0; }
  .panel-card { padding: 20px; }
  .feature-card { padding: 22px; }
  .pricing-card { padding: 26px; }
  .auth-box { margin: 28px auto; padding: 24px; }
  .guide-card { padding: 20px; }
  .hero-zoom-hint { font-size: 11px; padding: 6px 11px; inset-inline-end: 10px; bottom: 10px; }
  .chat-fab { bottom: 18px; inset-inline-end: 18px; padding: 12px 16px; }
  .chat-fab span { display: none; }
  .brand-logo { height: 34px; }
  th, td { padding: 10px; font-size: 12.5px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 22px; }
  .stat-card { padding: 16px 12px; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .nav-actions { gap: 6px; }
  .lang-btn { padding: 0 10px; }
  .hero-pill { font-size: 11.5px; padding-inline: 12px; }
  .btn { padding: 11px 18px; font-size: 13.5px; }
}

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