/* ==========================================================================
   Keep Landing Page - Modern 2025 Design
   Vibrant Purple Theme with Contemporary Patterns
   ========================================================================== */

/* Import Modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS Variables - Modern 2025 Color System
   ========================================================================== */
:root {
    /* Modern Vibrant Purple Palette */
    --color-deep-purple: #6750A4;          /* Deep base purple */
    --color-vibrant-purple: #7F5AF0;       /* Energetic purple for CTAs */
    --color-lavender: #A78BFA;             /* Light purple accent */
    --color-dark-bg: #100F13;              /* Deep charcoal with purple tint */
    --color-light-bg: #F8F7FC;             /* Off-white with purple hint */
    --color-text-dark: #E8E7EC;            /* Text on dark */
    --color-text-light: #1D1D1F;           /* Softer black for better readability */
    --color-text-muted: #6B7280;           /* Better contrast muted text */

    /* Accent Colors - Purple Variants */
    --color-accent-light: #A78BFA;         /* Light purple for highlights */
    --color-accent-medium: #8B5CF6;        /* Medium purple for variety */
    --color-accent-dark: #7C3AED;          /* Dark purple for contrast */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 24px;

    /* Typography - Modern System */
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Modern Type Scale with clamp() */
    --font-size-hero: clamp(2.5rem, 5vw, 3.5rem);      /* 40-56px - Readable and impactful */
    --font-size-h2: clamp(2.5rem, 4vw, 3rem);          /* 40-48px */
    --font-size-h3: clamp(1.75rem, 3vw, 2rem);         /* 28-32px */
    --font-size-body: 1.25rem;                          /* 20px - Modern standard */
    --font-size-small: 0.9375rem;                       /* 15px */

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;                           /* Heavy weight for hero */

    /* Line Heights */
    --line-height-tight: 1.15;                          /* More breathing room */
    --line-height-normal: 1.7;                          /* Better readability */
    --line-height-relaxed: 1.7;                         /* Tightened from 1.8 */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Modern Elevation (Deeper for 2025) */
    --shadow-sm: 0 2px 12px rgba(103, 80, 164, 0.15);
    --shadow-md: 0 6px 24px rgba(103, 80, 164, 0.25);
    --shadow-lg: 0 12px 40px rgba(103, 80, 164, 0.35);
    --shadow-xl: 0 20px 60px rgba(103, 80, 164, 0.45);

    /* Animation Timings */
    --timing-fast: 200ms;
    --timing-medium: 400ms;
    --timing-slow: 600ms;
    --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: var(--line-height-normal);
    color: var(--color-text-light);
    background-color: var(--color-light-bg);
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Grain Texture Overlay (Professional Premium Feel)
   ========================================================================== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ==========================================================================
   Animated Mesh Gradient (Sophisticated Background)
   ========================================================================== */
.mesh-gradient {
    background:
        radial-gradient(circle at 20% 50%, rgba(107, 91, 164, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 127, 198, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(107, 91, 164, 0.15) 0%, transparent 50%);
    animation: meshMove 20s ease infinite;
    background-size: 200% 200%;
}

@keyframes meshMove {
    0%, 100% {
        background-position: 0% 50%, 100% 100%, 50% 0%;
    }
    33% {
        background-position: 50% 100%, 0% 50%, 100% 50%;
    }
    66% {
        background-position: 100% 0%, 50% 0%, 0% 100%;
    }
}

/* ==========================================================================
   Container (Wider for 2025 Modern Standard)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1440px;  /* Increased from 1200px for modern design */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Header & Navigation (Glassmorphism)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all var(--timing-medium) var(--easing);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    color: var(--color-vibrant-purple);
    transition: transform var(--timing-fast) var(--easing);
}

.nav__logo:hover {
    transform: scale(1.05);
}

.nav__logo-img {
    width: 32px;
    height: 32px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav__link {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--timing-fast) var(--easing);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-vibrant-purple), var(--color-lavender));
    transition: all var(--timing-medium) var(--easing);
    transform: translateX(-50%);
}

.nav__link:hover::after {
    width: 80%;
}

.nav__link:hover {
    color: var(--color-vibrant-purple);
}

/* ==========================================================================
   Buttons - Modern Gradient CTAs
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--timing-medium) var(--easing);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(95deg, var(--color-vibrant-purple) 0%, var(--color-lavender) 100%);
    background-size: 200% 100%;
    background-position: 0% 0;
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-position: 100% 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px) scale(1.02);  /* Enhanced lift and scale */
}

.btn--primary:active {
    transform: translateY(-1px) scale(1);
}

/* Glowing effect on hover */
.btn--primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(95deg, var(--color-vibrant-purple), var(--color-lavender));
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--timing-medium) var(--easing);
    filter: blur(8px);
    z-index: -1;
}

.btn--primary:hover::before {
    opacity: 0.5;  /* Subtle glow appears */
}

.btn--large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn--header {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   Hero Section - Modern Dynamic Hero
   ========================================================================== */
.hero {
    min-height: 80vh;  /* Reduced from 90vh */
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;  /* Reduced padding */
    position: relative;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(127, 90, 240, 0.15), var(--color-light-bg));
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);  /* Reduced gap */
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp var(--timing-slow) var(--easing) forwards;
    animation-delay: 200ms;
}

.hero__title {
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-black);  /* Heavy weight for maximum impact */
    line-height: var(--line-height-tight);
    color: var(--color-text-light);
    background: linear-gradient(135deg, var(--color-deep-purple) 0%, var(--color-vibrant-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    max-width: 540px;
}

.hero__form {
    margin-top: var(--spacing-md);
}

.form__group {
    display: flex;
    gap: var(--spacing-sm);
}

.form__input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: var(--font-size-body);
    font-family: var(--font-body);
    border: 2px solid rgba(103, 80, 164, 0.2);
    border-radius: var(--radius-md);
    background-color: white;
    color: var(--color-text-light);
    transition: all var(--timing-medium) var(--easing);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-vibrant-purple);
    box-shadow: 0 0 0 4px rgba(127, 90, 240, 0.1);
}

.form__privacy {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: 0.9375rem;  /* Increased from 0.875rem (14px) to 15px */
    font-weight: 500;  /* Medium weight for better readability */
    color: var(--color-text-muted);
}

.hero__visual {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInRight var(--timing-slow) var(--easing) forwards;
    animation-delay: 400ms;
}

.phone-mockup {
    max-width: 400px;
    width: 100%;
    position: relative;
    perspective: 1000px;  /* Enable 3D transforms */
}

.phone-mockup__image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(103, 80, 164, 0.4));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);  /* Bouncy animation */
}

.phone-mockup:hover .phone-mockup__image {
    transform: scale(1.05) rotateY(-5deg) rotateX(2deg);  /* 3D tilt effect */
}

/* ==========================================================================
   Scroll-Triggered Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--timing-slow) var(--easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Bento Grid Card System (Professional Apple-Style)
   ========================================================================== */
.bento-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    position: relative;
}

/* Gradient border animation on hover */
.bento-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #6B5BA4, #8B7FC6, #6B5BA4);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(107, 91, 164, 0.15),
        0 0 0 1px rgba(107, 91, 164, 0.1);
}

/* Specific bento card backgrounds */
.bento-large {
    min-height: 100%;
}

.bento-wide:hover {
    transform: translateY(-4px);
}

/* Feature cards - Legacy support */
.feature-card {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--timing-medium) var(--easing);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
section {
    padding: var(--spacing-2xl) 0;  /* 4rem (64px) - balanced spacing */
    position: relative;
}

.section__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);  /* Bolder for better hierarchy */
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* Add subtle parallax effect to decorative elements */
@media (prefers-reduced-motion: no-preference) {
    .section-decoration {
        will-change: transform;
    }
}

.section__subtitle {
    font-size: var(--font-size-body);
    line-height: var(--line-height-normal);
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

/* Problem Section - Enhanced Gradient Background */
.problem {
    background: linear-gradient(180deg, var(--color-light-bg) 0%, white 50%, rgba(248, 247, 252, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.08), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.problem__content {
    max-width: 900px;
    margin: 0 auto;
}

.problem__text {
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* Features Section - Bento Grid Layout with Subtle Gradient */
.features {
    background: linear-gradient(180deg, white 0%, rgba(248, 247, 252, 0.4) 50%, white 100%);
    position: relative;
    overflow: hidden;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Clean 2-column layout */
    gap: var(--spacing-xl);  /* 3rem (48px) spacing */
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: white;
    border: 1px solid rgba(103, 80, 164, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);  /* Bouncy effect */
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--timing-medium) var(--easing);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);  /* More dramatic lift */
    box-shadow: var(--shadow-xl);  /* Deeper shadow */
    border-color: rgba(127, 90, 240, 0.5);  /* Stronger border */
}

.feature-card__icon {
    width: 80px;  /* Increased from 56px */
    height: 80px;
    background: linear-gradient(135deg, var(--color-vibrant-purple) 0%, var(--color-lavender) 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 36px;  /* Increased from 28px */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(5deg);  /* Icon bounces on card hover */
}

.feature-card__title {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.feature-card__description {
    font-size: var(--font-size-body);
    line-height: var(--line-height-normal);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.feature-card__text {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    line-height: var(--line-height-normal);
}

.feature-card__text strong {
    color: var(--color-text-light);
    font-weight: var(--font-weight-semibold);
}

/* Privacy Section - Glassmorphism Cards */
.privacy {
    background: linear-gradient(135deg, var(--color-deep-purple) 0%, var(--color-vibrant-purple) 100%);
    color: white;
}

.privacy .section__title {
    color: white;
}

.privacy .section__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.privacy__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.privacy-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--timing-medium) var(--easing);
}

.privacy-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.privacy-item__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* Add accent color variety to privacy icons */
.privacy-item:nth-child(1) .privacy-item__icon {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.3), rgba(167, 139, 250, 0.3));
}

.privacy-item:nth-child(2) .privacy-item__icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.3));
}

.privacy-item:nth-child(3) .privacy-item__icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(139, 92, 246, 0.3));
}

.privacy-item__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: var(--spacing-sm);
}

.privacy-item__description {
    font-size: var(--font-size-body);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-normal);
}

.privacy__text {
    text-align: center;
    font-size: var(--font-size-body);
    color: rgba(255, 255, 255, 0.95);
    margin-top: var(--spacing-xl);
}

.privacy__text strong {
    font-weight: var(--font-weight-bold);
}

/* CTA Section */
.cta {
    text-align: center;
    background: white;
}

.cta__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.cta__subtitle {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

/* Footer */
.footer {
    background-color: var(--color-dark-bg);
    color: var(--color-text-dark);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer__section h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__link {
    color: rgba(232, 231, 236, 0.7);
    font-size: var(--font-size-body);
    transition: color var(--timing-fast) var(--easing);
}

.footer__link:hover {
    color: var(--color-vibrant-purple);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(232, 231, 236, 0.7);
    font-size: var(--font-size-small);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero__visual {
        order: -1;
    }

    .form__group {
        flex-direction: column;
    }

    .form__input {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    .features__grid {
        grid-template-columns: 1fr;  /* Single column on mobile */
    }

    .privacy__grid {
        grid-template-columns: 1fr;
    }

    /* Bento Grid Mobile - Stack Vertically */
    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 1rem !important;
    }

    .bento-card {
        grid-column: 1 !important;
        grid-row: auto !important;
        min-height: auto !important;
        height: auto !important;
        padding: 2rem !important;
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        min-height: auto !important;
        padding: 2rem !important;
    }

    .bento-wide {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
        padding: 2rem !important;
    }

    /* Disable 3D tilt on mobile for performance */
    .bento-card:hover {
        transform: translateY(-4px) !important;
    }

    /* Hide navigation toggle since no links */
    .nav__toggle {
        display: none !important;
    }

    .nav__menu {
        display: none !important;
    }

    .btn--header {
        display: none;  /* Hide CTA button on mobile to save space */
    }

    /* Reduce grain animation on mobile */
    .grain-overlay {
        opacity: 0.02;
        animation: none;
    }
}

/* ==========================================================================
   CTA Button Pulse Animation
   ========================================================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 24px rgba(103, 80, 164, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(109, 40, 217, 0.4);
    }
}

.btn--primary {
    animation: pulse 3s ease-in-out 3;
}

.btn--primary:hover {
    animation: none; /* Stop pulse on hover */
}

/* ==========================================================================
   Landing Page Specific: Feature Card Hover (Override inline styles)
   ========================================================================== */
.feature-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.2) !important;
}

/* ==========================================================================
   Phone Placeholder Floating Animation
   ========================================================================== */
@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.phone-placeholder {
    animation: phoneFloat 4s ease-in-out infinite;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Count-Up Animation (for statistics)
   ========================================================================== */
.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-number.counting {
    transform: scale(1.1);
}

/* ==========================================================================
   Screenshot Gallery - Horizontal Scroll
   ========================================================================== */
.screenshot-gallery {
    /* Custom scrollbar for webkit browsers */
    &::-webkit-scrollbar {
        height: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #A78BFA, #8B5CF6);
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #8B5CF6, #7C3AED);
    }
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(109, 40, 217, 0.35);
}

/* ==========================================================================
   App Screenshot Carousel - Modern One-at-a-time
   ========================================================================== */
.app-carousel {
    user-select: none;
}

.carousel-track {
    will-change: transform;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(109, 40, 217, 0.2) !important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots .dot {
    outline: none;
}

.carousel-dots .dot:hover {
    background: #8B5CF6 !important;
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    width: 24px !important;
    border-radius: 4px;
}

/* Mobile optimization - hide arrows on small screens */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        display: none;
    }

    .hero__visual {
        max-width: 90% !important;
    }

    .app-carousel {
        border-radius: 20px !important;
    }

    .carousel-slide img {
        border-radius: 20px !important;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
}

/* ==========================================================================
   IMPROVED MOBILE RESPONSIVE DESIGN
   ========================================================================== */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    /* Container - Add more padding on small screens */
    .container {
        padding: 0 1rem;
        width: 100%;
    }

    /* Hero Section - Better mobile layout */
    .hero {
        padding: 3rem 0 2rem;
        min-height: auto;
        overflow-x: hidden;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word;
        padding: 0 1rem !important;  /* Reduced padding for mobile */
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hero content with inline styles override */
    .hero > .container > div > div[style*="max-width"] {
        max-width: calc(100% - 2rem) !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    [style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Sections - Reduce padding */
    section {
        padding: 2.5rem 0 !important;
    }

    .section__title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .section__subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    /* Navigation - Mobile friendly */
    .nav {
        height: 60px;
    }

    .nav__list[style] {
        display: none !important;
    }

    .nav__logo-text {
        font-size: 1rem;
    }

    .nav__logo-img {
        width: 28px;
        height: 28px;
    }

    /* Buttons - Better sizing */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn--large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Carousel - Better mobile display */
    .app-carousel {
        margin: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .carousel-slide img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Hide carousel arrows on mobile to prevent any positioning issues */
    .carousel-prev,
    .carousel-next {
        display: none !important;
    }

    /* Problem Section Stats */
    [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    /* Bento Grid - Stack cards */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 1rem !important;
    }

    .bento-card,
    .bento-large,
    .bento-medium,
    .bento-small,
    .bento-wide {
        grid-column: 1 !important;
        grid-row: auto !important;
        padding: 1.5rem !important;
        min-height: auto !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Privacy/Why Keep Section */
    [style*="display: grid"][style*="280px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Science Section */
    .science-card {
        padding: 1.5rem !important;
    }

    /* Circle of Trust System */
    [style*="display: flex"][style*="justify-content: space-around"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Testimonials */
    blockquote {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }

    /* CTA Section */
    .cta__title {
        font-size: 1.75rem !important;
    }

    .cta__subtitle {
        font-size: 1rem !important;
    }

    /* Footer */
    .footer__content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero__title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }

    .section__title {
        font-size: 2rem !important;
    }

    /* Bento Grid - 2 columns on tablet */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
    }

    .bento-large {
        grid-column: 1 / -1 !important;
    }
}

/* Medium screens (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 2rem;
    }

    .hero__title {
        font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    }
}

/* Touch devices - Better interaction */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav__link {
        padding: 0.75rem 1rem;
    }

    /* Disable hover effects on touch */
    .feature-card:hover,
    .bento-card:hover,
    .btn--primary:hover {
        transform: none !important;
    }
}

/* Landscape mobile phones */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0 !important;
    }
}

/* Additional Mobile-Specific Fixes */
@media (max-width: 768px) {
    /* Carousel Navigation Dots - Larger touch targets */
    .carousel-dots .dot {
        width: 12px !important;
        height: 12px !important;
        margin: 0 4px;
    }

    .carousel-dots .dot.active {
        width: 32px !important;
        height: 12px !important;
        border-radius: 6px !important;
    }

    /* Hide carousel arrows - they're positioned outside viewport */
    .carousel-prev,
    .carousel-next {
        display: none !important;
    }

    /* Better hero visual spacing */
    [style*="margin-top: 3rem"] {
        margin-top: 2rem !important;
    }

    /* Statistics - Better mobile display */
    [style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }

    /* Better link and button contrast */
    .nav__link,
    .footer__link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Problem section - Better text sizing */
    [style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }

    /* Reduce excessive margins */
    [style*="margin: 2rem 0"] {
        margin: 1.5rem 0 !important;
    }
}

/* Extra small devices (phones < 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero__title {
        font-size: 1.75rem !important;
        white-space: normal !important;
        word-wrap: break-word;
    }

    .section__title {
        font-size: 1.5rem !important;
    }

    .btn--large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Ensure all sections stay within viewport - mobile only */
@media (max-width: 768px) {
    section {
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Ensure all direct children stay contained */
* {
    box-sizing: border-box;
}

/* NUCLEAR OPTION: Prevent horizontal scroll on ALL devices */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Prevent any element from causing overflow */
* {
    box-sizing: border-box !important;
}

body > *,
body > * > * {
    max-width: 100vw !important;
}

/* Extra mobile constraints - NUCLEAR */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    * {
        max-width: 100vw !important;
    }

    .container,
    div[style*="max-width"] {
        max-width: 100vw !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
    }

    .bento-grid,
    div[style*="grid-template-columns"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        grid-template-columns: 1fr !important;
    }

    .header,
    .nav,
    .hero,
    .problem,
    .value-proposition,
    .privacy,
    .science,
    .cta,
    .footer {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Navigation specific fixes */
    .nav {
        padding: 0 0.5rem !important;
    }

    .nav__list {
        gap: 0.5rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav__logo {
        flex-shrink: 0 !important;
    }

    /* Hero title padding fix */
    .hero__title {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Ensure carousel stays within bounds */
.app-carousel,
.carousel-track,
.carousel-slide {
    max-width: 100%;
    box-sizing: border-box;
}

/* WORKING CAROUSEL CSS (from test-carousel.html) */
@media (max-width: 768px) {
    /* Carousel wrapper - SIMPLE, NO AGGRESSIVE OVERRIDES */
    .app-carousel {
        position: relative;
        overflow: hidden;
        border-radius: 32px;
    }

    /* Carousel track - LET IT BE WIDE (400%)! */
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
        /* NO max-width constraints! */
    }

    /* Individual slides */
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Images inside carousel */
    .carousel-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Parent wrapper - constrain THIS, not the carousel itself */
    .hero > .container > div[style*="margin-top: 3rem"] {
        max-width: 100vw;
        padding: 0 1rem;
        margin: 0 auto;
    }
}

/* Ensure all images stay within their containers */
img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Hero title - always allow wrapping for long headlines */
.hero__title {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 2rem;  /* Add padding on all screen sizes */
    box-sizing: border-box;
}

/* SIMPLIFIED FIX: Target only specific problem elements */
@media (max-width: 768px) {
    /* EXCEPTION: Don't touch carousel parent wrapper */
    .hero > .container > div:not([style*="margin-top: 3rem"]) {
        max-width: calc(100vw - 2rem) !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }

    /* Bento grid - stack vertically */
    .bento-grid,
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 1rem !important;
    }

    /* Major sections - constrain */
    .hero,
    .problem,
    .value-proposition,
    .header,
    .nav {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Navigation spacing */
    .nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .nav__logo,
    .btn--header {
        flex-shrink: 0 !important;
    }
}
