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

:root {
    --bg: #08101b;
    --bg-soft: #101927;
    --panel: rgba(11, 20, 33, 0.82);
    --panel-strong: rgba(15, 25, 40, 0.94);
    --text: #f7fbff;
    --muted: #9eaec0;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #f59e42;
    --accent-strong: #ff7f32;
    --accent-alt: #79d2ff;
    --success: #6ef0b2;
    --danger: #ff8d8d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #07101a 0%, #09131f 45%, #060d15 100%);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

code,
pre {
    font-family: "IBM Plex Mono", monospace;
}

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

.page-grid-space {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.page-grid-haze {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(121, 210, 255, 0.14), transparent 26%),
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(7, 16, 26, 0.15) 0%, rgba(7, 16, 26, 0.58) 46%, rgba(5, 11, 19, 0.92) 100%);
    z-index: -2;
}

.page-grid-plane {
    position: absolute;
    inset: 14% -25% -42%;
    background:
        linear-gradient(rgba(121, 210, 255, 0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(121, 210, 255, 0.2) 2px, transparent 2px);
    background-size: 84px 84px;
    transform-origin: center top;
    transform: perspective(1280px) rotateX(79deg);
    opacity: 0.62;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.84) 38%, transparent 88%);
}

.page-grid-plane-back {
    inset: 8% -32% -46%;
    background:
        linear-gradient(rgba(245, 158, 66, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 66, 0.1) 1px, transparent 1px);
    background-size: 120px 120px;
    transform: perspective(1500px) rotateX(82deg);
    opacity: 0.34;
}

.page-grid-horizon {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 26%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    box-shadow: 0 0 28px rgba(121, 210, 255, 0.24);
    opacity: 0.9;
}

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

.page-grid-glow-a {
    width: 360px;
    height: 360px;
    top: 8%;
    left: -90px;
    background: rgba(121, 210, 255, 0.16);
}

.page-grid-glow-b {
    width: 420px;
    height: 420px;
    top: 10%;
    right: -120px;
    background: rgba(245, 158, 66, 0.14);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(7, 14, 23, 0.72);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    box-shadow: 0 0 0 7px rgba(121, 210, 255, 0.06);
}

.brand-text,
h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

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

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

.top-nav a.is-active,
.top-nav a:hover {
    color: var(--text);
}

.nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

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

.nav-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #140b06;
    font-weight: 600;
}

.nav-button-subtle,
.button-secondary {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
    color: var(--text);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #160c06;
    font-weight: 700;
}

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

.hero {
    padding: 80px 0 42px;
}

.hero-small {
    padding-bottom: 14px;
}

.hero-grid,
.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.hero-grid-odds {
    align-items: start;
}

.hero-shell {
    min-height: 460px;
    align-items: start;
    padding-top: 22px;
}

.hero-home {
    padding-top: 110px;
    padding-bottom: 56px;
}

.hero-stack {
    display: grid;
    gap: 34px;
}

.hero-simple,
.docs-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-alt);
}

h1 {
    margin: 0;
    font-size: clamp(2.65rem, 5vw, 4.5rem);
    line-height: 1.01;
}

.hero-small h1 {
    font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.hero-text,
.section-copy,
.plan-description,
.account-copy,
.faq-card p,
.feature-card p,
.prose-card p,
.pricing-note {
    color: var(--muted);
}

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

.metric-card,
.feature-card,
.faq-card,
.plan-card,
.step-card,
.endpoint-card,
.docs-overview-card,
.pricing-row,
.list-panel,
.text-panel,
.inline-panel,
.account-card,
.prose-card,
.docs-sidecard,
.docs-reference-shell,
.sample-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-panel {
    display: grid;
    gap: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.hero-meta-item {
    min-width: 160px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta-item span {
    display: block;
    color: var(--accent-alt);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-example {
    max-width: none;
    margin-left: 0;
    padding: 24px 26px 22px;
    border-radius: 28px;
    border: 1px solid rgba(121, 210, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 18, 30, 0.9), rgba(8, 15, 25, 0.74)),
        radial-gradient(circle at top right, rgba(121, 210, 255, 0.1), transparent 32%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero-copy-vertical {
    max-width: 780px;
}

.hero-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.hero-showcase-copy {
    max-width: 360px;
    padding-top: 12px;
}

.hero-showcase-copy h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.35rem);
    line-height: 1.08;
}

.hero-example-label {
    margin-bottom: 12px;
    color: var(--accent-alt);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-example pre {
    margin: 0;
    padding: 0;
    color: #f7fbff;
    font-size: 1.03rem;
    line-height: 1.85;
    white-space: pre-wrap;
    text-shadow: 0 0 16px rgba(121, 210, 255, 0.18);
}

.hero-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
}

.hero-inline-links a {
    color: #dcecff;
    font-size: 0.95rem;
}

.hero-inline-links a:hover {
    color: var(--accent);
}

.code-window {
    background: rgba(8, 14, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.code-window-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 0.82rem;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.window-dots span:nth-child(1) { background: #ff6d7e; }
.window-dots span:nth-child(2) { background: #ffd166; }
.window-dots span:nth-child(3) { background: #6ef0b2; }

.code-window pre {
    margin: 0;
    padding: 16px 18px 20px;
    overflow-x: auto;
    color: #dcecff;
    font-size: 0.9rem;
}

.sample-card {
    padding: 18px 20px;
}

.sample-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--muted);
}

.sample-card-tight {
    max-width: 420px;
}

.sample-list,
.bullet-list,
.feature-list,
.step-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

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

.section {
    padding: 34px 0 56px;
}

.section-tight {
    padding-top: 4px;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.feature-grid,
.faq-grid,
.plan-grid,
.link-grid,
.step-grid,
.endpoint-grid {
    display: grid;
    gap: 18px;
}

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

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

.feature-grid-wide {
    margin-bottom: 18px;
}

.feature-card,
.faq-card {
    padding: 24px;
}

.step-card,
.endpoint-card,
.docs-overview-card {
    padding: 24px;
}

.step-card,
.endpoint-card,
.pricing-row-clean,
.docs-overview-card,
.page-hero-card {
    background: linear-gradient(180deg, rgba(15, 24, 39, 0.9), rgba(11, 19, 31, 0.82));
    border-color: rgba(255, 255, 255, 0.1);
}

.step-label {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(121, 210, 255, 0.1);
    color: var(--accent-alt);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.endpoint-card code {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #dcecff;
}

.endpoint-card h3,
.step-card h3,
.docs-overview-card h2 {
    margin-bottom: 8px;
}

.feature-eyebrow {
    color: var(--accent);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.reveal-card {
    animation: rise-in 0.7s ease both;
}

.reveal-card:nth-child(2) { animation-delay: 0.06s; }
.reveal-card:nth-child(3) { animation-delay: 0.12s; }

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.split-grid,
.account-grid,
.coverage-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.list-panel,
.text-panel,
.inline-panel,
.account-card,
.prose-card,
.docs-sidecard {
    padding: 22px;
}

.plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.plan-card-clean {
    background:
        linear-gradient(180deg, rgba(16, 27, 44, 0.96), rgba(12, 20, 33, 0.88));
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.plan-card-clean:hover,
.pricing-row-clean:hover,
.endpoint-card-clean:hover,
.step-card:hover,
.docs-overview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(121, 210, 255, 0.2);
}

.plan-card-highlight {
    background:
        radial-gradient(circle at top right, rgba(121, 210, 255, 0.18), transparent 36%),
        rgba(16, 27, 44, 0.95);
    border-color: rgba(121, 210, 255, 0.28);
}

.plan-card-accent {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 66, 0.18), transparent 34%),
        rgba(16, 27, 44, 0.95);
}

.plan-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-alt);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-card h2,
.plan-card h3 {
    margin: 16px 0 10px;
}

.plan-price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.3rem;
    line-height: 1;
}

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

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

.feature-list li,
.bullet-list li,
.sample-list li,
.step-list li {
    margin-bottom: 8px;
    color: var(--muted);
}

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

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

.link-stack {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.link-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: #e9f4ff;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.link-card:hover {
    border-color: rgba(245, 158, 66, 0.4);
    transform: translateY(-2px);
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.docs-layout-stack {
    grid-template-columns: minmax(0, 1fr);
}

.docs-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 18px;
}

.docs-hero-simple {
    align-items: end;
}

.section-heading-compact {
    margin-bottom: 10px;
}

.page-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: end;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.page-hero-main {
    max-width: 760px;
}

.page-hero-side {
    justify-self: end;
    max-width: 300px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-alt);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.docs-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 14px;
}

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

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

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

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

.reference-frame {
    border-radius: 24px;
}

.docs-window pre {
    min-height: 160px;
}

.pricing-note {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.95rem;
}

.pricing-note-box {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}

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

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

.pricing-row-clean {
    border-radius: 24px;
}

.pricing-row .plan-badge {
    margin-bottom: 10px;
}

.pricing-row-main h2,
.pricing-row-main p,
.pricing-row-features .feature-list {
    margin-top: 8px;
    margin-bottom: 0;
}

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

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

.coverage-layout-simple {
    margin-top: 24px;
}

.docs-actions-stack {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.docs-overview-card-strong {
    background:
        linear-gradient(180deg, rgba(18, 29, 46, 0.96), rgba(12, 20, 32, 0.88)),
        radial-gradient(circle at top right, rgba(121, 210, 255, 0.08), transparent 34%);
}

.docs-overview-card-soft {
    background: linear-gradient(180deg, rgba(12, 20, 32, 0.86), rgba(10, 17, 27, 0.8));
}

.endpoint-card-clean code {
    background: rgba(121, 210, 255, 0.08);
    border: 1px solid rgba(121, 210, 255, 0.14);
}

.inline-note {
    margin: 14px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.status-banner-success {
    background: rgba(110, 240, 178, 0.08);
    border-color: rgba(110, 240, 178, 0.2);
    color: var(--success);
}

.status-banner-error {
    background: rgba(255, 141, 141, 0.08);
    border-color: rgba(255, 141, 141, 0.2);
    color: var(--danger);
}

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

.subscription-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

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

.subscription-line {
    color: var(--muted);
    margin-top: 8px;
}

.status-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-alt);
}

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

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

.site-footer {
    padding: 28px 0 32px;
    border-top: 1px solid var(--border);
    background: rgba(6, 11, 18, 0.3);
}

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

.footer-grid {
    align-items: start;
}

.footer-title {
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
}

.footer-copy,
.footer-mail,
.footer-links a,
.footer-bottom {
    color: var(--muted);
}

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

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

    .menu-toggle {
        display: inline-flex;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        color: var(--text);
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 0 16px 18px;
    }

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

    .hero-grid,
    .hero-shell,
    .hero-showcase,
    .feature-grid,
    .step-grid,
    .endpoint-grid,
    .split-grid,
    .coverage-layout,
    .account-grid,
    .docs-layout,
    .docs-overview-grid,
    .link-grid,
    .page-hero-card,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .step-grid-docs,
    .plan-grid-condensed,
    .pricing-row {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }

    .hero-simple,
    .docs-hero {
        flex-direction: column;
        align-items: start;
    }

    .hero-example {
        margin-left: 0;
        max-width: none;
        padding-top: 0;
    }

    .page-hero-side,
    .docs-actions-stack {
        justify-self: start;
        justify-items: start;
        max-width: none;
    }
}

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

    .hero {
        padding-top: 56px;
    }

    .hero-home {
        padding-top: 74px;
    }

    .plan-price {
        font-size: 2.1rem;
    }

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

    .hero-showcase-copy h2 {
        font-size: 1.5rem;
    }

    .button,
    .nav-button {
        width: 100%;
    }
}
