/* ------------------------------------------------------------------ */
/*  RustOpus docs — Hermes-style landing theme.                        */
/*  Used by index.html (full landing) and swagger.html (hero band      */
/*  only). Swagger UI itself keeps its stock look from swagger-ui.css. */
/* ------------------------------------------------------------------ */

:root {
    --ko-blue: #0038E8;
    --ko-blue-deep: #002bb4;
    --cream: #F5F2E9;
    --card: #FDFCF8;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --serif: "Didot", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
}

body.landing {
    margin: 0;
    background: var(--ko-blue);
    color: var(--cream);
    font-family: var(--mono);
}

/* ------------------------------- hero ---------------------------- */

/* full-width blue band, used on swagger.html where the body is light */
.hero-band {
    background: var(--ko-blue);
    color: var(--cream);
    font-family: var(--mono);
}

.hero {
    max-width: 1420px;
    margin: 0 auto;
    padding: 64px 20px 8px;
    position: relative;
}

/* decorative XML sample floating on the hero's empty right half,
   echoing the "it's all about XML" idea (content mirrors example.xml) */
.hero-xml {
    position: absolute;
    top: 170px;
    right: 40px;
    pointer-events: none;
    user-select: none;
}

.hero-xml .terminal-label {
    margin-bottom: 16px;
}

.hero-xml pre {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(14px, 1.4vw, 20px);
    line-height: 1.75;
    color: rgba(255, 255, 255, .55);
    border-left: 1px solid rgba(255, 255, 255, .35);
    padding-left: 26px;
}

@media (max-width: 1100px) {
    .hero-xml {
        display: none;
    }
}

.hero-logo {
    display: block;
    margin-bottom: 32px;
}

.hero-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    opacity: .85;
}

.hero-kicker a {
    color: #fff;
    text-decoration: none;
}

.hero-kicker a:hover {
    text-decoration: underline;
}

.hero-title {
    margin: 26px 0 22px;
    font-family: var(--serif);
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    font-size: clamp(46px, 8vw, 104px);
    line-height: .95;
    letter-spacing: .01em;
}

.hero-sub {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero-hint {
    margin: 0;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .7;
}

.hero-hint a {
    color: #fff;
}

.hero--compact {
    padding-bottom: 28px;
}

.hero--compact .hero-title {
    font-size: clamp(38px, 5vw, 64px);
}

/* ------------------------------ ctas ------------------------------ */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 44px;
}

.cta {
    display: inline-block;
    background: var(--cream);
    color: var(--ko-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 26px;
    border: 1px solid var(--cream);
    border-radius: 2px;
}

.cta:hover {
    background: #fff;
}

.cta--ghost {
    background: transparent;
    color: var(--cream);
}

.cta--ghost:hover {
    background: rgba(255, 255, 255, .08);
}

/* ---------------------------- terminal ---------------------------- */

.terminal-label {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .8;
}

.terminal {
    background: var(--card);
    border-radius: 2px;
    padding: 16px 20px;
    max-width: 720px;
    overflow-x: auto;
}

.terminal code {
    color: var(--ko-blue);
    font-family: var(--mono);
    font-size: 13px;
    white-space: nowrap;
}

/* ---------------------------- features ---------------------------- */

.features {
    max-width: 1420px;
    margin: 0 auto;
    padding: 56px 20px 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 48px;
}

.feature {
    border-top: 1px solid rgba(255, 255, 255, .35);
    padding-top: 22px;
}

.feature-no {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .8;
}

.feature h2 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
}

.beta-tag {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .25em;
    color: var(--cream);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 2px;
    padding: 4px 8px 3px;
    position: relative;
    top: -4px;
}

.feature p {
    margin: 0;
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: .12em;
}

.feature code {
    background: rgba(255, 255, 255, .12);
    padding: 2px 6px;
    border-radius: 2px;
    color: #fff;
    text-transform: none;
}

/* ---------------------------- endpoints --------------------------- */

.endpoints {
    max-width: 1420px;
    margin: 0 auto;
    padding: 56px 20px 0;
}

.endpoint-strip {
    margin: 0;
    font-size: 13px;
    line-height: 2.2;
    letter-spacing: .06em;
}

.endpoint-strip a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.endpoint-strip a:hover {
    border-bottom-color: #fff;
}

/* ----------------------------- footer ----------------------------- */

.colophon {
    padding: 56px 20px 44px;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--cream);
}

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

.colophon a:hover {
    text-decoration: underline;
}

/* on the light swagger page the footer sits on #fafafa */
body.swagger-page .colophon {
    color: #3b4151;
}
