/* ============================================================
   Agent Redactor — site stylesheet
   Light theme matching redactor.negativestarinnovators.com:
   orange/red gradient header + hero, light body, purple accent.
   ============================================================ */

:root {
    --primary-orange: #e88d29;
    --primary-red: #d94b38;
    --primary-purple: #7a22b4;
    --primary-purple-dark: #5d1a8c;
    --brand-grad: linear-gradient(to right, #d94b38, #e88d29);
    --blue-grad: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
    --bg: #f9f9fa;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --card-border: #e2e8f0;
    --text: #333333;
    --text-title: #2d3748;
    --text-muted: #4a5568;
    --mono: ui-monospace, SFMono-Regular, Consolas, 'JetBrains Mono', monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Inter', sans-serif;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: rgba(232, 141, 41, 0.12);
    border: 1px solid rgba(232, 141, 41, 0.35);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    color: #b45309;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header (gradient, like the sister site) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brand-grad);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 32px; width: auto; }

.main-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
    align-items: center;
}
.main-nav a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.3s;
}
.main-nav a:hover { opacity: 0.8; text-decoration: none; }

/* GitHub appears as a header icon on desktop; this in-nav copy is for the mobile menu */
.main-nav .nav-github { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.github-link {
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
}
.github-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.15); text-decoration: none; }

/* ---------- Language selector (matches negativestarinnovators.com structure) ---------- */
.language-selector { position: relative; }

.language-selector-button {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.92);
    font: 500 0.88rem var(--sans);
    padding: 7px 11px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.language-selector-button:hover { background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.6); }
.language-selector-button .globe-icon { width: 17px; height: 17px; }
.language-selector-button .chevron { transition: transform 0.2s; }
.language-selector.open .language-selector-button .chevron { transform: rotate(180deg); }

.language-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
    flex-direction: column;
}
.language-selector.open .language-dropdown { display: flex; }

.language-dropdown a {
    color: var(--text-muted);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.language-dropdown a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.language-dropdown a[aria-current="true"] { color: var(--text); font-weight: 600; }
.language-dropdown a[aria-current="true"]::after {
    content: "✓";
    color: var(--primary-orange);
    font-size: 0.85rem;
}

.language-more {
    padding: 9px 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-style: italic;
    border-top: 1px solid var(--card-border);
    margin-top: 4px;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 700 1rem var(--sans);
    padding: 13px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Microsoft Store — blue, like the sister site's "Get Windows App" button */
.btn-store {
    background: var(--blue-grad);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 90, 158, 0.35);
}
.btn-store:hover { box-shadow: 0 10px 26px rgba(0, 90, 158, 0.45); color: #ffffff; }

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0;
    background: var(--brand-grad);
    color: #ffffff;
    overflow: hidden;
}

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

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 15px;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Self-release one-liner, on its own line under the Store button */
.hero-selfrelease { margin-top: 22px; max-width: 560px; }

.selfrelease-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 10px;
}

.hero .code-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
}
.hero .code-block code {
    background: none;
    border: none;
    padding: 0;
    color: #ffe9c9;
    font-size: 0.82rem;
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    color: var(--primary-purple);
    font: 700 0.78rem var(--sans);
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: #ffffff; }
.copy-btn.copied { background: #d4edda; color: #155724; }

/* Large mascot, floating free on the gradient like the sister site */
.hero-art { display: flex; justify-content: center; }
.hero-art img {
    width: min(100%, 480px);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.3));
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-title);
    margin-bottom: 14px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 auto 52px;
}

/* ---------- Pipeline diagram ---------- */
.pipeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    margin-bottom: 52px;
}

.pipeline-node {
    flex: 1;
    max-width: 280px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 22px;
    text-align: center;
}
.pipeline-node h3 { font-size: 1.06rem; margin-bottom: 8px; color: var(--text-title); }
.pipeline-node p { font-size: 0.88rem; color: var(--text-muted); }

.pipeline-node-highlight {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 1px var(--primary-orange), 0 12px 30px rgba(232, 141, 41, 0.25);
}

.pipeline-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.pipeline-fox { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 12px; }

.pipeline-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
    min-width: 44px;
}
.pipeline-arrow small {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--mono);
    margin-top: 4px;
    text-align: center;
}

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.steps li {
    counter-increment: step;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px;
    font-size: 0.94rem;
    color: var(--text-muted);
    position: relative;
    padding-top: 58px;
}
.steps li strong { color: var(--text-title); display: block; margin-bottom: 6px; font-size: 1rem; }
.steps li::before {
    content: counter(step);
    position: absolute;
    top: 20px; left: 24px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }

.feature-icon { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-title); }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Quick start ---------- */
.quickstart-steps {
    list-style: none;
    counter-reset: qs;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.quickstart-steps li {
    counter-increment: qs;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 22px 18px 66px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.97rem;
}
.quickstart-steps li span { color: var(--text-title); font-weight: 600; }
.quickstart-steps li::before {
    content: counter(qs);
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--brand-grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Docs ---------- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.doc-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }
.doc-card h3 { font-size: 1.12rem; color: var(--text-title); }
.doc-card p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }

.doc-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b45309;
    background: rgba(232, 141, 41, 0.12);
    border: 1px solid rgba(232, 141, 41, 0.4);
    padding: 5px 12px;
    border-radius: 999px;
}

.doc-card-generic { border-style: dashed; }
.doc-link { font-size: 0.92rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 940px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px;
    text-align: center;
    color: var(--text);
    transition: transform 0.18s, box-shadow 0.18s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); text-decoration: none; }
.contact-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text-title); }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #cbd5e0;
    padding: 44px 0 28px;
}

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

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 44px; height: 44px; border-radius: 10px; }
.footer-brand strong { color: #ffffff; }
.footer-brand p { font-size: 0.86rem; color: #a0aec0; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #cbd5e0; font-size: 0.9rem; }
.footer-links a:hover { color: #ffffff; text-decoration: none; }

.footer-legal {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.84rem;
    color: #a0aec0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-art { order: -1; }
    .hero-art img { width: min(100%, 340px); }
    .feature-grid, .docs-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: 1fr; max-width: 480px; }
    .pipeline { flex-direction: column; align-items: center; }
    .pipeline-arrow { transform: rotate(90deg); min-width: 0; padding: 4px 0; }
    .pipeline-node { max-width: 480px; width: 100%; }
}

@media (max-width: 720px) {
    /* Brand stays on one line */
    .brand { font-size: 1.25rem; white-space: nowrap; }
    .brand-logo { height: 28px; }

    /* Push the header buttons flush to the right edge */
    .header-actions { margin-left: auto; gap: 6px; }

    /* GitHub moves from the header into the dropdown menu */
    .github-link { display: none; }
    .main-nav .nav-github { display: block; }

    /* Compact globe-only language button, like negativestarinnovators.com */
    .language-selector-button {
        background: transparent;
        border: none;
        border-radius: 50%;
        padding: 0.5rem;
    }
    .language-selector-button:hover { background: rgba(255, 255, 255, 0.15); }
    .language-selector-button .globe-icon { width: 20px; height: 20px; }
    .language-selector-button .chevron { display: none; }
    .language-selector-button .language-current { display: none; }

    /* Floating dropdown card, like redactor.negativestarinnovators.com */
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: auto;
        min-width: 200px;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        padding: 0.5rem;
        gap: 0.25rem;
    }
    .main-nav a {
        color: #333333;
        font-weight: bold;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        display: block;
    }
    .main-nav a:hover { background: #f7fafc; color: var(--primary-purple); opacity: 1; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }

    /* No giant mascot or eyebrow line on phones */
    .hero-art { display: none; }
    .hero-eyebrow { display: none; }

    .feature-grid, .docs-grid, .steps { grid-template-columns: 1fr; }
    .hero { padding: 44px 0; }
    .hero h1 { font-size: 2.4rem; }
    .section { padding: 56px 0; }
}
