/* MDraft marketing site.
   Positioning: a local AI workflow workspace built on Markdown.
   Aesthetics inherited from the app icon: deep-indigo → purple →
   magenta gradient with white display lettering on the hero;
   clean readable surfaces below so the workflow tooling can
   speak for itself. */

:root {
    --c-deep:    #1b1d6e;
    --c-blue:    #3a36c4;
    --c-purple:  #8b3df3;
    --c-magenta: #d63bb5;
    --c-pink:    #f25fa6;
    --c-cyan:    #34d4ff;

    --c-ink:        #0e0f1c;
    --c-ink-soft:   #3c3f4f;
    --c-ink-mute:   #6c6f80;
    --c-rule:       rgba(20, 22, 50, 0.10);

    --c-paper:      #ffffff;
    --c-paper-warm: #faf7f3;
    --c-paper-cool: #f3f5fb;
    --c-paper-deep: #ecedf6;

    --shadow-card: 0 4px 18px rgba(20, 22, 50, 0.08),
                   0 1px 3px  rgba(20, 22, 50, 0.05);
    --shadow-shot: 0 28px 60px -16px rgba(20, 22, 80, 0.40),
                   0 12px 30px -10px rgba(80, 30, 150, 0.30);

    --radius-card: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-paper:      #14141c;
        --c-paper-warm: #161624;
        --c-paper-cool: #131325;
        --c-paper-deep: #0e0e1a;
        --c-ink:        #f4f5fb;
        --c-ink-soft:   #c4c6d5;
        --c-ink-mute:   #8e92a4;
        --c-rule:       rgba(255, 255, 255, 0.08);
        --shadow-card:  0 4px 18px rgba(0, 0, 0, 0.45),
                        0 1px 3px  rgba(0, 0, 0, 0.30);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Helvetica Neue", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    padding: 1px 6px;
    background: var(--c-paper-cool);
    border-radius: 4px;
    color: var(--c-deep);
}

/* Hero ===================================================== */

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(110% 100% at 0% 0%,
                        rgba(52, 212, 255, 0.32) 0%,
                        rgba(52, 212, 255, 0.0) 55%),
        radial-gradient(120% 110% at 100% 0%,
                        rgba(242, 95, 166, 0.42) 0%,
                        rgba(242, 95, 166, 0.0) 60%),
        linear-gradient(160deg,
                        var(--c-deep)    0%,
                        var(--c-blue)    32%,
                        var(--c-purple)  62%,
                        var(--c-magenta) 100%);
    padding-bottom: 80px;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.topnav-links {
    display: flex;
    gap: 24px;
}

.topnav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 120ms ease;
}

.topnav-links a:hover { color: #ffffff; }

.hero-inner {
    max-width: 960px;
    margin: 36px auto 56px;
    padding: 0 28px;
    text-align: center;
}

.hero-title {
    margin: 16px 0 18px;
    font-size: clamp(34px, 5.4vw, 64px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(20, 0, 80, 0.18);
}

.hero-tagline {
    max-width: 760px;
    margin: 0 auto 32px;
    font-size: clamp(17px, 1.6vw, 21px);
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.55;
}

.hero-tagline strong {
    font-weight: 700;
    color: #ffffff;
}

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

.hero-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.hero-shot {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.hero-shot-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow-shot);
}

/* Buttons ================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease,
                color 120ms ease, box-shadow 120ms ease;
}

.btn-primary {
    background: #ffffff;
    color: var(--c-deep);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.30);
}

.btn-primary.btn-disabled {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.30);
    pointer-events: none;
    cursor: default;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.40);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.download .btn-primary {
    background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-purple) 60%, var(--c-magenta) 100%);
    color: #ffffff;
}

.download .btn-primary:hover {
    box-shadow: 0 14px 28px -10px rgba(139, 61, 243, 0.45);
}

/* Trust strip ============================================== */

.trust {
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-rule);
    padding: 24px 28px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px 36px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 1180px;
    margin: 0 auto;
}

.trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-ink-soft);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.trust-ico {
    width: 18px;
    height: 18px;
    color: var(--c-purple);
    flex-shrink: 0;
}

/* Section shared =========================================== */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.container-narrow {
    max-width: 760px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--c-purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.015em;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.15;
}

.section-lede {
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.55;
    color: var(--c-ink-soft);
    max-width: 720px;
    margin: 0 auto 16px;
}

/* Problem section ========================================== */

.problem {
    padding: 88px 28px;
    background: var(--c-paper);
    text-align: center;
}

.problem h3 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-purple) 70%, var(--c-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.problem p {
    color: var(--c-ink-soft);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 14px;
}

.problem strong {
    color: var(--c-ink);
}

/* Feature rows ============================================= */

.features {
    background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-cool) 100%);
    padding: 32px 0 72px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 28px;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row.no-shot {
    grid-template-columns: 1fr;
    max-width: 820px;
    text-align: center;
}

.feature-row.no-shot.reverse { direction: ltr; }

.feature-row.highlight-feature {
    background:
        radial-gradient(80% 60% at 50% 0%,
                        rgba(139, 61, 243, 0.10) 0%,
                        rgba(139, 61, 243, 0.0) 70%),
        var(--c-paper);
    border: 1px solid var(--c-rule);
    border-radius: var(--radius-card);
    padding: 56px 36px;
    box-shadow: var(--shadow-card);
}

/* Text-only highlight cards stay narrow for readability;
   two-column variants (with a screenshot column) need the standard
   feature-row width so the columns aren't cramped. */
.feature-row.highlight-feature.no-shot {
    max-width: 880px;
}

.feature-eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--c-purple);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-text h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-purple) 70%, var(--c-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-text p {
    margin: 0 0 14px;
    color: var(--c-ink-soft);
    font-size: 17px;
    line-height: 1.6;
}

.feature-points {
    margin: 0 0 14px;
    padding: 0 0 0 18px;
    color: var(--c-ink-soft);
}

.feature-row.no-shot .feature-points {
    display: inline-block;
    text-align: left;
}

.feature-points li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.feature-points li strong { color: var(--c-ink); }

.feature-cta {
    color: var(--c-ink) !important;
    font-size: 16px;
}

.feature-cta strong { color: var(--c-purple); }

.feature-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-shot);
}

@media (max-width: 880px) {
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
        padding: 40px 28px;
    }
    .feature-row.reverse > * { direction: ltr; }
    .feature-row.no-shot { padding: 40px 28px; }
}

/* Demo video =============================================== */

.demo {
    padding: 88px 28px;
    background: var(--c-paper-warm);
    text-align: center;
}

.demo-frame {
    max-width: 880px;
    margin: 36px auto 0;
}

.demo-frame-inner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    background: #000;
    box-shadow: var(--shadow-shot);
}

.demo-poster {
    position: absolute;
    inset: 0;
}

.demo-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: blur(1px);
}

.demo-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-purple);
    cursor: not-allowed;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.4);
}

.demo-play[disabled] { opacity: 0.85; }

.demo-play svg { width: 36px; height: 36px; margin-left: 4px; }

.demo-caption {
    margin: 16px 0 0;
    color: var(--c-ink-mute);
    font-size: 14px;
}

/* Privacy section ========================================== */

.privacy {
    padding: 88px 28px;
    background: var(--c-paper);
    text-align: center;
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
}

.privacy h3 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-purple) 70%, var(--c-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.privacy-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.privacy-list li {
    color: var(--c-ink-soft);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    background: var(--c-paper-cool);
    border-radius: 999px;
    border: 1px solid var(--c-rule);
}

/* Pricing ================================================== */

.pricing {
    padding: 88px 28px;
    background: var(--c-paper-cool);
    text-align: center;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--c-paper);
    border: 1px solid var(--c-rule);
    border-radius: 20px;
    padding: 44px 36px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-purple) 50%, var(--c-magenta) 100%);
}

.pricing-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 14px;
}

.pricing-currency {
    font-size: 28px;
    font-weight: 600;
    color: var(--c-ink-soft);
}

.pricing-amount {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-purple) 70%, var(--c-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.pricing-line {
    margin: 6px 0 14px;
    color: var(--c-ink);
    font-size: 18px;
}

.pricing-note {
    margin: 0;
    color: var(--c-ink-mute);
    font-size: 14px;
    line-height: 1.55;
}

/* Download ================================================= */

.download {
    padding: 96px 28px;
    background:
        radial-gradient(80% 60% at 50% 0%,
                        rgba(139, 61, 243, 0.10) 0%,
                        rgba(139, 61, 243, 0.0) 70%),
        var(--c-paper);
    text-align: center;
}

.download-lede {
    color: var(--c-ink-soft);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.55;
}

.download .hero-meta {
    margin-top: 18px;
    color: var(--c-ink-mute);
}

/* Footer =================================================== */

.footer {
    padding: 56px 28px 36px;
    background: var(--c-paper-deep);
    border-top: 1px solid var(--c-rule);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 36px;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.footer-brand strong {
    display: block;
    color: var(--c-ink);
    font-size: 16px;
    margin-bottom: 4px;
}

.footer-brand p {
    margin: 0;
    color: var(--c-ink-mute);
    font-size: 14px;
    max-width: 280px;
    line-height: 1.5;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-column h4 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-ink-mute);
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: var(--c-ink-soft);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
}

.footer-column a:hover {
    color: var(--c-ink);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--c-rule);
    padding-top: 20px;
}

.copyright {
    color: var(--c-ink-mute);
    font-size: 13px;
    margin: 0;
}

/* Document pages (privacy / terms) ========================= */

.doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 28px 96px;
}

.doc h1 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-purple) 70%, var(--c-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.doc .doc-meta {
    color: var(--c-ink-mute);
    font-size: 13px;
    margin: 0 0 32px;
}

.doc h2 {
    font-size: 22px;
    margin: 36px 0 12px;
    color: var(--c-ink);
}

.doc p {
    color: var(--c-ink-soft);
    line-height: 1.65;
}

.doc a { color: var(--c-purple); }

.doc-back {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--c-purple);
    text-decoration: none;
    font-size: 14px;
}

.doc-back:hover { text-decoration: underline; }

/* Responsive =============================================== */

@media (max-width: 880px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topnav-links { display: none; }
    .hero-title { font-size: 38px; }
    .hero-shot { padding: 0 16px; }
    .trust-list { gap: 14px 24px; }
    .footer-columns { grid-template-columns: 1fr; }
    .pricing-amount { font-size: 52px; }
}
