/* Milestone marketing site — milestoneproject.io
   Plain CSS, no build step, meant to be served as-is from Cloudflare
   Pages alongside index.html. */

:root {
    --ink: #0b0f19;
    --ink-soft: #171d2e;
    --surface: #ffffff;
    --surface-alt: #f6f7fb;
    --border: #e6e8f0;
    --text: #1b1f2a;
    --text-muted: #5b6172;
    --text-faint: #8a90a3;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eaf0ff;
    --purple: #7c3aed;
    --pink: #db2777;
    --green: #16a34a;
    --orange: #f97316;

    --max-width: 1180px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 20px 60px -20px rgba(11, 15, 25, 0.25);
    --shadow-sm: 0 8px 24px -12px rgba(11, 15, 25, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost-dark {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost-light {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost-light:hover {
    background: var(--surface-alt);
    border-color: #d5d9e6;
}

.btn-lg {
    padding: 0.9rem 1.9rem;
    font-size: 1.02rem;
}

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

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.brand img {
    width: 22px;
    height: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 0.4rem;
    cursor: pointer;
}

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

.hero {
    background:
        radial-gradient(1100px 500px at 15% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #ffffff;
    padding: 100px 0 0;
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: #cdd6ff;
    margin-bottom: 1.75rem;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 1.35rem;
    font-weight: 800;
}

.hero h1 .accent-text {
    background: linear-gradient(90deg, #7dd3fc, #a78bfa 60%, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin: 0 auto 2.25rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 3.5rem;
}

.hero-shot {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-shot-frame {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    background: #0f1420;
}

.hero-shot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-shot-chrome {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: #11172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.hero-shot-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

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

section {
    padding: 100px 0;
}

.section-head {
    max-width: 620px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.kicker {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
    font-weight: 800;
    color: var(--ink);
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- How it works ---------- */

.how {
    background: var(--surface-alt);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.how-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem;
}

.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.how-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.how-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mml-demo {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 0;
    background: var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mml-demo-code {
    padding: 2rem 1.9rem;
    color: #e6e9f5;
    font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.85;
    overflow-x: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mml-demo-code .c { color: #7dd3fc; }
.mml-demo-code .lbl { color: #a78bfa; }
.mml-demo-code .dur { color: #fbbf24; }
.mml-demo-code .dep { color: #34d399; }
.mml-demo-code .res { color: #f472b6; }

.mml-demo-caption {
    padding: 1.4rem 1.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.mml-demo-visual {
    background: #0f1420;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.mml-demo-visual img {
    border-radius: 8px;
    box-shadow: 0 12px 40px -14px rgba(0, 0, 0, 0.6);
}

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

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

.feature {
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feature:hover {
    border-color: #d5d9e6;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

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

.feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.more-features {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.6rem;
}

.more-features span {
    white-space: nowrap;
}

.more-features span::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-faint);
    margin-right: 0.6rem;
    vertical-align: middle;
}

/* ---------- Story / differentiator ---------- */

.story {
    background: var(--ink);
    color: #ffffff;
}

.story .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-copy .kicker {
    color: #a5b4fc;
}

.story h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
    font-weight: 800;
}

.story p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.02rem;
    margin: 0 0 1.5rem;
}

.story-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.story-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.story-list svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #34d399;
}

.story-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.35rem;
}

.compare-row .old {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
}

.compare-row .new {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

/* ---------- Security ---------- */

.security {
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.security-badge svg {
    color: var(--accent);
}

/* ---------- Final CTA ---------- */

.cta {
    background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
    color: #ffffff;
    text-align: center;
    border-radius: 28px;
    margin: 0 24px 100px;
    padding: 4.5rem 2rem;
}

.cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    margin: 0 0 1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
    font-size: 1.02rem;
}

.cta .btn-primary {
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

.cta .btn-primary:hover {
    background: #f2f4ff;
}

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

footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.footer-brand img {
    width: 18px;
    height: 18px;
}

footer .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

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

footer .copyright {
    color: var(--text-faint);
    font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .how-grid,
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story .wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .mml-demo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 24px;
        gap: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-actions .btn-ghost-dark {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 80px;
    }

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

    section {
        padding: 70px 0;
    }

    .cta {
        margin: 0 16px 70px;
        padding: 3rem 1.5rem;
    }

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