/* ============================================
   DESIGN SYSTEM - Color Palette & Variables
   ============================================ */
:root {
    /* Primary Colors - Vibrant Green/Emerald Gradient */
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --accent-green: #22c55e;
    --accent-teal: #14b8a6;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Base Colors */
    --white: #ffffff;
    --black: #000000;

    /* Neutrals */
    --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;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Theme-specific */
    /* Theme-specific */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-border: rgba(255, 255, 255, 0.8);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-danger: #FEF2F2;
    --border-danger: #FECACA;
    --text-danger: #DC2626;
    --text-danger-muted: #991B1B;
    --border-color-hover: #d1d5db;
    --shadow-color: rgb(0 0 0 / 0.1);
    --orb-opacity: 0.5;
    --hero-bg-gradient: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --bg-deep: #111827;
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */
[data-theme="dark"] {
    /* Inverted Neutrals */
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;

    /* Dark Theme Specific */
    /* Dark Theme Specific */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.8);
    --bg-glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --bg-danger: rgba(220, 38, 38, 0.1);
    --border-danger: rgba(220, 38, 38, 0.2);
    --text-danger: #ef4444;
    --text-danger-muted: #fca5a5;
    --border-color-hover: #475569;
    --orb-opacity: 0.3;
    --hero-bg-gradient: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --bg-deep: #0f172a;

    /* Enhanced Shadows for Dark Mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.7);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */
.landing-page {
    background: transparent;
}

/* Global Fixed Background */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-background-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--hero-bg-gradient);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: transparent;
}

/* Floating Food Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 2.5rem;
    opacity: 0.4;
    animation: floatBounce 8s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes floatBounce {

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

    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(-25px) rotate(-3deg) scale(1.1);
    }

    75% {
        transform: translateY(-10px) rotate(3deg) scale(1.03);
    }
}

/* Animated Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: orbPulse 10s ease-in-out infinite;
}

.gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(34, 197, 94, 0.2) 100%);
    animation-delay: 0s;
}

.gradient-orb.orb-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -50px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(20, 184, 166, 0.2) 100%);
    animation-delay: 3s;
}

.gradient-orb.orb-3 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: 30%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(16, 185, 129, 0.2) 100%);
    animation-delay: 6s;
}

@keyframes orbPulse {

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

    25% {
        transform: scale(1.1) translate(10px, -10px);
        opacity: 0.6;
    }

    50% {
        transform: scale(0.95) translate(-5px, 15px);
        opacity: 0.4;
    }

    75% {
        transform: scale(1.05) translate(5px, 5px);
        opacity: 0.55;
    }
}

/* Navigation */
.nav-bar {
    position: relative;
    z-index: 10;
    padding: var(--spacing-lg) var(--spacing-xl);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: calc(100vh - 100px);
}

/* Trust Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--primary-600);
    font-weight: 500;
}

.badge-icon {
    font-size: 1rem;
}

.badge-stars {
    font-size: 0.75rem;
    letter-spacing: -2px;
}

/* Hero Title - Enhanced */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.title-line {
    display: block;
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(90deg, #10b981, #22c55e, #14b8a6, #06b6d4, #10b981);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

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

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

/* Cursor Blink Animation */
.cursor-blink {
    color: var(--primary-500);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
}

.animate-float {
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes floatCard {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {

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

    50% {
        transform: translateY(8px);
    }
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-pill svg {
    color: var(--primary-500);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-description strong {
    color: var(--text-primary);
}

/* Hero Buttons - Enhanced */
.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn-glow {
    position: relative;
    overflow: visible;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 0.6;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon svg {
    flex-shrink: 0;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.user-avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: -10px;
    border: 2px solid var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.avatar-more {
    background: var(--gray-800) !important;
    font-size: 0.65rem;
    padding: 0 2px;
}

.proof-text {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.proof-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.proof-divider {
    color: var(--gray-300);
}

/* App Store Badges */
.app-stores {
    display: flex;
    gap: var(--spacing-md);
}

.app-store-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-900);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-800);
}

.badge-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-small {
    font-size: 0.65rem;
    opacity: 0.8;
}

.badge-big {
    font-size: 1rem;
    font-weight: 600;
}

/* Hero Image Section */
.hero-image {
    position: relative;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(16, 185, 129, 0.2);
    animation: rotateSlow 20s linear infinite;
}

.deco-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.deco-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-direction: reverse;
    animation-duration: 15s;
}

.deco-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes rotateSlow {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Phone Mockup Container */
.phone-mockup-container {
    position: relative;
    z-index: 1;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-radius: 2.5rem;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(16, 185, 129, 0.4), 0 0 100px rgba(16, 185, 129, 0.2);
    animation: float 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--gray-900);
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

.phone-screen {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card .card-content {
    display: flex;
    flex-direction: column;
}

.floating-card .card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.floating-card .card-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.card-calories {
    top: 10%;
    left: -40px;
}

.card-goal {
    top: 50%;
    right: -30px;
}

.card-streak {
    bottom: 15%;
    left: -30px;
}

/* Mini Progress Bar in Floating Card */
.mini-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-200);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.mini-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: inherit;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.scroll-indicator svg {
    opacity: 0.6;
}

/* Old Hero Stats - Keep for backward compatibility but hide on landing */
.hero-stats {
    display: none;
}

/* Button Styles */
.btn-primary,
.btn-primary-large,
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary-large:hover,
.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: var(--bg-card);
    color: var(--primary-600);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-text {
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary-600);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* Enhanced Feature Card */
.feature-card {
    padding: var(--spacing-xl);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--bg-glass-border);
    position: relative;
    overflow: hidden;
}

.feature-card-enhanced {
    padding: var(--spacing-2xl);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(34, 197, 94, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

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

/* Feature Badge (Most Popular, New) */
.feature-badge {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge-new {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

/* Large Feature Icon */
.feature-icon-large {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-emoji {
    font-size: 2rem;
}

.feature-card:hover .feature-icon-large {
    transform: scale(1.1) rotate(5deg);
}

/* Old Feature Icon (keep for backward compat) */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Feature Highlights List */
.feature-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.feature-highlights li svg {
    flex-shrink: 0;
}

/* Features Stats Bar */
.features-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(34, 197, 94, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.feature-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.feature-stat .stat-icon {
    font-size: 2rem;
}

.feature-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.feature-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.feature-stat .stat-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 100%);
    max-width: 1280px;
    margin: 0 auto;
}

/* Steps Timeline */
.steps-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

/* Enhanced Step Card */
.step-card-enhanced {
    display: flex;
    gap: var(--spacing-xl);
    position: relative;
}

/* Visual Column - Number and Line */
.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    z-index: 2;
}

.step-line {
    width: 3px;
    flex: 1;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    margin-top: var(--spacing-md);
    border-radius: 2px;
}

/* Content Column */
.step-content {
    flex: 1;
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.step-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.step-emoji {
    font-size: 2rem;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Feature Tags */
.step-features {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.step-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-600);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Steps CTA */
.steps-cta {
    margin-top: var(--spacing-3xl);
}

.steps-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(34, 197, 94, 0.12));
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.steps-cta-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.steps-cta-text p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Old Step Styles - Keep for backward compatibility */
.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.step-card {
    flex: 1;
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    color: var(--gray-600);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-green));
    margin-bottom: 80px;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-content .btn-primary-large {
    background: var(--bg-card);
    color: var(--primary-600);
}

.cta-content .btn-primary-large:hover {
    transform: scale(1.05);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gray-900);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-500);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    border-color: transparent;
}

/* Hide default cursor only on devices with fine pointer */
@media (pointer: fine) {
    body {
        cursor: none;
    }

    a,
    button,
    .feature-card,
    .step-card {
        cursor: none;
    }
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--spacing-3xl) var(--spacing-xl) var(--spacing-lg);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section .logo {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-section a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-title {
        font-size: 3rem;
    }

    .feature-pills {
        justify-content: center;
    }

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

    .social-proof {
        justify-content: center;
        flex-wrap: wrap;
    }

    .app-stores {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: var(--spacing-xl);
    }

    .floating-card {
        display: none;
    }

    .hero-decoration {
        display: none;
    }

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

    .scroll-indicator {
        display: none;
    }

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

    .features-stats {
        flex-wrap: wrap;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-links a:not(.btn-primary-small) {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-pills {
        gap: 0.5rem;
    }

    .feature-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .social-proof {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .app-stores {
        flex-direction: column;
        align-items: center;
    }

    .app-store-badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .step-card-enhanced {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-visual {
        flex-direction: row;
        width: 100%;
        align-items: center;
    }

    .step-number-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-line {
        width: auto;
        flex: 1;
        height: 3px;
        margin-top: 0;
        margin-left: var(--spacing-md);
    }

    .step-content {
        padding: var(--spacing-lg);
    }

    .step-content h3 {
        font-size: 1.25rem;
    }

    .steps-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .steps-cta-text h4 {
        font-size: 1.25rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 60px;
        margin: 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        gap: var(--spacing-xl) var(--spacing-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }

    .footer-section {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   SCROLL ANIMATIONS & INTERACTIVITY
   ============================================ */

/* Initial state for scroll elements */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Staggered delays for children */
.scroll-animate-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* Helper to automatically stagger children transition delay */
.scroll-animate-stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-animate-stagger.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-animate-stagger.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-animate-stagger.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* Enhanced Card Tilt Effect (3D) */
.tilt-card {
    will-change: transform;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* GLASSMORPHISM PREMIUM */
.glass-panel-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .glass-panel-premium {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Parallax Background Elements */
.parallax-bg-element {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s linear;
    /* fast transition for smooth JS updates */
}