:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --section-spacing: 120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Ambient Background */
.ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15), transparent 40%);
    filter: contrast(120%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

/* Reusable Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #000;
    padding: 16px 32px;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 18px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/* iPhone Mockup Styles - Shared */
.iphone-mockup {
    width: 300px;
    aspect-ratio: 1206 / 2622;
    background: #000;
    border-radius: 56px;
    /* Thinner border (4px) with multiple shadows to simulate the metal frame depth */
    border: 4px solid #000;
    box-shadow:
        /* Inner bezel */
        inset 0 0 0 2px #111,
        /* Outer frame highlight */
        0 0 0 1px #333,
        /* Side depth effect (simulating 3D side) */
        10px 10px 30px rgba(0, 0, 0, 0.5),
        /* Soft ambient shadow */
        0 30px 60px -10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transform: rotateY(0) rotateX(0);
    transition: transform 0.1s ease-out;
}

.iphone-mockup::before {
    /* Glossy reflection on the screen */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 55%);
    pointer-events: none;
    z-index: 50;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* Media Container inside Mockup */
.media-container {
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 44px;
    /* Matches outer radius minus border */
    overflow: hidden;
}

.media-container video,
.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 80%;
}

/* --- Shared Animations & Components --- */

/* Hero Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Feature Sections - Expanded Animation Container */
.feature-section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    /* Prevent horizontal scroll during animations */
    transition: none;
    /* Reset base transition */
}

/* Children Animations setup */
.feature-content,
.feature-media-wrapper {
    opacity: 0;
    will-change: transform, opacity, filter;
    /* Default spring-like transition */
    transition:
        transform 1.4s cubic-bezier(0.17, 0.84, 0.44, 1),
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s ease;
}

/* --- Custom Animation Styles per Section (1-8) --- */

/* 1. Unified Access: Simple Elegant Rise */
.feature-section:nth-of-type(1) .feature-content {
    transform: translateY(40px);
}

.feature-section:nth-of-type(1) .feature-media-wrapper {
    transform: translateY(60px);
}

/* 2. Image Creation: Blur & Zoom Out (Dreamy) */
.feature-section:nth-of-type(2) .feature-content {
    transform: scale(0.9);
    filter: blur(10px);
}

.feature-section:nth-of-type(2) .feature-media-wrapper {
    transform: scale(1.1);
    filter: blur(20px);
}

/* 3. Voice Mode: Slide from Sides (Fast) */
.feature-section:nth-of-type(3) .feature-content {
    transform: translateX(-100px);
}

.feature-section:nth-of-type(3) .feature-media-wrapper {
    transform: translateX(100px);
}

/* 4. Benchmarks: 3D Flip Up (Technical) */
.feature-section:nth-of-type(4) .feature-content {
    transform: perspective(1000px) rotateX(20deg) translateY(50px);
}

.feature-section:nth-of-type(4) .feature-media-wrapper {
    transform: perspective(1000px) rotateX(15deg) translateY(80px);
}

/* 5. Roles: Elastic Pop (Energetic) */
.feature-section:nth-of-type(5) .feature-content,
.feature-section:nth-of-type(5) .feature-media-wrapper {
    transform: scale(0.5);
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bounce */
}

/* 6. Canvas: Skew Slide (Modern) */
.feature-section:nth-of-type(6) .feature-content {
    transform: skewX(-10deg) translateX(50px);
}

.feature-section:nth-of-type(6) .feature-media-wrapper {
    transform: skewX(5deg) translateX(-50px);
}

/* 7. Web & Files: Lateral Slide with Rotation */
.feature-section:nth-of-type(7) .feature-content {
    transform: translateX(-50px) rotate(-5deg);
}

.feature-section:nth-of-type(7) .feature-media-wrapper {
    transform: translateX(50px) rotate(5deg);
}

/* 8. UI/UX: Deep Perspective Zoom (Cinematic) */
.feature-section:nth-of-type(8) .feature-content {
    transform: perspective(1000px) translateZ(-200px);
}

.feature-section:nth-of-type(8) .feature-media-wrapper {
    transform: perspective(1000px) translateZ(-400px);
}


/* --- Active States (Visible) --- */
.feature-section.is-visible .feature-content {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0) skew(0) perspective(none);
    filter: blur(0);
}

.feature-section.is-visible .feature-media-wrapper {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0) skew(0) perspective(none);
    filter: blur(0);
    transition-delay: 0.15s;
}

/* First section margin adjustment */
.feature-section:first-of-type {
    padding-top: 40px;
    margin-top: 0;
}

.feature-section.reversed {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    padding: 20px;
    min-width: 300px;
}

.feature-media-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 2000px;
}

.feature-label {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.feature-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Comparison Chart Styles */
.comparison-grid {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.comparison-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d1d5db;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-bar {
    height: 6px;
    width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.comparison-fill {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;

    /* Entry Animation */
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: forwards;
}

.review-card.animate-in {
    animation: cardFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

.review-stars {
    color: #FFD700;
    letter-spacing: 2px;
    font-size: 16px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    color: #e5e7eb;
    line-height: 1.5;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bottom CTA Section */
.bottom-cta {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
    margin: 60px 0;
    border-radius: 32px;
}

.cta-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px auto;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-footer.visible {
    bottom: 32px;
}

.footer-app-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon-small {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.app-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.app-details span {
    font-size: 12px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-btn {
    background: var(--accent-blue);
    color: #fff;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.footer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Footer Copyright */
.page-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    text-align: center;
    color: #555;
    margin-top: 40px;
}

/* Hero Section - Compacted to show content fold */
header {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
    padding-bottom: 20px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Animation consistent with hero elements */
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-badge {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    /* Animation */
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.hero-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    /* Animation */
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(18px, 4vw, 22px);
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 40px;
    font-weight: 400;
    /* Animation */
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

#heroDownloadBtn {
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .feature-section {
        flex-direction: column !important;
        gap: 40px;
        padding: 60px 0;
        margin-top: 0 !important;
        /* Reset pull up on mobile */
    }

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

    .comparison-item {
        justify-content: space-between;
    }

    .iphone-mockup {
        width: 280px;
        height: 608px;
    }

    .sticky-footer {
        width: 94%;
        padding: 12px 16px;
        bottom: -120px;
    }

    .sticky-footer.visible {
        bottom: 16px;
    }
}