/* جِوار — Web landing theme (matches Flutter AppColors) */
:root {
  --primary: #1b4332;
  --primary-dark: #0f2e22;
  --primary-muted: #2d6a4f;
  --primary-light: #e8f5ee;
  --background: #f7faf8;
  --surface: #ffffff;
  --border: #dce8e1;
  --text-primary: #1a2e24;
  --text-secondary: #5c7268;
  --text-on-primary: #ffffff;
  --accent-yellow: #f5c842;
  --accent-yellow-bg: #fff8e1;
  --danger: #d64545;
  --shadow: rgba(26, 46, 36, 0.08);
  --shadow-lg: rgba(27, 67, 50, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --header-h: 72px;
  --max-w: 1180px;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ─── Header ─── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 232, 225, 0.85);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.brand:hover img {
  transform: rotate(-4deg) scale(1.04);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: block;
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: 0 16px 40px var(--shadow-lg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
}

.nav-mobile.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s;
}

[dir="rtl"] .nav-mobile a {
  transform: translateX(-12px);
}

.nav-mobile.open a {
  opacity: 1;
  transform: translateX(0);
}

.nav-mobile.open a:nth-child(1) { transition-delay: 0.04s; }
.nav-mobile.open a:nth-child(2) { transition-delay: 0.08s; }
.nav-mobile.open a:nth-child(3) { transition-delay: 0.12s; }
.nav-mobile.open a:nth-child(4) { transition-delay: 0.16s; }
.nav-mobile.open a:nth-child(5) { transition-delay: 0.2s; }
.nav-mobile.open a:nth-child(6) { transition-delay: 0.24s; }
.nav-mobile.open a:nth-child(7) { transition-delay: 0.28s; }

.nav-mobile a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-muted), var(--primary));
  color: var(--text-on-primary);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.34);
  transform: translateY(-1px);
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(27, 67, 50, 0.35);
  box-shadow: 0 6px 20px var(--shadow);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid rgba(27, 67, 50, 0.2);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: clip visible;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout style;
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45, 106, 79, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(27, 67, 50, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(245, 200, 66, 0.06), transparent);
  animation: heroMeshShift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.14), transparent 70%);
  will-change: transform;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  inset-inline-start: -140px;
  animation: heroOrbFloatA 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  inset-inline-end: -100px;
  animation: heroOrbFloatB 16s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  inset-inline-end: 35%;
  opacity: 0.6;
  animation: heroOrbFloatC 12s ease-in-out infinite;
}

.bg-icon {
  position: absolute;
  opacity: 0;
  width: 56px;
  height: 56px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
  will-change: transform;
}

.hero-ready .bg-icon {
  opacity: 0.07;
}

.hero-ready .bg-icon-6 {
  opacity: 0.05;
}

.bg-icon-1 { top: 18%; inset-inline-end: 12%; width: 72px; height: 72px; }
.bg-icon-2 { top: 42%; inset-inline-start: 6%; width: 48px; height: 48px; }
.bg-icon-3 { bottom: 22%; inset-inline-end: 22%; width: 64px; height: 64px; }
.bg-icon-4 { top: 28%; inset-inline-start: 18%; width: 40px; height: 40px; }
.bg-icon-5 { bottom: 35%; inset-inline-start: 28%; width: 52px; height: 52px; }
.bg-icon-6 { top: 8%; inset-inline-start: 42%; width: 44px; height: 44px; opacity: 0.05; }

.hero-icon-float {
  animation: heroIconDrift 9s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(27, 67, 50, 0.1);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.08);
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.5);
  animation: heroDotPulse 2.4s ease-out infinite;
  flex-shrink: 0;
}

.hero-tag img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
}

.hero-title-accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-muted) 0%,
    var(--primary) 50%,
    var(--primary-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTitleShine 6s ease-in-out infinite;
}

.hero-btn-glow {
  position: relative;
  overflow: hidden;
}

.hero-btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: heroBtnShimmer 4.5s ease-in-out infinite;
}

.hero-enter {
  opacity: 0;
  transform: translateY(28px);
}

.hero-ready .hero-enter {
  animation: heroEnter 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter-1 { animation-delay: 0.05s; }
.hero-enter-2 { animation-delay: 0.15s; }
.hero-enter-3 { animation-delay: 0.28s; }
.hero-enter-4 { animation-delay: 0.4s; }
.hero-enter-5 { animation-delay: 0.52s; }

.hero-desc {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 34rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-ready .hero-stat {
  animation: heroStatPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}

.hero-ready .hero-stat:nth-child(1) { animation-delay: 0.65s; }
.hero-ready .hero-stat:nth-child(2) { animation-delay: 0.78s; }
.hero-ready .hero-stat:nth-child(3) { animation-delay: 0.91s; }

/* ─── Phone mockups ─── */
.phones-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 560px;
  padding-bottom: 12px;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  overflow: visible;
}

.hero-phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(45, 106, 79, 0.24) 0%, transparent 62%),
    radial-gradient(circle, rgba(245, 200, 66, 0.08) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlowPulse 5s ease-in-out infinite;
  will-change: transform, opacity;
}

.phone-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 280px;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse,
    rgba(15, 46, 34, 0.18) 0%,
    rgba(15, 46, 34, 0.04) 55%,
    transparent 72%
  );
  pointer-events: none;
}

.phone {
  width: 236px;
  position: relative;
  opacity: 0;
  will-change: transform;
}

.phone-frame {
  position: relative;
  padding: 3px;
  border-radius: 40px;
  background: linear-gradient(145deg, #3a3a3c 0%, #1c1c1e 35%, #2c2c2e 70%, #0a0a0b 100%);
  box-shadow:
    0 40px 80px rgba(15, 46, 34, 0.32),
    0 12px 24px rgba(15, 46, 34, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: #0a0a0b;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  background: var(--background);
  border-radius: 36px;
  overflow: hidden;
  height: 468px;
  position: relative;
  isolation: isolate;
}

.phone-center {
  z-index: 3;
  filter: drop-shadow(0 24px 40px rgba(15, 46, 34, 0.2));
}

.hero-ready .phone-center {
  animation:
    heroPhoneRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
    heroPhoneFloat 5.5s ease-in-out 1.2s infinite;
}

.phone-side {
  position: absolute;
  z-index: 1;
  width: 210px;
}

.phone-side .phone-frame {
  border-radius: 34px;
}

.phone-side .phone-screen {
  height: 420px;
  border-radius: 31px;
}

.phone-side .phone-island {
  width: 62px;
  height: 17px;
  top: 12px;
}

.hero-ready .phone-left {
  animation:
    heroSideRiseLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards,
    heroSideFloatLeft 6.5s ease-in-out 1.3s infinite;
}

.hero-ready .phone-right {
  animation:
    heroSideRiseRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards,
    heroSideFloatRight 7s ease-in-out 1.45s infinite;
}

.hero-ready .phone-center .mock-hero-card {
  animation: heroCardSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.95s backwards;
}

.hero-ready .phone-center .mock-card:not(.mock-card-faded) {
  animation: heroCardSlide 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.1s backwards;
}

.phone-left {
  inset-inline-start: 0;
  bottom: 12px;
}

.phone-right {
  inset-inline-end: 0;
  bottom: 12px;
}

.phone-left .phone-frame,
.phone-right .phone-frame {
  opacity: 0.96;
}

/* Mock UI inside phones */
.mock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.mock-status-icons {
  font-size: 7px;
  letter-spacing: 1px;
  opacity: 0.55;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mock-header strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.mock-header small {
  display: block;
  font-size: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mock-header .logo-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-inline-start: auto;
  box-shadow: 0 2px 8px var(--shadow);
}

.mock-header-inbox {
  justify-content: space-between;
}

.mock-header-chat .mock-back {
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
  font-weight: 700;
  transform: scaleX(-1);
}

.mock-search {
  margin: 8px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 8px;
  color: var(--text-secondary);
}

.mock-scroll {
  padding: 6px 8px 72px;
  height: calc(100% - 24px);
  overflow: hidden;
}

.phone-screen-home .mock-scroll {
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.mock-hero-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(220, 232, 225, 0.85);
  box-shadow: 0 8px 20px var(--shadow);
  overflow: hidden;
  margin-bottom: 8px;
}

.mock-hero-head {
  position: relative;
  padding: 10px 12px 22px;
  background: linear-gradient(
    135deg,
    var(--primary-muted) 0%,
    var(--primary) 52%,
    var(--primary-dark) 100%
  );
  color: white;
  overflow: hidden;
}

.mock-hero-orbs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.mock-hero-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.mock-brand-chip,
.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mock-brand-chip img,
.mock-city img,
.mock-map-link img {
  width: 9px;
  height: 9px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.mock-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 6px rgba(245, 200, 66, 0.65);
}

.mock-hero-head h4 {
  position: relative;
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.mock-city {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 4px;
  font-size: 8px;
  opacity: 0.88;
  font-weight: 600;
}

.mock-hero-sub {
  position: relative;
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
  opacity: 0.86;
}

.mock-stats-panel {
  display: flex;
  align-items: stretch;
  margin: -14px 10px 0;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(220, 232, 225, 0.9);
  box-shadow: 0 6px 16px var(--shadow);
  overflow: hidden;
}

.mock-stat {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
}

.mock-stat b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.mock-stat span {
  display: block;
  font-size: 7px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.mock-stat-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mock-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px 10px 10px;
  padding: 7px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
}

.mock-map-link img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
}

.mock-card {
  padding: 9px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(220, 232, 225, 0.85);
  box-shadow: 0 4px 14px var(--shadow);
  margin-bottom: 7px;
}

.mock-card-faded {
  opacity: 0.55;
  transform: scale(0.98);
}

.mock-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 6px;
}

.mock-badge-alert {
  background: var(--accent-yellow-bg);
  color: #8a6d00;
}

.mock-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.mock-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  flex-shrink: 0;
}

.mock-avatar-a { background: #dff3e8; color: #1b4332; }
.mock-avatar-b { background: #fff3d6; color: #7a5d00; }
.mock-avatar-c { background: #e8edf5; color: #2a4365; }

.mock-user span {
  display: block;
  font-size: 9px;
  font-weight: 700;
}

.mock-user time {
  display: block;
  font-size: 7px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1px;
}

.mock-body {
  font-size: 9px;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.mock-thumb {
  height: 52px;
  border-radius: 10px;
  margin-bottom: 6px;
  background:
    linear-gradient(135deg, rgba(27, 67, 50, 0.08), rgba(45, 106, 79, 0.18)),
    url("https://images.unsplash.com/photo-1555939594-58d7cb561ad1?auto=format&fit=crop&w=400&h=200&q=80")
      center / cover no-repeat;
}

.mock-actions {
  display: flex;
  gap: 12px;
  font-size: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.mock-actions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mock-actions img {
  width: 11px;
  height: 11px;
  opacity: 0.65;
  filter: brightness(0) saturate(100%) invert(38%) sepia(12%) saturate(700%)
    hue-rotate(108deg) brightness(92%) contrast(88%);
}

.mock-nav {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 4px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 34px;
  color: var(--text-secondary);
}

.mock-nav-item img {
  width: 17px;
  height: 17px;
  opacity: 0.45;
  filter: brightness(0) saturate(100%) invert(38%) sepia(12%) saturate(700%)
    hue-rotate(108deg) brightness(92%) contrast(88%);
}

.mock-nav-item small {
  font-size: 6px;
  font-weight: 700;
}

.mock-nav-item.active {
  color: var(--primary);
}

.mock-nav-item.active img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
}

.mock-nav-fab {
  margin-top: -16px;
}

.mock-nav-fab img {
  width: 34px;
  height: 34px;
  opacity: 1;
  filter: none;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.28);
}

.mock-chat {
  padding: 8px 10px 64px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: calc(100% - 88px);
  overflow: hidden;
}

.mock-chat-date {
  align-self: center;
  font-size: 7px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 2px;
}

.mock-bubble {
  max-width: 78%;
  padding: 7px 9px 5px;
  border-radius: 14px;
  font-size: 9px;
  line-height: 1.45;
  position: relative;
}

.mock-bubble time {
  display: block;
  font-size: 6px;
  opacity: 0.65;
  margin-top: 3px;
  text-align: end;
}

.mock-bubble-in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-end-start-radius: 4px;
  box-shadow: 0 2px 6px var(--shadow);
}

.mock-bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-muted), var(--primary));
  color: white;
  border-end-end-radius: 4px;
  box-shadow: 0 4px 10px rgba(27, 67, 50, 0.22);
}

.mock-bubble-out time {
  opacity: 0.75;
}

.mock-composer {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.mock-composer-field {
  flex: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border);
  font-size: 8px;
  color: var(--text-secondary);
}

.mock-composer-send {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.mock-list-item {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.mock-list-item-unread {
  background: rgba(232, 245, 238, 0.55);
}

.mock-list-item .mock-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.mock-list-body {
  flex: 1;
  min-width: 0;
}

.mock-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.mock-list-top strong {
  font-size: 9px;
  font-weight: 800;
}

.mock-list-top time {
  font-size: 7px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.mock-list-item small {
  display: block;
  font-size: 8px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-unread {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Sections ─── */
section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.stats-band {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, rgba(232, 245, 238, 0.5), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 8px 24px var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.14);
}

.stat-card img {
  width: 22px;
  height: 22px;
  margin: 0 auto 0.5rem;
  opacity: 0.7;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.post-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.post-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.post-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.14);
}

.post-type-image {
  height: 120px;
  overflow: hidden;
}

.post-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-type-card:hover .post-type-image img {
  transform: scale(1.06);
}

.post-type-body {
  padding: 1rem;
  position: relative;
}

.post-type-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.post-type-icon {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 20px;
  height: 20px;
  opacity: 0.55;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
}

.post-type-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.discover-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.discover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.14);
}

.discover-card-image {
  position: relative;
  height: 140px;
}

.discover-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.discover-card:hover .discover-card-image img {
  transform: scale(1.06);
}

.discover-card-tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.discover-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.discover-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.discover-rating {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-yellow);
  background: var(--accent-yellow-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.15);
}

.testimonial-card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.testimonial-card footer strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.testimonial-card footer span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.2rem 1rem;
  box-shadow: 0 4px 16px var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 67, 50, 0.16);
  box-shadow: 0 10px 28px var(--shadow-lg);
}

.faq-item[open] {
  border-color: rgba(27, 67, 50, 0.22);
  box-shadow: 0 12px 32px var(--shadow-lg);
  transform: translateY(-2px);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 0;
  list-style: none;
  transition: color 0.2s ease;
  position: relative;
  padding-inline-end: 1.75rem;
  user-select: none;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.25s ease;
}

.faq-item summary:hover::after {
  background: rgba(232, 245, 238, 0.95);
}

.faq-item[open] summary {
  color: var(--primary);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  margin: 0 0 1rem;
  padding-top: 0.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.faq-item[open] .faq-answer-inner p {
  opacity: 1;
  transform: none;
}

.stats-grid-animated .stat-card,
.post-types-animated .post-type-card,
.discover-grid-animated .discover-card,
.testimonials-animated .testimonial-card,
.faq-list-animated .faq-item {
  opacity: 0;
  transform: translateY(18px);
}

.animate-on-scroll.in-view .stat-card,
.animate-on-scroll.in-view .post-type-card,
.animate-on-scroll.in-view .discover-card,
.animate-on-scroll.in-view .testimonial-card,
.animate-on-scroll.in-view .faq-item,
.stats-grid-animated.in-view .stat-card,
.post-types-animated.in-view .post-type-card,
.discover-grid-animated.in-view .discover-card,
.testimonials-animated.in-view .testimonial-card,
.faq-list-animated.in-view .faq-item {
  animation: featureCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-on-scroll.in-view .stat-card:nth-child(1),
.animate-on-scroll.in-view .post-type-card:nth-child(1),
.animate-on-scroll.in-view .discover-card:nth-child(1),
.animate-on-scroll.in-view .testimonial-card:nth-child(1),
.animate-on-scroll.in-view .faq-item:nth-child(1),
.stats-grid-animated.in-view .stat-card:nth-child(1),
.post-types-animated.in-view .post-type-card:nth-child(1),
.discover-grid-animated.in-view .discover-card:nth-child(1),
.testimonials-animated.in-view .testimonial-card:nth-child(1),
.faq-list-animated.in-view .faq-item:nth-child(1) { animation-delay: 0.05s; }
.animate-on-scroll.in-view .stat-card:nth-child(2),
.animate-on-scroll.in-view .post-type-card:nth-child(2),
.animate-on-scroll.in-view .discover-card:nth-child(2),
.animate-on-scroll.in-view .testimonial-card:nth-child(2),
.animate-on-scroll.in-view .faq-item:nth-child(2),
.stats-grid-animated.in-view .stat-card:nth-child(2),
.post-types-animated.in-view .post-type-card:nth-child(2),
.discover-grid-animated.in-view .discover-card:nth-child(2),
.testimonials-animated.in-view .testimonial-card:nth-child(2),
.faq-list-animated.in-view .faq-item:nth-child(2) { animation-delay: 0.12s; }
.animate-on-scroll.in-view .stat-card:nth-child(3),
.animate-on-scroll.in-view .post-type-card:nth-child(3),
.animate-on-scroll.in-view .discover-card:nth-child(3),
.animate-on-scroll.in-view .testimonial-card:nth-child(3),
.animate-on-scroll.in-view .faq-item:nth-child(3),
.stats-grid-animated.in-view .stat-card:nth-child(3),
.post-types-animated.in-view .post-type-card:nth-child(3),
.discover-grid-animated.in-view .discover-card:nth-child(3),
.testimonials-animated.in-view .testimonial-card:nth-child(3),
.faq-list-animated.in-view .faq-item:nth-child(3) { animation-delay: 0.19s; }
.animate-on-scroll.in-view .stat-card:nth-child(4),
.animate-on-scroll.in-view .post-type-card:nth-child(4),
.animate-on-scroll.in-view .discover-card:nth-child(4),
.animate-on-scroll.in-view .faq-item:nth-child(4),
.stats-grid-animated.in-view .stat-card:nth-child(4),
.post-types-animated.in-view .post-type-card:nth-child(4),
.discover-grid-animated.in-view .discover-card:nth-child(4),
.faq-list-animated.in-view .faq-item:nth-child(4) { animation-delay: 0.26s; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-head.visible h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-muted), var(--accent-yellow));
  animation: sectionLineGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 24px var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.18);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
}

.feature-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%)
    hue-rotate(115deg) brightness(95%) contrast(95%);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ng-repeat grids render after reveal init — animate only when in viewport */
.features-grid-animated .feature-card,
.steps-animated .step-card {
  opacity: 0;
  transform: translateY(20px);
}

.features-grid-animated.in-view .feature-card,
.steps-animated.in-view .step-card,
.animate-on-scroll.in-view .feature-card,
.animate-on-scroll.in-view .step-card {
  animation: featureCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.features-grid-animated.in-view .feature-card:nth-child(1),
.steps-animated.in-view .step-card:nth-child(1),
.animate-on-scroll.in-view .feature-card:nth-child(1),
.animate-on-scroll.in-view .step-card:nth-child(1) { animation-delay: 0.05s; }
.features-grid-animated.in-view .feature-card:nth-child(2),
.steps-animated.in-view .step-card:nth-child(2),
.animate-on-scroll.in-view .feature-card:nth-child(2),
.animate-on-scroll.in-view .step-card:nth-child(2) { animation-delay: 0.12s; }
.features-grid-animated.in-view .feature-card:nth-child(3),
.steps-animated.in-view .step-card:nth-child(3),
.animate-on-scroll.in-view .feature-card:nth-child(3),
.animate-on-scroll.in-view .step-card:nth-child(3) { animation-delay: 0.19s; }
.features-grid-animated.in-view .feature-card:nth-child(4),
.steps-animated.in-view .step-card:nth-child(4),
.animate-on-scroll.in-view .feature-card:nth-child(4),
.animate-on-scroll.in-view .step-card:nth-child(4) { animation-delay: 0.26s; }
.features-grid-animated.in-view .feature-card:nth-child(5),
.steps-animated.in-view .step-card:nth-child(5),
.animate-on-scroll.in-view .feature-card:nth-child(5),
.animate-on-scroll.in-view .step-card:nth-child(5) { animation-delay: 0.33s; }
.features-grid-animated.in-view .feature-card:nth-child(6),
.steps-animated.in-view .step-card:nth-child(6),
.animate-on-scroll.in-view .feature-card:nth-child(6),
.animate-on-scroll.in-view .step-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes featureCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.14);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.3);
}

[dir="rtl"] .step-card::before {
  transform: translateX(50%);
}

.step-card h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.trust-band {
  background: linear-gradient(135deg, var(--primary-muted), var(--primary-dark));
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.trust-band:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(15, 46, 34, 0.28);
}

.trust-band .bg-icon {
  opacity: 0.12;
  filter: brightness(0) invert(1);
}

.trust-band h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.trust-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  line-height: 1.7;
}

.trust-band .trust-band-cta {
  background: var(--surface);
  color: var(--primary);
  border-color: rgba(27, 67, 50, 0.22);
  box-shadow: 0 6px 18px rgba(15, 46, 34, 0.12);
}

.trust-band .trust-band-cta:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-list img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.cta-section:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 67, 50, 0.16);
  box-shadow: 0 22px 56px var(--shadow-lg);
}

.cta-section .bg-icon {
  opacity: 0.06;
}

.cta-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  font-weight: 800;
}

.cta-section p {
  margin: 0 auto 1.5rem;
  max-width: 480px;
  color: var(--text-secondary);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: var(--text-primary);
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 160px;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(26, 46, 36, 0.25);
}

.store-badge strong {
  display: block;
  font-size: 0.95rem;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.footer-brand h3 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.25rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  opacity: 0.75;
  transition:
    opacity 0.2s,
    transform 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(-4px);
}

[dir="rtl"] .footer-col a:hover {
  transform: translateX(4px);
}

.footer-grid.in-view .footer-brand,
.footer-grid.in-view .footer-col {
  animation: featureCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.footer-grid .footer-brand,
.footer-grid .footer-col {
  opacity: 0;
  transform: translateY(16px);
}

.footer-grid.in-view .footer-brand { animation-delay: 0.05s; }
.footer-grid.in-view .footer-col:nth-child(2) { animation-delay: 0.12s; }
.footer-grid.in-view .footer-col:nth-child(3) { animation-delay: 0.19s; }
.footer-grid.in-view .footer-col:nth-child(4) { animation-delay: 0.26s; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ─── Legal pages ─── */
.legal-page {
  padding: 0 0 4rem;
}

.legal-hero {
  position: relative;
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(45, 106, 79, 0.16), transparent),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(27, 67, 50, 0.1), transparent),
    linear-gradient(180deg, var(--primary-light), var(--background));
  animation: legalHeroShift 16s ease-in-out infinite alternate;
}

.legal-hero-inner {
  position: relative;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-muted);
  transition: color 0.2s, transform 0.2s;
}

.legal-back:hover {
  color: var(--primary);
  transform: translateX(4px);
}

[dir="rtl"] .legal-back:hover {
  transform: translateX(-4px);
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--primary);
}

.legal-hero .legal-meta {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px var(--shadow);
  max-width: 820px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.legal-card.in-view:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 67, 50, 0.14);
  box-shadow: 0 16px 44px var(--shadow-lg);
}

.legal-card.in-view {
  animation: featureCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.legal-intro {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0;
  transform: translateX(12px);
}

[dir="rtl"] .legal-card h2 {
  transform: translateX(-12px);
}

.legal-card.in-view h2 {
  animation: legalBlockIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.legal-card.in-view h2:nth-of-type(1) { animation-delay: 0.15s; }
.legal-card.in-view h2:nth-of-type(2) { animation-delay: 0.22s; }
.legal-card.in-view h2:nth-of-type(3) { animation-delay: 0.29s; }
.legal-card.in-view h2:nth-of-type(4) { animation-delay: 0.36s; }
.legal-card.in-view h2:nth-of-type(5) { animation-delay: 0.43s; }
.legal-card.in-view h2:nth-of-type(6) { animation-delay: 0.5s; }
.legal-card.in-view h2:nth-of-type(7) { animation-delay: 0.57s; }
.legal-card.in-view h2:nth-of-type(8) { animation-delay: 0.64s; }
.legal-card.in-view h2:nth-of-type(9) { animation-delay: 0.71s; }

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-card ul {
  list-style: disc;
  padding-inline-start: 1.35rem;
  margin: 0.5rem 0 1rem;
}

.legal-card li {
  margin-bottom: 0.35rem;
}

/* ─── Page transitions ─── */
[ng-view].page-enter {
  animation: pageFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Pause hero infinite motion when off-screen (performance) */
.hero-motion-paused .hero-mesh,
.hero-motion-paused .hero-orb,
.hero-motion-paused .hero-icon-float,
.hero-motion-paused .hero-tag-dot,
.hero-motion-paused .hero-title-accent,
.hero-motion-paused .hero-btn-glow::after,
.hero-motion-paused .hero-phone-glow,
.hero-motion-paused.hero-ready .phone-center,
.hero-motion-paused.hero-ready .phone-left,
.hero-motion-paused.hero-ready .phone-right {
  animation-play-state: paused;
}

.trust-band.in-view .bg-icon {
  animation: trustIconFloat 8s ease-in-out infinite;
}

.cta-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: block;
}

.cta-section.in-view .cta-logo {
  animation: ctaLogoPulse 3s ease-in-out infinite;
}

@keyframes trustIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ctaLogoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes sectionLineGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 48px;
    opacity: 1;
  }
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes legalHeroShift {
  0% { transform: scale(1); opacity: 0.95; }
  100% { transform: scale(1.03); opacity: 1; }
}

@keyframes legalBlockIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Animations ─── */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroOrbFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.04); }
}

@keyframes heroOrbFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -14px) scale(1.03); }
}

@keyframes heroOrbFloatC {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(12px, -16px); opacity: 0.75; }
}

@keyframes heroMeshShift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(-2%, 2%) scale(1.04); opacity: 1; }
}

@keyframes heroIconDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(3deg); }
  66% { transform: translateY(6px) rotate(-2deg); }
}

@keyframes heroDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(245, 200, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0); }
}

@keyframes heroTitleShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes heroBtnShimmer {
  0%, 75%, 100% { transform: translateX(-120%); }
  40% { transform: translateX(120%); }
}

@keyframes heroStatPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroPhoneRise {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
}

@keyframes heroPhoneFloat {
  0%, 100% { transform: translateY(-20px); opacity: 1; }
  50% { transform: translateY(-30px); opacity: 1; }
}

@keyframes heroSideRiseLeft {
  from {
    opacity: 0;
    transform: scale(0.88) rotate(-5deg) translateY(36px);
  }
  to {
    opacity: 0.96;
    transform: scale(0.88) rotate(-5deg) translateY(0);
  }
}

@keyframes heroSideFloatLeft {
  0%, 100% { transform: scale(0.88) rotate(-5deg) translateY(0); opacity: 0.96; }
  50% { transform: scale(0.88) rotate(-5deg) translateY(-10px); opacity: 0.96; }
}

@keyframes heroSideRiseRight {
  from {
    opacity: 0;
    transform: scale(0.88) rotate(5deg) translateY(36px);
  }
  to {
    opacity: 0.96;
    transform: scale(0.88) rotate(5deg) translateY(0);
  }
}

@keyframes heroSideFloatRight {
  0%, 100% { transform: scale(0.88) rotate(5deg) translateY(0); opacity: 0.96; }
  50% { transform: scale(0.88) rotate(5deg) translateY(-10px); opacity: 0.96; }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes heroCardSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-mesh,
  .hero-orb,
  .hero-icon-float,
  .hero-tag-dot,
  .hero-title-accent,
  .hero-btn-glow::after,
  .hero-phone-glow,
  .hero-ready .phone-center,
  .hero-ready .phone-left,
  .hero-ready .phone-right,
  .hero-ready .hero-stat,
  .hero-ready .phone-center .mock-card,
  .hero-ready .phone-center .mock-hero-card,
  .legal-hero-bg,
  .trust-band.in-view .bg-icon,
  .cta-section.in-view .cta-logo {
    animation: none !important;
  }

  .hero-enter,
  .hero-ready .hero-enter {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .phone,
  .hero-ready .bg-icon {
    opacity: 1;
  }

  .phone-side.phone-left {
    opacity: 0.96;
    transform: scale(0.88) rotate(-5deg);
  }

  .phone-side.phone-right {
    opacity: 0.96;
    transform: scale(0.88) rotate(5deg);
  }

  .phone-center {
    transform: translateY(-20px);
  }

  [ng-view].page-enter {
    animation: none !important;
  }

  .nav-mobile,
  .nav-mobile.open,
  .nav-mobile a {
    transition: none !important;
    transform: none !important;
    opacity: 1;
  }

  .nav-mobile:not(.open) {
    visibility: hidden;
    pointer-events: none;
  }

  .reveal,
  .reveal.visible,
  .legal-card,
  .legal-card.in-view,
  .legal-card h2 {
    opacity: 1;
    transform: none;
    transition: none !important;
    animation: none !important;
  }

  .section-head.visible h2::after {
    animation: none !important;
    width: 48px;
    opacity: 1;
  }

  .features-grid-animated .feature-card,
  .steps-animated .step-card,
  .stats-grid-animated .stat-card,
  .post-types-animated .post-type-card,
  .discover-grid-animated .discover-card,
  .testimonials-animated .testimonial-card,
  .faq-list-animated .faq-item,
  .footer-grid .footer-brand,
  .footer-grid .footer-col {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .faq-answer {
    transition: none !important;
  }

  .faq-answer-inner p {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .faq-item:hover,
  .faq-item[open],
  .trust-band:hover,
  .cta-section:hover,
  .legal-card.in-view:hover,
  .stat-card:hover,
  .feature-card:hover,
  .post-type-card:hover,
  .discover-card:hover,
  .testimonial-card:hover,
  .step-card:hover {
    transform: none !important;
  }
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .phones-showcase {
    min-height: 500px;
    margin-top: 1rem;
    max-width: 280px;
  }

  .phone-side {
    display: none;
  }

  .features-grid,
  .steps,
  .stats-grid,
  .post-types-grid,
  .discover-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-list li {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner .btn-primary {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 1.75rem 1.25rem;
  }
}
