/* OLYMPUS STYLE GUIDE VARIABLES */
:root {
    --color-teal: #024C61;       /* Darker Aegean = more premium */
    --color-copper: #C57A42;     /* Brighter, more metallic copper */
    --color-dark-bg: #0B1218;    /* Deeper, calmer obsidian base */
    --color-text-light: #E6E6E6; /* Slightly brighter marble white */
    --font-header: 'Oxanium', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.page-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3em 2em;
}



/* Logo hover animation */
.main-header img[alt="Olympus Logo"] {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), filter 0.3s;
}
.main-header img[alt="Olympus Logo"]:hover {
    transform: rotate(4deg) scale(1.08);
    filter: drop-shadow(0 0 24px var(--color-copper)) drop-shadow(0 0 32px var(--color-shadow-dark));
}
.main-header {
    background: rgba(2, 76, 97, 0.25); /* subtle Aegean glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 122, 66, 0.4); /* copper hint */
    padding: 1.4em 2em;
    border-radius: 20px;
    max-width: 1100px;
    margin: 2.2em auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Consistent icon style */
.api-icon {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.3em;
    filter: drop-shadow(0 0 4px var(--color-copper));
}

/* Floating Back to Top button */
#backToTop {
    position: fixed;
    bottom: 2.5em;
    right: 2.5em;
    background: linear-gradient(120deg, var(--color-copper) 0%, #D2B48C 100%);
    color: var(--color-dark-bg); /* CORRECTED */
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.7em;
    box-shadow: 0 0 18px rgba(184, 115, 51, 0.5);
    cursor: pointer;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    opacity: 0.85;
}
#backToTop:hover {
    background: linear-gradient(120deg, #D2B48C 0%, var(--color-copper) 100%);
    box-shadow: 0 0 32px var(--color-copper);
    opacity: 1;
}

/* BASE & BACKGROUND STYLING */
html, body { height: 100%; min-height: 100%; }
body {
    background: linear-gradient(120deg, var(--color-dark-bg) 0%, var(--color-teal) 100%); 
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite;
    font-family: var(--font-body);
    color: var(--color-text-light); /* CORRECTED */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#magic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}
/* Dark Toggle */
.dark-toggle {
    position: fixed;
    top: 2em;
    right: 2em;
    background: linear-gradient(120deg, var(--color-copper) 0%, #D2B48C 100%);
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: var(--color-dark-bg); /* CORRECTED */
    box-shadow: 0 0 24px rgba(184, 115, 51, 0.7), 0 0 32px rgba(44, 62, 80, 0.5);
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 100;
    outline: none;
    animation: floatLogo 4s ease-in-out infinite alternate;
}
.dark-toggle:hover {
    background: linear-gradient(120deg, #D2B48C 0%, var(--color-copper) 100%);
    box-shadow: 0 0 48px rgba(44, 62, 80, 0.7), 0 0 32px rgba(184, 115, 51, 0.5);
}
/* MAIN CONTENT CONTAINER */
.swagger-container {
    position: relative;
    background: rgba(16, 24, 32, 0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    padding: 2.5em 2em 2em 2em;
    max-width: 900px;
    margin: 1.5em auto 2.5em auto;
    z-index: 2;
    border: 3px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    /* Border Gradient: Teal, Shadow, Copper */
    background-image: linear-gradient(var(--color-dark-bg), var(--color-dark-bg)), linear-gradient(120deg, var(--color-teal), var(--color-shadow-dark), var(--color-copper)); /* CORRECTED */
    background-size: 100% 100%, 300% 300%;
    animation: borderMove 8s linear infinite;
    box-shadow: 0 0 30px 5px rgba(184, 115, 51, 0.5), 0 0 15px 5px rgba(0,0,0,0.4);
}
@keyframes borderMove {
    0% { background-position: 0 0, 0% 50%; }
    50% { background-position: 0 0, 100% 50%; }
    100% { background-position: 0 0, 0% 50%; }
}
/* HERO TITLE */
.hero-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-header);
    font-size: 2.7em;
    font-weight: 700;
    color: var(--color-copper);
    margin-bottom: 0.2em;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    filter: drop-shadow(0 0 16px var(--color-copper)) drop-shadow(0 0 32px var(--color-shadow-dark));
    animation: heroGlow 3.5s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { filter: drop-shadow(0 0 8px var(--color-copper)) drop-shadow(0 0 12px var(--color-shadow-dark)); }
    100% { filter: drop-shadow(0 0 32px var(--color-copper)) drop-shadow(0 0 48px var(--color-dark-bg)); } /* CORRECTED */
}
/* HEADER & NAVIGATION */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-shadow-dark);
    color: var(--color-text-light); /* CORRECTED */
    border-radius: 16px;
    padding: 1.2em 1.5em;
    margin: 2.5em auto 2em auto;
    max-width: 900px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
    position: relative;
    z-index: 3;
    border: 1.5px solid rgba(44, 62, 80, 0.5);
}
.main-header h1 {
    font-size: 2.1em;
    letter-spacing: 0.08em;
    color: var(--color-copper);
    font-family: var(--font-header);
}

.nav-link {
    color: var(--color-text-light) !important;
    border-radius: 6px;
    font-size:1.05em;
    font-weight: 600;
    padding: 0.55em 1.2em;
    font-family: var(--font-body);
    transition: 0.2s ease;
}

.nav-link:hover {
    color: var(--color-copper) !important;
    background: rgba(197, 122, 66, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-copper), var(--color-shadow-dark), var(--color-teal));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), background 0.4s;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}
.nav-link:hover, .nav-link.active {
    background: rgba(0, 79, 111, 0.2);
    color: var(--color-copper) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.nav-home:hover, .nav-api:hover, .nav-demo:hover { color: var(--color-copper) !important; }
/* MARKDOWN BODY STYLING */
.swagger-container h1, .swagger-container h2, .swagger-container h3, .swagger-container h4 {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--color-copper);
    margin-top: 2.2em;
    margin-bottom: 0.7em;
    letter-spacing: 0.5px;
}
.swagger-container h1 { font-size: 2.2em; margin-top: 0.5em; }
.swagger-container h2 { font-size: 1.5em; }
.swagger-container h3 { font-size: 1.18em; }
.swagger-container p, .swagger-container ul, .swagger-container ol {
    font-size: 1.13em;
    color: var(--color-text-light); /* CORRECTED */
    font-weight: 400;
    margin-bottom: 1.1em;
    font-family: var(--font-body);
}
.swagger-container code, .swagger-container pre {
    background: #101010;
    color: #87CEEB;
    border-radius: 6px;
    padding: 0.2em 0.5em;
    font-size: 1em;
    font-family: 'Fira Mono', 'Consolas', monospace;
}
.swagger-container pre {
    display: block;
    padding: 1em;
    overflow-x: auto;
    margin: 1.2em 0;
    background: #101010;
    color: #87CEEB;
}
.swagger-container table { background: var(--color-dark-bg); } /* CORRECTED */
.swagger-container th, .swagger-container td {
    border: 1px solid var(--color-shadow-dark);
    padding: 0.7em 0.5em;
    text-align: left;
    color: var(--color-text-light); /* CORRECTED */
}
.swagger-container th {
    background: var(--color-shadow-dark);
    color: var(--color-copper);
    font-weight: 700;
}
.swagger-container tr:nth-child(even) { background: #181818; }
.swagger-container blockquote {
    border-left: 4px solid var(--color-teal);
    background: var(--color-shadow-dark);
    color: var(--color-text-light); /* CORRECTED */
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    border-radius: 6px;
}
.swagger-container hr {
    border: none;
    border-top: 2px solid var(--color-shadow-dark);
    margin: 2.5em 0 2em 0;
}
.swagger-container .tip, .swagger-container .note, .swagger-container .usage {
    background: #181818;
    border-left: 4px solid var(--color-copper);
    color: var(--color-text-light); /* CORRECTED */
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    border-radius: 6px;
    font-size: 1.08em;
    font-weight: 600;
}
.swagger-container .usage { border-left: 4px solid var(--color-teal); }
.swagger-container .error { border-left: 4px solid #c62828; background: #331A1A; color: #E53935; }
/* Endpoint style */
.endpoint-url {
    display: inline-block;
    background: var(--color-shadow-dark);
    color: var(--color-copper);
    border-radius: 5px;
    font-family: var(--font-header);
    font-size: 0.98em;
    font-weight: 700;
    padding: 0.18em 0.7em 0.18em 0.7em;
    margin: 0 0.2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.endpoint-url:hover {
    background: var(--color-copper);
    color: var(--color-dark-bg); /* CORRECTED */
}
.endpoint-path {
    color: var(--color-teal);
    font-weight: 800;
    margin-left: 0.2em;
}
/* Dark mode adjustments */
.dark-mode body { background: linear-gradient(120deg, #0A0A0A 0%, #000000 100%); }
.dark-mode .swagger-container { background: #0A0A0A; }
.dark-mode .swagger-container code,
.dark-mode .swagger-container pre { background: #000000; }
.dark-mode pre code[class*="language-"] { background: #000000 !important; }
@media (max-width: 900px) {
    .swagger-container { padding: 1.2em 0.5em; }
    .main-header { flex-direction: column; text-align: center; }
    .main-header nav { margin-top: 1em; }
    .nav-link { margin-left: 0.5em; margin-right: 0.5em; padding: 0.3em 0.8em; }
}

/* ================================
   OLYMPUS OVERVIEW PAGE LAYOUT
   ================================ */

.overview-page {
    max-width: 1200px;
    margin: 0 auto 4em;
    padding: 0 1.5em 4em;
    position: relative;
    z-index: 2;
}

/* HERO */

.overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 2.8em 2.6em;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(197, 122, 66, 0.18), transparent 60%),
        rgba(8, 16, 24, 0.96);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 32px rgba(184, 115, 51, 0.35);
    border: 1px solid rgba(197, 122, 66, 0.4);
}

/* Re-use your header font + copper palette */

.hero-copy {
    max-width: 640px;
}

.hero-eyebrow {
    font-family: var(--font-header);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.9em;
    color: rgba(230, 230, 230, 0.76);
    margin: 0 0 0.7em;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 2.6em;
    font-weight: 700;
    color: var(--color-copper);
    margin: 0 0 0.5em;
    letter-spacing: 0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.08em;
    line-height: 1.7;
    color: rgba(230, 230, 230, 0.9);
    margin: 0 0 1.5em;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8em;
}

.hero-bullets li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.5em;
    font-size: 0.98em;
    color: rgba(230, 230, 230, 0.92);
}

.hero-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background: var(--color-copper);
    box-shadow: 0 0 10px rgba(197, 122, 66, 0.9);
}

/* CTAs */

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    align-items: center;
    margin-bottom: 1.2em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.6em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98em;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.18s;
    gap: 0.4em;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(120deg, var(--color-copper), #d2b48c);
    color: var(--color-dark-bg);
    box-shadow:
        0 8px 26px rgba(184, 115, 51, 0.7),
        0 0 18px rgba(197, 122, 66, 0.9);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 32px rgba(184, 115, 51, 0.85),
        0 0 24px rgba(197, 122, 66, 1);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-light);
    border-color: rgba(197, 122, 66, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.btn-ghost:hover {
    background: rgba(0, 79, 111, 0.4);
    border-color: var(--color-copper);
}

.btn-arrow {
    font-size: 1.1em;
}

.hero-footnote {
    font-size: 0.85em;
    color: rgba(230, 230, 230, 0.7);
}

/* HERO RIGHT PANEL */

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.hero-panel-card {
    background: radial-gradient(circle at top right, rgba(2, 76, 97, 0.65), rgba(5, 10, 16, 0.98));
    border-radius: 20px;
    padding: 1.4em 1.6em;
    border: 1px solid rgba(197, 122, 66, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.hero-panel-card h2,
.hero-panel-card h3 {
    margin: 0 0 0.9em;
    font-family: var(--font-header);
    color: var(--color-copper);
    font-size: 1.25em;
}

.metrics-list {
    margin: 0 0 1.1em;
    padding: 0;
}

.metrics-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4em;
    gap: 1em;
}

.metrics-list dt {
    font-size: 0.86em;
    color: rgba(230, 230, 230, 0.75);
}

.metrics-list dd {
    margin: 0;
    font-weight: 600;
    font-size: 0.98em;
    color: var(--color-text-light);
}

.panel-caption {
    margin: 0;
    font-size: 0.8em;
    color: rgba(230, 230, 230, 0.65);
}

.hero-panel-secondary {
    background: rgba(5, 10, 16, 0.96);
}

.designed-for {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.designed-for li + li {
    margin-top: 0.4em;
}

/* SECTIONS */

.section-block {
    margin-top: 3.5em;
}

.section-header {
    max-width: 720px;
    margin-bottom: 2em;
}

.section-header h2 {
    font-family: var(--font-header);
    font-size: 1.7em;
    color: var(--color-copper);
    margin-bottom: 0.4em;
}

.section-header p {
    margin: 0;
    font-size: 1.01em;
    color: rgba(230, 230, 230, 0.85);
}

/* Features grid */

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

.feature-card {
    background: rgba(5, 10, 16, 0.96);
    border-radius: 18px;
    padding: 1.4em 1.5em 1.5em;
    border: 1px solid rgba(23, 36, 48, 0.9);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.feature-card h3 {
    font-family: var(--font-header);
    font-size: 1.15em;
    margin: 0 0 0.6em;
    color: var(--color-copper);
}

.feature-card p {
    margin: 0;
    font-size: 0.98em;
    color: rgba(230, 230, 230, 0.86);
}

/* Split section */

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: flex-start;
}

.section-copy p {
    font-size: 1.01em;
    color: rgba(230, 230, 230, 0.86);
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 1.2em 0 0;
    font-size: 0.97em;
}

.list-check li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.6em;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05em;
    font-size: 0.9em;
    color: var(--color-copper);
}

/* Code card */

.code-card {
    background: rgba(5, 10, 16, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(197, 122, 66, 0.45);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8);
    padding: 1.2em 1.2em 1.4em;
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6em;
    font-size: 0.82em;
}

.pill {
    padding: 0.3em 0.8em;
    border-radius: 999px;
    background: rgba(2, 76, 97, 0.7);
    border: 1px solid rgba(197, 122, 66, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.code-lang {
    color: rgba(230, 230, 230, 0.65);
}

.code-card pre {
    margin: 0.2em 0 0.6em;
}

.code-caption {
    margin: 0;
    font-size: 0.8em;
    color: rgba(230, 230, 230, 0.7);
}

/* Footer CTA */

.section-footer-cta .footer-cta-inner {
    border-radius: 22px;
    padding: 2em 2.4em;
    background:
        linear-gradient(120deg, rgba(197, 122, 66, 0.16), rgba(2, 76, 97, 0.6));
    border: 1px solid rgba(197, 122, 66, 0.7);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    gap: 2.2em;
    align-items: center;
}

.section-footer-cta h2 {
    margin: 0 0 0.4em;
    font-family: var(--font-header);
    font-size: 1.6em;
    color: var(--color-copper);
}

.section-footer-cta p {
    margin: 0;
    font-size: 0.98em;
    color: rgba(230, 230, 230, 0.88);
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
    justify-content: flex-end;
}

/* Responsive */

@media (max-width: 1024px) {
    .overview-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.2em 1.5em;
    }

    .hero-panel {
        order: -1;
    }

    .section-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-footer-cta .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .overview-page {
        padding: 0 1em 3em;
    }

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

    .overview-hero {
        border-radius: 18px;
    }
}

/* ================================
   API EXPLORER & REFERENCE
   ================================ */

.api-explorer-page .swagger-container {
    margin-top: 2.5em;
}

/* Explorer hero uses the same grid feel as main hero, slightly tighter */
.explorer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: flex-start;
    padding: 2.2em 2.3em;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(197, 122, 66, 0.18), transparent 55%),
        rgba(8, 16, 24, 0.96);
    border: 1px solid rgba(197, 122, 66, 0.45);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.75),
        0 0 24px rgba(184, 115, 51, 0.4);
}

.explorer-hero-copy .explorer-hero-note {
    font-size: 0.9em;
    color: rgba(230, 230, 230, 0.75);
    margin-top: 0.8em;
}

.explorer-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.explorer-hero-card {
    background: rgba(5, 10, 16, 0.96);
    border-radius: 18px;
    padding: 1.3em 1.4em;
    border: 1px solid rgba(23, 36, 48, 0.9);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
}

.explorer-hero-card h2 {
    margin: 0 0 0.7em;
    font-family: var(--font-header);
    font-size: 1.2em;
    color: var(--color-copper);
}

.explorer-flow {
    margin: 0 0 0.8em;
    padding-left: 1.4em;
    font-size: 0.95em;
    color: rgba(230, 230, 230, 0.9);
}

/* Swagger / explorer sections (Olympus theme) */

.api-explorer .swagger-section {
    margin-bottom: 1.4em;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 48, 0.9);
    background: rgba(5, 10, 16, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

.api-explorer .swagger-header {
    padding: 0.9em 1.2em;
    cursor: pointer;
    background: rgba(15, 26, 36, 0.95);
    font-size: 0.98em;
    font-weight: 600;
    color: var(--color-copper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.18s, color 0.18s;
}

.api-explorer .swagger-header:hover {
    background: rgba(23, 40, 56, 0.98);
}

.api-explorer .method {
    font-size: 0.8em;
    font-weight: 800;
    padding: 0.15em 0.6em;
    border-radius: 999px;
    margin-right: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-copper);
    color: var(--color-dark-bg);
}

.api-explorer .method.get {
    background: #1976d2;
    color: #f5f5f5;
}
.api-explorer .method.post {
    background: #388e3c;
    color: #f5f5f5;
}

.api-explorer .swagger-toggle {
    font-size: 1.1em;
    color: rgba(230, 230, 230, 0.85);
    margin-left: 1em;
}

.api-explorer .swagger-body {
    display: none;
    padding: 1.1em 1.4em 1.4em;
    border-top: 1px solid rgba(23, 36, 48, 0.9);
}

.api-explorer .swagger-body.active {
    display: block;
}

.api-explorer .swagger-desc {
    font-size: 0.96em;
    color: rgba(230, 230, 230, 0.88);
    margin-bottom: 1em;
}

.api-explorer .swagger-inputs label {
    font-weight: 600;
    color: var(--color-copper);
    display: block;
    margin-bottom: 0.25em;
    font-size: 0.88em;
}

.api-explorer .swagger-inputs input[type="text"] {
    width: 100%;
    padding: 0.65em 0.75em;
    border-radius: 8px;
    border: 1px solid rgba(23, 36, 48, 0.95);
    background: #0c141b;
    color: var(--color-text-light);
    font-size: 0.95em;
    margin-bottom: 0.9em;
}

.api-explorer .swagger-inputs button {
    background: linear-gradient(120deg, var(--color-copper), #d2b48c);
    color: var(--color-dark-bg);
    border: none;
    border-radius: 999px;
    padding: 0.6em 1.6em;
    font-size: 0.96em;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
    box-shadow: 0 6px 18px rgba(184, 115, 51, 0.65);
}

.api-explorer .swagger-inputs button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(184, 115, 51, 0.9);
}

.api-explorer .swagger-response {
    margin-top: 1em;
    background: #05080c;
    border-radius: 10px;
    border: 1px solid rgba(23, 36, 48, 0.9);
    padding: 0.9em;
    max-height: 360px;
    overflow: auto;
    font-size: 0.9em;
}

.explorer-status {
    color: var(--color-copper);
    font-size: 0.9em;
}

.explorer-error {
    color: #e53935;
    font-size: 0.9em;
}

/* Responsive for explorer */
@media (max-width: 1024px) {
    .explorer-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.9em 1.6em;
    }

    .explorer-hero-panel {
        order: -1;
    }
}


/* Base hero layout for all top-of-page sections */
.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 2.8em 2.6em;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(197, 122, 66, 0.18), transparent 60%),
        rgba(8, 16, 24, 0.96);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 32px rgba(184, 115, 51, 0.35);
    border: 1px solid rgba(197, 122, 66, 0.4);
}

.explorer-hero { /* API explorer */
    /* if you want slightly less padding, override here */
    padding: 2.2em 2.3em;
}

.api-ref-hero { /* docs hero */
    max-width: 720px;
    padding: 0;       /* usually just text, no grid card */
}

.api-ref-hero .hero-title {
    font-size: 2.2em;
}