/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors */
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-text: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-tertiary: #71717a;
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --gradient-rainbow: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.4);
    --shadow-glow-purple: 0 0 60px rgba(139, 92, 246, 0.4);
    --shadow-glow-green: 0 0 60px rgba(16, 185, 129, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth;  Conflicts with Lenis */
}

.gradient-orb, .nav {
    will-change: transform;
}

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

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

/* ===================================
   Animated Background
   =================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* ===================================
   Glass Effects
   =================================== */
.glass-effect {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card-large {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.logo-icon {
    margin-top:5px;
}

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

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

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

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

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

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

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: white;
    color: var(--color-bg);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glow-on-hover {
    position: relative;
    z-index: 1;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-on-hover:hover::before {
    opacity: 0.8;
}

.glow-on-hover:hover {
    transform: translateY(-2px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: calc(72px + 6rem) 0 4rem;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.pulse-animation {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.animated-gradient {
    background: var(--gradient-rainbow);
    background-size: 200% auto;
    animation: gradient-shift 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Phone Mockup */
.hero-mockup {
    max-width: 360px;
    margin: 0 auto var(--spacing-3xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    perspective: 1000px; /* Enable 3D perspective */
}

.phone-device {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19;
    background: #000;
    border-radius: 3rem;
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 4px #1a1a1a,
        0 50px 100px rgba(59, 130, 246, 0.25), /* Blue glow shadow */
        0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 12px; /* Thinner bezels */
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg); /* Subtle 3D tilt */
    transition: transform 0.5s ease;
}

.phone-device:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

/* Solar/Dynamic Island Notch */
.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%; /* Dynamic Island width */
    height: 36px;
    background: #000;
    border-radius: 50px;
    z-index: 20;
    transition: all 0.3s ease;
}

.phone-content {
    width: 100%;
    height: 100%;
    background: #0f0f11; /* Slightly lighter deep background */
    border-radius: 2.25rem;
    overflow: hidden;
    position: relative;
}

.phone-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    filter: blur(50px);
    z-index: 0;
    animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

.mock-statusbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 10;
}

.status-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 10;
}

.mock-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mock-actions {
    display: flex;
    gap: 1rem;
}

.mock-messages {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

.mock-message {
    background: rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Finer border */
    border-radius: 1.25rem;
    padding: 1.125rem;
    opacity: 0;
    transform: translateX(-20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mock-message:hover {
    background: rgba(40, 40, 45, 0.8);
    transform: translateY(-2px) !important; /* Override animation transform */
}

.slide-in-1 {
    animation: slideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards; /* Better easing */
}

.slide-in-2 {
    animation: slideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.slide-in-3 {
    animation: slideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: 0.625rem;
}

.message-text {
    font-size: 0.9375rem;
    color: #f4f4f5;
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-3xl);
    justify-content: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: var(--spacing-xs);
}

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

/* ===================================
   Sections
   =================================== */
.features, .showcase, .download {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: var(--spacing-md);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

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

/* ===================================
   Features Grid
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    position: relative;
    width: fit-content;
    margin-bottom: var(--spacing-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .icon-glow {
    opacity: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

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

.feature-link {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-link {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Showcase Section
   =================================== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

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

.showcase-preview {
    margin-bottom: var(--spacing-lg);
}

.preview-window {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-dots {
    display: flex;
    gap: 0.5rem;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.window-title {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.window-content {
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swipe Demo */
.gesture-demo {
    width: 100%;
}

.demo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: grab;
    transition: transform 0.3s ease;
}

.demo-card:active {
    cursor: grabbing;
}

.swipe-demo {
    animation: swipe-hint 3s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-20px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(20px); }
}

.swipe-action {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-action.left {
    left: -80px;
    background: #10b981;
}

.swipe-action.right {
    right: -80px;
    background: #ef4444;
}

.demo-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

/* Theme Demo */
.theme-demo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.theme-option {
    aspect-ratio: 1;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.showcase-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.showcase-description {
    color: var(--color-text-secondary);
}

/* ===================================
   Download Section
   =================================== */
.download-card {
    border-radius: 2rem;
    padding: var(--spacing-3xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: var(--spacing-md);
}

.download-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.download-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.download-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* Floating Elements */
.download-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-1 {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    50% { 
        transform: translateY(-30px) rotate(5deg);
    }
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.mini-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.card-mini-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 60%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 90%;
    animation-delay: 1s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px) scale(1.5);
        opacity: 1;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-text);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.footer-link {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.footer-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* ===================================
   How It Works Section
   =================================== */
/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px; /* Center of the number column */
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--color-border) 10%, 
        var(--color-border) 90%, 
        transparent 100%
    );
    z-index: 0;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-reverse {
    grid-template-columns: 80px 1fr 1fr;
}

.step-reverse .step-content {
    order: 2;
}

.step-reverse .step-visual {
    order: 1;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.step:hover .step-number,
.step.is-visible .step-number {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.125rem;
}

/* Modernized Phone Mockup for Steps */
.phone-mockup {
    width: 280px;
    aspect-ratio: 9/19; /* Maintain ratio */
    height: auto;
    background: #000;
    border-radius: 2.5rem;
    padding: 10px; /* Thinner bezel */
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 4px #1a1a1a,
        0 30px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    transition: transform 0.5s ease;
    position: relative;
}

/* CSS-only Dynamic Island */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.step:hover .phone-mockup,
.step.is-visible .phone-mockup {
    transform: translateY(-10px) rotateY(5deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f0f11;
    border-radius: 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically for better focus */
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

/* Step 1: WhatsApp Modernization */
.whatsapp-message {
    display: flex;
    align-items: flex-end; /* Align to bottom for chat feel */
    gap: 0.75rem;
    animation: slideIn 0.5s ease-out;
}

.message-bubble {
    flex: 1;
    padding: 1rem;
    background: #008069; /* Brighter WhatsApp Green */
    border-radius: 1rem 1rem 1rem 0; /* Modern chat bubble shape */
    color: white;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.message-bubble::after {
    /* Removed old triangle, relying on border-radius for modern look */
    content: none; 
}

.share-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s both;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-icon:hover {
    transform: scale(1.1);
}

/* Step 2: Categories Modernization */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.category-item {
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Glass effect overlay */
    background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(4px);
}

.category-item:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

/* Step 3: Search Modernization */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    margin-bottom: 0.5rem;
}

.search-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet & Small Desktop (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .download-card {
        grid-template-columns: 1fr;
    }
    
    .download-visual {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        height: 64px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-logo {
        font-size: 1.125rem;
    }
    
    .logo-icon img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Hero Section */
    .hero {
        padding: calc(64px + 2rem) 0 2rem;
        min-height: 100vh;
        height: 100vh; /* Force full screen height */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 0 1rem;
    }
    
    .btn-large {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-mockup {
        max-width: 280px;
        margin-bottom: var(--spacing-xl);
    }
    
    /* How It Works Responsiveness */
    .how-it-works {
        padding: var(--spacing-xl) 0;
    }

    .steps {
        gap: var(--spacing-xl);
    }

    /* Remove the vertical line on mobile */
    .steps::before {
        display: none;
    }

    .step {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    /* Reset order for reverse steps so they look consistent on mobile */
    .step-reverse .step-content {
        order: 1;
    }
    
    .step-reverse .step-visual {
        order: 2;
    }

    .step-number {
        margin: 0 auto; /* Center the number */
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

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

    .phone-mockup {
        width: 100%;
        max-width: 280px; /* Limit width on mobile */
        height: auto;
        aspect-ratio: 9/19;
    }

    /* Active state for scroll interactions (Mobile) */
    .step.is-visible .phone-mockup {
        transform: translateY(-5px) scale(1.02);
    }
    
    .step.is-visible .step-number {
        border-color: #3b82f6;
        color: #3b82f6;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    
    /* Sections */
    .features, .showcase, .download {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    /* Download Section */
    .download-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .download-buttons .btn {
        width: 100%;
    }
    
    .download-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-container {
        height: 56px;
    }
    
    .logo-icon img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: 0 1rem;
        min-height: auto; /* Remove strict min-height constraint for container */
        height: auto;
        display: block; /* Switch to block to control flow */
    }
    
    /* Create a virtual container for text content to fill first screen */
    .hero-badge, .hero-title, .hero-description, .hero-cta {
        /* These will naturally stack */
    }
    
    /* Centering the text block manually using padding */
    .hero {
        padding-top: calc(50dvh - 180px); /* Centers text block visually in first screen */
        padding-bottom: 4rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin: 0 auto 0.5rem; /* Centered */
        display: table; /* Fit content */
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .hero-cta {
        margin-bottom: 0; /* Remove bottom margin */
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 20vh; /* Push phone down "to next scroll" */
    }

    .hero-mockup {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
    
    .phone-device {
        padding: 0.5rem; /* Reduced padding inside phone */
        border-radius: 2rem; /* Adjusted border radius */
    }
    
    .mock-statusbar {
        padding: 0.5rem 0.75rem;
    }
    
    .mock-header {
        padding: 0 0.75rem 0.75rem;
    }
    
    .mock-header h3 {
        font-size: 1.25rem;
    }
    
    .mock-messages {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
    
    .mock-message {
        padding: 0.75rem;
    }
    
    .message-text {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    /* Sections */
    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.9375rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.9375rem;
    }
    
    /* Download Section */
    .download-card {
        padding: var(--spacing-lg);
    }
    
    .download-title {
        font-size: 1.75rem;
    }
    
    .download-description {
        font-size: 0.9375rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-column {
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-copyright {
        font-size: 0.8125rem;
    }
    
    .footer-badge {
        font-size: 0.75rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-mockup {
        max-width: 200px;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .feature-card {
        padding: var(--spacing-sm);
    }
    
    .download-card {
        padding: var(--spacing-md);
    }
}

/* ===================================
   Scroll Animations
   =================================== */
.animate-in {
    animation: fadeInUp 0.8s ease-out both;
}
