/* ============================================================================
   Shashty Landing — Brand-aligned Frontend
   Brand: Primary #373663 · Secondary #23337e · Success #35af4d · CTA #f0fd1d
   ============================================================================ */

:root {
  --primary: #373663;
  --primary-rgb: 55, 54, 99;
  --secondary: #23337e;
  --secondary-rgb: 35, 51, 126;
  --success: #35af4d;
  --cta: #f0fd1d;

  --bg: #ffffff;
  --section-bg: #f8f9f9;
  --border: #e5e7ef;
  --border-soft: #eef0f6;

  --title: #373663;
  --text: #5b5c74;
  --text-soft: #8184a1;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.06);
  --shadow: 0 10px 30px rgba(var(--primary-rgb), 0.08);
  --shadow-lg: 0 20px 60px rgba(var(--primary-rgb), 0.12);

  --font: "Nexa Light", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-heading: "Nexa Bold", "Cairo", "Segoe UI", Tahoma, sans-serif;

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

@font-face {
  font-family: "Nexa Bold";
  src: local("Nexa Bold"), local("NexaBold");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nexa Light";
  src: local("Nexa Light"), local("NexaLight");
  font-weight: 300;
  font-display: swap;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--title);
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.2vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--section-bg); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { color: var(--text); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(var(--secondary-rgb), 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .02em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .96rem;
  transition: all .25s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); padding: 10px 16px; }
.btn-ghost:hover { color: var(--secondary); background: rgba(var(--secondary-rgb), 0.06); }
.btn-cta { background: var(--cta); color: var(--primary); border-color: var(--cta); }
.btn-cta:hover { background: var(--primary); color: var(--cta); border-color: var(--primary); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  transition: all .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary);
}
.logo:hover { color: var(--primary); }
.logo-img { height: 42px; width: auto; display: block; }
.logo-footer .logo-img {
  height: 52px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--title);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .96rem;
  transition: all .2s var(--ease);
}
.main-nav a:hover { color: var(--secondary); background: rgba(var(--secondary-rgb), 0.06); }
.main-nav a.active { color: var(--secondary); background: rgba(var(--secondary-rgb), 0.08); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
}
.menu-toggle span {
  width: 20px; height: 2px; background: var(--primary); border-radius: 2px;
  transition: all .25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 160px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}
.hero-bg-shape {
  position: absolute;
  inset-inline-start: -10%;
  top: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(var(--secondary-rgb), 0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  z-index: 1;
}
.hero-content .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-content .pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(53,175,77,0.2);
}
.hero-content h1 { margin-bottom: 20px; }
.accent-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p { font-size: 1.12rem; max-width: 540px; margin-bottom: 32px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 540px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.badge-item .badge-icon {
  width: 40px; height: 40px;
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge-item strong { display: block; font-family: var(--font-heading); font-weight: 700; font-size: .92rem; color: var(--title); }
.badge-item small { color: var(--text-soft); font-size: .78rem; }

/* Hero visual — phone mockup with floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.hero-phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a1a2e, #373663);
  border-radius: 42px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(var(--primary-rgb), 0.25), 0 0 0 10px rgba(0,0,0,0.05);
  transform: rotate(-4deg);
}
.phone-screen {
  background: #fff;
  border-radius: 30px;
  height: 100%;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.phone-screen::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 80px; height: 5px;
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}
.phone-header {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}
.phone-dot { width: 40px; height: 8px; border-radius: 4px; background: rgba(var(--primary-rgb), 0.1); }
.phone-dot:nth-child(1) { background: rgba(var(--secondary-rgb), 0.4); width: 60px; }
.phone-row {
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}
.phone-row::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.2);
}
.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phone-card {
  background: #f8f9f9;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-card .phone-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(var(--secondary-rgb), 0.12);
}
.phone-card .ic-2 { background: rgba(53,175,77,0.18); }
.phone-card .ic-3 { background: rgba(var(--primary-rgb), 0.15); }
.phone-card .ic-4 { background: rgba(240,253,29,0.5); }
.phone-card span { display: block; height: 6px; background: #e5e7ef; border-radius: 3px; width: 80%; }
.phone-cta {
  margin-top: auto;
  height: 44px;
  border-radius: 14px;
  background: var(--cta);
}

.floating-card {
  position: absolute;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: .88rem;
  color: var(--title);
  animation: float 4s ease-in-out infinite;
}
.floating-card.fc-1 { inset-inline-start: -10px; top: 20%; }
.floating-card.fc-2 { inset-inline-end: -10px; bottom: 20%; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  padding: 48px 0;
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset-inline-start: 10%;
  top: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(240,253,29,0.08), transparent 70%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  text-align: center;
  padding: 16px;
}
.stat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: var(--cta);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-num::after { content: "+"; color: var(--cta); margin-inline-start: 2px; }
.stat-label { color: rgba(255,255,255,0.8); font-size: .96rem; }

/* ==========================================================================
   Category Cards (About)
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all .3s var(--ease);
  position: relative;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  margin-bottom: 22px;
  color: #fff;
}
.cat-icon-1 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cat-icon-2 { background: linear-gradient(135deg, var(--secondary), #4c5cb8); }
.cat-icon-3 { background: linear-gradient(135deg, var(--success), #5dc36f); }
.cat-card h3 { margin-bottom: 10px; }
.cat-card p { color: var(--text); }
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: .92rem;
  margin-top: 12px;
}
.cat-link:hover { color: var(--primary); }
.cat-link svg { transition: transform .25s var(--ease); }
[dir="rtl"] .cat-link svg { transform: rotate(180deg); }
.cat-link:hover svg { transform: rotate(180deg) translateX(-4px); }
[dir="ltr"] .cat-link:hover svg { transform: translateX(-4px); }

/* ==========================================================================
   Features
   ========================================================================== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: #fff;
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  transition: all .3s var(--ease);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.feat-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: all .3s var(--ease);
}
.feat-card:hover .feat-ic {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.05);
}
.feat-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feat-card p { color: var(--text); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Apps
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all .3s var(--ease);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.app-card.featured {
  background: linear-gradient(160deg, #fff 50%, rgba(var(--secondary-rgb), 0.04));
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}
.app-card-icon {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
  color: #fff;
}
.grad-1 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.grad-2 { background: linear-gradient(135deg, var(--secondary), #4c5cb8); }
.grad-3 { background: linear-gradient(135deg, var(--success), #5dc36f); }
.app-card-tag {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: var(--cta);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.app-card h3 { margin-bottom: 8px; }
.app-card p { color: var(--text); margin-bottom: 20px; }
.app-store-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  transition: all .25s var(--ease);
  text-align: start;
}
.store-btn:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.store-btn svg { flex-shrink: 0; }
.store-btn small { display: block; font-size: .68rem; opacity: .8; line-height: 1.2; }
.store-btn strong { display: block; font-family: var(--font-heading); font-size: .88rem; line-height: 1.2; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all .3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-thumb {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center;
}
.blog-thumb-1 { background: linear-gradient(135deg, #373663 0%, #23337e 100%); }
.blog-thumb-2 { background: linear-gradient(135deg, #23337e 0%, #4c5cb8 100%); }
.blog-thumb-3 { background: linear-gradient(135deg, #35af4d 0%, #2d8a3f 100%); }
.blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}
.blog-thumb .tag {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
}
.blog-body { padding: 24px 26px 28px; }
.blog-meta { display: flex; gap: 8px; font-size: .82rem; color: var(--text-soft); margin-bottom: 10px; }
.blog-body h3 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.45; }
.blog-body p { color: var(--text); font-size: .95rem; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--secondary);
  font-size: .92rem;
  margin-top: 8px;
}
[dir="rtl"] .blog-link svg { transform: rotate(180deg); }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240,253,29,0.08), transparent 70%);
}
.cta-banner::before { width: 400px; height: 400px; inset-inline-start: -10%; top: -50%; }
.cta-banner::after { width: 500px; height: 500px; inset-inline-end: -15%; bottom: -80%; }
.cta-banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 1.05rem; }
.cta-banner-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  font-size: .95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-about .logo { color: #fff; margin-bottom: 16px; }
.footer-about .logo:hover { color: #fff; }
.footer-about p { color: rgba(255,255,255,0.6); line-height: 1.8; }
.social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.social a:hover { background: var(--cta); color: var(--primary); transform: translateY(-3px); }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  transition: all .2s var(--ease);
}
.footer-col ul a:hover { color: var(--cta); }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.contact-list svg { color: var(--cta); flex-shrink: 0; margin-top: 3px; }
.contact-list a { color: inherit; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--cta); }

/* ==========================================================================
   Scroll-to-top button
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content p, .hero-badges { margin-inline: auto; }
  .hero-badges { max-width: 540px; }
  .cta-group { justify-content: center; }
  .hero-visual { min-height: 480px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .feat-grid, .apps-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }

  .cta-banner-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-banner-actions { justify-content: center; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

  .main-nav {
    position: fixed;
    top: 72px;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    gap: 2px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 14px 16px; }
  .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .container { padding: 0 18px; }
  .hero { padding: 120px 0 56px; }
  .hero-phone { width: 240px; height: 480px; }
  .hero-visual { min-height: 420px; }
  .hero-badges { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-num { font-size: 1.9rem; }

  .cat-grid, .feat-grid, .apps-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .nav-bar { gap: 12px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: .88rem; }
  .logo span { display: none; }

  .cta-banner-actions { flex-direction: column; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Reveal on scroll animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: all .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
