/* ═══════════════════════════════════════════════════════
   JERRY AI — LANDING PAGE DESIGN SYSTEM
   Premium SaaS • Glassmorphism • Modern 2026
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  /* Brand — Navy Blue Theme (matches app) */
  --primary: #1E3A5F;
  --primary-light: #2563EB;
  --primary-dark: #162D4A;
  --accent: #0EA5E9;
  --accent-light: #06B6D4;
  --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #0EA5E9 100%);
  --gradient-hero: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 50%, #DBEAFE44 100%);
  --gradient-cta: linear-gradient(135deg, #1E3A5F 0%, #3B82F6 100%);
  --gradient-text: linear-gradient(135deg, #1E3A5F 0%, #0EA5E9 100%);

  /* Surfaces */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --surface-glass: rgba(255, 255, 255, 0.7);
  --surface-glass-strong: rgba(255, 255, 255, 0.85);

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Borders */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-accent: rgba(30, 58, 95, 0.2);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.04), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(30, 58, 95, 0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(30, 58, 95, 0.15), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2);
  --shadow-btn: 0 4px 16px rgba(30, 58, 95, 0.3);
  --shadow-phone: 0 25px 80px rgba(30, 58, 95, 0.2), 0 10px 30px rgba(0,0,0,0.1);

  /* Spacing */
  --section-py: 120px;
  --container-max: 1200px;
  --container-px: 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;

  /* Nav */
  --nav-height: 72px;
  --nav-bg: rgba(248, 250, 252, 0.8);
  --nav-border: rgba(226, 232, 240, 0.6);

  /* Code block */
  --code-bg: #1E1E2E;
  --code-text: #D4D4D4;
  --code-keyword: #C678DD;
  --code-string: #98C379;
  --code-func: #61AFEF;
  --code-var: #E5C07B;
  --code-prop: #E06C75;
  --code-num: #D19A66;
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --gradient-hero: linear-gradient(135deg, #030712 0%, #0A1628 50%, #030712 100%);
  --gradient-text: linear-gradient(135deg, #60A5FA 0%, #06B6D4 100%);

  --bg: #030712;
  --bg-alt: #0A1628;
  --surface: #111827;
  --surface-hover: #1E293B;
  --surface-glass: rgba(10, 22, 40, 0.7);
  --surface-glass-strong: rgba(10, 22, 40, 0.85);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;

  --border: #1E293B;
  --border-light: #111827;
  --border-accent: rgba(59, 130, 246, 0.2);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
  --shadow-btn: 0 4px 20px rgba(59, 130, 246, 0.4);
  --shadow-phone: 0 25px 80px rgba(0,0,0,0.5), 0 0 60px rgba(59, 130, 246, 0.1);

  --nav-bg: rgba(3, 7, 18, 0.85);
  --nav-border: rgba(30, 41, 59, 0.5);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease), color var(--duration-slow) var(--ease);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

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

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

/* ─── Typography ─── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--border-accent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glass {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: var(--surface-glass-strong);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: white;
  color: #1E3A5F;
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255, 0.3);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-icon svg,
.logo-icon img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-powered {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.logo-powered span {
  font-weight: 700;
  color: var(--primary);
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(30, 58, 95, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.theme-toggle:hover {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.theme-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: all var(--duration) var(--ease);
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gradient-cta);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-btn);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(30, 58, 95, 0.4);
}

.nav-cta .cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease);
}

.nav-cta:hover .cta-arrow {
  transform: translateX(3px);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: all var(--duration) var(--ease);
}

.mobile-menu-btn .close-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

.mobile-menu-btn.active .menu-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.mobile-menu-btn.active .close-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--duration) var(--ease);
  pointer-events: none;
  z-index: 999;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-link {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.mobile-link:hover {
  background: rgba(30, 58, 95, 0.06);
  color: var(--text-primary);
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
  background: var(--gradient-cta);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

.mobile-cta-btn svg {
  width: 18px;
  height: 18px;
}

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

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

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation-delay: -14s;
}

[data-theme="dark"] .orb-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

[data-theme="dark"] .orb-2 {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .orb-3 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="dark"] .hero-grid-pattern {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-stars {
  display: flex;
  gap: 2px;
}

.trust-stars svg, .star-filled {
  width: 18px;
  height: 18px;
  color: #F59E0B;
  fill: #F59E0B;
}

.trust-text {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
}

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

.phone-mockup {
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: #0F0F0F;
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.phone-frame.small {
  width: 260px;
  height: 540px;
  border-radius: 36px;
}

.phone-frame.mini {
  width: 200px;
  height: 420px;
  border-radius: 32px;
  padding: 8px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0F0F0F;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-frame.mini .phone-notch {
  width: 70px;
  height: 22px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.phone-frame.small .phone-screen {
  border-radius: 26px;
}

.phone-frame.mini .phone-screen {
  border-radius: 24px;
}

.screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 2;
  display: block;
}

.screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 16px;
  z-index: 1;
}

.phone-screen:not(.placeholder-active) .screen-placeholder {
  /* Hidden when real image loads */
}

.placeholder-active .screen-placeholder {
  z-index: 2;
}

.placeholder-ui {
  width: 100%;
}

.ph-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ph-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A5F, #3B82F6);
  flex-shrink: 0;
}

.ph-lines {
  flex: 1;
}

.ph-line {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-bottom: 6px;
}

.ph-line.w60 { width: 60%; }
.ph-line.w40 { width: 40%; }

.ph-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.ph-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
}

.ph-card svg {
  width: 20px;
  height: 20px;
}

.ph-card span {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.ph-card.accent-1 { color: #2563EB; }
.ph-card.accent-2 { color: #0EA5E9; }
.ph-card.accent-3 { color: #F97316; }
.ph-card.accent-4 { color: #06B6D4; }

.ph-chat-preview,
.ph-chat-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.5;
  max-width: 85%;
}

.ph-bubble.user {
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ph-bubble.bot {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
}

.ph-bubble.code-bubble {
  font-family: monospace;
  font-size: 10px;
  background: rgba(30, 30, 46, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
}

.code-label {
  font-size: 9px;
  color: #3B82F6;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.dark-ph .phone-screen {
  background: linear-gradient(180deg, #030712 0%, #0A1628 100%);
}

/* ─── Floating Cards ─── */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 5;
}

.floating-card svg {
  width: 16px;
  height: 16px;
}

.fc-1 {
  top: 10%;
  right: -20px;
  animation: floatCard 5s ease-in-out infinite;
  color: #F59E0B;
}

.fc-2 {
  bottom: 20%;
  left: -30px;
  animation: floatCard 5s ease-in-out infinite 1.5s;
  color: #22C55E;
}

.fc-3 {
  top: 55%;
  right: -35px;
  animation: floatCard 5s ease-in-out infinite 3s;
  color: #3B82F6;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-tertiary);
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ═══════════════════════════════════════════
   FEATURE HIGHLIGHT
   ═══════════════════════════════════════════ */
.feature-highlight {
  padding: var(--section-py) 0;
  position: relative;
}

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

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-phone .phone-frame {
  animation: phoneFloat 6s ease-in-out infinite;
  animation-delay: -3s;
}

.feature-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-block {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
  position: relative;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  position: relative;
}

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

.step-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  color: white;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-btn);
}

.step-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 80px;
  flex-shrink: 0;
  padding-top: 100px;
  color: var(--border);
}

.step-connector svg {
  width: 100%;
  height: 20px;
}

/* ═══════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════ */
.stats-section {
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 48px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item .stat-number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  margin-left: 2px;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-item .stat-number,
.stat-item .stat-suffix {
  display: inline;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 8px;
}

.stat-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  color: white;
  margin-bottom: 4px;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3);
  position: relative;
}

.stat-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  animation: iconSpin 12s linear infinite;
}

@keyframes iconSpin {
  to { transform: rotate(360deg); }
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ═══════════════════════════════════════════
   ALL FEATURES GRID
   ═══════════════════════════════════════════ */
.all-features {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}

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

.f-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.f-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.03), rgba(14, 165, 233, 0.03));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.f-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

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

.f-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.f-card-icon svg {
  width: 20px;
  height: 20px;
}

.f-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.f-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   API SECTION
   ═══════════════════════════════════════════ */
.api-section {
  padding: var(--section-py) 0;
}

.api-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.api-text .section-badge {
  display: inline-block;
}

.api-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.api-text .section-subtitle {
  text-align: left;
  margin: 0 0 28px;
}

.api-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.api-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.api-feature svg {
  width: 20px;
  height: 20px;
  color: #22C55E;
  flex-shrink: 0;
}

/* ─── Code Window ─── */
.code-window {
  background: var(--code-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.06);
}

.code-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.code-title {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-align: center;
}

.code-copy-btn {
  color: rgba(255,255,255,0.3);
  transition: color var(--duration) var(--ease);
  padding: 4px;
}

.code-copy-btn:hover {
  color: rgba(255,255,255,0.7);
}

.code-copy-btn svg {
  width: 16px;
  height: 16px;
}

.code-body {
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--code-text);
  margin: 0;
}

.code-keyword { color: var(--code-keyword); }
.code-string { color: var(--code-string); }
.code-func { color: var(--code-func); }
.code-var { color: var(--code-var); }
.code-prop { color: var(--code-prop); }
.code-num { color: var(--code-num); }

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */
.cta-banner {
  padding: 80px 0;
  overflow: visible;
}

.cta-card {
  position: relative;
  padding: 72px 56px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-cta);
  overflow: visible;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.cta-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -80px;
  right: -60px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: white;
  bottom: -60px;
  left: 20%;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #06B6D4;
  top: 20%;
  right: 30%;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-phone-float {
  position: absolute;
  right: 40px;
  bottom: -40px;
  z-index: 2;
  animation: phoneFloat 6s ease-in-out infinite;
  animation-delay: -2s;
}

.cta-phone-wrapper {
  position: relative;
}

.phone-frame.cta-phone {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(145deg, #222, #0a0a0a);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.phone-frame.cta-phone .phone-screen {
  border-radius: 30px;
}

.phone-frame.cta-phone .phone-notch {
  width: 90px;
  height: 26px;
}

.cta-phone-glow {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ─── Shortcut Grid Placeholder ─── */
.ph-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
}

.ph-sc-item {
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.06);
}

.ph-sc-item svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials {
  padding: var(--section-py) 0;
}

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

.testimonial-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

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

.testimonial-card.featured {
  background: var(--gradient-cta);
  border-color: transparent;
  color: white;
}

.testimonial-card.featured .t-text {
  color: rgba(255,255,255,0.9);
}

.testimonial-card.featured .t-role {
  color: rgba(255,255,255,0.6);
}

.t-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.t-stars svg {
  width: 16px;
  height: 16px;
  color: #F59E0B;
  fill: #F59E0B;
}

.testimonial-card.featured .t-stars svg {
  color: #FDE68A;
  fill: #FDE68A;
}

.t-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    hsl(var(--hue, 260), 60%, 60%),
    hsl(calc(var(--hue, 260) + 40), 70%, 55%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.t-name {
  font-size: 15px;
  font-weight: 600;
  display: block;
}

.t-role {
  font-size: 13px;
  color: var(--text-tertiary);
  display: block;
}

/* ═══════════════════════════════════════════
   DOWNLOAD SECTION
   ═══════════════════════════════════════════ */
.download-section {
  padding: 100px 0 60px;
  background: var(--bg-alt);
}

.download-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon-wrap {
  margin-bottom: 24px;
}

.download-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease);
}

.download-app-icon:hover {
  transform: scale(1.08);
}

.download-main {
  margin: 40px 0 28px;
}

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px 16px 20px;
  background: var(--gradient-cta);
  color: white;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-btn), 0 0 0 0 rgba(59, 130, 246, 0);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.playstore-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.playstore-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.3);
}

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

.playstore-btn:active {
  transform: translateY(-1px);
}

.playstore-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.playstore-icon svg {
  width: 100%;
  height: 100%;
}

.playstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.playstore-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.85;
  text-transform: uppercase;
}

.playstore-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.playstore-arrow {
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease);
}

.playstore-arrow svg {
  width: 20px;
  height: 20px;
}

.playstore-btn:hover .playstore-arrow {
  opacity: 1;
  transform: translateX(0);
}

.download-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 24px;
  flex-wrap: wrap;
}

.store-badge {
  display: block;
  transition: all var(--duration) var(--ease);
  color: var(--text-primary);
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-svg {
  width: 170px;
  height: 50px;
}

.download-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.download-note svg {
  width: 16px;
  height: 16px;
  color: #22C55E;
}

.download-ios-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0;
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

[data-theme="dark"] .playstore-btn {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .playstore-btn:hover {
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.4);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 64px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
}

.social-link:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.06);
  border-color: var(--border-accent);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 6px;
}

.heart-icon {
  width: 14px;
  height: 14px;
  color: #EF4444;
  fill: #EF4444;
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text {
    max-width: 580px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .phone-mockup {
    animation-name: phoneFloatCenter;
  }

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

  .floating-card.fc-1 { right: 5%; top: 5%; }
  .floating-card.fc-2 { left: 5%; }
  .floating-card.fc-3 { right: 0%; }

  .feature-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .feature-visual {
    order: -1;
  }

  .api-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .api-text .section-title,
  .api-text .section-subtitle {
    text-align: center;
  }

  .api-features-list {
    align-items: center;
  }

  .api-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .cta-phone-float {
    display: none;
  }

  .cta-card {
    text-align: center;
    justify-content: center;
  }

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

  .cta-buttons {
    justify-content: center;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 32px;
    padding: 40px 32px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    min-width: 120px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .steps-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .step-connector {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-py: 64px;
    --container-px: 16px;
    --nav-height: 64px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 32px;
  }

  .phone-frame.small {
    width: 220px;
    height: 460px;
  }

  .floating-card {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

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

  .section-header {
    margin-bottom: 36px;
  }

  .section-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .stats-section {
    padding: 48px 0;
  }

  .stats-grid {
    padding: 28px 16px;
    gap: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    min-width: unset;
    width: 100%;
  }

  .stat-item .stat-number {
    font-size: 32px;
  }

  .stat-suffix {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .cta-card {
    padding: 40px 20px;
    min-height: auto;
    border-radius: var(--radius-xl);
  }

  .cta-content h2 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .cta-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .store-svg {
    width: 150px;
    height: 44px;
  }

  .playstore-btn {
    padding: 14px 24px 14px 16px;
    gap: 12px;
  }

  .playstore-title {
    font-size: 18px;
  }

  .download-meta {
    gap: 8px;
  }

  .download-ios-note {
    font-size: 12px;
    padding: 6px 14px;
  }

  .download-note {
    font-size: 11px;
  }

  .download-section {
    padding: 56px 0 40px;
  }

  .download-app-icon {
    width: 64px;
    height: 64px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 34px);
  }

  .feature-block {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .feature-info p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 6px;
  }

  .code-body {
    font-size: 11px;
    padding: 14px;
  }

  .api-section {
    padding: 56px 0;
  }

  .api-feature {
    font-size: 13px;
  }

  .f-card p {
    font-size: 13px;
  }

  .step-card p {
    font-size: 13px;
  }

  .cta-banner {
    padding: 48px 0;
  }

  .how-it-works {
    padding: 56px 0;
  }

  .feature-highlight {
    padding: 56px 0;
  }

  .all-features {
    padding: 56px 0;
  }

  .api-section {
    display: none;
  }

  .mobile-api-link {
    display: none !important;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
  }

  .playstore-btn {
    padding: 12px 16px 12px 12px;
    gap: 10px;
  }

  .playstore-title {
    font-size: 16px;
  }

  .playstore-icon {
    width: 28px;
    height: 28px;
  }

  .stat-item .stat-number {
    font-size: 26px;
  }

  .stat-suffix {
    font-size: 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .cta-card {
    padding: 32px 16px;
  }
}

/* ═══════════════════════════════════════════
   UTILITY & MISC
   ═══════════════════════════════════════════ */

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── What's New / Changelog Section ─── */
.whats-new-section {
  padding: var(--section-py) 0;
}

.changelog-container {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.changelog-loading {
  text-align: center;
  color: var(--text-tertiary);
  padding: 40px 0;
  font-size: 15px;
}

.changelog-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.changelog-entry:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.changelog-entry.latest {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  gap: 12px;
}

.changelog-header:hover {
  background: var(--surface-hover);
}

.changelog-version-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-version {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.changelog-badge-latest {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--gradient-cta);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.changelog-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.changelog-entry.open .changelog-toggle {
  transform: rotate(180deg);
}

.changelog-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.changelog-entry.open .changelog-body {
  max-height: 2000px;
}

.changelog-body-inner {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.changelog-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-group-title.added { color: #22C55E; }
.changelog-group-title.improved { color: #3B82F6; }
.changelog-group-title.fixed { color: #F97316; }

.changelog-group-title svg,
.changelog-group-title i {
  width: 16px;
  height: 16px;
}

.changelog-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 4px 0;
}

.changelog-items li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.changelog-group.added-group .changelog-items li::before { background: #22C55E; }
.changelog-group.improved-group .changelog-items li::before { background: #3B82F6; }
.changelog-group.fixed-group .changelog-items li::before { background: #F97316; }

.changelog-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gradient-cta);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  width: fit-content;
}

.changelog-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.changelog-download-btn i {
  width: 16px;
  height: 16px;
}

.changelog-no-data {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .changelog-header {
    padding: 16px 18px;
  }
  .changelog-body-inner {
    padding: 16px 18px 20px;
  }
  .changelog-version {
    font-size: 16px;
  }
}

/* Smooth Transition for Theme Change */
body * {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
}

/* Exclude animations from theme transition */
[data-animate],
.phone-mockup,
.floating-card,
.hero-gradient-orb,
.hero-scroll-indicator {
  transition-property: opacity, transform;
}
