/* Design tokens lifted directly from the app's own src/styles.css :root —
   this page should read as the same product, not a separate marketing site
   with its own palette. Keep these in sync if the app's tokens ever move. */
:root {
    --bg: #0d0d0f;
    --bg-2: #131316;
    --bg-3: #1d1d22;
    --line: #2a2a31;
    --text: #ececee;
    --muted: #98989f;
    --accent: #ee8626;
    --accent-2: #649fe4;
    --radius: 10px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Main Container */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Brand mark — same mark used in the app's own topbar/auth screens */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}
.brand span {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
}
.brand em {
    color: var(--accent);
    font-style: normal;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
    text-wrap: balance;
}

h1 {
    font-size: 3.25rem;
    font-weight: 700;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    color: var(--muted);
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

a:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    padding: 72px 0 60px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.tagline {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
}

.subhead {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.82;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Dual Demo Streams — same card/border language as the app's own
   dual-stream FlowChat windows (src/styles.css .dual-stream-col) */
.dual-demo-prompt {
    max-width: 460px;
    margin: 2.75rem auto 0;
    padding: 0.6rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.85rem;
}

.dual-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.stream {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-top: 3px solid transparent;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stream-header {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.stream-a {
    border-top-color: var(--accent);
}
.stream-a .stream-header {
    color: var(--accent);
}

.stream-b {
    border-top-color: var(--accent-2);
}
.stream-b .stream-header {
    color: var(--accent-2);
}

.stream-text {
    flex: 1;
    color: var(--text);
    opacity: 0.9;
    font-size: 0.94rem;
    line-height: 1.7;
    min-height: 100px;
    display: flex;
    align-items: flex-start;
}

/* Features Section */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-2);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--muted);
}

.feature-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    border: 1px solid var(--line);
    background: var(--bg-3);
}
.badge-a       { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.badge-cache   { color: #ebcb8b; border-color: color-mix(in srgb, #ebcb8b 40%, var(--line)); }
.badge-artifact{ color: #a3be8c; border-color: color-mix(in srgb, #a3be8c 40%, var(--line)); }
.badge-arena   { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.badge-prompt  { color: #b48ead; border-color: color-mix(in srgb, #b48ead 40%, var(--line)); }
.badge-ensemble{ color: #bf616a; border-color: color-mix(in srgb, #bf616a 40%, var(--line)); }

/* Mini visual mockups — small, non-interactive reconstructions of the real
   app's own component chrome (cards, borders, toggle switches, chat panes)
   using the exact same tokens, so a card SHOWS the feature instead of only
   describing it. Text content is faked with skeleton bars — the point is
   the shape/structure reading as authentic UI, not literal copy. */
.mock {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-3);
    padding: 0.7rem;
    margin-bottom: 1.1rem;
    height: 108px;
    box-sizing: border-box;
    overflow: hidden;
}
.mock-line {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--text) 22%, transparent);
    margin-top: 0.4rem;
}
.mock-line.dim {
    background: color-mix(in srgb, var(--muted) 35%, transparent);
    height: 6px;
}
.mock-line.w80 { width: 80%; }
.mock-line.w70 { width: 70%; }
.mock-line.w60 { width: 60%; }
.mock-line.w50 { width: 50%; }
.mock-line.w40 { width: 40%; }
.mock-line.w35 { width: 35%; }

/* FlowChat: two mini chat panes side by side, same head-color language as
   the real dual-stream view (orange head1 / blue head2 top border). */
.mock-flowchat {
    display: flex;
    gap: 0.5rem;
}
.mock-fc-col {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-top: 2px solid transparent;
    border-radius: 6px;
    background: var(--bg-2);
    padding: 0.45rem 0.55rem;
}
.mock-fc-a { border-top-color: var(--accent); }
.mock-fc-b { border-top-color: var(--accent-2); }
.mock-fc-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mock-fc-a .mock-fc-label { color: var(--accent); }
.mock-fc-b .mock-fc-label { color: var(--accent-2); }

/* Cache: the real ⚡ cache chip/anatomy card, shrunk down */
.mock-cache {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}
.mock-cache-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.82rem;
}
.mock-cache-row span { color: var(--muted); }
.mock-cache-row strong { color: #a3be8c; }
.mock-cache-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}
.mock-cache-fill {
    width: 78%;
    height: 100%;
    background: #a3be8c;
}
.mock-cache-meta {
    font-size: 0.7rem;
    color: var(--muted);
}

/* Artifacts: a mini document list, same shape as the real artifacts panel */
.mock-artifacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}
.mock-art-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.mock-art-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.85rem;
}
.mock-art-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.mock-art-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mock-art-sub {
    font-size: 0.68rem;
    color: var(--muted);
}

/* Arena: three narrow reply columns side by side, model tag on each */
.mock-arena {
    display: flex;
    gap: 0.45rem;
}
.mock-arena-col {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-2);
    padding: 0.4rem 0.5rem;
}
.mock-arena-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: var(--bg-3);
    border: 1px solid var(--line);
}
.tag-a { color: var(--accent); }
.tag-b { color: var(--accent-2); }
.tag-c { color: #a3be8c; }

/* Prompts: toggle rows, matching the app's own segmented-prompt list feel */
.mock-prompts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
}
.mock-prompt-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.mock-prompt-label {
    font-size: 0.78rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mock-prompt-label.dim {
    color: var(--muted);
}
.mock-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    width: 26px;
    height: 15px;
    border-radius: 999px;
    padding: 2px;
    box-sizing: border-box;
}
.mock-toggle.on {
    background: var(--accent);
    justify-content: flex-end;
}
.mock-toggle.off {
    background: var(--line);
    justify-content: flex-start;
}
.mock-toggle-knob {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--text);
    display: block;
}

/* Ensemble: a small task checklist — passed / actively-checking rows,
   same shape as the real swarm run's live task table. */
.mock-ensemble {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}
.mock-ens-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mock-ens-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mock-ens-dot.done {
    background: #a3be8c;
}
.mock-ens-dot.active {
    background: #ebcb8b;
    box-shadow: 0 0 0 3px color-mix(in srgb, #ebcb8b 20%, transparent);
}
.mock-ens-label {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mock-ens-status {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
}
.mock-ens-status.done {
    color: #a3be8c;
    border-color: color-mix(in srgb, #a3be8c 40%, var(--line));
}
.mock-ens-status.active {
    color: #ebcb8b;
    border-color: color-mix(in srgb, #ebcb8b 40%, var(--line));
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: 0.6rem;
}

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

/* CTA Band */
.cta-band {
    padding: 2.5rem;
    background: var(--bg-2);
    border-radius: var(--radius);
    margin: 60px 0;
    text-align: center;
    border: 1px solid var(--line);
}

.cta-status {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--muted);
}

/* Footer */
footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
footer p {
    color: var(--muted);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 720px) {
    main {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.75rem;
    }

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

    .tagline {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .subhead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .dual-demo {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stream {
        padding: 1.1rem;
        min-height: 180px;
    }

    .features {
        padding: 40px 0;
    }

    .mock {
        height: 96px;
        padding: 0.55rem;
    }
    .mock-arena {
        gap: 0.3rem;
    }
    .mock-arena-col {
        padding: 0.3rem 0.35rem;
    }
    .mock-arena-tag {
        font-size: 0.55rem;
    }

    .feature-card {
        padding: 1.4rem;
    }

    .cta-band {
        padding: 1.75rem;
        margin: 40px 0;
    }

    .cta-status {
        font-size: 1rem;
    }

    footer {
        padding: 2rem 0;
    }
}

@media (max-width: 375px) {
    main {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .subhead {
        font-size: 0.9rem;
    }

    .stream {
        padding: 0.9rem;
        min-height: 150px;
    }

    .feature-card {
        padding: 1.25rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accessibility */
:focus {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}
