/* ============================================================
   Aaj Ka Rate — Landing Page Design System
   Brand: Emerald Green + White Clay Neumorphic + Golden Wheat
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Brand Emerald */
  --primary: #0D6B40;
  --primary-light: #16A34A;
  --primary-dark: #073E24;
  --primary-container: #C8E6C9;
  --primary-surface: #E8F5E9;
  --primary-glow: rgba(13, 107, 64, 0.15);

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #16A34A, #0D6B40);
  --gradient-hero: linear-gradient(160deg, #073E24 0%, #0D6B40 40%, #16A34A 100%);
  --gradient-radial: radial-gradient(ellipse at 30% 50%, rgba(22, 163, 74, 0.08) 0%, transparent 70%);

  /* Secondary Amber */
  --secondary: #D97706;
  --secondary-container: #FEF3C7;

  /* Semantic Price Colors */
  --price-up: #DC2626;
  --price-up-bg: #FEE2E2;
  --price-down: #16A34A;
  --price-down-bg: #DCFCE7;
  --price-neutral: #64748B;
  --price-neutral-bg: #F1F5F9;

  /* Light Surfaces */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-variant: #F3F4F6;
  --surface-elevated: #FAFBFC;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-subtle: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  /* Clay Shadows */
  --shadow-clay: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-clay-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-clay-raised: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-phone: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 100px;

  /* Spacing */
  --section-padding: clamp(64px, 10vw, 120px);
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-base: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
.heading-hero {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-section {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.heading-card {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.text-body {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-body-lg {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.text-urdu {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

/* ============================================================
   4. LAYOUT & CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-header .heading-section {
  margin-bottom: 16px;
}

.section-header .text-body-lg {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  z-index: 10;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-logo .logo-urdu {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(13, 107, 64, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 107, 64, 0.35);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }
  .nav-links a { font-size: 1.25rem; }
  .nav.open .nav-links,
  .nav.open .nav-cta-wrap {
    opacity: 1;
    pointer-events: all;
  }
  .nav.open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.08;
}

.particle:nth-child(1) { top: 15%; left: 10%; animation: particleFloat 8s infinite ease-in-out; }
.particle:nth-child(2) { top: 25%; right: 15%; width: 8px; height: 8px; animation: particleFloat 10s infinite ease-in-out 1s; }
.particle:nth-child(3) { bottom: 30%; left: 20%; width: 4px; height: 4px; animation: particleFloat 12s infinite ease-in-out 2s; }
.particle:nth-child(4) { top: 60%; right: 25%; animation: particleFloat 9s infinite ease-in-out 0.5s; }
.particle:nth-child(5) { bottom: 20%; right: 10%; width: 10px; height: 10px; opacity: 0.05; animation: particleFloat 14s infinite ease-in-out 3s; }
.particle:nth-child(6) { top: 40%; left: 5%; width: 5px; height: 5px; animation: particleFloat 11s infinite ease-in-out 1.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.1); }
  50% { transform: translate(-10px, 15px) scale(0.9); }
  75% { transform: translate(20px, 10px) scale(1.05); }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  border: 1px solid rgba(13, 107, 64, 0.1);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  margin-bottom: 12px;
}

.hero-title-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
  direction: rtl;
}

.hero-subtitle {
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-content .coming-soon-stores {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 40px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.btn-store-primary {
  background: var(--text-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-store-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-store-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-clay);
}

.btn-store-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-clay-hover);
  border-color: var(--primary);
}

.btn-store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-store-text small {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.7;
}

.btn-store-text span {
  font-size: 1rem;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero Phone */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-phone-img {
  width: clamp(280px, 28vw, 380px);
  border-radius: var(--radius-2xl);
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.12)) drop-shadow(0 8px 20px rgba(0,0,0,0.08));
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.8s var(--ease-out-expo);
  will-change: transform;
}

.hero-phone:hover .hero-phone-img {
  transform: rotateY(-2deg) rotateX(1deg) scale(1.02);
}

/* Floating Price Cards around Phone */
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-clay-raised);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
  transition: transform 0.6s var(--ease-out-expo);
}

.floating-card:hover {
  transform: translateY(-4px) scale(1.04) !important;
}

.floating-card .fc-emoji {
  font-size: 1.25rem;
}

.floating-card .fc-price {
  color: var(--text-primary);
  font-weight: 700;
}

.floating-card .fc-change {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.fc-change.up {
  background: var(--price-up-bg);
  color: var(--price-up);
}

.fc-change.down {
  background: var(--price-down-bg);
  color: var(--price-down);
}

.floating-card:nth-child(1) { top: 8%; left: -15%; }
.floating-card:nth-child(2) { top: 22%; right: -10%; }
.floating-card:nth-child(3) { top: 55%; left: -20%; }
.floating-card:nth-child(4) { top: 70%; right: -12%; }
.floating-card:nth-child(5) { bottom: 8%; left: -5%; }
.floating-card:nth-child(6) { bottom: 2%; right: -8%; }

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-content .coming-soon-stores { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat { text-align: center; }
  .hero-phone { margin-top: 40px; }
  .floating-card { display: none; }
  .hero-title-urdu { text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-store { justify-content: center; width: 100%; }
}

/* ============================================================
   7. MARKET OVERVIEW SECTION
   ============================================================ */
.market {
  background: var(--surface-variant);
}

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

.market-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.market-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-clay-hover);
}

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

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

.market-card-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-variant);
  border-radius: var(--radius-md);
}

.market-card-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.market-card-change.up { background: var(--price-up-bg); color: var(--price-up); }
.market-card-change.down { background: var(--price-down-bg); color: var(--price-down); }
.market-card-change.neutral { background: var(--price-neutral-bg); color: var(--price-neutral); }

.market-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.market-card-name-ur {
  font-family: var(--font-urdu);
  font-size: 0.85rem;
  color: var(--text-muted);
  direction: rtl;
}

.market-card-price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.market-card-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

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

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

/* ============================================================
   8. FEATURES (WHY AAJ KA RATE)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card:hover {
  box-shadow: var(--shadow-clay-hover);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--primary-surface);
}

.feature-card-icon.amber { background: var(--secondary-container); }
.feature-card-icon.blue { background: #DBEAFE; }
.feature-card-icon.red { background: var(--price-up-bg); }
.feature-card-icon.purple { background: #EDE9FE; }
.feature-card-icon.teal { background: #CCFBF1; }

.feature-card h3 {
  margin-bottom: 8px;
}

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

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

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

/* ============================================================
   9. DISTRICT COMPARISON
   ============================================================ */
.comparison {
  background: var(--surface-variant);
}

.comparison-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comparison-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comparison-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.comparison-bar-city {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.comparison-bar-price {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.comparison-bar-track {
  height: 12px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.comparison-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  width: 0;
  transition: width 1.2s var(--ease-out-expo);
}

@media (max-width: 768px) {
  .comparison-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   10. CATEGORIES (ALL RATES IN ONE PLACE)
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 2.5vw, 36px) clamp(16px, 2vw, 24px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-clay);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
  cursor: default;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-clay-hover);
  border-color: var(--primary);
}

.category-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.category-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

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

/* ============================================================
   11. APP EXPERIENCE (PHONE SHOWCASE)
   ============================================================ */
.app-showcase {
  background: var(--surface-variant);
  overflow: hidden;
}

.app-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 48px);
  perspective: 1200px;
  padding: 0 20px;
}

.app-phone-wrap {
  flex-shrink: 0;
  text-align: center;
  max-width: 260px;
}

.app-phone-img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-phone);
  transition: transform 0.6s var(--ease-out-expo);
}

.app-phone-wrap:hover .app-phone-img {
  transform: translateY(-8px) scale(1.02);
}

.app-phone-label {
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.app-phone-sublabel {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .app-phones {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .app-phone-wrap { max-width: 220px; }
}

/* ============================================================
   12. BILINGUAL SECTION
   ============================================================ */
.bilingual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-clay-raised);
  border: 1px solid var(--border);
}

.bilingual-side {
  padding: clamp(40px, 5vw, 64px);
}

.bilingual-en {
  background: var(--surface);
}

.bilingual-ur {
  background: var(--primary-surface);
  direction: rtl;
  text-align: right;
}

.bilingual-side h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.bilingual-ur h3 {
  font-family: var(--font-urdu);
  color: var(--primary-dark);
}

.bilingual-side p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bilingual-ur p {
  font-family: var(--font-urdu);
  color: var(--primary);
  line-height: 2;
}

.bilingual-lang-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--surface-variant);
  border-radius: var(--radius-pill);
}

.bilingual-ur .bilingual-lang-tag {
  background: rgba(13, 107, 64, 0.1);
  color: var(--primary);
}

@media (max-width: 768px) {
  .bilingual-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   13. OFFLINE SECTION
   ============================================================ */
.offline-visual {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.offline-demo {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  padding: 32px 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-clay-raised);
  border: 1px solid var(--border);
}

.offline-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.offline-step-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.offline-step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.offline-arrow {
  font-size: 1.5rem;
  color: var(--text-subtle);
}

@media (max-width: 640px) {
  .offline-demo {
    flex-direction: column;
    padding: 24px;
  }
  .offline-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   14. TRUST & TRANSPARENCY
   ============================================================ */
.trust {
  background: var(--surface-variant);
}

.trust-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.trust-badge .tb-icon {
  font-size: 1.125rem;
}

.trust-privacy {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-privacy-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.trust-disclaimer {
  max-width: 700px;
  margin: 32px auto 0;
  padding: 20px 28px;
  background: var(--secondary-container);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: #78350F;
  line-height: 1.6;
}

/* ============================================================
   15. DOWNLOAD CTA
   ============================================================ */
.download-cta {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.download-cta .heading-section {
  color: white;
  margin-bottom: 16px;
}

.download-cta .text-body-lg {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 40px;
}

.download-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-store-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: white;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-store-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.download-stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.download-stat-value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.download-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .download-cta-buttons { flex-direction: column; align-items: center; }
  .btn-store-white { width: 100%; max-width: 300px; justify-content: center; }
}

/* --- Coming Soon Badges --- */
.coming-soon-stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px dashed rgba(13, 107, 64, 0.3);
  background: rgba(13, 107, 64, 0.05);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.coming-soon-badge:hover {
  border-color: rgba(13, 107, 64, 0.5);
  background: rgba(13, 107, 64, 0.08);
}

.coming-soon-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* Dark variant (on emerald CTA background) */
.coming-soon-dark .coming-soon-badge {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.coming-soon-dark .coming-soon-badge:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.coming-soon-dark .coming-soon-icon {
  fill: rgba(255, 255, 255, 0.6);
}

@media (max-width: 480px) {
  .coming-soon-stores { flex-direction: column; gap: 10px; }
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background var(--transition-fast), color var(--transition-fast);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

/* ============================================================
   17. GSAP ANIMATION STATES
   ============================================================ */
/* Initial hidden states — GSAP will animate these in */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ============================================================
   18. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .particle {
    animation: none !important;
    opacity: 0.04;
  }
}

/* ============================================================
   19. PRINT STYLES
   ============================================================ */
@media print {
  .nav, .hero-particles, .floating-card, .download-cta { display: none; }
  body { color: #000; background: #fff; }
  section { padding: 24px 0; }
}

/* ============================================================
   20. MOBILE UI OPTIMIZATIONS & FLOATING GLASS BOTTOM NAVBAR
   ============================================================ */

/* Floating Glass Bottom Navigation Bar */
.floating-glass-nav {
  position: fixed;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
  max-width: 440px;
  z-index: 45;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.2px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 6px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.dark .floating-glass-nav,
html.dark .floating-glass-nav {
  background-color: rgba(12, 28, 44, 0.90);
  border: 1.2px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.mobile-nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 18px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 48px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn:active {
  transform: scale(0.94);
}

.mobile-nav-btn.active-nav-tab {
  background: linear-gradient(135deg, rgba(0, 95, 63, 0.12), rgba(13, 122, 83, 0.06));
}

.dark .mobile-nav-btn.active-nav-tab,
html.dark .mobile-nav-btn.active-nav-tab {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.10));
}

.mob-nav-icon {
  font-size: 22px !important;
  width: 22px !important;
  height: 22px !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
}
.icon-svg.fill { fill: currentColor; }
.icon-svg.text-\[12px\], .icon-svg.text-\[13px\] { width: 13px; height: 13px; }
.icon-svg.text-\[14px\] { width: 14px; height: 14px; }
.icon-svg.text-\[15px\] { width: 15px; height: 15px; }
.icon-svg.text-\[16px\] { width: 16px; height: 16px; }
.icon-svg.text-\[17px\] { width: 17px; height: 17px; }
.icon-svg.text-\[18px\] { width: 18px; height: 18px; }
.icon-svg.text-\[20px\] { width: 20px; height: 20px; }
.icon-svg.text-\[28px\] { width: 28px; height: 28px; }
.icon-svg.mob-nav-icon { width: 22px; height: 22px; }

.mob-nav-label {
  font-size: 10px;
  line-height: 1.2;
  margin-top: 2px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.mob-nav-ping {
  position: absolute;
  top: 4px;
  right: calc(50% - 14px);
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  pointer-events: none;
}

/* Mobile Sticky First Column in Tables */
.mobile-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

@media (max-width: 768px) {
  .mobile-table-scroll th.sticky-col,
  .mobile-table-scroll td.sticky-col {
    position: sticky;
    left: 0;
    z-index: 12;
    background-color: #ffffff;
    box-shadow: 3px 0 8px -2px rgba(0, 0, 0, 0.08);
  }

  [dir="rtl"] .mobile-table-scroll th.sticky-col,
  [dir="rtl"] .mobile-table-scroll td.sticky-col {
    left: auto;
    right: 0;
    box-shadow: -3px 0 8px -2px rgba(0, 0, 0, 0.08);
  }

  .dark .mobile-table-scroll th.sticky-col,
  html.dark .mobile-table-scroll th.sticky-col {
    background-color: #122438;
    box-shadow: 3px 0 8px -2px rgba(0, 0, 0, 0.45);
  }

  .dark .mobile-table-scroll td.sticky-col,
  html.dark .mobile-table-scroll td.sticky-col {
    background-color: #0d1d2d;
    box-shadow: 3px 0 8px -2px rgba(0, 0, 0, 0.45);
  }

  [dir="rtl"] .dark .mobile-table-scroll th.sticky-col,
  [dir="rtl"] html.dark .mobile-table-scroll th.sticky-col,
  [dir="rtl"] .dark .mobile-table-scroll td.sticky-col,
  [dir="rtl"] html.dark .mobile-table-scroll td.sticky-col {
    box-shadow: -3px 0 8px -2px rgba(0, 0, 0, 0.45);
  }
}

/* Urdu Diacritics & Line Height Hardening */
[lang="ur"], [dir="rtl"], .font-urdu {
  line-height: 1.85 !important;
}

/* Horizontal Swipe Pill Indicator */
.swipe-indicator-pill {
  animation: swipeNudge 2.4s ease-in-out infinite;
}

@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

[dir="rtl"] .swipe-indicator-pill {
  animation: swipeNudgeRtl 2.4s ease-in-out infinite;
}

@keyframes swipeNudgeRtl {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
