:root {
    color-scheme: light;
    --ink: #172024;
    --muted: #53606a;
    --line: #d9e0e5;
    --paper: #f7f9fb;
    --white: #ffffff;
    --night: #111820;
    --teal: #08a092;
    --blue: #2468d8;
    --amber: #d6921e;
    --violet: #7258d8;
    --rose: #c64d65;
    --shadow: 0 18px 60px rgba(16, 24, 32, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    border-radius: 8px;
}

.site-nav {
    gap: clamp(12px, 3vw, 26px);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
}

.nav-buy-button {
    padding: 8px 12px;
    color: var(--white);
    font-weight: 750;
    background: var(--blue);
    border-radius: 8px;
}

.site-nav .nav-buy-button:hover {
    color: var(--white);
}

.hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--night);
    color: var(--white);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 32, 0.76);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
    gap: clamp(30px, 5vw, 58px);
    align-items: center;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 88px 0 112px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.section h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.08;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
}

.positioning-line {
    max-width: 620px;
    margin: 0 0 18px;
    color: #f0f6f8;
    font-size: 1.02rem;
    font-weight: 760;
}

.hero-copy {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d9e5ea;
    font-size: 1.16rem;
}

.hero-copy-secondary {
    margin-top: 14px;
    font-size: 1.02rem;
}

.hero-note {
    margin: 16px 0 0;
    color: #b9c9d0;
    font-size: 0.94rem;
}

.hero-demo-frame {
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-demo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center top;
    background: #eef4f6;
}

.hero-demo-frame figcaption {
    padding: 12px 14px 14px;
    color: #d9e5ea;
    font-weight: 700;
}

.hero-actions,
.button {
    display: flex;
    align-items: center;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 44px;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: var(--white);
    background: var(--blue);
}

.button.secondary {
    color: var(--ink);
    background: var(--white);
}

.button.ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.button.is-disabled,
.button.is-disabled:hover {
    color: #66737c;
    background: #d8e0e5;
    border-color: #c8d1d8;
    cursor: not-allowed;
    transform: none;
}

.button.full {
    width: 100%;
}

.download-card .button + .button {
    margin-top: 10px;
}

.section {
    padding: clamp(58px, 9vw, 96px) clamp(18px, 4vw, 56px);
}

.section-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.intro-band {
    padding-top: 36px;
    padding-bottom: 36px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.early-access {
    background: #eef4f6;
    border-bottom: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
}

.split p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.early-access-copy {
    display: grid;
    gap: 10px;
}

.early-access-copy p {
    margin: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.section-heading {
    max-width: 790px;
    margin-bottom: 28px;
}

.section-heading > p:not(.eyebrow) {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.section h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.feature-grid,
.benefit-grid,
.audience-grid,
.screenshot-grid,
.example-grid,
.faq-list {
    display: grid;
    gap: 16px;
}

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

.feature-card,
.benefit-card,
.audience-grid article,
.trust-card,
.story-card,
.roadmap-card,
.download-card,
.faq-list article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(16, 24, 32, 0.06);
}

.benefits,
.credibility {
    background: var(--white);
}

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

.benefit-card,
.audience-grid article {
    min-height: 175px;
    padding: 22px;
}

.benefit-card {
    border-top: 4px solid var(--blue);
}

.benefit-card:nth-child(2) {
    border-top-color: var(--amber);
}

.benefit-card:nth-child(3) {
    border-top-color: var(--violet);
}

.benefit-card:nth-child(4) {
    border-top-color: var(--teal);
}

.benefit-card.wide {
    grid-column: span 4;
    min-height: 120px;
    border-top-color: var(--rose);
}

.benefit-card h3,
.audience-grid h3,
.trust-card h2,
.roadmap-card h2 {
    margin: 0 0 8px;
}

.benefit-card p,
.audience-grid p,
.story-card p,
.roadmap-list span {
    margin: 0;
    color: var(--muted);
}

.audience {
    background: #eef4f6;
}

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

.feature-card {
    min-height: 215px;
    padding: 22px;
    border-top: 4px solid var(--teal);
}

.feature-card:nth-child(2) {
    border-top-color: var(--blue);
}

.feature-card:nth-child(3) {
    border-top-color: var(--amber);
}

.feature-card:nth-child(4) {
    border-top-color: var(--rose);
}

.feature-card:nth-child(5) {
    border-top-color: var(--violet);
}

.feature-card:nth-child(6) {
    border-top-color: var(--teal);
}

.feature-card.wide {
    grid-column: span 3;
    min-height: 130px;
}

.feature-kicker {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card h3,
.faq-list h3 {
    margin: 9px 0 8px;
    font-size: 1.22rem;
}

.feature-card p,
.faq-list p,
.download-note {
    margin: 0;
    color: var(--muted);
}

.showcase,
.download {
    background: var(--white);
}

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

.screenshot-card {
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.screenshot-card-featured {
    grid-column: span 2;
}

.screenshot-card img,
.screenshot-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.screenshot-card img {
    height: auto;
    object-fit: contain;
    background: #eef4f6;
}

.screenshot-fallback {
    display: grid;
    place-items: center;
    padding: 22px;
    color: #dce7eb;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        #1f2a31;
    background-size: 22px 22px;
}

.screenshot-card figcaption {
    min-height: 64px;
    padding: 14px 16px 16px;
    color: var(--muted);
    font-weight: 650;
}

.examples {
    background: #eef4f6;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.use-case-grid article {
    min-height: 150px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(16, 24, 32, 0.06);
}

.use-case-grid h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.use-case-grid p {
    margin: 0;
    color: var(--muted);
}

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

.example-pill {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    color: var(--ink);
    font: 650 0.96rem Consolas, "Cascadia Mono", monospace;
    text-align: left;
    overflow-wrap: anywhere;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.example-pill:hover,
.example-pill:focus-visible {
    border-color: var(--blue);
    outline: none;
}

.copy-status {
    min-height: 24px;
    margin: 16px 0 0;
    color: var(--muted);
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 44px;
    align-items: center;
}

.download-panel p {
    color: var(--muted);
    font-size: 1.04rem;
}

.download-card {
    padding: 22px;
    box-shadow: var(--shadow);
}

.download-card dl {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.download-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.download-card dt {
    color: var(--muted);
}

.download-card dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
}

.download-note {
    margin-top: 14px;
    font-size: 0.92rem;
}

.credibility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.75fr);
    gap: 16px;
    align-items: stretch;
}

.trust-card {
    grid-row: span 2;
    padding: 24px;
}

.story-card,
.roadmap-card {
    padding: 22px;
}

.story-card p:last-child {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 650;
}

.trust-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.trust-list li {
    padding-left: 26px;
    position: relative;
}

.trust-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 900;
}

.roadmap-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.roadmap-list div {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.roadmap-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.notes-grid article {
    min-height: 170px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.notes-grid h3 {
    margin: 0 0 8px;
}

.notes-grid p {
    margin: 0;
    color: var(--muted);
}

.internal-links {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-links a {
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
    background: #eef4f6;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quick-links a:hover,
.quick-links a:focus-visible {
    border-color: var(--blue);
    outline: none;
}

.limitation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

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

.faq-list article {
    padding: 20px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px clamp(18px, 4vw, 56px);
    color: #d9e5ea;
    background: var(--night);
}

.site-footer div {
    display: flex;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #d9e5ea;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.page-main {
    padding: clamp(46px, 8vw, 84px) clamp(18px, 4vw, 56px);
}

.page-content {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
}

.page-content h2 {
    margin-top: 34px;
}

.page-content p,
.page-content li {
    color: var(--muted);
}

.page-content a {
    color: var(--blue);
}

.notice-box {
    padding: 16px;
    background: #eef4f6;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.docs-main {
    background: var(--paper);
}

.docs-hero {
    padding: clamp(58px, 9vw, 96px) clamp(18px, 4vw, 56px);
    color: var(--white);
    background:
        linear-gradient(rgba(17, 24, 32, 0.88), rgba(17, 24, 32, 0.9)),
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        var(--night);
    background-size: auto, 34px 34px, 34px 34px, auto;
}

.docs-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.08;
}

.docs-lede {
    max-width: 720px;
    margin: 22px 0 0;
    color: #d9e5ea;
    font-size: 1.12rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.docs-hero .breadcrumbs {
    color: #d9e5ea;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--teal);
}

.breadcrumbs a::after {
    content: "/";
    margin-left: 8px;
    color: #9aa7af;
}

.docs-section {
    background: var(--paper);
}

.docs-foundation {
    background: var(--white);
    border-top: 1px solid var(--line);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.doc-card {
    display: block;
    min-height: 190px;
    padding: 22px;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 34px rgba(16, 24, 32, 0.06);
}

.doc-card:hover,
.doc-card:focus-visible {
    border-color: var(--blue);
    outline: none;
    transform: translateY(-1px);
}

.doc-card h3 {
    margin: 9px 0 8px;
    font-size: 1.22rem;
}

.doc-card p {
    margin: 0;
    color: var(--muted);
}

.doc-article h1 {
    max-width: 760px;
}

.doc-article h2 {
    color: var(--ink);
}

.doc-article code {
    padding: 0.08rem 0.24rem;
    color: var(--ink);
    background: #eef4f6;
    border-radius: 4px;
}

.code-block {
    margin: 14px 0 18px;
    padding: 16px;
    overflow-x: auto;
    color: #e8f2f0;
    background: var(--night);
    border-radius: 8px;
}

.code-block code {
    padding: 0;
    color: inherit;
    background: transparent;
    border-radius: 0;
    font: 650 0.95rem Consolas, "Cascadia Mono", monospace;
}

.doc-callout {
    margin: 24px 0;
    padding: 18px;
    background: #eef4f6;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
}

.doc-callout h2 {
    margin-top: 0;
}

.function-summary {
    max-width: 720px;
    font-size: 1.08rem;
}

.argument-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
}

.argument-table th,
.argument-table td {
    padding: 12px;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--line);
}

.argument-table th {
    color: var(--ink);
    background: #eef4f6;
}

.example-stack {
    display: grid;
    gap: 14px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.related-links a {
    padding: 9px 12px;
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
    background: #eef4f6;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.related-links a:hover,
.related-links a:focus-visible {
    border-color: var(--blue);
    outline: none;
}

.reference-category-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 900px) {
    .site-header,
    .site-footer,
    .split,
    .download-panel,
    .hero-content,
    .credibility-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-grid,
    .benefit-grid,
    .audience-grid,
    .docs-grid,
    .screenshot-grid,
    .use-case-grid,
    .example-grid,
    .notes-grid,
    .limitation-list,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .feature-card.wide {
        grid-column: span 1;
    }

    .benefit-card.wide {
        grid-column: span 1;
    }

    .trust-card {
        grid-row: auto;
    }

    .screenshot-card-featured {
        grid-column: span 1;
    }

    .download-panel {
        display: grid;
    }
}

@media (max-width: 560px) {
    .site-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
    }

    .hero::after {
        background: rgba(17, 24, 32, 0.84);
    }

    .hero-content {
        padding: 58px 0 70px;
    }

    .hero-actions .button {
        width: 100%;
    }
}
