:root {
    --bg-color: #f0f9ff;
    --border-color: #7dd3fc;
    --text-main: #0c4a6e;
    --text-muted: #0c4a6e;
    --accent: #075985;
    --accent-hover: #0c4a6e;
    --success: #047857;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    background-color: #f0f9ff;
    margin: 0;
    padding: 0;
}

html,
body,
header,
main,
footer,
section,
.container,
.card,
.skip,
pre,
.aeo table,
.aeo th,
.aeo td {
    background-color: #f0f9ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #1e293b;
    color-scheme: light;
    text-wrap: pretty;
}

p, li, blockquote {
    font-size: 1.125rem;
    line-height: 1.55;
    text-align: left;
    max-width: 75ch;
}

h1, h2, h3, h4 {
    text-wrap: balance;
    color: var(--text-main);
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
}

h3 {
    font-weight: 700;
}

h1, h2 {
    text-align: center;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background-color: #f0f9ff;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    z-index: 20;
}

.skip:focus {
    top: 0.75rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

header.site {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

header.site .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
}

nav.primary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

nav.primary a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

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

.hero {
    padding: 6rem 0 4rem 0;
    background: var(--bg-color);
    text-align: center;
}

.hero h1,
.page-hero h1 {
    font-size: 2.85rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    max-width: 22ch;
    letter-spacing: -0.025em;
}

.hero .subhead,
.page-hero .subhead {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 75ch;
    margin: 0 auto 2rem;
    text-align: left;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.highlights-kicker,
.audience-kicker {
    margin: 2.5rem auto 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.audience-kicker {
    margin: 0 auto 0.85rem;
}

.advertisers,
.niches,
.sandbox-section,
.aeo,
.developers,
.demo-board,
.page-hero {
    text-align: left;
}

.hero .highlights {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0;
}

.hero .highlights .card {
    padding: 1.25rem;
}

.hero .highlights h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero .highlights p {
    font-size: 1.125rem;
    margin: 0;
}

@media (max-width: 900px) {
    .hero .highlights {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1,
    .page-hero h1 {
        font-size: 2.15rem;
    }

    .hero .highlights {
        grid-template-columns: 1fr;
    }
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.7rem;
    min-height: 2.75rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: 0;
    font-size: 1.125rem;
}

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

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

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

.btn.secondary:hover {
    background-color: #f0f9ff;
}

.meta {
    margin: 1.5rem 0 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 44rem;
}

.sandbox-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.sandbox-section h2,
.niches h2,
.advertisers h2,
.developers h2,
.aeo h2 {
    font-size: 2rem;
    margin: 0 auto 0.75rem;
    max-width: 36rem;
    text-align: center;
}

.sandbox-section > .container > p,
.advertisers p,
.developers p,
.aeo p,
.niches .section-lead {
    color: var(--text-muted);
    margin: 0 auto 1.25rem;
    max-width: 75ch;
    text-align: left;
}

.sandbox-section > .container > p {
    margin-bottom: 2.5rem;
}

.match-card {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    padding: 1rem;
    text-align: left;
}

.match-card .badge {
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.ad-title,
.match-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.ad-desc,
.match-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.match-card small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-card.null {
    background: transparent;
    border-color: var(--border-color);
}

.niches {
    padding: 5rem 0;
    background: var(--bg-color);
}

.niches .section-lead {
    margin-bottom: 2.5rem;
}

.advertisers {
    padding: 4rem 0;
    background: var(--bg-color);
}

.advertisers p strong,
.developers p strong,
.niches .section-lead strong,
.aeo p strong,
.hero .subhead strong,
.sandbox-section p strong {
    color: var(--text-main);
}

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

@media(max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: #f0f9ff;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.3rem;
    text-align: left;
}

.card p {
    color: var(--text-muted);
    font-size: 1.125rem;
    text-align: left;
    max-width: none;
}

.aeo {
    padding: 3rem 0 5rem;
    background: var(--bg-color);
}

.aeo table {
    width: 100%;
    max-width: 56rem;
    border-collapse: collapse;
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
    text-align: left;
    background: var(--bg-color);
}

.aeo caption {
    caption-side: bottom;
    padding-top: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.aeo th,
.aeo td {
    text-align: left;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border-color);
    vertical-align: top;
}

.aeo th {
    background: #f0f9ff;
    color: var(--text-main);
}

.ai-note {
    font-size: 1rem;
    color: var(--text-muted);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    background: var(--bg-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.footer-grid p {
    margin: 0 0 0.5rem;
    max-width: 40rem;
}

.page-hero {
    padding: 3.5rem 0 2.5rem;
}

.demo-board {
    padding: 0 0 4rem;
    background: var(--bg-color);
}

.demo-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.demo-controls {
    max-width: 75ch;
    text-align: left;
}

.demo-scenario {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
}

.demo-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.demo-hint {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.phone {
    width: min(100%, 24.5rem);
    text-align: left;
}

.phone-bezel {
    background: #0f172a;
    border-radius: 2.25rem;
    padding: 0.7rem 0.7rem 0.85rem;
    box-shadow: 0 1.5rem 2.5rem rgba(12, 74, 110, 0.18);
}

.phone-notch {
    width: 7.5rem;
    height: 1.35rem;
    margin: 0 auto 0.45rem;
    background: #020617;
    border-radius: 999px;
}

.phone-home {
    width: 7rem;
    height: 0.3rem;
    margin: 0.55rem auto 0;
    background: #334155;
    border-radius: 999px;
}

.demo-chat {
    background: #ffffff;
    border-radius: 1.35rem;
    overflow: hidden;
    height: 36rem;
    display: flex;
    flex-direction: column;
}

.demo-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: #e0f2fe;
    border-bottom: 1px solid var(--border-color);
}

.demo-chat-head h2,
.demo-chat-head h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
}

.demo-chat-head p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-live {
    color: var(--success);
    font-weight: 700;
    margin: 0;
    font-size: 0.8rem;
}

.demo-log {
    flex: 1;
    padding: 0.75rem 0.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.chat-message,
.bubble {
    max-width: 88%;
    padding: 0.55rem 0.75rem;
    border-radius: 1.1rem;
    background: #e0f2fe;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
}

.bubble.user {
    align-self: flex-end;
    background: #dbeafe;
    border: 0;
}

.demo-composer {
    display: flex;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem 0.7rem;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.demo-composer input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 16px;
    color: var(--text-main);
    background: #ffffff;
}

.demo-composer .btn {
    padding: 0.55rem 0.85rem;
    flex-shrink: 0;
}

.demo-log .match-card {
    max-width: 100%;
    padding: 0.75rem;
}

.demo-log .match-card h4 {
    font-size: 0.95rem;
}

.demo-log .match-card .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 520px) {
    .phone-bezel {
        border-radius: 1.5rem;
        padding: 0.45rem;
    }

    .phone-notch,
    .phone-home {
        display: none;
    }

    .demo-chat {
        height: min(70vh, 36rem);
        border-radius: 1rem;
    }
}

pre {
    max-width: 44rem;
    overflow-x: auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
}

pre code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text-main);
}
