:root {
    --bg: #11100e;
    --surface: #191613;
    --surface-soft: #221d18;
    --border: #3a3140;
    --text: #efe7dc;
    --muted: #b2a699;
    --accent: #66f0ff;
    --accent-dark: #34d9ff;
    --accent-soft: #2a221b;
    --accent-secondary: #b57cff;
    --accent-hot: #ff8ec8;
    --success-bg: #1d2a20;
    --success-text: #9ec4a5;
    --danger-bg: #2a1c1a;
    --danger-text: #d0a097;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "SF Pro Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.shell {
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
}

.page-grid-space {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 4%, rgba(102, 240, 255, 0.18), transparent 30%),
        radial-gradient(circle at 48% 10%, rgba(181, 124, 255, 0.14), transparent 22%),
        radial-gradient(circle at 52% 14%, rgba(255, 142, 200, 0.1), transparent 18%),
        linear-gradient(180deg, #14110e 0%, #11100e 100%);
}

.page-grid-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.7;
}

.page-grid-glow-left {
    width: 280px;
    height: 280px;
    top: 12%;
    left: -80px;
    background: rgba(102, 240, 255, 0.24);
}

.page-grid-glow-center {
    width: 360px;
    height: 360px;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(181, 124, 255, 0.22);
}

.page-grid-glow-right {
    width: 320px;
    height: 320px;
    top: 15%;
    right: -90px;
    background: rgba(255, 142, 200, 0.2);
}

.page-grid-cubes {
    position: absolute;
    left: -18%;
    right: -18%;
    height: 92vh;
    transform-origin: center top;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.86) 44%, transparent 94%);
}

.page-grid-cubes-front {
    top: 6%;
    background-image:
        linear-gradient(30deg, rgba(132, 248, 255, 0.34) 11%, transparent 11.5%, transparent 88%, rgba(132, 248, 255, 0.34) 88.5%, rgba(132, 248, 255, 0.34)),
        linear-gradient(150deg, rgba(132, 248, 255, 0.34) 11%, transparent 11.5%, transparent 88%, rgba(132, 248, 255, 0.34) 88.5%, rgba(132, 248, 255, 0.34)),
        linear-gradient(90deg, rgba(181, 124, 255, 0.26) 2px, transparent 2px);
    background-size: 88px 50px, 88px 50px, 88px 50px;
    background-position: 0 0, 0 0, 44px 25px;
    transform: perspective(1360px) rotateX(72deg);
    opacity: 1;
    filter: drop-shadow(0 0 24px rgba(102, 240, 255, 0.24));
}

.page-grid-cubes-back {
    top: -2%;
    background-image:
        linear-gradient(30deg, rgba(255, 142, 200, 0.18) 11%, transparent 11.5%, transparent 88%, rgba(255, 142, 200, 0.18) 88.5%, rgba(255, 142, 200, 0.18)),
        linear-gradient(150deg, rgba(255, 142, 200, 0.18) 11%, transparent 11.5%, transparent 88%, rgba(255, 142, 200, 0.18) 88.5%, rgba(255, 142, 200, 0.18)),
        linear-gradient(90deg, rgba(102, 240, 255, 0.14) 1px, transparent 1px);
    background-size: 124px 72px, 124px 72px, 124px 72px;
    background-position: 0 0, 0 0, 62px 36px;
    transform: perspective(1620px) rotateX(78deg);
    opacity: 0.66;
}

.page-grid-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 16, 14, 0.02), rgba(17, 16, 14, 0.34) 52%, rgba(17, 16, 14, 0.88) 100%),
        radial-gradient(circle at 50% 18%, transparent, rgba(17, 16, 14, 0.18) 72%);
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(17, 16, 14, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-nav a {
    color: var(--muted);
    font-size: 0.95rem;
}

.top-nav a.is-active,
.top-nav a:hover {
    color: #f9f6f0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button-primary {
    background: var(--accent);
    color: #081014;
    box-shadow: 0 0 0 1px rgba(102, 240, 255, 0.22), 0 0 18px rgba(102, 240, 255, 0.18);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    background: #211c17;
    border-color: rgba(181, 124, 255, 0.5);
}

.menu-toggle,
.mobile-nav {
    display: none;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    max-width: 940px;
}

h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

h3 {
    font-size: 1.08rem;
}

.page-header {
    padding: 52px 0 22px;
}

.page-header-home {
    padding-top: 86px;
    padding-bottom: 24px;
}

.page-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 24px;
    align-items: end;
}

.page-header-main {
    display: grid;
    gap: 18px;
}

.page-header-main-wide {
    max-width: 900px;
}

.page-header-main-home {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 0 10px;
    text-align: center;
    justify-items: center;
    gap: 14px;
}

.page-header-side {
    justify-self: end;
}

.page-intro,
.section-heading p,
.panel-copy,
.plan-description,
.faq-item p,
.step-card p,
.endpoint-card p,
.prose-card p,
.footer-copy,
.footer-mail,
.inline-note,
.subscription-line,
.pricing-note-box p {
    color: var(--muted);
}

.page-intro {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
}

.side-note {
    margin: 0;
    max-width: 280px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.action-row,
.action-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-stack {
    flex-direction: column;
    align-items: stretch;
    min-width: 200px;
}

.action-row-home {
    justify-content: center;
}

.meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.meta-row-home {
    justify-content: center;
}

.meta-item {
    min-width: 180px;
}

.meta-item span,
.card-note {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

.meta-item strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    color: var(--text);
}

.section {
    padding: 24px 0 48px;
}

.section-home-sample {
    padding-top: 4px;
    padding-bottom: 36px;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(50, 43, 36, 0.8);
    border-bottom: 1px solid rgba(50, 43, 36, 0.8);
}

.section-heading {
    display: grid;
    gap: 8px;
    max-width: 680px;
    margin-bottom: 20px;
}

.panel,
.step-card,
.endpoint-card,
.plan-card,
.pricing-row,
.prose-card,
.subscription-card,
.docs-reference-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel,
.step-card,
.endpoint-card,
.plan-card,
.prose-card {
    padding: 20px;
}

.home-intro-grid,
.two-column-grid,
.account-grid,
.docs-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 18px;
    margin-top: 18px;
}

.code-panel pre {
    margin: 14px 0 0;
    padding: 18px;
    background: #14120f;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    color: var(--text);
    font-size: 0.95rem;
}

.code-panel-home {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(24, 21, 17, 0.78);
    backdrop-filter: blur(8px);
}

.code-panel-home pre {
    margin-top: 0;
    font-size: 0.94rem;
    line-height: 1.7;
}

.content-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.compact-list li {
    margin-bottom: 6px;
}

.step-grid,
.endpoint-grid,
.plan-grid,
.link-grid {
    display: grid;
    gap: 16px;
}

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

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

.plan-grid-home {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.plan-grid-home .plan-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    background: rgba(24, 21, 17, 0.72);
}

.plan-grid-home .plan-price {
    margin-top: 0;
    font-size: 1.7rem;
}

.plan-grid-home .plan-requests {
    margin: 0;
    font-size: 0.94rem;
}

.plan-grid-home .content-list {
    margin-top: 0;
}

.plan-grid-home .content-list li {
    color: var(--muted);
}

.plan-grid-home .button {
    width: 100%;
    margin-top: auto;
}

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

.endpoint-card code {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
}

.plan-price {
    margin-top: 12px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.plan-price span {
    font-size: 0.95rem;
    color: var(--muted);
}

.plan-requests {
    margin: 10px 0 0;
    font-weight: 600;
}

.inline-link-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.inline-link-list-stacked {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.inline-link-list a,
.link-card {
    color: var(--accent);
}

.inline-link-list a:hover,
.link-card:hover {
    color: #d1a8ff;
}

.hero-link-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-link-row a {
    color: #95f5ff;
}

.hero-link-row a:hover {
    color: #d1a8ff;
}

.hero-support-copy {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 0.98rem;
}

.feature-stack {
    border-top: 1px solid var(--border);
}

.feature-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.feature-section-copy,
.feature-section-list {
    display: grid;
    align-content: start;
    gap: 10px;
}

.feature-section-copy p,
.feature-section-list li {
    color: var(--muted);
}

.feature-section-list .content-list {
    margin-top: 0;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.text-link:hover {
    color: #d7aeff;
}

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

.why-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
}

.why-card p {
    margin: 0;
}

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

.more-link-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

.more-link-item:hover {
    color: var(--accent);
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pricing-table {
    display: grid;
    gap: 14px;
}

.pricing-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.75fr) minmax(220px, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.pricing-row-price {
    text-align: center;
}

.pricing-row-cta {
    min-width: 148px;
}

.pricing-note-box {
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.docs-stack {
    display: grid;
    gap: 18px;
}

.docs-reference-shell {
    overflow: hidden;
}

.docs-reference-head {
    padding: 20px 20px 0;
}

.docs-reference-shell redoc {
    display: block;
    background: #171411;
}

.status-banner {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.status-banner-success {
    background: var(--success-bg);
    border-color: #c9dbc5;
    color: var(--success-text);
}

.status-banner-error {
    background: var(--danger-bg);
    border-color: #ebc9c1;
    color: var(--danger-text);
}

.subscription-stack {
    display: grid;
    gap: 12px;
}

.subscription-card {
    padding: 18px;
}

.subscription-row,
.subscription-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.subscription-line {
    margin-top: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.86rem;
}

.prose-shell {
    max-width: 860px;
}

.prose-card h2 {
    margin-top: 0;
}

.site-footer {
    margin-top: 12px;
    padding: 28px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-title {
    margin-bottom: 8px;
    font-weight: 650;
}

.footer-bottom {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .top-nav {
        display: none;
    }

.menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 9px;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 0 16px 18px;
        border-top: 1px solid var(--border);
        background: rgba(17, 16, 14, 0.96);
    }

    .mobile-nav.is-open {
        display: flex;
    }

    .page-header-grid,
    .home-intro-grid,
    .home-support-grid,
    .two-column-grid,
    .account-grid,
    .docs-overview-grid,
    .feature-section,
    .step-grid,
    .endpoint-grid,
    .plan-grid,
    .plan-grid-home,
    .why-grid,
    .link-grid,
    .more-links-grid,
    .pricing-row {
        grid-template-columns: 1fr;
    }

    .page-header-side {
        justify-self: start;
    }

    .page-header-main-home {
        justify-items: start;
        text-align: left;
        margin: 0;
    }

    .action-row-home,
    .meta-row-home,
    .hero-link-row {
        justify-content: flex-start;
    }

    .pricing-row-price {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100vw - 24px, 1120px);
    }

    .page-header {
        padding-top: 34px;
    }

    .action-row,
    .action-stack {
        width: 100%;
    }

    .button {
        width: 100%;
    }
}
