/* ========================================================================
   DOCUMENTATION PAGE — AEO-OPTIMIZED
   All classes prefixed with doc- to avoid collisions.
   Font: Quicksand only.
   Aesthetic: Knowledge hub — authoritative, scannable, answer-first.
   ======================================================================== */

:root {
    --doc-font: 'Quicksand', sans-serif;
    --doc-dark: #0f172a;
    --doc-dark-lighter: #1e293b;
    --doc-light-blue: #dbeafe;
    --doc-surface: #f6f7fc;
    --doc-white: #ffffff;
    --doc-ink: #1e1e2f;
    --doc-muted: #94a3b8;
    --doc-primary: #1c91e4;
    --doc-secondary: #4fbefe;
    --doc-accent: #ff6f3c;
    --doc-border-accent: rgba(28, 145, 228, 0.25);
}

body {
    background: var(--doc-dark);
}

.header-nav-link,
.mobile-menu-btn {
    color: #ffffff;
}

.mobile-nav {
    background: var(--doc-dark);
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover {
    color: #ffffff;
}


html {
    scroll-behavior: smooth;
}


/* SCROLL-MARGIN FOR ANCHOR LINKS (clears sticky TOC) */

.doc-section,
.doc-faq {
    scroll-margin-top: 80px;
}


/* GRADIENT TEXT */

.doc-gradient-text {
    background: linear-gradient(135deg, var(--doc-primary), var(--doc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ========================================================================
   HERO SECTION
   ======================================================================== */

.doc-hero {
    background: linear-gradient(135deg, var(--doc-dark) 0%, #0c1929 50%, var(--doc-dark) 100%);
    padding: 100px 25px 50px 25px;
    text-align: center;
    font-family: var(--doc-font);
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(28, 145, 228, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.doc-hero .doc-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}

.doc-hero .doc-hero__inner .doc-hero__badge {
    display: inline-block;
    padding: 6px 25px;
    border: 1px solid rgba(28, 145, 228, 0.4);
    border-radius: 50px;
    color: var(--doc-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: rgba(28, 145, 228, 0.06);
}

.doc-hero .doc-hero__inner .doc-hero__headline {
    font-size: 36px;
    font-weight: 700;
    color: var(--doc-white);
    line-height: 1.15;
    margin: 0 0 25px 0;
}

.doc-hero .doc-hero__inner .doc-hero__subheadline {
    font-size: 17px;
    font-weight: 400;
    color: var(--doc-muted);
    line-height: 1.7;
    margin: 0;
}


/* ========================================================================
   TABLE OF CONTENTS — HORIZONTAL NAV
   ======================================================================== */

.doc-toc {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 25px;
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: var(--doc-font);
}

.doc-toc .doc-toc__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.doc-toc .doc-toc__inner .doc-toc__link {
    display: inline-block;
    padding: 6px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.doc-toc .doc-toc__inner .doc-toc__link:hover {
    background: var(--doc-light-blue);
    border-color: var(--doc-primary);
    color: var(--doc-primary);
}


/* ========================================================================
   CONTENT SECTIONS
   ======================================================================== */

/* CSS COUNTER FOR SECTION NUMBERING */

main {
    counter-reset: doc-section-counter;
}

.doc-section {
    padding: 50px 25px;
    font-family: var(--doc-font);
    position: relative;
    z-index: 1;
    counter-increment: doc-section-counter;
}

.doc-section .doc-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

.doc-section .doc-section__inner .doc-section__heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--doc-ink);
    margin: 0 0 25px 0;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.doc-section .doc-section__inner .doc-section__heading::before {
    content: counter(doc-section-counter, decimal-leading-zero);
    font-size: 14px;
    font-weight: 700;
    color: var(--doc-primary);
    opacity: 0.5;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.doc-section .doc-section__inner .doc-section__lead {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 25px 0;
    border-left: 3px solid var(--doc-primary);
    padding-left: 25px;
    font-weight: 500;
}

.doc-section .doc-section__inner .doc-section__body {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 25px 0;
}

.doc-section .doc-section__inner .doc-section__body p {
    margin: 0 0 25px 0;
}

.doc-section .doc-section__inner .doc-section__body p:last-child {
    margin-bottom: 0;
}

.doc-section .doc-section__inner .doc-section__body strong {
    color: var(--doc-ink);
    font-weight: 700;
}

.doc-section .doc-section__inner .doc-section__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-section .doc-section__inner .doc-section__body ul:last-child {
    margin-bottom: 0;
}

.doc-section .doc-section__inner .doc-section__body ul li {
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.doc-section .doc-section__inner .doc-section__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--doc-primary);
    opacity: 0.6;
}


/* FEATURE CARDS */

.doc-section .doc-section__inner .doc-features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.doc-section .doc-section__inner .doc-features .doc-feature {
    flex: 1 1 250px;
    background: var(--doc-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-section .doc-section__inner .doc-features .doc-feature:hover {
    border-color: var(--doc-primary);
    box-shadow: 0 4px 12px rgba(28, 145, 228, 0.08);
}

.doc-section .doc-section__inner .doc-features .doc-feature .doc-feature__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--doc-ink);
    margin: 0 0 10px 0;
}

.doc-section .doc-section__inner .doc-features .doc-feature .doc-feature__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}


/* SECTION BACKGROUND ALTERNATION */

.doc-bg--0 {
    background: transparent;
}

.doc-bg--1 {
    background: var(--doc-light-blue);
}

.doc-bg--2 {
    background: var(--doc-white);
}

.doc-bg--3 {
    background: var(--doc-surface);
}

.doc-bg--4 {
    background: transparent;
}

.doc-bg--5 {
    background: var(--doc-light-blue);
}

.doc-bg--6 {
    background: var(--doc-white);
}

.doc-bg--7 {
    background: var(--doc-surface);
}

.doc-bg--8 {
    background: transparent;
}

.doc-bg--9 {
    background: var(--doc-light-blue);
}


/* TRANSPARENT BACKGROUND FEATURE CARD OVERRIDES */

.doc-bg--0 .doc-section__inner .doc-features .doc-feature,
.doc-bg--4 .doc-section__inner .doc-features .doc-feature,
.doc-bg--8 .doc-section__inner .doc-features .doc-feature {
    background: var(--doc-surface);
}


/* WHITE BACKGROUND FEATURE CARD OVERRIDES — need contrast against white */

.doc-bg--2 .doc-section__inner .doc-features .doc-feature,
.doc-bg--6 .doc-section__inner .doc-features .doc-feature {
    background: var(--doc-surface);
    border-color: #d1d9e6;
}


/* ========================================================================
   WAVE DIVIDERS
   ======================================================================== */

.doc-bg--1::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23dbeafe' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--3::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f7fc' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--5::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23dbeafe' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--7::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f7fc' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--9::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23dbeafe' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--2::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--4::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--6::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.doc-bg--8::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,60 C360,100 720,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}


/* ========================================================================
   FAQ SECTION — NATIVE <details>/<summary>
   ======================================================================== */

.doc-faq {
    background: var(--doc-white);
    padding: 50px 25px;
    font-family: var(--doc-font);
    position: relative;
    z-index: 1;
}

.doc-faq .doc-faq__inner {
    max-width: 800px;
    margin: 0 auto;
}

.doc-faq .doc-faq__inner .doc-faq__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--doc-ink);
    margin: 0 0 10px 0;
    text-align: center;
}

.doc-faq .doc-faq__inner .doc-faq__subtitle {
    font-size: 16px;
    color: #475569;
    margin: 0 0 50px 0;
    text-align: center;
    line-height: 1.6;
}

.doc-faq .doc-faq__inner .doc-faq__item {
    border-bottom: 1px solid #e2e8f0;
}

.doc-faq .doc-faq__inner .doc-faq__item summary {
    padding: 25px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--doc-ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    transition: color 0.2s ease;
}

.doc-faq .doc-faq__inner .doc-faq__item summary::-webkit-details-marker {
    display: none;
}

.doc-faq .doc-faq__inner .doc-faq__item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--doc-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.doc-faq .doc-faq__inner .doc-faq__item[open] summary::after {
    content: '\2212';
    color: var(--doc-primary);
}

.doc-faq .doc-faq__inner .doc-faq__item summary:hover {
    color: var(--doc-primary);
}

.doc-faq .doc-faq__inner .doc-faq__item .doc-faq__answer {
    padding: 0 0 25px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}


/* ========================================================================
   CTA SECTION
   ======================================================================== */

.doc-cta {
    background: linear-gradient(135deg, var(--doc-dark) 0%, #0c1929 50%, var(--doc-dark) 100%);
    padding: 100px 25px;
    font-family: var(--doc-font);
    position: relative;
    z-index: 1;
    text-align: center;
    overflow: hidden;
}

.doc-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(28, 145, 228, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.doc-cta .doc-cta__inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.doc-cta .doc-cta__inner .doc-cta__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--doc-white);
    margin: 0 0 10px 0;
}

.doc-cta .doc-cta__inner .doc-cta__subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--doc-muted);
    margin: 0 0 50px 0;
}

.doc-cta .doc-cta__inner .doc-cta__button {
    display: inline-block;
    padding: 14px 50px;
    background: var(--doc-accent);
    color: var(--doc-white);
    font-family: var(--doc-font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.doc-cta .doc-cta__inner .doc-cta__button:hover {
    background: #e5633a;
    transform: translateY(-2px);
}


/* ========================================================================
   SCROLL ANIMATIONS
   ======================================================================== */

.doc-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.doc-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================================================
   RESPONSIVE — TABLET (768px)
   ======================================================================== */

@media (min-width: 768px) {

    .doc-hero {
        padding: 120px 25px 50px 25px;
    }

    .doc-hero .doc-hero__inner .doc-hero__headline {
        font-size: 48px;
    }

    .doc-section .doc-section__inner .doc-section__heading {
        font-size: 28px;
    }

    .doc-faq .doc-faq__inner .doc-faq__title {
        font-size: 32px;
    }

    .doc-cta .doc-cta__inner .doc-cta__title {
        font-size: 32px;
    }

}


/* ========================================================================
   RESPONSIVE — DESKTOP (1024px)
   ======================================================================== */

@media (min-width: 1024px) {

    .doc-hero {
        padding: 150px 50px 50px 50px;
    }

    .doc-hero .doc-hero__inner .doc-hero__headline {
        font-size: 56px;
    }

    .doc-section {
        padding: 50px 50px;
    }

    .doc-faq {
        padding: 50px 50px;
    }

    .doc-cta {
        padding: 100px 50px;
    }

}
