@font-face {
    font-family: "Reservify Avant";
    src: url("../ITCAvantGardeStd-Md.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400 600;
}

@font-face {
    font-family: "Reservify Avant";
    src: url("../ITCAvantGardeStd-Bold.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 700 900;
}

:root {
    --dev-ink: #102c2d;
    --dev-deep: #082827;
    --dev-green: #0f766e;
    --dev-mint: #9de1c9;
    --dev-paper: #f4f8f6;
    --dev-line: #d9e4df;
    --dev-muted: #607370;
    --dev-code: #0b2426;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--dev-ink); background: var(--dev-paper); font-family: "Reservify Avant", "Century Gothic", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code, pre { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
[hidden] { display: none !important; }

.rv-dev-skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); color: #fff; background: var(--dev-green); }
.rv-dev-skip:focus { transform: none; }
.rv-logo-lockup { display: inline-flex; }
.rv-logo-lockup img { display: block; width: 132px; height: auto; }

.rv-dev-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 72px;
    padding: 12px clamp(20px, 4vw, 68px);
    border-bottom: 1px solid rgba(16, 44, 45, .1);
    background: rgba(244, 248, 246, .92);
    backdrop-filter: blur(18px);
}

.rv-dev-brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.rv-dev-brand > span:last-child { padding-left: 13px; border-left: 1px solid #b8c8c3; color: var(--dev-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rv-dev-header nav { display: flex; gap: 30px; }
.rv-dev-header nav a, .rv-dev-header-actions a { color: #435a58; font-size: .73rem; font-weight: 750; text-decoration: none; }
.rv-dev-header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rv-dev-header-actions a { padding: 10px 14px; border-radius: 9px; }
.rv-dev-header-actions a.is-primary { color: #fff; background: var(--dev-deep); }

.rv-dev-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
    gap: clamp(50px, 8vw, 125px);
    align-items: center;
    min-height: 680px;
    padding: 92px clamp(24px, 8vw, 150px) 110px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(157, 225, 201, .25), transparent 28%), linear-gradient(130deg, #f8fbfa, #edf5f1);
}
.rv-dev-hero::before { position: absolute; top: -210px; right: -150px; width: 520px; height: 520px; border: 1px solid rgba(15, 118, 110, .13); border-radius: 50%; content: ""; }
.rv-dev-kicker { display: inline-flex; gap: 9px; align-items: center; color: var(--dev-green); font-size: .69rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.rv-dev-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #27a47d; box-shadow: 0 0 0 5px rgba(39, 164, 125, .12); }
.rv-dev-hero h1 { margin: 22px 0 24px; max-width: 740px; font-size: clamp(3rem, 5.4vw, 6rem); line-height: .97; letter-spacing: -.064em; }
.rv-dev-hero h1 em { color: var(--dev-green); font-style: normal; }
.rv-dev-hero-copy > p { max-width: 620px; margin: 0; color: var(--dev-muted); font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.75; }
.rv-dev-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.rv-dev-button { display: inline-flex; justify-content: center; gap: 12px; align-items: center; min-height: 46px; padding: 11px 17px; border: 1px solid #afc4bd; border-radius: 10px; color: var(--dev-ink); background: transparent; font-weight: 800; text-decoration: none; cursor: pointer; }
.rv-dev-button.is-primary { border-color: var(--dev-green); color: #fff; background: var(--dev-green); box-shadow: 0 12px 30px rgba(15, 118, 110, .2); }
.rv-dev-hero-copy > ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 38px 0 0; padding: 0; list-style: none; }
.rv-dev-hero-copy > ul li { display: flex; gap: 7px; align-items: center; color: #4f6562; font-size: .67rem; font-weight: 750; }
.rv-dev-hero-copy > ul span { color: #16917e; font-size: .57rem; }

.rv-dev-hero-code, .rv-dev-signature { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: var(--dev-code); box-shadow: 0 40px 85px rgba(6, 34, 34, .23); }
.rv-dev-hero-code::before { position: absolute; inset: 9% -10% auto auto; width: 210px; height: 210px; border-radius: 50%; background: rgba(58, 202, 159, .08); filter: blur(2px); content: ""; }
.rv-dev-hero-code header, .rv-dev-signature header { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 54px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: rgba(235, 255, 248, .58); font-size: .68rem; }
.rv-dev-hero-code header > span { display: flex; gap: 5px; }
.rv-dev-hero-code header i { width: 7px; height: 7px; border-radius: 50%; background: #41605f; }
.rv-dev-hero-code header b { margin-right: auto; color: #c3d9d4; }
.rv-dev-hero-code header em { color: #79ddbc; font-style: normal; }
.rv-dev-hero-code pre, .rv-dev-signature pre { position: relative; margin: 0; padding: clamp(24px, 4vw, 44px); overflow: auto; color: #bfd2cf; font-size: clamp(.73rem, 1vw, .9rem); line-height: 1.85; }
.rv-dev-hero-code code span { color: #74d9bc; }

.rv-dev-foundations, .rv-dev-reference { padding: 100px clamp(24px, 8vw, 150px); }
.rv-dev-section-title { max-width: 790px; margin-bottom: 46px; }
.rv-dev-section-title > span { color: var(--dev-green); font-size: .66rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.rv-dev-section-title h2 { margin: 11px 0 0; font-size: clamp(2rem, 3.5vw, 3.8rem); line-height: 1.02; letter-spacing: -.05em; }
.rv-dev-section-title p { max-width: 740px; margin: 15px 0 0; color: rgba(237, 252, 247, .66); line-height: 1.65; }
.rv-dev-foundation-grid, .rv-dev-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rv-dev-foundation-grid article, .rv-dev-reference-grid article { min-width: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--dev-line); border-radius: 18px; background: rgba(255, 255, 255, .72); }
.rv-dev-foundation-grid article > span, .rv-dev-reference-grid article > span { display: inline-flex; padding: 5px 7px; border-radius: 6px; color: var(--dev-green); background: #e4f4ed; font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
.rv-dev-foundation-grid h3, .rv-dev-reference-grid h3 { margin: 28px 0 10px; font-size: 1.2rem; letter-spacing: -.025em; }
.rv-dev-foundation-grid p, .rv-dev-reference-grid p { min-height: 68px; margin: 0 0 22px; color: var(--dev-muted); font-size: .78rem; line-height: 1.65; }
.rv-dev-foundation-grid code { display: block; padding-top: 15px; border-top: 1px solid var(--dev-line); color: var(--dev-green); font-size: .7rem; }

.rv-dev-explorer { padding: 94px clamp(16px, 5vw, 90px) 110px; color: #edfcf7; background: linear-gradient(145deg, #082827, #0c3837); }
.rv-dev-section-title.is-light { margin-left: clamp(8px, 3vw, 52px); }
.rv-dev-section-title.is-light > span { color: #7adbbe; }
.rv-dev-console { display: grid; grid-template-columns: 235px minmax(360px, .9fr) minmax(340px, 1.1fr); min-height: 700px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: #f9fbfa; box-shadow: 0 36px 90px rgba(0, 14, 14, .3); }
.rv-dev-operations { padding: 22px 13px; color: #d6e9e4; background: #071e20; }
.rv-dev-operation-group { display: grid; gap: 4px; margin-bottom: 22px; }
.rv-dev-operation-group > span { padding: 0 10px 7px; color: rgba(214, 233, 228, .42); font-size: .57rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.rv-dev-operation-group button { display: grid; grid-template-columns: 48px 1fr; gap: 7px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: rgba(222, 240, 235, .66); background: transparent; font-size: .66rem; text-align: left; cursor: pointer; }
.rv-dev-operation-group button:hover, .rv-dev-operation-group button.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.rv-dev-operation-group button b, .rv-dev-request-line b { font-size: .54rem; font-weight: 900; letter-spacing: .04em; }
.is-get { color: #36b99b !important; }
.is-post { color: #78a9ff !important; }
.is-patch { color: #d6a86d !important; }
.is-delete { color: #ee8278 !important; }

.rv-dev-request { min-width: 0; padding: clamp(24px, 3vw, 38px); color: var(--dev-ink); background: #fff; }
.rv-dev-request > header { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }
.rv-dev-request > header span { color: var(--dev-green); font-family: "Cascadia Code", Consolas, monospace; font-size: .62rem; font-weight: 800; }
.rv-dev-request > header h3 { margin: 7px 0 5px; font-size: 1.45rem; letter-spacing: -.035em; }
.rv-dev-request > header p { margin: 0; color: var(--dev-muted); font-size: .73rem; line-height: 1.5; }
.rv-dev-request > header a { flex: 0 0 auto; color: var(--dev-green); font-size: .66rem; font-weight: 800; text-decoration: none; }
.rv-dev-request-line { display: flex; gap: 12px; align-items: center; margin: 26px 0 24px; padding: 13px 15px; overflow: hidden; border: 1px solid var(--dev-line); border-radius: 9px; background: #f4f8f6; }
.rv-dev-request-line code { overflow: auto; color: #3c5552; font-size: .66rem; white-space: nowrap; }
.rv-dev-request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.rv-dev-field { display: grid; min-width: 0; gap: 7px; }
.rv-dev-field.is-wide { grid-column: 1 / -1; }
.rv-dev-field > span { color: #3f5754; font-size: .65rem; font-weight: 850; }
.rv-dev-field input, .rv-dev-field textarea { width: 100%; min-width: 0; border: 1px solid #cddbd6; border-radius: 8px; outline: 0; color: #193533; background: #fbfdfc; font-family: "Cascadia Code", Consolas, monospace; font-size: .69rem; }
.rv-dev-field input { height: 42px; padding: 0 12px; }
.rv-dev-field textarea { padding: 13px; resize: vertical; line-height: 1.65; }
.rv-dev-field input:focus, .rv-dev-field textarea:focus { border-color: var(--dev-green); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.rv-dev-field small { color: #84938f; font-size: .58rem; line-height: 1.45; }
.rv-dev-field small.is-error { color: #b64c42; }
.rv-dev-secret-input, .rv-dev-inline-input { display: flex; min-width: 0; }
.rv-dev-secret-input input, .rv-dev-inline-input input { border-radius: 8px 0 0 8px; }
.rv-dev-secret-input button, .rv-dev-inline-input button { flex: 0 0 auto; padding: 0 12px; border: 1px solid #cddbd6; border-left: 0; border-radius: 0 8px 8px 0; color: var(--dev-green); background: #edf6f2; font-size: .62rem; font-weight: 850; cursor: pointer; }
.rv-dev-request-actions { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 25px; }
.rv-dev-request-actions span { max-width: 230px; color: #738682; font-size: .59rem; line-height: 1.45; text-align: right; }

.rv-dev-result { min-width: 0; color: #c8dad6; background: #0b2426; }
.rv-dev-result > nav { display: flex; min-height: 56px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rv-dev-result > nav button { padding: 0 14px; border: 0; border-bottom: 2px solid transparent; color: rgba(207, 227, 222, .48); background: transparent; font-size: .66rem; font-weight: 800; cursor: pointer; }
.rv-dev-result > nav button.is-active { border-color: #6fd5b6; color: #eafff8; }
.rv-dev-result section > header { display: flex; justify-content: space-between; gap: 15px; align-items: center; min-height: 48px; padding: 0 22px; color: rgba(202, 222, 217, .5); font-size: .62rem; }
.rv-dev-result section > header span:first-child.is-success { color: #70dbb9; }
.rv-dev-result section > header span:first-child.is-error { color: #ff968d; }
.rv-dev-result pre { max-height: 590px; margin: 0; padding: 10px 24px 28px; overflow: auto; color: #c5d6d2; font-size: .68rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-dev-language-tabs { display: flex; gap: 4px; }
.rv-dev-language-tabs button, [data-copy-snippet], [data-copy-code] { padding: 6px 8px; border: 0; border-radius: 5px; color: rgba(210, 230, 225, .55); background: transparent; font-size: .58rem; cursor: pointer; }
.rv-dev-language-tabs button.is-active { color: #9be3cb; background: rgba(111, 213, 182, .1); }

.rv-dev-reference { background: #eef4f1; }
.rv-dev-reference-grid article > span { background: #dceee7; }
.rv-dev-reference-grid pre { margin: 0; padding: 13px; overflow: auto; border-radius: 8px; color: #bce6d9; background: var(--dev-deep); font-size: .63rem; }
.rv-dev-reference-grid p code { color: var(--dev-green); }

.rv-dev-webhooks { display: grid; grid-template-columns: minmax(0, .8fr) minmax(440px, 1.2fr); gap: clamp(45px, 8vw, 120px); align-items: center; padding: 110px clamp(24px, 8vw, 150px); color: #eafaf5; background: #0b302f; }
.rv-dev-webhooks h2 { margin: 18px 0; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.rv-dev-webhooks-copy > p { max-width: 620px; color: rgba(234, 250, 245, .62); font-size: .86rem; line-height: 1.75; }
.rv-dev-webhooks-copy ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0 0; padding: 0; list-style: none; }
.rv-dev-webhooks-copy li { padding: 7px 9px; border: 1px solid rgba(137, 224, 199, .18); border-radius: 7px; color: #93e1ca; background: rgba(137, 224, 199, .06); font-size: .6rem; }
.rv-dev-signature { box-shadow: 0 35px 80px rgba(0, 12, 12, .3); }
.rv-dev-signature header button { color: #8cdcc4; background: transparent; }
.rv-dev-signature pre { font-size: .7rem; line-height: 1.75; }

.rv-dev-footer { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 34px clamp(24px, 8vw, 150px); color: #71817e; background: #061f20; }
.rv-dev-footer div, .rv-dev-footer nav { display: flex; gap: 19px; align-items: center; }
.rv-dev-footer a { color: #d7e8e3; font-size: .67rem; text-decoration: none; }
.rv-dev-footer span { font-size: .62rem; }
.rv-dev-toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 12px 15px; transform: translateY(20px); border-radius: 9px; opacity: 0; color: #fff; background: #0e5954; box-shadow: 0 15px 35px rgba(0, 0, 0, .2); font-size: .7rem; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.rv-dev-toast.is-visible { transform: none; opacity: 1; }

@media (max-width: 1180px) {
    .rv-dev-console { grid-template-columns: 210px minmax(0, 1fr); }
    .rv-dev-result { grid-column: 1 / -1; min-height: 430px; }
    .rv-dev-result pre { max-height: 430px; }
}

@media (max-width: 900px) {
    .rv-dev-header { grid-template-columns: 1fr auto; }
    .rv-dev-header nav { display: none; }
    .rv-dev-hero, .rv-dev-webhooks { grid-template-columns: 1fr; }
    .rv-dev-hero { padding-top: 70px; }
    .rv-dev-hero-code { max-width: 760px; }
    .rv-dev-foundation-grid, .rv-dev-reference-grid { grid-template-columns: 1fr; }
    .rv-dev-foundation-grid p, .rv-dev-reference-grid p { min-height: 0; }
}

@media (max-width: 680px) {
    .rv-dev-header { min-height: 64px; padding: 10px 16px; }
    .rv-logo-lockup img { width: 108px; }
    .rv-dev-brand > span:last-child { display: none; }
    .rv-dev-header-actions a:first-child { display: none; }
    .rv-dev-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 62px 20px 75px; }
    .rv-dev-hero h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
    .rv-dev-hero-copy > ul { display: grid; }
    .rv-dev-foundations, .rv-dev-reference { padding: 74px 20px; }
    .rv-dev-explorer { padding: 72px 12px 80px; }
    .rv-dev-section-title.is-light { margin-left: 8px; }
    .rv-dev-console { display: block; border-radius: 15px; }
    .rv-dev-operations { display: flex; gap: 7px; padding: 12px; overflow-x: auto; }
    .rv-dev-operation-group { display: contents; }
    .rv-dev-operation-group > span { display: none; }
    .rv-dev-operation-group button { display: flex; flex: 0 0 auto; width: auto; min-height: 39px; padding: 8px 10px; }
    .rv-dev-operation-group button span { white-space: nowrap; }
    .rv-dev-request { padding: 23px 17px; }
    .rv-dev-request > header { display: grid; }
    .rv-dev-request-grid { grid-template-columns: 1fr; }
    .rv-dev-field.is-wide { grid-column: 1; }
    .rv-dev-request-actions { align-items: stretch; flex-direction: column; }
    .rv-dev-request-actions span { max-width: none; text-align: left; }
    .rv-dev-result { min-height: 390px; }
    .rv-dev-result pre { max-height: 360px; padding-inline: 17px; }
    .rv-dev-webhooks { grid-template-columns: minmax(0, 1fr); padding: 78px 20px; }
    .rv-dev-signature { min-width: 0; }
    .rv-dev-footer { align-items: flex-start; flex-direction: column; padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
