/* ═══════════════════════════════════════
   STASH LANDING PAGE — Design System
   Clean, minimal, authentic.
   ═══════════════════════════════════════ */

:root {
    --bg: #09090b;
    --surface: #18181b;
    --surface-raised: #27272a;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 255, 255, 0.15);
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.15);
    --pink: #f472b6;
    --cyan: #22d3ee;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Sans', 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Ambient Glow (subtle, not obnoxious) ── */
.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 10%, rgba(167, 139, 250, 0.06), transparent),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(244, 114, 182, 0.04), transparent);
    pointer-events: none;
}

/* ── Layout ── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    line-height: 1.15;
}

/* ── Navigation ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo img {
    border-radius: 6px;
}

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

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

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

.btn-nav {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ── Hero ── */
.hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

/* ── Buttons ── */
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--text);
    color: var(--bg);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.03);
}

/* ── App Screenshots ── */
.hero-showcase {
    max-width: 800px;
    margin: 0 auto;
    perspective: 1200px;
}

.screenshot-stack {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.screenshot {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot.main {
    width: 55%;
    max-width: 440px;
    position: relative;
    z-index: 2;
    transform: rotateY(-2deg);
}

.screenshot.side {
    width: 45%;
    max-width: 360px;
    position: absolute;
    right: 5%;
    top: 10%;
    z-index: 1;
    transform: rotateY(8deg) scale(0.92);
    opacity: 0.8;
}

.hero-showcase:hover .screenshot.main {
    transform: rotateY(0deg) translateX(-10px);
}

.hero-showcase:hover .screenshot.side {
    transform: rotateY(4deg) scale(0.95) translateX(10px);
    opacity: 0.9;
}

/* ── Steps ── */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
}

.step {
    flex: 1;
    padding: 0 24px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.step-divider {
    width: 1px;
    height: 80px;
    background: var(--border);
    margin-top: 18px;
    flex-shrink: 0;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s;
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.feature-card.large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 40px;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-preview {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Platforms ── */
.platforms-section {
    border-top: 1px solid var(--border);
}

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

.platform-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

.platform-card:hover {
    border-color: var(--border-accent);
}

.platform-card.muted {
    opacity: 0.5;
}

.platform-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.platform-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

.platform-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
    margin-bottom: 12px;
}

.platform-link:hover {
    color: var(--pink);
}

.platform-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
}

.platform-status.available {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.platform-status.coming {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

/* ── Use Cases ── */
.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.use-case:hover {
    border-color: var(--border-accent);
    color: var(--text);
}

.use-case-emoji {
    font-size: 1.15rem;
}

/* ── CTA Section ── */
.cta-section {
    padding: 60px 0 100px;
}

.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    margin-bottom: 12px;
    position: relative;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

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

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

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

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ── Scroll Animations ── */
.step,
.feature-card,
.platform-card,
.use-case {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.step.visible,
.feature-card.visible,
.platform-card.visible,
.use-case.visible {
    opacity: 1;
    transform: translateY(0);
}

.platform-card.muted.visible {
    opacity: 0.5;
}

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

    .feature-card.large {
        grid-column: span 2;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

    .hero {
        padding: 48px 0 24px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .steps {
        flex-direction: column;
        gap: 24px;
    }

    .step {
        padding: 0;
    }

    .step-divider {
        display: none;
    }

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

    .feature-card.large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

    .screenshot-stack {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .screenshot.main,
    .screenshot.side {
        position: relative;
        width: 85%;
        max-width: 360px;
        transform: none;
        opacity: 1;
        right: auto;
        top: auto;
    }

    .hero-showcase:hover .screenshot.main,
    .hero-showcase:hover .screenshot.side {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-card {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
}