/* ===== CSS Variables ===== */
:root {
    --primary: #489eAB;
    --primary-dark: #3a8a96;
    --accent: #E6A600;
    --cta: #E1332D;
    --text-primary: #2C3E50;
    --text-secondary: #757575;
    --bg-light: #f8fafb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 24px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scroll To Top Button ===== */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 1100;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
    }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    padding: 10px 32px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s;
}

.lang-switcher:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-switcher option {
    background: var(--white);
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* White button variant for teal header */
.header .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.header .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 140px;
    background: linear-gradient(135deg, var(--primary) 0%, #5ab5c2 100%);
    position: relative;
    overflow-x: hidden;
}

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

.hero-text {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.store-btn img {
    height: 48px;
    width: auto;
    transition: transform 0.3s;
}

.store-btn:hover img {
    transform: scale(1.05);
}

.coming-soon-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.hero-image {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: transparent;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    z-index: 0;
}

.hero-illustration::after {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 0;
}

.delivery-illustration {
    width: 100%;
    max-width: 320px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.delivery-illustration:hover {
    transform: scale(1.03);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), #5ab5c2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

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

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    margin-top: 30px;
    flex-shrink: 0;
}

/* ===== App Screenshots ===== */
.app-screenshots {
    padding: 0px 0 0px;
    background: var(--bg-light);
    overflow: hidden;
}

.screenshots-wrapper {
    position: relative;
    margin-top: 40px;
}

.screenshots-carousel {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-carousel::-webkit-scrollbar {
    display: none;
}

/* iPhone 15 Pro Max Phone Mockup Frame */
.phone-mockup {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    height: 530px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 50px;
    padding: 10px;
    scroll-snap-align: center;
    transition: transform 0.4s ease;
}

.phone-mockup:hover {
    transform: translateY(-10px);
}

/* Dynamic Island */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Side buttons */
.phone-mockup .side-btn {
    position: absolute;
    background: linear-gradient(180deg, #3a3a3a, #1a1a1a);
    border-radius: 2px;
}

.phone-mockup .side-btn.power {
    right: -3px;
    top: 140px;
    width: 3px;
    height: 80px;
}

.phone-mockup .side-btn.vol-up {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 40px;
}

.phone-mockup .side-btn.vol-down {
    left: -3px;
    top: 170px;
    width: 3px;
    height: 40px;
}

.phone-mockup .side-btn.silent {
    left: -3px;
    top: 85px;
    width: 3px;
    height: 25px;
}

/* Scroll indicators */
.scroll-hint {
    text-align: center;
    padding: 10px 0 25px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.scroll-hint span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scroll-arrows {
    display: inline-flex;
    gap: 4px;
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ===== Download CTA ===== */
.download-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #5ab5c2 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.cta-content h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    border-radius: 10%;
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-legal h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.7;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .delivery-illustration {
        max-width: 220px;
    }

    .hero-illustration::before {
        width: 280px;
        height: 280px;
    }

    .hero-illustration::after {
        width: 320px;
        height: 320px;
    }

    .phone-mockup {
        width: 200px;
        height: 410px;
        border-radius: 38px;
        padding: 8px;
    }

    .phone-mockup::before {
        width: 75px;
        height: 22px;
        top: 14px;
    }

    .phone-screen {
        border-radius: 32px;
    }

    .screenshots-carousel {
        gap: 24px;
        padding: 30px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}

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

    .store-btn img {
        height: 40px;
    }

    .container {
        padding: 0 16px;
    }
}
