/* ============================================
   CALMINO — ULTRA PREMIUM DESIGN SYSTEM v3
   Apple HIG · Glassmorphism · Cinematic
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  --primary: #958FB1;
  --primary-light: #B0ABCA;
  --primary-dark: #6B6584;
  --primary-ultra: #4A4563;
  --primary-glow: rgba(149, 143, 177, 0.15);
  --primary-glow-strong: rgba(149, 143, 177, 0.25);

  --accent-green: #34D399;
  --accent-blue: #38BDF8;
  --accent-orange: #FB923C;
  --accent-pink: #C8B8D9;
  --accent-purple: #7B7599;
  --accent-red: #F87171;
  --accent-teal: #2DD4BF;
  --accent-yellow: #FBBF24;

  --white: #FFFFFF;
  --gray-25: #FCFCFD;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --bg-page: #F5F4F9;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Heebo', 'Segoe UI', sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Heebo', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 60px rgba(149, 143, 177, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(149, 143, 177, 0.3);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* --- RESET & GLOBAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px; /* offset for fixed navbar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

/* RTL / LTR */
body[dir="rtl"],
html[dir="rtl"] {
  direction: rtl;
}

body[dir="ltr"],
html[dir="ltr"] {
  direction: ltr;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(0.5deg);
  }

  66% {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
  }

  50% {
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.7);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, -60px) scale(1.1);
  }

  50% {
    transform: translate(-30px, -30px) scale(0.95);
  }

  75% {
    transform: translate(20px, 20px) scale(1.05);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-50px, 30px) scale(1.05);
  }

  50% {
    transform: translate(40px, 60px) scale(0.9);
  }

  75% {
    transform: translate(-20px, -40px) scale(1.1);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(149, 143, 177, 0.1);
  }

  50% {
    border-color: rgba(149, 143, 177, 0.3);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes counterUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children */
.reveal.visible .reveal-child {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.reveal.visible .reveal-child:nth-child(1) {
  animation-delay: 0.05s;
}

.reveal.visible .reveal-child:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal.visible .reveal-child:nth-child(3) {
  animation-delay: 0.15s;
}

.reveal.visible .reveal-child:nth-child(4) {
  animation-delay: 0.2s;
}

.reveal.visible .reveal-child:nth-child(5) {
  animation-delay: 0.25s;
}

.reveal.visible .reveal-child:nth-child(6) {
  animation-delay: 0.3s;
}

.reveal.visible .reveal-child:nth-child(7) {
  animation-delay: 0.35s;
}

.reveal.visible .reveal-child:nth-child(8) {
  animation-delay: 0.4s;
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(24px, calc((100vw - 1200px) / 2 + 24px));
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(50px) saturate(220%);
  -webkit-backdrop-filter: blur(50px) saturate(220%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--ease-out-expo);
}

nav.scrolled {
  padding: 10px max(32px, calc((100vw - 1200px) / 2 + 32px));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--gray-900);
  flex-shrink: 0;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: all var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-spring);
}

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

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 0;
  position: relative;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.lang-btn.active {
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

/* Nav Store Badges */
.nav-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-store-badge {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}

.nav-store-badge img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-store-badge:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--gray-500);
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s var(--ease-spring);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-social-link:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--gray-900);
  transform: scale(1.06);
}

/* Nav Badge (moved from hero) */
.nav-badge {
  margin-bottom: 0;
  margin-left: 12px;
  margin-right: 12px;
  font-size: 0.75rem;
  padding: 6px 14px;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #EEEAFF 30%, #DDD6FF 50%, #E8E3FF 70%, #F5F5FA 100%);
}

/* Animated Orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero::before {
  top: -15%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(149, 143, 177, 0.12) 0%, rgba(123, 117, 153, 0.06) 50%, transparent 70%);
  animation: orbFloat1 20s ease-in-out infinite;
}

.hero::after {
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  animation: orbFloat2 25s ease-in-out infinite;
}

/* Third Orb via Extra Element */
.hero-orb {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 184, 217, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  animation: orbFloat1 18s ease-in-out infinite reverse;
  z-index: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 60px;
  align-items: start;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.hero-text-top {
  grid-column: 1;
  grid-row: 1;
}

.hero-cta-bottom {
  grid-column: 1;
  grid-row: 2;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(149, 143, 177, 0.06);
  border: 1px solid rgba(149, 143, 177, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
  backdrop-filter: blur(10px);
  animation: borderGlow 4s ease-in-out infinite;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseGlow 2s infinite;
}

.hero-content h1,
.hero-text-top h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.hero-content h1 span,
.hero-text-top h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--accent-purple) 80%, var(--accent-pink) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s var(--ease-spring);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.btn-primary span,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s var(--ease-spring);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(149, 143, 177, 0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hero-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--white);
  border-radius: 42px;
  border: 6px solid var(--gray-100);
  padding: 0;
  position: relative;
  box-shadow:
    var(--shadow-2xl),
    0 0 60px rgba(149, 143, 177, 0.1);
  animation: gentleFloat 7s ease-in-out infinite;
}

.phone-notch {
  display: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--white);
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease-smooth);
}

.carousel-img.active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.4s var(--ease-spring);
}

.indicator.active {
  width: 22px;
  border-radius: 4px;
  background: var(--white);
}

/* ════════════════════════════════════════
   MARQUEE TRUST STRIP
   ════════════════════════════════════════ */

.trust-strip {
  padding: 24px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.trust-strip::before,
.trust-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.trust-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), transparent);
}

.trust-strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--white), transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  align-items: center;
  animation: marquee 30s linear infinite;
  width: max-content;
  direction: ltr;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  padding-right: 80px;
}

.marquee-item .material-symbols-rounded {
  font-size: 1.3rem;
  color: var(--primary-light);
}

/* ════════════════════════════════════════
   STATS BANNER
   ════════════════════════════════════════ */

.stats-banner {
  padding: 80px 0;
  background: var(--white);
}

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

.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--gray-25);
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease-spring);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(149, 143, 177, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 6px;
}

/* ════════════════════════════════════════
   SECTION UTILITIES
   ════════════════════════════════════════ */

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.85;
  font-weight: 400;
}

/* ════════════════════════════════════════
   PROBLEM SECTION
   ════════════════════════════════════════ */

.problem-section {
  min-height: 100vh;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, #EEEAFF 50%, var(--bg-page) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.problem-section .section-label {
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 800;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.problem-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: 44px 28px 36px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 24px rgba(149, 143, 177, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.4s;
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(149, 143, 177, 0.03) 0%, rgba(123, 117, 153, 0.02) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.problem-card:hover::after {
  opacity: 1;
}

.problem-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(149, 143, 177, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(149, 143, 177, 0.15);
}

.problem-card .emoji {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(149, 143, 177, 0.08) 0%, rgba(123, 117, 153, 0.05) 100%);
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-spring);
}

.problem-card:hover .emoji {
  background: linear-gradient(135deg, rgba(149, 143, 177, 0.12) 0%, rgba(123, 117, 153, 0.08) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(149, 143, 177, 0.12);
}

.problem-card .quote {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  min-height: 3em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.problem-card .desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════
   POSITIONING
   ════════════════════════════════════════ */

.positioning {
  min-height: 100vh;
  padding: 100px 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pos-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.pos-pillar {
  background: var(--gray-25);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.pos-pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(149, 143, 177, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.pos-pillar:hover::after {
  opacity: 1;
}

@keyframes subtleShake {

  0%,
  100% {
    transform: translateY(-6px) rotate(0deg);
  }

  25% {
    transform: translateY(-6px) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }

  75% {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}

.pos-pillar:hover {
  transform: translateY(-6px);
  animation: subtleShake 0.6s ease-in-out infinite;
  box-shadow: var(--shadow-xl);
  border-color: rgba(149, 143, 177, 0.2);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pos-pillar .num {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.pos-pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.pos-pillar p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════ */

.feature-section {
  padding: 120px 0;
  background: var(--white);
}

.feature-section.alt {
  background: var(--bg-page);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(149, 143, 177, 0.25);
}

.check svg {
  width: 13px;
  height: 13px;
  color: var(--white);
}

/* ════════════════════════════════════════
   TOOLS SHOWCASE
   ════════════════════════════════════════ */

.tools-section {
  padding: 120px 0;
  background: var(--bg-page);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.5s var(--ease-spring);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(149, 143, 177, 0.1), rgba(123, 117, 153, 0.1), rgba(200, 184, 217, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.tool-card>* {
  position: relative;
  z-index: 1;
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.7rem;
  background: var(--gray-50) !important;
  color: var(--gray-600) !important;
  transition: all 0.4s var(--ease-spring);
}

.tool-icon .material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.tool-card:hover .tool-icon {
  transform: scale(1.08);
  background: var(--gray-100) !important;
}

.tool-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.tool-card p {
  font-size: 0.84rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ════════════════════════════════════════
   LIVE ACTIVITY & REPORT MOCKS
   ════════════════════════════════════════ */

.live-activity-mock {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  max-width: 400px;
  margin: 0 auto;
  transition: all 0.4s var(--ease-spring);
}

.live-activity-mock:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.la-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.la-app {
  display: flex;
  align-items: center;
  gap: 10px;
}

.la-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.65rem;
}

.la-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.la-time {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.la-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.la-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
}

.la-timer {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.la-started {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.la-controls {
  display: flex;
  gap: 10px;
}

.la-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.la-btn.pause {
  background: var(--primary-glow);
  color: var(--primary);
}

.la-btn.stop {
  background: rgba(248, 113, 113, 0.1);
  color: var(--accent-red);
}

.la-btn:hover {
  transform: scale(1.12);
}

.la-btn .material-symbols-rounded {
  font-size: 1.3rem;
}

/* Reports Mock */
/* Screenshots Showcase */
.screenshots-showcase {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: visible;
}

.screenshot-card {
  position: absolute;
  width: 160px;
  border-radius: 20px;
  overflow: visible;
  cursor: pointer;
  padding: 6px;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Default fan layout */
.sc-1 {
  transform: rotate(-8deg) translateX(-155px);
  z-index: 1;
}

.sc-2 {
  transform: rotate(-3deg) translateX(-75px) translateY(-12px);
  z-index: 3;
  width: 170px;
}

.sc-3 {
  transform: rotate(0deg) translateY(-20px);
  z-index: 5;
  width: 180px;
}

.sc-3 img {
  box-shadow: 0 12px 40px rgba(149, 143, 177, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sc-4 {
  transform: rotate(3deg) translateX(75px) translateY(-12px);
  z-index: 3;
  width: 170px;
}

.sc-5 {
  transform: rotate(8deg) translateX(155px);
  z-index: 1;
}

/* When hovering the showcase — slightly reduce rotation for breathing room */
.screenshots-showcase:hover .sc-1 {
  transform: rotate(-6deg) translateX(-160px);
}

.screenshots-showcase:hover .sc-2 {
  transform: rotate(-2deg) translateX(-78px) translateY(-12px);
}

.screenshots-showcase:hover .sc-3 {
  transform: rotate(0deg) translateY(-20px);
}

.screenshots-showcase:hover .sc-4 {
  transform: rotate(2deg) translateX(78px) translateY(-12px);
}

.screenshots-showcase:hover .sc-5 {
  transform: rotate(6deg) translateX(160px);
}

/* Individual card hover — scale up IN PLACE without moving.
   Uses CSS 'scale' property (separate from transform) so the card
   keeps its fan position and just grows smoothly */
.screenshots-showcase .screenshot-card:hover {
  z-index: 20 !important;
  scale: 1.45;
  transition: scale 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              z-index 0s,
              box-shadow 0.4s ease;
}

/* Non-hovered siblings gently fade back */
.screenshots-showcase:hover .screenshot-card:not(:hover) {
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.screenshots-showcase .screenshot-card:hover img {
  box-shadow: 0 16px 48px rgba(149, 143, 177, 0.25), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.report-insight p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   SITTERS SECTION (Unique Layout)
   ════════════════════════════════════════ */

.sitters-section {
  padding: 120px 0;
  background: var(--bg-page);
}

.sitters-header {
  max-width: 640px;
  margin: 0 auto 56px;
}

.sitters-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.sitters-side-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sitters-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sitters-visual::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(149, 143, 177, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.sitter-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 24px 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(149, 143, 177, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(149, 143, 177, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  position: relative;
  overflow: hidden;
}

.sitter-feature-card.compact {
  flex-direction: row;
  padding: 16px 20px;
  gap: 16px;
  font-size: 0.85rem;
  text-align: right;
  align-items: center;
}

.sitter-feature-card.compact .sitter-feature-icon {
  width: 44px;
  height: 44px;
  font-size: 22px;
  flex-shrink: 0;
}

.sitter-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sitter-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(149, 143, 177, 0.15), 0 4px 12px rgba(149, 143, 177, 0.08);
  border-color: rgba(149, 143, 177, 0.2);
}

.sitter-feature-card:hover::before {
  opacity: 1;
}

.sitter-feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(149, 143, 177, 0.1), rgba(123, 117, 153, 0.08));
  border-radius: 50%;
  color: var(--primary);
  font-size: 28px;
  border: 2px solid rgba(149, 143, 177, 0.15);
  transition: all 0.4s ease;
}

.sitter-feature-card:hover .sitter-feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(149, 143, 177, 0.35);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .sitters-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .sitter-feature-card {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .sitters-features {
    grid-template-columns: 1fr;
  }
}

/* Sitter 3D Flip Card */
.sitter-flip-container {
  perspective: 1200px;
  width: 220px;
  height: 440px;
  margin: 0 auto;
}

.sitter-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sitter-flip-container:hover .sitter-flip-card {
  transform: rotateY(180deg);
}

.sitter-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.sitter-flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sitter-flip-front {
  z-index: 2;
}

.sitter-flip-back {
  transform: rotateY(180deg);
}

.flip-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: hintPulse 2s ease-in-out infinite;
}

.flip-hint .material-symbols-rounded {
  font-size: 1rem;
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* ════════════════════════════════════════
   SECURITY
   ════════════════════════════════════════ */

.security-section {
  min-height: 100vh;
  padding: 100px 0;
  background: var(--gray-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.security-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(149, 143, 177, 0.08) 0%, transparent 60%);
  filter: blur(40px);
}

.security-section .section-label {
  color: var(--primary-light);
}

.security-section .section-title {
  color: var(--white);
}

.security-section .section-sub {
  color: rgba(255, 255, 255, 0.45);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.security-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.security-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.security-item:hover::before {
  opacity: 1;
}

.security-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  border-color: rgba(149, 143, 177, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sec-icon {
  font-size: 2.2rem;
  color: var(--primary-light);
  display: block;
  margin-bottom: 18px;
}

.security-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.security-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════ */

.testimonial-section {
  padding: 120px 0;
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--gray-25);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease-spring);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(149, 143, 177, 0.1);
}

.testimonial-stars {
  color: var(--accent-yellow);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.testimonial-author .name {
  font-weight: 600;
  font-size: 0.92rem;
}

.testimonial-author .role {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* ════════════════════════════════════════
   PREMIUM TIERS
   ════════════════════════════════════════ */

.premium-section {
  padding: 80px 0;
  background: var(--bg-page);
}

.premium-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.tier-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.5s var(--ease-spring);
  position: relative;
  background: var(--white);
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.tier-card.featured {
  border-color: var(--primary);
  background: linear-gradient(to bottom, rgba(149, 143, 177, 0.03), var(--white));
  box-shadow: var(--shadow-glow-strong);
}

.tier-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(149, 143, 177, 0.3);
}

.tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.tier-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-400);
}

.tier-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[dir="rtl"] .tier-features {
  text-align: right;
}

[dir="ltr"] .tier-features {
  text-align: left;
}

.tier-features li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding-inline-start: 24px;
  position: relative;
  line-height: 1.4;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════ */

.final-cta {
  padding: 140px 0 120px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-page), var(--white));
  position: relative;
}

.final-cta .hero-cta-group {
  justify-content: center;
  margin-top: 8px;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */

footer {
  background: var(--gray-950);
  color: rgba(255, 255, 255, 0.45);
  padding: 56px 0 36px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

/* Footer Stats */
.footer-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 24px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.footer-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.footer-legal-bar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 8px;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ════════════════════════════════════════
   LTR LAYOUT OVERRIDE
   ════════════════════════════════════════ */

.ltr-layout {
  direction: ltr;
}

.ltr-layout .feature-content {
  direction: inherit;
}

[dir="ltr"] .ltr-layout .feature-content {
  direction: ltr;
}

[dir="rtl"] .ltr-layout .feature-content {
  direction: rtl;
}

/* ════════════════════════════════════════
   HAMBURGER BUTTON (hidden on desktop)
   ════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: var(--gray-100);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

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

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ════════════════════════════════════════
   MOBILE OVERLAY
   ════════════════════════════════════════ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ════════════════════════════════════════
   MOBILE DRAWER
   ════════════════════════════════════════ */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100%;
  background: var(--white);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(min(320px, 100vw) + 20px));
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.14);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.4px;
}

.drawer-logo img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.drawer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.drawer-social-link:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all 0.2s;
}

.drawer-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.drawer-close .material-symbols-rounded {
  font-size: 1.2rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 2px;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: block;
}

.drawer-link:hover,
.drawer-link:active {
  background: var(--primary-glow);
  color: var(--primary);
}

.drawer-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 24px;
}

.drawer-badges {
  display: flex;
  flex-direction: row; /* Side by side instead of stacked */
  gap: 10px;
  padding: 16px 24px;
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  align-items: center;
  justify-content: center;
}

.drawer-badges a {
  display: flex;
  flex: 1;
}

.drawer-badges img {
  height: 36px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (1024px)
   ════════════════════════════════════════ */

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (768px)
   ════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Global */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 18px;
  }

  /* --- NAV --- */
  nav {
    padding: 10px 16px;
  }

  /* Sections: remove full-screen lock on mobile */
  .problem-section,
  .positioning,
  .security-section {
    min-height: unset;
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    order: -1; /* Move to the right side in RTL layout */
  }

  /* Move UserWay accessibility icon below navbar on mobile */
  .uwy .userway_buttons_wrapper {
    top: 80px !important;
    left: 48px !important;
    right: auto !important;
  }

  /* Ensure UserWay panel displays properly on mobile */
  .uwy .userway_font_visible {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 2147483647 !important;
  }

  .nav-badges {
    flex: 1;
    justify-content: center !important;
  }

  .nav-badges img {
    height: 24px !important;
  }

  .nav-social-link {
    display: none !important;
  }

  /* --- HERO --- */
  .hero {
    padding-top: 80px;
    padding-bottom: 64px;
    min-height: auto;
  }

  .hero::before,
  .hero::after,
  .hero-orb {
    display: none;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-top: 16px;
  }

  /* Mobile order: text → phone → buttons */
  .hero-text-top  { order: 1; width: 100%; }
  .hero-visual    { order: 2; width: 100%; display: flex; justify-content: center; }
  .hero-cta-bottom{ order: 3; width: 100%; display: flex; flex-direction: column; align-items: center; }

  .hero-content h1,
  .hero-text-top h1 {
    font-size: 2.4rem;
    letter-spacing: -1.2px;
    line-height: 1.12;
  }

  .hero-sub {
    font-size: 1rem;
    margin-inline: auto;
    padding: 0;
  }

  .hero-cta-group {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-cta-group img {
    height: 44px !important;
  }

  .hero-note {
    font-size: 0.78rem;
  }

  .phone-mockup {
    width: 210px;
    height: 440px;
    margin: 0 auto;
    animation: none;
  }

  /* --- SECTION UTILITIES --- */
  .section-title {
    font-size: 1.9rem;
    letter-spacing: -0.5px;
  }

  .section-sub {
    font-size: 0.95rem;
  }

  /* --- PROBLEM --- */
  .problem-section {
    padding: 72px 0;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 36px;
  }

  .problem-card {
    flex-direction: row;
    text-align: right;
    align-items: flex-start;
    padding: 20px 18px;
    gap: 16px;
    border-radius: var(--radius-lg);
  }

  .problem-card .emoji {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 12px;
  }

  .problem-card .quote {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .problem-card .desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* --- POSITIONING (Approach) --- */
  .positioning {
    padding: 72px 0;
  }

  .pos-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .pos-pillar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 20px 14px;
  }

  .pos-pillar .num {
    margin-bottom: 4px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-glow);
    font-size: 1.4rem;
  }

  .pos-pillar h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .pos-pillar p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* --- TOOLS --- */
  .tools-section {
    padding: 72px 0;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .tool-card {
    padding: 20px 14px;
    text-align: center;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin: 0 auto 12px;
    border-radius: 14px;
  }

  .tool-card h4 {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .tool-card p {
    font-size: 0.76rem;
  }

  /* --- REPORTS FEATURE --- */
  .feature-section {
    padding: 72px 0;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: rtl;
  }

  .ltr-layout {
    direction: rtl;
  }

  .screenshots-showcase {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    overflow: visible;
    padding: 12px 0 24px;
    perspective: none;
    position: relative;
    scrollbar-width: none;
    margin: 0 auto;
    width: 100%;
  }

  .screenshots-showcase::-webkit-scrollbar {
    display: none;
  }

  .screenshot-card {
    position: absolute;
    flex-shrink: 0;
  }

  /* Scaled-down fan layout for mobile — no rotation, symmetric spread */
  .sc-1 {
    transform: translateX(-110px) !important;
    z-index: 1 !important;
    width: 90px !important;
  }

  .sc-2 {
    transform: translateX(-55px) translateY(-8px) !important;
    z-index: 3 !important;
    width: 100px !important;
  }

  .sc-3 {
    transform: translateY(-14px) !important;
    z-index: 5 !important;
    width: 110px !important;
  }

  .sc-4 {
    transform: translateX(55px) translateY(-8px) !important;
    z-index: 3 !important;
    width: 100px !important;
  }

  .sc-5 {
    transform: translateX(110px) !important;
    z-index: 1 !important;
    width: 90px !important;
  }

  /* Mobile: freeze all cards — no movement, no scale, no opacity change, no interaction */
  .screenshots-showcase .screenshot-card,
  .screenshots-showcase .screenshot-card:hover,
  .screenshots-showcase:hover .screenshot-card:not(:hover) {
    transition: none !important;
    scale: 1 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    cursor: default !important;
  }

  .screenshots-showcase .sc-1,
  .screenshots-showcase .sc-1:hover,
  .screenshots-showcase:hover .sc-1 { transform: translateX(-110px) !important; }
  .screenshots-showcase .sc-2,
  .screenshots-showcase .sc-2:hover,
  .screenshots-showcase:hover .sc-2 { transform: translateX(-55px) translateY(-8px) !important; }
  .screenshots-showcase .sc-3,
  .screenshots-showcase .sc-3:hover,
  .screenshots-showcase:hover .sc-3 { transform: translateY(-14px) !important; }
  .screenshots-showcase .sc-4,
  .screenshots-showcase .sc-4:hover,
  .screenshots-showcase:hover .sc-4 { transform: translateX(55px) translateY(-8px) !important; }
  .screenshots-showcase .sc-5,
  .screenshots-showcase .sc-5:hover,
  .screenshots-showcase:hover .sc-5 { transform: translateX(110px) !important; }

  .feature-list li {
    font-size: 0.88rem;
  }

  /* --- SITTERS --- */
  .sitters-section {
    padding: 72px 0;
  }

  .sitters-showcase {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
  }

  .sitters-visual {
    order: -1;
  }

  .sitters-side-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .sitter-feature-card.compact {
    padding: 14px 12px;
    flex-direction: row;
    text-align: right;
    gap: 10px;
    align-items: flex-start;
  }

  .sitter-feature-icon {
    flex-shrink: 0;
    font-size: 1.2rem !important;
  }

  .sitter-feature-card.compact span:last-child {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* --- SECURITY --- */
  .security-section {
    padding: 72px 0;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 36px;
  }

  .security-item {
    padding: 22px 16px;
  }

  .security-item h4 {
    font-size: 0.95rem;
  }

  .security-item p {
    font-size: 0.8rem;
  }

  /* --- FOOTER --- */
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* --- Coming Soon Popup --- */
#coming-soon-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#coming-soon-popup.open {
  opacity: 1;
  pointer-events: auto;
}
#coming-soon-popup .cs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}
#coming-soon-popup .cs-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 64px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: scale(0.88);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#coming-soon-popup.open .cs-box {
  transform: scale(1);
}
#coming-soon-popup .cs-text {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  #coming-soon-popup .cs-box {
    padding: 32px 48px;
  }
  #coming-soon-popup .cs-text {
    font-size: 1.6rem;
  }
}

/* ════════════════════════════════════════
   CONTACT MODAL
   ════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  direction: rtl;
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: #333;
  background: #f0f0f0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-950);
  margin: 0 0 28px;
  line-height: 1.4;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.03em;
}

.modal-field input,
.modal-field textarea {
  background: none;
  border: none;
  border-bottom: 1.5px solid #e0e0e8;
  border-radius: 0;
  padding: 8px 2px;
  font-size: 0.95rem;
  color: var(--gray-950);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  direction: rtl;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-bottom-color: #7B7599;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
  color: #ccc;
}

.modal-submit {
  margin-top: 8px;
  background: linear-gradient(135deg, #7B7599 0%, #7B7599 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  align-self: stretch;
}

.modal-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 28px 20px 32px;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}

/* ══════════════════════════════════════════
   BLOG / ARTICLES SECTION — PREMIUM REDESIGN
   ══════════════════════════════════════════ */

.blog-section {
  padding: 120px 0 140px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow in the background */
.blog-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(149,143,177,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

/* ── Card Base ── */
.blog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 28px 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(149,143,177,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Gradient top-bar accent */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7B7599, #C8B8D9);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 24px 24px 0 0;
}

.blog-card:hover::before { opacity: 1; }

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(149,143,177,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border-color: rgba(149,143,177,0.2);
}

.blog-card > * { position: relative; z-index: 1; }

/* Content wrapper — transparent on desktop, becomes flex column on mobile */
.blog-card-content-col {
  display: contents; /* passthrough on desktop — children behave as direct card children */
}

/* ── Icon ── */
.blog-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: linear-gradient(145deg, rgba(149,143,177,0.12), rgba(149,143,177,0.08));
  border: 1.5px solid rgba(149,143,177,0.14);
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.blog-icon .material-symbols-rounded {
  font-size: 30px;
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 24;
}

.blog-card:hover .blog-icon {
  background: linear-gradient(135deg, var(--primary), #7B7599);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(149,143,177,0.35);
  transform: scale(1.1) rotate(-4deg);
}

/* ── Typography ── */
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

/* ── Read More ── */
.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.blog-read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more::after { transform: scaleX(1); }

/* ── Trigger Button Reset ── */
.blog-card--trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  cursor: pointer;
}

/* ── Toggle Label ── */
.toggle-open { display: none; }
.blog-card--trigger[aria-expanded="true"] .toggle-closed { display: none; }
.blog-card--trigger[aria-expanded="true"] .toggle-open { display: inline-flex; align-items: center; gap: 4px; }

/* Active / Open card */
.blog-card--trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(149,143,177,0.12),
    0 20px 48px rgba(149,143,177,0.14),
    0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-6px);
}
.blog-card--trigger[aria-expanded="true"]::before { opacity: 1; }
.blog-card--trigger[aria-expanded="true"] .blog-icon {
  background: linear-gradient(135deg, var(--primary), #7B7599);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(149,143,177,0.35);
}

/* ── Accordion Container ── */
.blog-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1);
  margin-top: 0;
  grid-column: 1 / -1; /* spans full width inside the 3-col grid */
}
.blog-accordion.open { margin-top: 28px; }

/* ── Article Panel ── */
.blog-article {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(149,143,177,0.1);
  box-shadow: 0 8px 40px rgba(149,143,177,0.08), 0 2px 8px rgba(0,0,0,0.04);
  padding: 56px 72px;
  line-height: 1.8;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

/* Decorative top gradient strip on article */
.blog-article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #7B7599, #C8B8D9, var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.blog-article h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 28px;
  color: var(--text-primary);
  line-height: 1.25;
}

.blog-article-intro {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(149,143,177,0.08);
}

/* ── Article Sections ── */
.blog-section-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(149,143,177,0.06);
  position: relative;
}
.blog-section-item:last-of-type { border-bottom: none; }

.blog-section-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

/* Purple left-dot accent on H3 */
.blog-section-item h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7B7599);
  box-shadow: 0 0 8px rgba(149,143,177,0.5);
}

.blog-section-item p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin: 0;
  padding-right: 18px;
}

/* ── Outro Box ── */
.blog-article-outro {
  margin-top: 44px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(149,143,177,0.04), rgba(167,139,250,0.06));
  border-radius: 20px;
  border: 1px solid rgba(149,143,177,0.1);
  text-align: center;
}

.blog-article-outro h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.blog-article-outro p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 10px;
}

.blog-article-cta-text {
  font-weight: 600;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
}

/* Language-based article visibility */
html[lang="he"] [data-lang-content="en"] { display: none; }
html[lang="en"] [data-lang-content="he"] { display: none; }

.blog-article-badges {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .blog-article { padding: 44px 40px; }
  .blog-article-outro { padding: 32px 28px; }
}

/* Large mobile / small tablet */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }

  /* Triggers side-by-side in row 1, accordions stacked below */
  #blog-trigger-1  { order: 1; }
  #blog-trigger-3  { order: 2; }
  #blog-accordion-1 { order: 3; }
  #blog-accordion-3 { order: 4; }

  /* Vertical card layout on large mobile — icon on top, content centered below (matches .pos-pillar) */
  .blog-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    gap: 10px;
    border-radius: 20px;
  }

  .blog-card::before { display: none; }

  .blog-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    margin: 0 0 4px;
    background: var(--primary-glow);
  }

  .blog-icon .material-symbols-rounded { font-size: 22px; }

  /* Content column inside vertical card */
  .blog-card-content-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
  }

  .blog-card-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-align: center;
  }

  .blog-card-excerpt {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0;
    text-align: center;
  }

  .blog-read-more { display: none; }
}

/* Mobile */
@media (max-width: 480px) {
  .blog-section { padding: 72px 0 88px; }
  .blog-section::before { display: none; }

  .blog-card { padding: 20px 16px; gap: 14px; border-radius: 18px; }

  .blog-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
  }

  .blog-icon .material-symbols-rounded { font-size: 22px; }

  .blog-card-title { font-size: 0.9rem; }
  .blog-card-excerpt { font-size: 0.8rem; }

  /* Article panel */
  .blog-article {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .blog-article::before { height: 3px; }

  .blog-article h2 {
    font-size: 1.25rem;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
  }

  .blog-article-intro {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .blog-section-item {
    padding: 22px 0;
  }

  .blog-section-item h3 {
    font-size: 0.95rem;
    gap: 8px;
  }

  .blog-section-item h3::before {
    width: 6px;
    height: 6px;
    min-width: 6px;
  }

  .blog-section-item p {
    font-size: 0.87rem;
    line-height: 1.75;
    padding-right: 0;
  }

  .blog-article-outro {
    padding: 24px 18px;
    border-radius: 16px;
    margin-top: 28px;
  }

  .blog-article-outro h3 { font-size: 1.05rem; }
  .blog-article-outro p { font-size: 0.87rem; }

  .blog-article-badges {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .blog-article-badges img { height: 42px !important; }

  .blog-accordion.open { margin-top: 16px; }
}
