/* ============================================
   Mac Landing Page - Warm Earthy Theme
   ============================================ */

:root {
    --bg-warm:       #E6C799;
    --bg-cream:      #EDE6D7;
    --bg-card:       #F2E8D9;
    --bg-card-light: #FAF8F2;

    --green:       #445A4D;
    --green-light: #8CAD85;
    --orange:      #E69959;
    --blue:        #588CAD;
    --red:         #D97373;
    --yellow:      #F2D98C;

    --text-primary:   #262626;
    --text-secondary: #737373;
    --text-tertiary:  #A6A6A6;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: #ffffff;
    overflow-x: hidden;
}

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

/* ---- Navigation ---- */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--green);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: #37493E;
    transform: translateY(-1px);
}

/* ---- Hero ---- */

.hero {
    position: relative;
    background: linear-gradient(170deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 24px 0;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 540px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 460px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    padding: 16px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(68, 90, 77, 0.3);
}

.btn-primary:hover {
    background: #37493E;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(68, 90, 77, 0.4);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.apple-icon {
    width: 22px;
    height: 22px;
}

/* Phone frame */

.hero-phone {
    flex-shrink: 0;
}

.phone-frame {
    position: relative;
    width: 280px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 6px #1a1a1a,
        inset 0 0 0 2px rgba(255,255,255,0.1);
    background: #1a1a1a;
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---- Features ---- */

.features {
    padding: 100px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card-light);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-icon-orange { background: rgba(230, 153, 89, 0.15); color: var(--orange); }
.feature-icon-green  { background: rgba(140, 173, 133, 0.2); color: var(--green); }
.feature-icon-blue   { background: rgba(88, 140, 173, 0.15); color: var(--blue); }
.feature-icon-red    { background: rgba(217, 115, 115, 0.15); color: var(--red); }
.feature-icon-yellow { background: rgba(242, 217, 140, 0.3); color: #C8A52E; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ---- Screenshots ---- */

.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-cream) 100%);
}

.screenshots-carousel {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
}

.screenshot-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-8px);
}

.screenshot-item .phone-frame {
    width: 180px;
    border-radius: 28px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 4px #1a1a1a;
}

.screenshot-item .phone-frame img {
    border-radius: 24px;
}

.screenshot-label {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Download CTA ---- */

.download {
    padding: 100px 0;
    background: var(--bg-cream);
}

.download-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.download-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 28px;
}

.download-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ---- Footer ---- */

.footer {
    background: var(--text-primary);
    color: #fff;
    padding: 48px 0 28px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        gap: 48px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .phone-frame {
        width: 240px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-carousel {
        gap: 20px;
    }

    .screenshot-item .phone-frame {
        width: 140px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .download-content h2 {
        font-size: 1.8rem;
    }
}
