:root {
    --primary-blue: #3479f7;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
    --dark-gray: #555;
    --white: #ffffff;
    --section-border: 1px solid #f0f0f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.container {
    width: 100%;
    max-width: 1300px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 0 80px; /* Increased from 20px */
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: static;
    z-index: 1000;
    grid-row: 1;
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 50px 0;
}

.header-inner > a {
    grid-column: 1;
    justify-self: start;
    z-index: 10;
    display: flex;
    align-items: center;
}

.nav-menu {
    grid-column: 1 / -1;
    justify-self: center;
    display: flex;
    list-style: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    transition: color 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.mobile-menu-toggle {
    grid-column: 1;
    justify-self: start;
    z-index: 10;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
}

.logo {
    height: auto;
    max-width: 180px;
    display: block;
    /* vertical-align: middle; */
    transform: translateY(15px); /* Move just the logo image down, not the container */
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
}

.hamburger-icon span {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    left: 0;
    transition: transform 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 120px 0 80px;
    border-bottom: var(--section-border);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex-basis: 50%;
    text-align: left;
    order: 1;
}

.hero-image-container {
    flex-basis: 45%;
    order: 2;
    display: flex;
    justify-content: flex-end;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 0 40px;
    color: var(--dark-gray);
}

.app-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.app-button {
    height: auto;
    max-width: 200px;
    width: 100%;
}

.hero-image {
    max-width: 100%;
    max-height: 680px;
    display: block;
    border-radius: 40px;
    background: none;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
    border-bottom: var(--section-border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature {
    flex-basis: calc(50% - 40px);
    margin-bottom: 60px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(52, 121, 247, 0.1);
}

.feature-icon {
    width: 80px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 160px;
    height: 120px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: var(--dark-gray);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--white);
    border-bottom: var(--section-border);
}

.steps {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex-basis: calc(25% - 20px);
    text-align: center;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 40px;
    right: -30px;
    width: 60px;
    height: 2px;
    background-color: var(--medium-gray);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
    border-bottom: var(--section-border);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 30px;
}

.testimonial {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* App Preview & Download Combined Section */
.app-download {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
    border-bottom: var(--section-border);
}

.app-download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.app-info {
    flex-basis: 50%;
    padding: 0 20px;
    text-align: left;
}

.device-mockup {
    flex-basis: 45%;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    background: none;
    overflow: visible;
}

.device-frame {
    width: 100%;
    border-radius: 40px;
    display: block;
    height: auto;
    background: none;
}

.app-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: left;
}

.app-info p {
    margin-bottom: 30px;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.app-info .app-buttons {
    justify-content: flex-start;
}

.primary-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.primary-button:hover {
    background-color: #2a6ad9;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 80px 0 40px;
    grid-row: 3;
}

.footer-content {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 2fr auto auto;
    gap: 5rem;
    align-items: start;
    justify-content: space-between;
}

.footer-logo {
    grid-column: 1;
    justify-self: start;
}

.footer-logo img {
    height: auto;
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links {
    flex-basis: 20%;
}

.footer-links:nth-of-type(2) {
    grid-column: 2;
    justify-self: end;
}

.footer-links:nth-of-type(3) {
    grid-column: 3;
    justify-self: end;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.copyright {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen to the right */
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 1001;
    padding: 80px 20px 40px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
}

.mobile-nav.active {
    display: block;
    right: 0; /* Slide in to full view */
}

.mobile-nav-items {
    list-style: none;
}

.mobile-nav-items li {
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.mobile-nav.active .mobile-nav-items li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.mobile-nav-items a {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    display: block;
    padding: 10px;
    transition: color 0.3s;
}

.mobile-nav-items a:hover {
    color: var(--primary-blue);
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.close-menu span {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    left: 0;
}

.close-menu span:nth-child(1) {
    transform: rotate(45deg);
}

.close-menu span:nth-child(2) {
    transform: rotate(-45deg);
}

/* Mobile Responsiveness */
@media (max-width: 1000px) {
    .container {
        padding: 30px 20px; /* Reduced from 80px */
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        justify-self: start;
        grid-column: 1;
    }
    
    .header-inner > a {
        grid-column: 2;
        justify-self: center;
    }
    
    .logo {
        max-width: 140px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 10px 0 50px; /* Reduced padding */
    }

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

    .hero-text, .hero-image-container {
        flex-basis: 100%;
        order: 1;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image-container {
        justify-content: center;
        order: 2;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .features-container {
        flex-direction: column;
    }
    
    .feature {
        flex-basis: 100%;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        flex-basis: 100%;
        margin-bottom: 65px; /* Increased to create more space */
        position: relative;
    }
    
    .step:not(:last-child):after {
        top: auto;
        bottom: -50px; /* Adjusted to create clear separation */
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 40px;
        background-color: var(--medium-gray);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .app-download-content {
        flex-direction: column-reverse;
    }
    
    .app-info, .device-mockup {
        flex-basis: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .app-info .app-buttons {
        justify-content: center;
    }
    
    .app-info h2 {
        text-align: center;
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-content: normal;
    }
    
    .footer-logo,
    .footer-links:nth-of-type(2),
    .footer-links:nth-of-type(3) {
        grid-column: 1;
        justify-self: start;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .social-links {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}