/* ==========================================================================
   home.css - homepage only. Loaded through the additional_css block so it is
   independent of the main.css / main.min.css build step.
   ========================================================================== */

.hp {
    --hp-ink: #0a0f1f;
    --hp-ink-2: #111931;
    --hp-ink-3: #1a2444;
    --hp-line: rgba(148, 163, 184, .18);
    --hp-accent: #818cf8;
    --hp-accent-2: #a78bfa;
    --hp-accent-3: #34d399;
    --hp-text-dim: #94a3b8;
    --hp-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --hp-radius: 14px;
}

/* ------------------------------------------------------------------ shell */

.hp section {
    position: relative;
}

.hp .hp-eyebrow {
    font-family: var(--hp-mono);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: .75rem;
}

.hp-dark .hp-eyebrow {
    color: var(--hp-accent);
}

.hp h2 {
    font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.hp .hp-lead {
    color: #475569;
    font-size: 1.05rem;
    max-width: 62ch;
}

.hp-dark {
    background: var(--hp-ink);
    color: #e2e8f5;
}

.hp-dark .hp-lead {
    color: var(--hp-text-dim);
}

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

.hp-hero {
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(129, 140, 248, .22), transparent 60%),
        radial-gradient(700px 380px at 88% 0%, rgba(167, 139, 250, .16), transparent 62%),
        var(--hp-ink);
    border-bottom: 1px solid var(--hp-line);
    overflow: hidden;
}

.hp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hp-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(760px 420px at 30% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(760px 420px at 30% 0%, #000 0%, transparent 72%);
    opacity: .5;
    pointer-events: none;
}

.hp-hero > .container {
    position: relative;
    z-index: 1;
}

.hp-hero h1 {
    font-size: clamp(2rem, 1.2rem + 3.1vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
    color: #fff;
}

.hp-hero h1 .hp-grad {
    background: linear-gradient(100deg, var(--hp-accent) 10%, var(--hp-accent-2) 55%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem .35rem .6rem;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    background: rgba(129, 140, 248, .1);
    color: #c7d2fe;
    font-size: .82rem;
}

.hp-badge .hp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-accent-3);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .22);
}

.hp-btn-primary {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    border: 1px solid #4338ca;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: .7rem 1.35rem;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 8px 24px -10px rgba(79, 70, 229, .9);
}

.hp-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 1);
}

.hp-btn-ghost {
    border: 1px solid rgba(226, 232, 240, .25);
    color: #e2e8f5;
    font-weight: 600;
    border-radius: 10px;
    padding: .7rem 1.35rem;
    transition: background .15s ease, border-color .15s ease;
}

.hp-btn-ghost:hover {
    background: rgba(226, 232, 240, .08);
    border-color: rgba(226, 232, 240, .45);
    color: #fff;
}

.hp-microcopy {
    font-size: .82rem;
    color: #64748b;
}

/* ------------------------------------------------------------ code window */

.hp-window {
    background: var(--hp-ink-2);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    overflow: hidden;
}

.hp-window-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid var(--hp-line);
}

.hp-tab {
    font-family: var(--hp-mono);
    font-size: .78rem;
    color: var(--hp-text-dim);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: .25rem .6rem;
    cursor: pointer;
}

.hp-tab:hover {
    color: #e2e8f5;
}

.hp-tab[aria-selected="true"] {
    color: #fff;
    background: rgba(129, 140, 248, .16);
    border-color: rgba(129, 140, 248, .35);
}

.hp-copy {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--hp-line);
    border-radius: 7px;
    color: var(--hp-text-dim);
    font-size: .72rem;
    padding: .25rem .55rem;
    cursor: pointer;
}

.hp-copy:hover {
    color: #fff;
    border-color: rgba(226, 232, 240, .4);
}

.hp-window pre {
    margin: 0;
    padding: 1rem 1.1rem;
    background: transparent;
    overflow-x: auto;
}

.hp-window code {
    font-family: var(--hp-mono);
    font-size: .82rem;
    line-height: 1.65;
    color: #cbd5e1;
    white-space: pre;
}

.hp-window .hp-c-key { color: #93c5fd; }
.hp-window .hp-c-str { color: #86efac; }
.hp-window .hp-c-num { color: #fcd34d; }
.hp-window .hp-c-cmt { color: #64748b; }
.hp-window .hp-c-cmd { color: #e9d5ff; }

/* ------------------------------------------------------------- stats strip */

.hp-stats {
    background: var(--hp-ink-2);
    border-bottom: 1px solid var(--hp-line);
}

.hp-stat-value {
    font-family: var(--hp-mono);
    font-size: clamp(1.3rem, 1rem + .9vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.hp-stat-label {
    font-size: .8rem;
    color: var(--hp-text-dim);
}

/* ------------------------------------------------------- endpoint directory */

.hp-group {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: var(--hp-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hp-group:hover {
    border-color: #c7cdf5;
    box-shadow: 0 16px 36px -24px rgba(49, 46, 129, .5);
    transform: translateY(-2px);
}

.hp-group-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid #eef0f7;
    background: #fafbff;
}

.hp-group-head i {
    color: #6366f1;
}

.hp-group-head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.hp-group ul {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    flex: 1 1 auto;
}

.hp-group li {
    padding: .45rem 1.1rem;
}

.hp-method {
    display: inline-block;
    font-family: var(--hp-mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #047857;
    background: #d1fae5;
    border-radius: 5px;
    padding: .1rem .35rem;
    vertical-align: 2px;
    margin-right: .45rem;
}

.hp-path {
    font-family: var(--hp-mono);
    font-size: .82rem;
    color: #1e293b;
    word-break: break-all;
}

.hp-group li p {
    margin: .15rem 0 0 2.35rem;
    font-size: .82rem;
    color: #64748b;
}

.hp-group-foot {
    padding: .7rem 1.1rem;
    border-top: 1px solid #eef0f7;
    font-size: .85rem;
}

/* ------------------------------------------------------------- prose blocks */

.hp-note {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-left: 3px solid #6366f1;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    height: 100%;
}

.hp-note h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.hp-note p {
    margin-bottom: 0;
    color: #475569;
    font-size: .93rem;
}

.hp-note code,
.hp-inline-code {
    font-family: var(--hp-mono);
    font-size: .85em;
    background: #eef1fb;
    color: #4338ca;
    padding: .08em .35em;
    border-radius: 5px;
}

/* ---------------------------------------------------------------- steps */

.hp-step-num {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-family: var(--hp-mono);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    margin-bottom: .85rem;
}

/* --------------------------------------------------------------- pricing */

.hp-price {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: var(--hp-radius);
    padding: 1.6rem;
    height: 100%;
}

.hp-price-featured {
    border-color: #6366f1;
    box-shadow: 0 24px 50px -30px rgba(79, 70, 229, .65);
    position: relative;
}

.hp-price h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.hp-price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.hp-price ul {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 1.4rem;
}

.hp-price li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .3rem 0;
    font-size: .93rem;
    color: #334155;
}

.hp-price li i {
    color: #10b981;
    margin-top: .25rem;
}

/* -------------------------------------------------------------------- faq */

.hp-faq {
    border: 1px solid #e6e9f2;
    border-radius: 10px;
    background: #fff;
    margin-bottom: .6rem;
}

.hp-faq summary {
    cursor: pointer;
    padding: .95rem 1.15rem;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.hp-faq summary::-webkit-details-marker {
    display: none;
}

.hp-faq summary::after {
    content: "+";
    font-family: var(--hp-mono);
    font-size: 1.15rem;
    color: #6366f1;
    flex: none;
}

.hp-faq[open] summary::after {
    content: "\2013";
}

.hp-faq .hp-faq-body {
    padding: 0 1.15rem 1.1rem;
    color: #475569;
    font-size: .95rem;
    margin: 0;
}

/* --------------------------------------------------------------- changelog */

.hp-release {
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: var(--hp-radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
}

.hp-release-date {
    font-family: var(--hp-mono);
    font-size: .78rem;
    color: #4338ca;
    background: #eef1fb;
    border-radius: 6px;
    padding: .15rem .5rem;
}

.hp-release h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: .75rem 0 .85rem;
}

.hp-release ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp-release > ul > li {
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: .85rem;
}

.hp-release > ul > li:last-child {
    margin-bottom: 0;
}

.hp-release > ul > li::before {
    content: "\f055";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #10b981;
    position: absolute;
    left: 0;
    top: .1rem;
    font-size: .9rem;
}

.hp-release .hp-release-desc {
    color: #64748b;
    font-size: .88rem;
    margin: .2rem 0 0;
}

/* --------------------------------------------------------------- sponsors */
/* Deliberately empty slots: there are no sponsors yet and inventing logos
   would be a lie. The dashed outline reads as "available". */

.hp-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 118px;
    border: 1px dashed #c7cdf5;
    border-radius: var(--hp-radius);
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}

.hp-slot:hover {
    border-color: #818cf8;
    background: #fafbff;
}

.hp-slot-badge {
    font-family: var(--hp-mono);
    font-size: .64rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4338ca;
    background: #eef1fb;
    border-radius: 999px;
    padding: .18rem .6rem;
}

.hp-slot-label {
    font-size: .88rem;
    color: #94a3b8;
}

/* -------------------------------------------------------------------- cta */

.hp-cta {
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(129, 140, 248, .25), transparent 65%),
        var(--hp-ink);
    border-top: 1px solid var(--hp-line);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 991.98px) {
    .hp-window {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hp-window code {
        font-size: .74rem;
    }

    .hp-window pre {
        padding: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-group:hover,
    .hp-btn-primary:hover {
        transform: none;
    }
}
