/* ─── Design Tokens ─────────────────────────────── */
:root {
    /* PourCraft color palette */
    --cream-canvas: #FFF8F0;
    --latte-foam: #F0E6D6;
    --espresso: #3B2F2F;
    --roasted-bean: #6F4E37;
    --copper-kettle: #B87333;
    --caramel-drip: #C8956C;
    --morning-gold: #D4A960;
    --sage-brew: #7A9E7E;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-pad: 6rem 1.5rem;
}

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--espresso);
    background: var(--cream-canvas);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Navigation ───────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 47, 47, 0.08);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--espresso);
}

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

.nav-cta {
    background: var(--copper-kettle);
    color: var(--cream-canvas);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--roasted-bean);
}

/* ─── Hero ─────────────────────────────────────── */
.hero {
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--espresso);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--roasted-bean);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-price {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--roasted-bean);
    opacity: 0.8;
}

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

/* ─── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--espresso);
    color: var(--cream-canvas);
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--roasted-bean);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 47, 47, 0.2);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* ─── Phone Frame ──────────────────────────────── */
.phone-frame {
    width: 280px;
    background: var(--espresso);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 24px 48px rgba(59, 47, 47, 0.18),
        0 8px 16px rgba(59, 47, 47, 0.1);
}

.phone-frame img {
    border-radius: 26px;
    width: 100%;
}

.phone-frame-sm {
    width: 220px;
}

/* ─── Section Titles ───────────────────────────── */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--espresso);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--roasted-bean);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ─── Features ─────────────────────────────────── */
.features {
    padding: var(--section-pad);
    background: var(--latte-foam);
}

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

.feature-card {
    background: var(--cream-canvas);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 47, 47, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 47, 47, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--latte-foam);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--copper-kettle);
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--espresso);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--roasted-bean);
    line-height: 1.6;
}

/* ─── Screenshots ──────────────────────────────── */
.screenshots {
    padding: var(--section-pad);
}

.screenshots-track {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    text-align: center;
}

.screenshot-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--roasted-bean);
}

/* ─── Download CTA ─────────────────────────────── */
.download {
    padding: var(--section-pad);
    background: var(--espresso);
    text-align: center;
    color: var(--cream-canvas);
}

.download-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.download h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.download .btn-primary {
    background: var(--copper-kettle);
    color: #fff;
}

.download .btn-primary:hover {
    background: var(--caramel-drip);
}

/* ─── Footer ───────────────────────────────────── */
.footer {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(59, 47, 47, 0.08);
    background: var(--cream-canvas);
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.footer-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    display: block;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--roasted-bean);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--roasted-bean);
    transition: color 0.2s;
}

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

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--roasted-bean);
    opacity: 0.6;
    margin-top: 1rem;
}

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

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

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

    .hero-phone {
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-pad: 4rem 1.25rem;
    }

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

    .phone-frame {
        width: 240px;
    }

    .phone-frame-sm {
        width: 180px;
    }

    .screenshots-track {
        gap: 1.25rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}
