:root {
    --ink: #102438;
    --muted: #536578;
    --soft: #708295;
    --paper: #f7f7f2;
    --card: #ffffff;
    --line: #d9e2de;
    --line-strong: #c6d3ce;
    --brand: #1967be;
    --brand-dark: #102469;
    --brand-ink: #dfecf7;
    --accent: #5ecab7;
    --accent-soft: #eef8f5;
    --success: #198860;
    --hero: #1f6877;
    --hero-glow: rgba(94, 202, 183, 0.24);
    --shadow-sm: 0 14px 34px rgba(16, 36, 56, 0.07);
    --shadow-md: 0 24px 56px rgba(16, 36, 56, 0.09);
    --shadow-lg: 0 34px 90px rgba(16, 36, 56, 0.13);
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 5px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(94, 202, 183, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(23, 124, 121, 0.1), transparent 22%),
        linear-gradient(180deg, #fcfdfb 0%, var(--paper) 100%);
}

a {
    color: var(--brand);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(198, 211, 206, 0.72);
    background: rgb(186 210 255 / 30%);
    backdrop-filter: blur(16px);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand__mark {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    box-shadow: 0 0 0 6px rgba(23, 124, 121, 0.1);
}

.brand__version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-left: auto;
}

.topbar__nav a {
    color: var(--soft);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible,
.toc a:hover,
.toc a:focus-visible,
.doc-card__link:hover,
.doc-card__link:focus-visible {
    color: var(--brand);
}

.topbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--brand-dark);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(17, 92, 96, 0.18);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 24px 44px;
    color: #f7fbff;
    background: radial-gradient(circle at top right, var(--hero-glow), transparent 28%), radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.14), transparent 24%), linear-gradient(160deg, #2a7283 0%, #4f97a1 52%, #86c0ba 100%);
    background: radial-gradient(circle at top right, var(--hero-glow), transparent 28%), radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.14), transparent 24%), linear-gradient(160deg, #2a5783 0%, #4f7da1 52%, #86afc0 100%);
}

.hero__fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.62;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -56% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 64%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__inner--home {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--brand-ink);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

h1 {
    margin: 0;
    max-width: 740px;
    font-size: clamp(2.4rem, 4.8vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(245, 251, 252, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero__actions--split {
    align-items: flex-start;
    justify-content: space-between;
}

.hero__actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__actions-group--right {
    margin-left: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(245, 251, 252, 0.3);
    background: rgba(250, 255, 254, 0.08);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover,
.button:focus-visible {
    border-color: rgba(245, 251, 252, 0.56);
    background: rgba(250, 255, 254, 0.14);
}

.button--primary {
    border-color: #ffffff;
    background: #fffdf9;
    color: var(--brand-dark);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #eef0f8;
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(245, 251, 249, 0.16);
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .hero__fx {
        display: none;
    }
}

.hero-panel__eyebrow {
    margin: 0;
    color: var(--brand-ink);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-panel h2 {
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: 1.28rem;
    letter-spacing: -0.03em;
}

.hero-panel p,
.hero-panel li {
    color: rgba(243, 250, 251, 0.9);
}

.hero-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-list li {
    position: relative;
    padding-left: 18px;
}

.hero-list li strong {
    color: #ffffff;
}

.hero-list li span {
    color: rgba(223, 236, 247, 0.86);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 10%;
    background: linear-gradient(135deg, #dff7f2 0%, var(--accent) 100%);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-metric {
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(247, 252, 251, 0.12);
}

.hero-metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-metric span {
    display: block;
    margin-top: 6px;
    color: rgba(234, 243, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.45;
}

.layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}

.landing {
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 18px 64px;
}

.landing__section + .landing__section {
    margin-top: 24px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--muted);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.doc-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-grid--secondary {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.doc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fffcf8 100%);
    box-shadow: var(--shadow-sm);
}

.doc-card--spotlight {
    background: radial-gradient(circle at top right, rgba(94, 202, 183, 0.16), transparent 34%), linear-gradient(180deg, #fffefc 0%, #f4fbf8 100%);
    background: radial-gradient(circle at top right, rgb(127 94 202 / 5%), transparent 34%), linear-gradient(180deg, #fffefc 0%, #f4f9fb 100%);
}

.doc-card--outline {
    background: linear-gradient(180deg, #f9fbf8 0%, #ffffff 100%);
    border-style: dashed;
}

.doc-card__eyebrow {
    margin: 0 0 4px;
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.doc-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

@font-face {
    font-family: "PartnerDocsIcons";
    src: url("./assets/fonts/fontawesome-webfont.woff") format("woff"),
         url("./assets/fonts/fontawesome-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.doc-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ecf3fb 0%, #f8fbff 100%);
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px rgba(25, 103, 190, 0.08), 0 8px 18px rgba(25, 103, 190, 0.08);
}

.doc-icon {
    display: inline-block;
    font-family: "PartnerDocsIcons";
    font-size: 18px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.doc-icon--book::before {
    content: "\f02d";
}

.doc-icon--code::before {
    content: "\f121";
}

.doc-icon--webhook::before {
    content: "\f1d9";
}

.doc-icon--openapi::before {
    content: "\f1c9";
}

.doc-icon--postman::before {
    content: "\f0c5";
}

.doc-card__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.doc-card h2,
.doc-card h3 {
    margin: 0 0 14px;
    letter-spacing: -0.035em;
    color: #483d8b;
}

.doc-card__summary {
    color: var(--muted);
}

.doc-card p {
    margin-top: 0;
}

.doc-card ul,
.doc-card ol {
    margin: 0 0 6px;
    padding-left: 18px;
}

.doc-card li + li {
    margin-top: 8px;
}

.doc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.doc-card__link::after {
    content: "→";
}

.doc-card__link::after {
    content: "\2192";
}

.toc {
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 250, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.toc h2 {
    margin: 0 0 14px;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.toc a {
    display: block;
    margin-top: 10px;
    color: var(--soft);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 140ms ease, transform 140ms ease;
}

.toc a.is-active {
    color: var(--brand-dark);
    transform: translateX(-9px);
    text-decoration: underline;
    font-weight: 700;
    background-color: #a3c7ff36;
    padding: 2px 9px 6px;
    border-radius: 5px;
}

.content {
    display: grid;
    gap: 18px;
}

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 250, 0.96);
    box-shadow: var(--shadow-sm);
}

.card--accent {
    border-color: rgb(23 80 124 / 18%);
    background: radial-gradient(circle at top right, rgb(94 140 202 / 14%), transparent 32%), linear-gradient(180deg, #f7fcf9 0%, #fffdfa 100%);
}

h2,
h3 {
    margin-top: 0;
}

p,
li {
    line-height: 1.72;
    color: var(--ink);
}

pre {
    position: relative;
    overflow-x: auto;
    padding: 18px;
    border: 1px solid rgba(147, 170, 167, 0.18);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, #17313f 0%, #20485a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #e9f3ff;
}

code {
    font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
}

p code,
li code,
td code,
th code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #edf6f2;
    color: var(--ink);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.band-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 250, 0.94);
    box-shadow: var(--shadow-sm);
}

pre code {
    white-space: pre-wrap;
    word-break: break-word;
}

.code-copy {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(233, 243, 255, 0.18);
    border-radius: 999px;
    background: rgba(9, 26, 38, 0.72);
    color: #f3f9ff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.code-copy::before {
    content: "\f0c5";
    font-family: "PartnerDocsIcons";
    font-size: 13px;
    line-height: 1;
}

pre:hover .code-copy,
pre:focus-within .code-copy,
.code-copy:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.code-copy:hover,
.code-copy:focus-visible {
    border-color: rgba(233, 243, 255, 0.42);
    background: rgba(16, 45, 68, 0.88);
}

.code-copy.is-copied {
    border-color: rgba(94, 202, 183, 0.55);
    background: rgba(16, 68, 58, 0.92);
    color: #eafff9;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ecf3fb 0%, #f8fbff 100%);
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px rgba(25, 103, 190, 0.08), 0 8px 18px rgba(25, 103, 190, 0.08);
}

.section-title__icon .doc-icon {
    font-size: 17px;
}

.asset-note {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(25, 103, 190, 0.12);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f4f9ff 0%, #fcfffe 100%);
    color: var(--muted);
}

.asset-note strong {
    color: var(--ink);
}

.integration-note {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid rgba(25, 103, 190, 0.18);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f4f9ff 0%, #fbfffe 100%);
    color: var(--muted);
}

.integration-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.98rem;
}

.integration-note p {
    margin: 0;
}

.integration-note p + p {
    margin-top: 10px;
}

.band-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.band-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

@media (max-width: 1080px) {
    .hero__inner--home,
    .doc-grid,
    .doc-grid--home,
    .doc-grid--secondary,
    .hero-meta,
    .home-band {
        grid-template-columns: 1fr;
    }

    .topbar__inner {
        flex-wrap: wrap;
    }

    .topbar__nav {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        top: auto;
    }
}

@media (max-width: 720px) {
    .hero,
    .landing,
    .layout,
    .topbar__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .button,
    .topbar__cta {
        width: 100%;
    }

    .code-copy {
        opacity: 1;
        transform: translateY(0);
    }

    .hero__actions {
        align-items: stretch;
    }
}
