@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

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

:root {
    --bg: #fdfdfb;
    --bg-soft: #f4f8ff;
    --panel: #ffffff;
    --ink: #111529;
    --muted: #4f5c80;
    --line: rgba(34, 52, 111, 0.18);
    --cyan: #0f9d8a;
    --orange: #f27a30;
    --rose: #e54f7d;
    --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    --sans: "Space Grotesk", "Segoe UI", sans-serif;
}

body {
    font-family: var(--sans);
    line-height: 1.5;
    color: var(--ink);
    background:
        radial-gradient(1200px 700px at -10% -20%, rgba(15, 157, 138, 0.11), transparent 65%),
        radial-gradient(800px 500px at 110% 10%, rgba(229, 79, 125, 0.11), transparent 60%),
        linear-gradient(180deg, #fefefe 0%, #f8fbff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.09;
    background-image: radial-gradient(rgba(16, 27, 65, 0.48) 0.35px, transparent 0.35px);
    background-size: 4px 4px;
    z-index: 0;
}

.glow {
    position: fixed;
    width: 30rem;
    height: 30rem;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.glow-a {
    top: -8rem;
    right: -6rem;
    background: var(--cyan);
}

.glow-b {
    bottom: -12rem;
    left: -8rem;
    background: var(--rose);
}

.container {
    width: min(1160px, calc(100% - 2.2rem));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* Top banner — first thing every visitor sees, even if they never scroll.
   The whole sales funnel for an AI-first user starts here: "drop AGENTS.md
   into your tool." Anchored above the sticky topbar. */

.top-banner {
    position: relative;
    z-index: 21;
    background: linear-gradient(135deg, #0f1530 0%, #1a2752 50%, #2a3a78 100%);
    color: #f4f7ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(15, 21, 48, 0.18);
}

.top-banner .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    min-height: auto;
}

.top-banner p {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(244, 247, 255, 0.92);
}

.top-banner strong {
    color: #ffd38a;
    font-weight: 600;
    margin-right: 0.25rem;
}

.top-banner code {
    background: rgba(255, 211, 138, 0.16);
    border: 1px solid rgba(255, 211, 138, 0.32);
    color: #ffd38a;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-family: var(--mono);
    font-size: 0.84rem;
}

.top-banner a {
    color: #ffd38a;
}

.top-banner-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--orange), #ffd38a);
    color: #33200a;
    padding: 0.5rem 0.95rem;
    border-radius: 0.55rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.top-banner-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.top-banner-cta code {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(0, 0, 0, 0.06);
    color: #33200a;
    font-size: 0.82rem;
}

.top-banner-cta span {
    font-weight: 700;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.topbar .container {
    min-height: 4.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover {
    color: var(--ink);
    background: rgba(13, 20, 43, 0.06);
}

.hero {
    padding: 6.5rem 0 3.5rem;
}

.kicker {
    font-family: var(--mono);
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.73rem;
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    max-width: 14ch;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--muted);
    max-width: 60ch;
    font-size: 1.07rem;
}

.cta-row {
    margin-top: 1.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-solid {
    background: linear-gradient(120deg, var(--orange), #ffbb52);
    color: #2c1500;
    box-shadow: 0 10px 20px rgba(242, 122, 48, 0.25);
}

/* Strongest CTA on the page — the AI-first onboarding action.
   Dark background so it pops against the light hero, not orange-tinted
   so it reads as a different *type* of action than 'choose a mode.' */
.btn-ai {
    background: linear-gradient(135deg, #0f1530 0%, #1a2752 50%, #2a3a78 100%);
    color: #ffd38a;
    border-color: rgba(255, 211, 138, 0.32);
    box-shadow: 0 12px 24px rgba(15, 21, 48, 0.30);
}

.btn-ai code {
    background: rgba(255, 211, 138, 0.16);
    border: 1px solid rgba(255, 211, 138, 0.32);
    color: #ffd38a;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-family: var(--mono);
    font-size: 0.85em;
}

.btn-ai:hover {
    box-shadow: 0 14px 28px rgba(15, 21, 48, 0.40);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(19, 25, 52, 0.04);
}

.btn-shape {
    border-color: rgba(12, 34, 76, 0.16);
    color: #11224f;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 243, 255, 0.96));
}

.hero-metrics {
    list-style: none;
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-metrics li {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
    border-radius: 0.8rem;
    padding: 0.9rem;
    animation: rise 500ms ease both;
    box-shadow: 0 10px 24px rgba(22, 35, 84, 0.08);
}

.hero-metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.34rem;
}

.hero-metrics strong {
    font-size: 0.95rem;
}

.panel {
    padding: 4rem 0;
}

.panel-alt {
    background: linear-gradient(180deg, rgba(233, 242, 255, 0.66), rgba(248, 252, 255, 0.8));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stack-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(246, 250, 255, 0.86));
    border-top: 1px solid rgba(17, 34, 79, 0.08);
    border-bottom: 1px solid rgba(17, 34, 79, 0.08);
}

.stack-head .subtitle {
    max-width: 64ch;
}

.section-head {
    margin-bottom: 1.6rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    max-width: 18ch;
}

.feature-grid,
.flow-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.9rem;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.mode-card {
    grid-column: span 4;
    border-radius: 1rem;
    padding: 1.3rem;
    border: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(18, 34, 80, 0.08);
}

.mode-card-manual {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
}

.mode-card-entity {
    background:
        radial-gradient(circle at top right, rgba(242, 122, 48, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 239, 0.94));
}

.mode-card-db {
    background:
        radial-gradient(circle at top right, rgba(15, 157, 138, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(243, 250, 248, 0.98), rgba(234, 248, 244, 0.95));
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
    background: rgba(17, 34, 79, 0.08);
    color: #13315f;
}

.mode-summary {
    margin-top: 0.45rem;
    margin-bottom: 0.9rem;
}

.mode-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.mode-list li {
    position: relative;
    padding-left: 1rem;
}

.mode-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--orange);
}

.mode-examples {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mode-example {
    grid-column: span 4;
    border-radius: 0.95rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
    padding: 1rem;
    box-shadow: 0 14px 32px rgba(20, 36, 82, 0.07);
}

.mode-example h3 {
    margin-bottom: 0.55rem;
}

.mode-example pre {
    margin: 0.6rem 0 0.75rem;
    border-radius: 0.72rem;
    overflow-x: auto;
    background: #f3f7ff;
    border: 1px solid var(--line);
}

.mode-example code {
    display: block;
    padding: 0.9rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: #2a355f;
    white-space: pre;
}

.mode-example p {
    color: var(--muted);
    font-size: 0.92rem;
}

.card {
    grid-column: span 4;
    border-radius: 0.85rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.94));
    padding: 1.05rem;
    transform: translateY(10px);
    opacity: 0;
    animation: rise 460ms ease forwards;
    box-shadow: 0 12px 30px rgba(23, 40, 92, 0.07);
}

.card:nth-child(2) { animation-delay: 80ms; }
.card:nth-child(3) { animation-delay: 140ms; }
.card:nth-child(4) { animation-delay: 200ms; }
.card:nth-child(5) { animation-delay: 260ms; }
.card:nth-child(6) { animation-delay: 320ms; }

.feature-grid .card:nth-child(odd) {
    transform: translateY(10px) rotate(-0.35deg);
}

.feature-grid .card:nth-child(even) {
    transform: translateY(10px) rotate(0.35deg);
}

.card h3 {
    font-size: 1.03rem;
    margin-bottom: 0.4rem;
}

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

.code-card {
    grid-column: span 4;
}

.code-card pre {
    border: 1px solid var(--line);
    border-radius: 0.62rem;
    margin: 0.8rem 0;
    background: #f3f7ff;
    overflow-x: auto;
}

.code-card code {
    display: block;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: #2a355f;
    padding: 0.9rem;
    white-space: pre;
}

.io-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
    margin-bottom: 0.25rem;
}

.io-client {
    color: #0c5f8f;
}

.io-server {
    color: #0b7a5f;
}

.io-server + pre {
    background: #edf9f4;
    border-color: rgba(15, 157, 138, 0.28);
}

.example-card {
    grid-column: span 6;
}

.capabilities-grid .card {
    grid-column: span 4;
}

.behavior-box {
    margin-top: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.62rem;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(255, 255, 255, 0.96));
    padding: 0.8rem 0.9rem;
}

.behavior-box strong {
    display: block;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a4d12;
    margin-bottom: 0.2rem;
}

.behavior-box p + strong {
    margin-top: 0.6rem;
}

.behavior-box p {
    color: var(--muted);
    font-size: 0.9rem;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 26px rgba(20, 38, 90, 0.06);
}

.api-table th,
.api-table td {
    text-align: left;
    padding: 0.76rem 0.75rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.91rem;
}

.api-table th {
    color: var(--cyan);
    font-family: var(--mono);
    font-weight: 500;
    background: rgba(15, 157, 138, 0.1);
}

.api-table tr:hover td {
    background: rgba(20, 36, 83, 0.04);
}

.shape-panel {
    position: relative;
    overflow: hidden;
    color: #f4f7ff;
    background:
        radial-gradient(circle at top left, rgba(255, 210, 134, 0.18), transparent 24%),
        radial-gradient(circle at right 10%, rgba(15, 157, 138, 0.18), transparent 26%),
        linear-gradient(135deg, #11172e 0%, #172243 38%, #243364 100%);
}

.ai-panel {
    position: relative;
    overflow: hidden;
    color: #1b2241;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 211, 138, 0.28), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(31, 119, 230, 0.18), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #eef3ff 100%);
}

.ai-panel .kicker {
    color: var(--orange);
}

.ai-pillars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}

.ai-pillar {
    grid-column: span 4;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.95));
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(20, 36, 82, 0.06);
}

.ai-pillar h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

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

.ai-economics {
    margin-top: 1.8rem;
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(20, 36, 82, 0.07);
    overflow-x: auto;
}

.ai-economics h3 {
    margin: 0 0 0.55rem;
    font-size: 1.1rem;
}

.ai-economics-caption {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 0.85rem;
    max-width: 80ch;
}

.ai-economics-footnote {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0.85rem 0 0;
    max-width: 80ch;
    font-style: italic;
}

.ai-economics-insight {
    margin-top: 1.4rem;
    padding: 1.25rem 1.4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 211, 138, 0.22), rgba(31, 119, 230, 0.12));
    border: 1px solid rgba(31, 119, 230, 0.22);
    box-shadow: 0 14px 32px rgba(20, 36, 82, 0.07);
}

.ai-economics-insight .kicker {
    color: var(--orange);
    margin: 0;
}

.ai-economics-insight h3 {
    margin: 0.4rem 0 0.65rem;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #1b2241;
}

.ai-economics-insight p {
    margin: 0;
    color: #2f3a5e;
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 80ch;
}

.ai-economics-insight em {
    font-weight: 600;
    font-style: italic;
}

.ai-economics table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ai-economics th,
.ai-economics td {
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.ai-economics th {
    color: #4b5b8a;
    font-weight: 600;
    background: rgba(244, 248, 255, 0.6);
}

.ai-economics tr:last-child td,
.ai-economics tr:last-child th {
    border-bottom: none;
}

.ai-economics td:nth-child(2) {
    color: var(--muted);
}

.ai-economics td:nth-child(3) code {
    background: #eef3ff;
    border: 1px solid var(--line);
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}

.ai-economics th small {
    display: block;
    color: rgba(75, 91, 138, 0.78);
    font-weight: 500;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.ai-economics td:nth-child(4) {
    color: #4b5b8a;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.85rem;
}

.ai-economics td:nth-child(5),
.ai-economics td:nth-child(6),
.ai-economics td:nth-child(7) {
    font-weight: 600;
    color: #1b2241;
    white-space: nowrap;
    font-size: 0.88rem;
}

.ai-economics .total-row th {
    background: linear-gradient(135deg, rgba(255, 211, 138, 0.18), rgba(31, 119, 230, 0.10));
    border-top: 2px solid rgba(31, 119, 230, 0.3);
    font-size: 0.95rem;
    color: #1b2241;
}

.ai-economics .total-row th:nth-child(2),
.ai-economics .total-row th:nth-child(3),
.ai-economics .total-row th:nth-child(4) {
    text-align: right;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.ai-bottomline {
    margin-top: 1.7rem;
    padding: 1.2rem 1.4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 211, 138, 0.18), rgba(31, 119, 230, 0.08));
    border: 1px solid var(--line);
}

.ai-bottomline h3 {
    margin: 0.3rem 0 0.6rem;
}

.ai-bottomline p {
    color: var(--muted);
    margin: 0;
}

/* Start panel — "step zero, hand AGENTS.md to your AI."
   Distinct from #ai (about *why*) and #mcp (about deeper integration);
   this is the actionable onboarding step. */

.start-panel {
    position: relative;
    overflow: hidden;
    color: #1b2241;
    background:
        radial-gradient(circle at 18% 20%, rgba(31, 119, 230, 0.18), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(60, 200, 165, 0.16), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
}

.start-panel .kicker {
    color: #1f5fbb;
}

.start-tools {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.start-tool {
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.96));
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(20, 36, 82, 0.07);
}

.start-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(31, 119, 230, 0.10);
    color: #1f5fbb;
    border: 1px solid rgba(31, 119, 230, 0.22);
    margin-bottom: 0.6rem;
}

.start-tool h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.start-tool p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0.3rem 0;
}

.start-tool pre {
    margin: 0.7rem 0;
    border-radius: 0.7rem;
    overflow-x: auto;
    background: #0e1530;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.start-tool code {
    display: block;
    padding: 0.95rem 1rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: #dfe7ff;
    white-space: pre;
}

.start-tool p code,
.start-note code {
    background: #eef3ff;
    border: 1px solid var(--line);
    color: #2a355f;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    display: inline;
    white-space: normal;
    padding: 0.05rem 0.35rem !important;
    font-size: 0.85rem !important;
}

.start-note {
    margin-top: 0.7rem !important;
    font-size: 0.86rem !important;
    line-height: 1.55;
}

.start-after {
    margin-top: 1.7rem;
    padding: 1.3rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(31, 119, 230, 0.14), rgba(60, 200, 165, 0.12));
    border: 1px solid rgba(31, 119, 230, 0.22);
}

.start-after .kicker {
    margin: 0 0 0.4rem;
}

.start-after h3 {
    margin: 0.2rem 0 0.85rem;
    color: #1b2241;
    font-size: 1.15rem;
    line-height: 1.35;
}

.start-after ul {
    margin: 0 0 0.85rem;
    padding-left: 1.25rem;
    color: #2f3a5e;
    font-size: 0.95rem;
    line-height: 1.65;
}

.start-after ul li {
    margin-bottom: 0.35rem;
}

.start-after ul strong {
    color: #1b2241;
}

.start-after ul code {
    background: #ffffff;
    border: 1px solid var(--line);
    color: #2a355f;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}

.start-after p {
    margin: 0;
    color: #2f3a5e;
    font-size: 0.96rem;
    max-width: 80ch;
}

/* MCP panel — same light family as ai-panel but with stronger orange accents
   to mark this as the discovery channel. */

.mcp-panel {
    position: relative;
    overflow: hidden;
    color: #1b2241;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 159, 64, 0.22), transparent 30%),
        radial-gradient(circle at 8% 92%, rgba(31, 119, 230, 0.16), transparent 32%),
        linear-gradient(180deg, #fff7ee 0%, #f3f6ff 100%);
}

.mcp-panel .kicker {
    color: var(--orange);
}

.mcp-configs {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mcp-config {
    position: relative;
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.95));
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(20, 36, 82, 0.07);
}

.mcp-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.55rem;
    border-radius: 0.5rem;
    background: rgba(255, 159, 64, 0.16);
    color: #b56411;
    border: 1px solid rgba(255, 159, 64, 0.3);
    margin-bottom: 0.6rem;
}

.mcp-badge-alt {
    background: rgba(31, 119, 230, 0.12);
    color: #1f5fbb;
    border-color: rgba(31, 119, 230, 0.28);
}

.mcp-config h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.mcp-config p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0.2rem 0;
}

.mcp-config pre {
    margin: 0.7rem 0;
    border-radius: 0.7rem;
    overflow-x: auto;
    background: #0e1530;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mcp-config code {
    display: block;
    padding: 0.95rem 1rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: #dfe7ff;
    white-space: pre;
}

.mcp-config p code,
.mcp-config-note code {
    background: #eef3ff;
    border: 1px solid var(--line);
    color: #2a355f;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    display: inline;
    white-space: normal;
}

.mcp-config-note {
    margin-top: 0.6rem !important;
    font-size: 0.86rem !important;
    line-height: 1.5;
}

.mcp-pillars {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.mcp-pillar {
    grid-column: span 4;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.95));
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(20, 36, 82, 0.06);
}

.mcp-pillar .kicker {
    margin: 0 0 0.4rem;
}

.mcp-pillar h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.mcp-pillar p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.55;
}

.mcp-pillar code {
    background: #eef3ff;
    border: 1px solid var(--line);
    color: #2a355f;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.82rem;
}

.mcp-bottomline {
    margin-top: 1.7rem;
    padding: 1.25rem 1.4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.22), rgba(31, 119, 230, 0.10));
    border: 1px solid rgba(255, 159, 64, 0.28);
}

.mcp-bottomline h3 {
    margin: 0.3rem 0 0.6rem;
    color: #1b2241;
}

.mcp-bottomline p {
    color: #2f3a5e;
    margin: 0;
}

.shape-panel .kicker {
    color: #ffcb8f;
}

.shape-panel .subtitle,
.shape-panel p {
    color: rgba(236, 241, 255, 0.78);
}

.shape-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.2rem;
    align-items: start;
}

.shape-copy h2 {
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    line-height: 1.05;
    max-width: 12ch;
}

.shape-note {
    margin-top: 1.15rem;
    max-width: 58ch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.shape-note strong {
    display: block;
    margin-bottom: 0.28rem;
    color: #ffe4b1;
}

.shape-artboard {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1.2rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shape-node {
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shape-node span {
    display: block;
    font-family: var(--mono);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffd9a8;
    margin-bottom: 0.25rem;
}

.shape-node strong {
    font-size: 1rem;
}

.shape-arrow {
    justify-self: center;
    color: #ffcb8f;
    font-size: 1.1rem;
}

.shape-pillar-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 1.4rem;
}

.shape-pillar {
    grid-column: span 4;
    border-radius: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.shape-pillar h3 {
    margin-bottom: 0.42rem;
}

.shape-showcase {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.shape-code {
    grid-column: span 6;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(9, 14, 33, 0.72), rgba(18, 29, 61, 0.8));
}

.shape-code pre {
    margin: 0.8rem 0;
    border-radius: 0.72rem;
    overflow-x: auto;
    background: rgba(4, 7, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shape-code code {
    display: block;
    padding: 0.95rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: #dfe7ff;
    white-space: pre;
}

.shape-drivers {
    margin-top: 1.4rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(9, 14, 33, 0.55), rgba(18, 29, 61, 0.55));
}

.shape-drivers-head h3 {
    margin: 0.3rem 0 0.4rem;
}

.shape-drivers-head p:not(.kicker) {
    color: rgba(223, 231, 255, 0.78);
    font-size: 0.95rem;
    max-width: 70ch;
    margin-bottom: 0.9rem;
}

.shape-drivers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.shape-driver {
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.85rem 0.95rem;
}

.shape-driver h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #ffd38a;
}

.shape-driver h4 span {
    color: rgba(255, 211, 138, 0.6);
    font-weight: 500;
}

.shape-driver p {
    color: rgba(223, 231, 255, 0.78);
    font-size: 0.88rem;
    margin: 0;
}

.shape-combine {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shape-combine-alt .shape-combine-head .kicker {
    color: #ffd38a;
}

.shape-combine-head {
    margin-bottom: 0.4rem;
}

.shape-combine-head h3 {
    margin: 0.3rem 0 0.5rem;
}

.shape-combine-head p:not(.kicker) {
    color: rgba(223, 231, 255, 0.78);
    font-size: 0.95rem;
    max-width: 60ch;
}

.shape-steps {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 1.4rem;
}

.shape-step {
    grid-column: span 4;
    position: relative;
    padding: 1rem 1rem 1rem 4.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.shape-step span {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), #ffd38a);
    color: #33200a;
    font-weight: 700;
}

.shape-compare {
    margin-top: 1.45rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.shape-compare > div {
    border-radius: 0.95rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.status-grid p {
    border: 1px dashed var(--line);
    border-radius: 0.65rem;
    padding: 0.58rem 0.68rem;
    font-family: var(--mono);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.status-grid strong {
    color: var(--ink);
}

.contact-copy {
    max-width: 64ch;
    color: var(--muted);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.contact-links a {
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 0.55rem 0.76rem;
    border-radius: 0.56rem;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.83rem;
    background: rgba(255, 255, 255, 0.9);
}

.contact-links a:hover {
    border-color: rgba(242, 122, 48, 0.55);
    color: #8a3506;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0 1.3rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Polyglot panel — index.html cross-stack story
   Two-column layout: shared substrate dl on the left, four-step migration on
   the right. Mobile collapses to single column. Cyan-accented numerals on
   the step list to mirror start.html's switch-block. */
.polyglot-panel {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--panel) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.polyglot-panel .subtitle code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(34, 52, 111, 0.08);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}
.polyglot-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 1.6rem;
}
.polyglot-shared h3,
.polyglot-steps h3 {
    font-size: 1.1rem;
    margin: 0 0 0.9rem;
    color: var(--ink);
}
.polyglot-list {
    margin: 0;
    display: grid;
    gap: 0.7rem;
}
.polyglot-list dt {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.94rem;
    margin: 0;
}
.polyglot-list dd {
    color: var(--muted);
    margin: 0 0 0.3rem;
    padding-left: 0.9rem;
    border-left: 2px solid var(--cyan);
    font-size: 0.92rem;
    line-height: 1.5;
}
.polyglot-list code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(34, 52, 111, 0.08);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    color: var(--ink);
}
.polyglot-step-list {
    counter-reset: poly-step;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.7rem;
}
.polyglot-step-list li {
    counter-increment: poly-step;
    position: relative;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--ink);
}
.polyglot-step-list li::before {
    content: counter(poly-step);
    position: absolute;
    left: 0.95rem;
    top: 0.85rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--cyan);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.polyglot-step-list code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(34, 52, 111, 0.08);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
}
.polyglot-cta {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 0;
}
.polyglot-cta a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--cyan);
    margin-left: 0.2rem;
}
@media (max-width: 880px) {
    .polyglot-grid {
        grid-template-columns: 1fr;
    }
}

/* Host-IP indicator — muted, monospace, sits at the very bottom of every
   page so operators can see at a glance which server delivered the bytes
   they're looking at. JS at the page bottom resolves the IP via Google
   DNS-over-HTTPS and replaces the placeholder. */
.host-ip-line {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    opacity: 0.7;
}
.host-ip-line code {
    font-family: var(--mono);
    background: rgba(34, 52, 111, 0.06);
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
}

@keyframes rise {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .card,
    .code-card {
        grid-column: span 6;
    }

    .mode-card,
    .mode-example,
    .shape-code,
    .shape-step {
        grid-column: span 12;
    }

    .shape-pillar {
        grid-column: span 6;
    }

    .ai-pillar {
        grid-column: span 6;
    }

    .mcp-pillar {
        grid-column: span 6;
    }

    .mcp-configs {
        grid-template-columns: 1fr;
    }

    .start-tools {
        grid-template-columns: 1fr;
    }

    .shape-drivers-grid {
        grid-template-columns: 1fr;
    }

    .shape-hero,
    .shape-compare {
        grid-template-columns: 1fr;
    }

    .example-card {
        grid-column: span 12;
    }

    .capabilities-grid .card {
        grid-column: span 6;
    }

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

    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .topbar .container {
        min-height: auto;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 4.4rem;
    }

    .card,
    .code-card {
        grid-column: span 12;
    }

    .shape-pillar {
        grid-column: span 12;
    }

    .ai-pillar {
        grid-column: span 12;
    }

    .mcp-pillar {
        grid-column: span 12;
    }

    .capabilities-grid .card {
        grid-column: span 12;
    }

    .api-table {
        display: block;
        overflow-x: auto;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}
