/* ============================================
   DriveMosaic — Marketing Site
   Dark theme matching the app aesthetic
   ============================================ */

:root {
    --bg: #0a0a0f;
    --bg-raised: #111118;
    --bg-card: #16161f;
    --bg-card-pro: #1a1428;
    --border: rgba(255, 255, 255, 0.06);
    --border-pro: rgba(139, 92, 246, 0.3);
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --purple: #a78bfa;
    --green: #34d399;
    --red: #fb7185;
    --orange: #fb923c;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ---- Nav ---- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

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

.logo-icon {
    font-size: 20px;
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

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

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    border-radius: var(--radius-sm);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

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

.hero {
    padding: 140px 24px 80px;
    text-align: center;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e4e4e7 30%, #818cf8 70%, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ---- Screenshot Mockup ---- */

.hero-screenshot {
    max-width: 1050px;
    margin: 60px auto 0;
}

.app-screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---- Sections shared ---- */

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto 48px;
}

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

.features {
    padding: 100px 24px;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.pro-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--purple);
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ---- Pricing ---- */

.pricing {
    padding: 100px 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto 40px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    position: relative;
}

.price-card-pro {
    background: var(--bg-card-pro);
    border-color: var(--border-pro);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-tier {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.price-card-pro .price-amount {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li.included::before {
    content: "\2713";
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}

.price-features li.excluded {
    color: var(--text-tertiary);
}

.price-features li.excluded::before {
    content: "\2014";
    color: var(--text-tertiary);
    font-weight: 400;
}

.price-features li.highlight {
    color: var(--text);
    font-weight: 500;
}

.price-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

.price-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 12px;
}

.coming {
    font-size: 10px;
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.competitor-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

.competitor-note strong {
    color: var(--green);
}

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

.download {
    padding: 100px 24px;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
}

.download-box {
    max-width: 600px;
    margin: 0 auto 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-icon {
    font-size: 32px;
    color: var(--accent);
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.download-size {
    font-size: 13px;
    color: var(--text-tertiary);
}

.install-steps {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(129, 140, 248, 0.15);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 3px;
}

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

footer {
    border-top: 1px solid var(--border);
    padding: 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-left a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ---- Mobile ---- */

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

    .hero {
        padding: 120px 20px 60px;
    }

    .treemap-mockup {
        height: 220px;
    }

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

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

    .download-box {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
