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

:root {
    --primary-color: #202124;
    --secondary-color: #5f6368;
    --accent-color: #1a73e8;
    --dark-color: #000000;
    --light-color: #ffffff;
    --text-dark: #202124;
    --text-light: #5f6368;
    --text-lighter: #80868b;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.1);
    --shadow-md: 0 2px 4px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 4px 8px rgba(60, 64, 67, 0.2);
    --gradient: none;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    position: relative;
    min-height: 100vh;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-android-image {
    height: 24px;
    width: auto;
    opacity: 1;
    display: inline-block;
    vertical-align: baseline;
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

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

.nav-link::after {
    display: none;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    position: relative;
}

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

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    text-transform: none;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
    line-height: 1.6;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.countdown-value {
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: none;
    margin-top: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--text-dark);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.arrow {
    margin-top: 10px;
}

.arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrow-animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

@keyframes arrow-animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Features Carousel Section */
.features-carousel {
    padding: 80px 0;
    background: var(--background-light);
    overflow: visible;
    position: relative;
    min-height: 600px;
}

.carousel-content-wrapper {
    max-width: 990px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    transform-origin: center center;
    will-change: transform, max-width;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 500px;
}

.carousel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    display: flex;
    position: relative;
    height: 500px;
    overflow: visible;
    border-radius: 16px;
    transform-origin: center center;
    min-height: 500px;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    background: var(--slide-color, #1a237e);
    padding: 4rem;
    visibility: hidden;
    border-radius: 16px;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
    visibility: visible;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.slide-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: white;
}

.slide-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

.slide-btn {
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: var(--text-light);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--text-dark);
    width: 30px;
    border-radius: 5px;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--background-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.about-card {
    background: white;
    border-radius: 8px;
    padding: 3rem 2.5rem;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.card-icon {
    display: none;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

/* Email Signup */
.signup {
    padding: 120px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-email {
    text-align: center;
    margin-top: 2rem;
}

.email-link {
    font-size: 1.25rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.form-group {
    display: flex;
    gap: 0;
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

#email {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

#email:focus {
    outline: none;
    border-color: var(--accent-color);
}

#email::placeholder {
    color: var(--text-lighter);
}

.btn-submit {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.9375rem;
}

.btn-submit:hover {
    background: var(--accent-color);
    box-shadow: none;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    display: block;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Footer */
.footer {
    padding: 0;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    width: 100%;
    padding: 2rem 0 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 60px;
}

.footer-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.footer-banner-image {
    width: 60%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-banner-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0.5rem 6rem 0;
}

.android-footer__bottom-image {
    height: 24px;
    width: auto;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.android-footer__bottom-image:hover {
    opacity: 1;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

/* Utility: simple fade helper for optional crossfades */
.fade {
    transition: opacity 400ms ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-color);
}

#modalVideo {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(20px);
    }

    .nav-menu .nav-link {
        color: var(--text-dark);
        padding: 1rem 0;
    }

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

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
        padding: 1rem;
    }

    .btn-submit {
        width: 100%;
    }

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

    /* Features Carousel Mobile */
    .carousel-wrapper {
        height: 400px;
    }

    .carousel-slide {
        padding: 2rem 1.5rem;
    }

    .slide-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .slide-description {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 2rem;
    }

    /* Footer banner text: smaller padding on mobile */
    .footer-banner-text {
        padding: 0.5rem 1rem 0;
    }

    /* Footer banner image: larger on small screens */
    .footer-banner-image {
        width: 90%;
        max-width: none;
    }
}