:root {
    /* Material Design 3 Dark Theme Colors - Red/Orange & Blue Gradient Theme */
    --md-sys-color-primary: #FF8A65; /* Orangish Red (Deep Orange 300) */
    --md-sys-color-on-primary: #3E0500;
    --md-sys-color-primary-container: #751800;
    --md-sys-color-on-primary-container: #FFDBCF;
    
    --md-sys-color-secondary: #42A5F5; /* Blue (Blue 400) */
    --md-sys-color-on-secondary: #003258;
    --md-sys-color-secondary-container: #00497D;
    --md-sys-color-on-secondary-container: #D1E4FF;
    
    --md-sys-color-tertiary: #FFB74D; /* Orange (Orange 300) */
    --md-sys-color-on-tertiary: #452B00;
    --md-sys-color-tertiary-container: #633F00;
    --md-sys-color-on-tertiary-container: #FFDDB3;
    
    --md-sys-color-error: #F2B8B5;
    --md-sys-color-on-error: #601410;
    --md-sys-color-error-container: #8C1D18;
    --md-sys-color-on-error-container: #F9DEDC;
    
    --md-sys-color-background: #0F0505; /* Very dark reddish black */
    --md-sys-color-on-background: #EDE0DE;
    --md-sys-color-surface: #0F0505;
    --md-sys-color-on-surface: #EDE0DE;
    --md-sys-color-surface-variant: #534341;
    --md-sys-color-on-surface-variant: #D8C2BF;
    --md-sys-color-outline: #A08C8A;
    
    /* Custom Phone Colors */
    --phone-border: #201010;
    --phone-bg: #000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Roboto', sans-serif; /* Added Google Sans preference */
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: -100px; /* Hidden initially */
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(191, 54, 12, 0.85) 0%, rgba(20, 5, 5, 0.9) 100%); /* Orange to Dark gradient */
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.3s ease-in-out;
}

.navbar.scrolled {
    top: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-title {
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.1px;
}

/* Material Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1px;
    transition: all 0.2s cubic-bezier(0.2, 0.0, 0, 1.0);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background-color: #FFCCBC; /* Lighter shade for hover */
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-sm {
    height: 32px;
    padding: 0 16px;
    font-size: 0.8rem;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Red to Blue Gradient Background */
    background: radial-gradient(circle at 50% 0%, rgba(255, 112, 67, 0.15) 0%, rgba(66, 165, 245, 0.05) 50%, rgba(15, 5, 5, 0) 80%);
}

.hero-logo {
    height: 96px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-title {
    font-size: 3.5rem; /* Display Large */
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-background);
    letter-spacing: -0.25px;
}

.hero-subtitle {
    font-size: 1.375rem; /* Headline Small */
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-image-container {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

/* Phone Frame - Refined (Pixel-like, No Notch) */
.phone-frame {
    width: 300px;
    height: 620px;
    background-color: var(--phone-bg);
    border: 8px solid var(--phone-border);
    border-radius: 24px; /* Less rounded corners */
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 2px #444, /* Outer thin bezel */
        0 25px 50px -12px rgba(0, 0, 0, 0.7); /* Deep shadow */
}

/* No Notch/Camera Hole */
.phone-frame::before {
    display: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    border-radius: 16px; /* Match frame radius minus border */
}

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

/* Feature Sections */
.feature-section {
    padding: 120px 0;
    position: relative;
}

.alt-bg {
    background-color: rgba(255, 255, 255, 0.03); /* Subtle surface variation */
}

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

.feature-text h2 {
    font-size: 2.8rem; /* Display Small */
    margin-bottom: 24px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface);
}

.feature-text p {
    font-size: 1.125rem; /* Body Large */
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.75;
}

.feature-image {
    display: flex;
    justify-content: center;
}

/* Download Section */
.download-section {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--md-sys-color-background) 0%, rgba(79, 55, 139, 0.1) 100%);
}

.download-section h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.download-section p {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface-variant);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.coming-soon {
    font-size: 0.9rem !important;
    color: var(--md-sys-color-outline) !important;
    margin-bottom: 60px;
    font-weight: 500;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    padding: 12px 28px;
    border-radius: 16px; /* Material 3 shape */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.store-btn:hover {
    background-color: var(--md-sys-color-on-surface-variant);
    color: var(--md-sys-color-surface-variant);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-bottom {
    margin-top: 60px;
    color: var(--md-sys-color-outline);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 32px;
}

/* Animations with View Timeline */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.fade-in {
    animation: fadeIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.fade-in-left {
    animation: fadeInLeft linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.fade-in-right {
    animation: fadeInRight linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.fade-in-up {
    animation: fadeInUp linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .feature-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .feature-text h2 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Mobile Animation Adjustments */
    .fade-in-left, .fade-in-right {
        /* On mobile, slide up instead of left/right to prevent horizontal overflow issues */
        animation-name: fadeInUp; 
    }
}
