/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #403B51;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.brand-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.brand-name {
    font-size: 6.5rem;
    font-weight: 800;
    color: #403B51;
    line-height: 1.1;
    margin: 0;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #403B51;
    text-align: center;
}

.gradient-text {
    color: #FF8C42;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #8B6F47;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    margin-top: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
}

.app-badge:hover {
    transform: translateY(-2px);
}

.app-badge img {
    display: block;
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.app-badge:active {
    transform: scale(0.95);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    max-width: 300px;
    position: relative;
    /* animation: float 6s ease-in-out infinite; */
}

.phone-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.app-preview {
    text-align: center;
    color: white;
}

.app-icon-preview {
    font-size: 80px;
    display: block;
    margin-bottom: 1rem;
}

.app-preview p {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Developer Section */
.developer-content {
    text-align: center;
    padding: 80px 0;
}

.developer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #403B51;
}

.developer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.developer-button {
    display: inline-block;
    padding: 12px 28px;
    background: #FF8C42;
    color: #F7F7F7;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

/* How It Works Section - Vertical Timeline */
.how-it-works {
    padding: 100px 0;
    background: #FFF5EB;
}

.how-it-works-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
    color: #403B51;
}

.steps-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Vertical Timeline Line - Enhanced */
.steps-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100px;
    bottom: 100px;
    width: 3px;
    background: linear-gradient(to bottom, #FF8C42, #FF6B1A);
    transform: translateX(-50%);
    opacity: 0.6;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.2);
}

.step-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 140, 66, 0.1);
    backdrop-filter: blur(10px);
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 140, 66, 0.25);
    border-color: rgba(255, 140, 66, 0.3);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B1A 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    position: relative;
}

.step-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.step-icon-image {
    height: 180px;
    object-fit: contain;
}

/* Step 2 and 3 have larger images to make social icons more prominent */
.step-card:nth-child(2) .step-icon-image,
.step-card:nth-child(3) .step-icon-image {
    height: 400px;
}

/* Reduce padding for steps 2 and 3 to make images appear larger */
.step-card:nth-child(2) .step-icon,
.step-card:nth-child(3) .step-icon {
    padding: 0rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #403B51;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    letter-spacing: -0.01em;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.step-description {
    font-size: 0.95rem;
    color: #8B6F47;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    padding: 60px 0 40px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF8C42;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Container adjustments for mobile */
    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        padding: 80px 0 50px 0;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center; /* Center the hero content vertically */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        justify-items: center;
    }

    .hero-image {
        order: -1; /* Show icon above all text */
        margin-bottom: 1.5rem;
    }

    .phone-mockup {
        max-width: 150px;
        animation: none; /* Remove float animation on mobile */
    }

    .brand-name-container {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .brand-name {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Download buttons - ensure proper touch targets */
    .download-buttons {
        justify-content: center;
        gap: 0.75rem;
    }

    .app-badge img {
        width: 140px;
        height: auto;
    }

    /* How It Works Section */
    .how-it-works {
        padding: 50px 0;
    }

    .how-it-works-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
        padding: 0 10px;
    }

    .steps-container {
        padding: 0 10px;
    }

    .step-card {
        padding: 2rem 1.25rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        box-shadow: 0 3px 8px rgba(255, 140, 66, 0.3);
    }

    .step-header {
        gap: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .step-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .step-icon {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .step-icon svg {
        width: 80px;
        height: 80px;
    }

    /* Step 2 and 3 larger on mobile too */
    .step-card:nth-child(2) .step-icon-image,
    .step-card:nth-child(3) .step-icon-image {
        height: 200px;
    }

    /* Reduce padding for steps 2 and 3 on mobile */
    .step-card:nth-child(2) .step-icon,
    .step-card:nth-child(3) .step-icon {
        padding: 0rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    /* Developer Section */
    .developer-content {
        padding: 50px 0;
    }

    .developer-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .developer-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.5;
    }

    .developer-button {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 44px; /* Ensure touch target accessibility */
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px 0;
    }

    .footer-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        font-size: 1rem;
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Tablet and Desktop - Compact How It Works */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-content {
        gap: 2rem;
    }

    .brand-name {
        font-size: 5.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Make How It Works more compact on desktop */
    .how-it-works {
        padding: 80px 0;
    }

    .steps-container {
        max-width: 550px;
    }

    .step-card {
        padding: 2.5rem 2rem;
        margin-bottom: 3rem;
    }

    .step-icon svg {
        width: 85px;
        height: 85px;
    }
}

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

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-image {
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Smooth transitions */
a {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid #FF8C42;
    outline-offset: 2px;
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    .phone-mockup {
        max-width: 120px;
    }

    .brand-name-container {
        gap: 0.75rem;
    }

    .app-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }
    
    .app-badge img {
        width: 120px;
    }
    
    .step-card {
        padding: 1.5rem 1rem 1.25rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px 0;
    }

    .phone-mockup {
        max-width: 130px;
    }

    .brand-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }
    
    .how-it-works {
        padding: 40px 0;
    }
}

/* Print styles */
@media print {
    .download-buttons {
        display: none;
    }
}