/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #313133;
    background: linear-gradient(135deg, #fbfcfc 0%, #dadbe6 100%);
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 32px 0;
    min-height: 80vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 500px;
}

.app-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #19216C;
    margin-bottom: 16px;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: #19216C;
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.tagline:hover {
    color: #3AE7E1;
    transform: translateY(-1px);
}

.tagline .external-link-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.description {
    font-size: 1.1rem;
    color: #565866;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== BUTTONS & CTA ===== */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Laptop view - left align elements */
@media (min-width: 1025px) {
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text .hero-visual {
        display: none;
    }

    .hero-visual-laptop {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-text .cta-section {
        order: unset;
        width: 100%;
    }

    .cta-buttons {
        align-items: flex-start;
    }

    .app-rating {
        align-self: center;
    }

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

/* Hide laptop hero-visual on mobile */
@media (max-width: 1024px) {
    .hero-visual-laptop {
        display: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-app-store {
    background: #19216C;
    color: #FFFFFF;
    border-color: #19216C;
}

.btn-app-store:hover {
    background: #3AE7E1;
    color: #19216C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 231, 225, 0.4);
}

/* ===== APP RATING ===== */
.app-rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #565866;
    font-weight: 500;
}

/* ===== SCREENSHOTS ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshots-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.screenshot-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(25, 33, 108, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    will-change: transform;
}

.screenshot-img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 50px rgba(25, 33, 108, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    padding: 32px 0 48px;
    border-top: none;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #565866;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: #19216C;
    background: rgba(58, 231, 225, 0.1);
    transform: translateY(-1px);
}

.copyright {
    color: #818499;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 0;
}

.copyright a {
    color: #818499;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.copyright a:hover {
    color: #19216C;
    background: rgba(58, 231, 225, 0.1);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

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

    .hero-text h1 {
        order: 1;
    }

    .hero-text .tagline {
        order: 2;
    }

    .hero-text .description {
        order: 3;
    }

    .hero-text .hero-visual {
        order: 4;
    }

    .hero-text .cta-section {
        order: 5;
    }

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

    .screenshots-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 400px;
    }

    .screenshot-img {
        max-width: 160px;
    }
}

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

    .hero {
        padding: 24px 0;
        min-height: 50vh;
    }

    .app-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .cta-buttons {
        justify-content: center;
        width: 100%;
        margin-top: 48px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .app-rating {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

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

    .screenshots-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 300px;
    }

    .screenshot-img {
        max-width: 130px;
    }

    .footer {
        padding: 24px 0 32px;
        flex-direction: row;
        gap: 8px;
    }

    .footer-links {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .footer-links a {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .copyright {
        font-size: 0.7rem;
    }

    .copyright a {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
}


/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 24px 0;
    }

    .hero-content {
        gap: 32px;
    }

    .app-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .phone-mockup {
        width: 160px;
        height: 320px;
    }

    .features {
        padding: 32px 0;
    }
}

/* ===== ADDITIONAL UTILITY CLASSES ===== */
.developer-bio-section {
    text-align: center;
    margin-top: 40px;
}

.developer-bio-title {
    color: #19216C;
    margin-bottom: 20px;
}

.developer-bio-description {
    color: #565866;
    margin-bottom: 20px;
}

.contact-link {
    color: #19216C;
    text-decoration: none;
}

.contact-link:hover {
    color: #3AE7E1;
    text-decoration: underline;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.footer-links a:focus {
    outline: 2px solid #3AE7E1;
    outline-offset: 2px;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-text,
.hero-visual,
.feature-card {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}