/* ═══════════════════════════════════════════════════════════════════════
   Gather — Marketing Site Styles
   Warm, organic palette matching the app's aesthetic.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root {
    --primary: #8DAA91;
    --primary-hover: #7A9A7E;
    --primary-glow: rgba(141, 170, 145, 0.18);
    --primary-deep: #5C7E60;
    --bg: #FDF9F5;
    --bg-alt: #F5EFE8;
    --surface: #FFFFFF;
    --surface-hover: #F7F2EC;
    --border: #E8DDD2;
    --text: #3D3532;
    --text-dim: #8C7E75;
    --text-muted: #B5A99E;
    --accent: #D4A574;
    --shadow-soft: rgba(62, 53, 50, 0.06);
    --shadow-medium: rgba(62, 53, 50, 0.12);
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --radius-xl: 2.5rem;
}

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

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Shared Layout ─────────────────────────────────────────────────── */
.section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-hover);
    margin-bottom: 1rem;
    text-align: center;
}

.section-title {
    font-family: 'Playball', cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--text);
    text-align: center;
    margin-bottom: 3.5rem;
    line-height: 1.25;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.4rem;
    border-radius: 4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 18px rgba(141, 170, 145, 0.35);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(141, 170, 145, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
    background: var(--primary-glow);
}

.btn-lg { padding: 1.2rem 3rem; font-size: 0.9rem; }

/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 249, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 221, 210, 0.6);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 20px var(--shadow-soft); }

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: 'Playball', cursive;
    font-size: 1.8rem;
    color: var(--primary-hover);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-hover); }
.nav-links .nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.6rem;
    border-radius: 3rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.nav-links .nav-cta:hover { background: var(--primary-hover); }

.nav-toggle { display: none; }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
    padding: 10rem 2rem 6rem;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary-hover);
    background: var(--primary-glow);
    padding: 0.5rem 1.2rem;
    border-radius: 3rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Playball', cursive;
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 400;
    color: var(--primary-hover);
    line-height: 0.9;
    margin-bottom: 0.3rem;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Hero Window Mockup ────────────────────────────────────────────── */
.hero-visual { display: flex; justify-content: center; }

.hero-window {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 60px var(--shadow-medium),
        0 0 0 1px var(--border);
    background: var(--surface);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-window:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.window-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot.red { background: #EC6A5E; }
.dot.yellow { background: #F4BF4F; }
.dot.green { background: #61C554; }
.window-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-right: 40px;
}

.window-body {
    display: flex;
    min-height: 320px;
}

.mock-sidebar {
    width: 120px;
    background: var(--bg-alt);
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}
.mock-heading {
    width: 60%;
    height: 8px;
    background: var(--text-muted);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}
.mock-link {
    width: 80%;
    height: 28px;
    background: var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.mock-link.active {
    background: var(--primary-glow);
    border: 1.5px solid var(--primary);
    opacity: 1;
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}
.mock-title-text {
    font-family: 'Playball', cursive;
    font-size: 2.2rem;
    color: var(--primary-hover);
    line-height: 1;
}
.mock-subtitle-text {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
}
.mock-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    width: 85%;
}
.mock-upload-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.mock-upload-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ─── Features ──────────────────────────────────────────────────────── */
.features {
    padding: 7rem 0;
    background: var(--bg-alt);
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--shadow-medium);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-dim);
}

/* ─── How It Works ──────────────────────────────────────────────────── */
.how-it-works {
    padding: 7rem 0;
}

.steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(141, 170, 145, 0.3);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.step-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.step-connector {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), var(--border));
    border-radius: 3px;
    margin: 0.5rem 0 0.5rem 27px;
}

/* ─── Showcase ──────────────────────────────────────────────────────── */
.showcase {
    padding: 7rem 0;
    background: var(--bg-alt);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.showcase-description {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.showcase-list {
    list-style: none;
}
.showcase-list li {
    font-size: 0.95rem;
    color: var(--text-dim);
    padding: 0.5rem 0;
    padding-left: 1.6rem;
    position: relative;
}
.showcase-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.memory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.memory-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px var(--shadow-soft);
    transition: all 0.3s ease;
}
.memory-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.memory-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.memory-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.92) saturate(0.9);
}

.memory-card:hover .memory-thumb video {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

.memory-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(62, 53, 50, 0.15) 100%),
        linear-gradient(to bottom, transparent 60%, rgba(62, 53, 50, 0.25) 100%);
    transition: opacity 0.4s ease;
}

.memory-card:hover .memory-vignette {
    opacity: 0.4;
}

.memory-label {
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

/* ─── Download CTA ──────────────────────────────────────────────────── */
.download {
    padding: 7rem 0;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-soft);
}

.download-card h2 {
    font-family: 'Playball', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.download-card > p {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.download-actions {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-price {
    margin-bottom: 0.8rem;
}
.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.price-once {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.download-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.apple-icon {
    font-size: 1.1rem;
    margin-right: 0.2rem;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Playball', cursive;
    font-size: 1.4rem;
    color: var(--primary-hover);
}
.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-hover); }

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
        min-height: auto;
    }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-window { transform: none; max-width: 420px; }
    .hero-window:hover { transform: none; }

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

    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-text { text-align: center; }
    .section-title { text-align: center !important; }
    .showcase-list { display: inline-block; text-align: left; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(253, 249, 245, 0.97);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-dim);
        border-radius: 2px;
        transition: 0.3s;
    }

    .hero { padding: 7rem 1.5rem 4rem; gap: 3rem; }
    .hero-title { font-size: 3.5rem; }

    .features, .how-it-works, .showcase, .download { padding: 4rem 0; }

    .download-card { padding: 3rem 1.5rem; }

    .memory-grid { gap: 0.8rem; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ─── Animations ────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
