:root {
    --bg-dark: #1A1D21;
    /* Slightly darker */
    --text-white: #ffffff;
    --accent-orange: #F3651C;
    /* Vibrant orange from image */
    --btn-border: rgba(255, 255, 255, 0.4);
    --btn-radius: 50px;
    /* Pill shape for nav buttons */
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Adjusted gradient to be softer and more widespread on the right */
    background:
        radial-gradient(circle at 80% 40%, rgba(241, 94, 20, 0.697) 0%, rgba(26, 29, 33, 0) 60%),
        linear-gradient(135deg, #121417 0%, #1A1D21 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1250px;
    /* Reduced from 1400px */
    margin: 0 auto;
    padding: 0 40px;
    /* Reduced padding */
}

/* Navbar */
.navbar {
    padding: 30px 0;
    /* Reduced from 40px */
    width: 100%;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent-orange);
    font-size: 24px;
    /* Icon styling to match the "box" look */
    display: flex;
    align-items: center;
    border: 2px solid var(--accent-orange);
    padding: 6px;
    border-radius: 8px;
}

.logo-icon i {
    font-size: 16px;
}

.auth-buttons {
    display: flex;
    gap: 16px;
}

.btn-outline {
    text-decoration: none;
    color: white;
    padding: 12px 32px;
    border-radius: 10px;
    border: 1px solid var(--btn-border);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
    background: rgba(14, 5, 1, 0.1);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
    margin-top: -75px;

}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 72px;
    /* Reduced from 84px */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 40px;
    /* Reduced margin */
    letter-spacing: -2px;
}

.text-white {
    color: white;
}

.text-orange {
    color: var(--accent-orange);
}

/* Grid for buttons: 2 columns, 2 matching rows */
.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    /* Two columns */
    gap: 16px;
    /* Slightly tighter gap */
    justify-content: start;
    /* Align to left */
}

/* Specific styling for the store buttons to match "outline with icon" look */
.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid var(--btn-border);
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    /* Reduced padding */
    border-radius: 14px;
    /* Slightly smaller radius */
    font-size: 16px;
    /* Reduced font size */
    font-weight: 500;
    transition: all 0.2s;
    width: 240px;
    /* Reduced width */
    justify-content: center;
}

.store-btn i {
    font-size: 26px;
}

.store-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
    background: rgba(243, 101, 28, 0.1);
}

/* Phone Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    /* Move it right to cut off or bleed edge if needed, per design feeling */
    right: -150px;
}

.phone-img {
    max-width: 120%;
    /* Large image */
    height: auto;
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.6));
}

.phone-mockup-container {
    position: relative;
    z-index: 10;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

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

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

/* Footer */
.footer {
    padding: 60px 0;
    margin-top: -55px;
    width: 100%;
    position: relative;
    z-index: 10;
    background: #120d091e;
    /* Solid dark background to separate from hero glow */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top initially */
}

/* Left Grid Layout: 2 columns, auto rows */
.footer-left-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px 60px;
    /* Row gap 30px, Col gap 60px */
}

.social-link,
.footer-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    /* Slightly larger */
    font-weight: 500;
}

.social-link i,
.footer-contact i {
    font-size: 28px;
    width: 30px;
    /* Fixed width for alignment */
    text-align: center;
}

.fa-telegram {
    font-size: 32px;
}

/* Telegram often larger */

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* To space out input and copyright if height is constrained, otherwise gap */
    gap: 40px;
    /* Space between input and copyright */
    align-items: flex-end;
}

.email-subscribe {
    position: relative;
    width: 350px;
    /* Wider */
}

.email-input {
    width: 100%;
    background: transparent;
    border: 2px solid white;
    /* Thicker white border as in image */
    border-radius: 12px;
    /* Less rounded, more like squircle/box radius */
    padding: 14px 60px 14px 20px;
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: right;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .footer-left-grid {
        width: 100%;
        justify-items: center;
        /* Center items in grid */
        gap: 30px;
    }

    .footer-right {
        align-items: center;
        width: 100%;
    }

    .email-subscribe {
        width: 100%;
        max-width: 400px;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-image {
        right: 0;
    }

    .phone-img {
        max-width: 100%;
    }
}

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

    .store-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .download-buttons {
        grid-template-columns: repeat(2, 1fr);
        /* Equal columns to avoid overlap */
        gap: 15px;
        width: 100%;
        /* Ensure container takes full width available */
        max-width: 450px;
        /* Constrain max width so they don't get too wide */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* Slightly tighter container padding */
    }

    .navbar {
        padding: 35px 0 0;
    }

    .navbar .container {
        display: flex;
        flex-direction: row;
        /* Keep it in a row */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo {
        font-size: 20px;
        /* Smaller logo text */
        gap: 8px;
    }

    .logo-icon {
        font-size: 20px;
        padding: 4px;
    }

    .auth-buttons {
        width: auto;
        /* Don't take full width */
        justify-content: flex-end;
        gap: 8px;
        /* Tighter gap */
    }

    .btn-outline {
        padding: 8px 12px;
        /* Much smaller buttons */
        font-size: 13px;
        /* Smaller text */
        white-space: nowrap;
        /* Prevent breaking */
        border-radius: 8px;
    }

    .hero {
        padding-top: 30px;
        align-items: flex-start;
        /* Align to top */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 40px;
        /* Much smaller for mobile */
        margin-top: 110px;
        margin-bottom: 30px;
        line-height: 1.2;
        text-align: left;
    }

    .download-buttons {
        grid-template-columns: 1fr;
        /* Stack buttons 1 column */
        width: 100%;
        max-width: 300px;
        gap: 12px;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    /* Requirement: Mobile hide buttons */
    .desktop-only {
        display: none !important;
    }

    /* Requirement: Hide image on mobile */
    .hero-image {
        display: none !important;
    }
}