/*
 * Herd — defi/quant shared design tokens.
 *
 * Single source of truth for the defi pattern used across every Herd app
 * (Neptune, Orion, Triton, Runes, Virgil, Vulcan, Ceres, Hyperion, Symphony,
 * Nexus, Hermes, Selene, Courses). Section-specific styles still live in
 * each blade's own <style> block — only the shared chrome lives here.
 *
 * Loaded once via base/layouts/header.blade.php on every app. The library
 * app owns the canonical copy; apps either symlink or copy the file.
 */

/* ===== Font utilities ===== */
.font-space-grotesk,
.font-sans {
    font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
}

.font-mono {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* ===== Kicker (01 / Section) ===== */
.portfolio-landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-landing-kicker-num {
    font-weight: 500;
    color: rgba(16, 207, 189, 0.9);
}

/* ===== Status bar (defi top hairline row) ===== */
.portfolio-landing-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.portfolio-landing-statusbar-left,
.portfolio-landing-statusbar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.portfolio-landing-statusbar-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* ===== Stat grid (4-column) ===== */
.portfolio-landing-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio-landing-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 18px 16px 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-landing-stat:first-child {
    border-left: 0;
    padding-left: 0;
}

.portfolio-landing-stat-value {
    font-size: 27px;
    font-weight: 500;
    line-height: 1;
    font-feature-settings: "tnum" on;
    white-space: nowrap;
    color: #ffffff;
}

.portfolio-landing-stat-label {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.42);
}

.portfolio-landing-stat-tag {
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.35;
    color: rgba(125, 207, 255, 0.54);
}

.portfolio-landing-stat-subtext {
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.28);
}

/* ===== Base section shell ===== */
.vulcan-defi-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(24px, 3vw, 56px);
    padding-right: clamp(24px, 3vw, 56px);
}

/* ===== Scroll cue ===== */
.courses-defi-scroll-cue,
.vulcan-defi-scroll-cue {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.courses-defi-scroll-cue-line,
.vulcan-defi-scroll-cue-line {
    display: block;
    width: 80px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
}

/* ===== Master tag (defi bordered pill) ===== */
.courses-defi-tag,
.vulcan-defi-tag {
    position: relative;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right-width: 0;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.04em;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.courses-defi-tag:last-child,
.vulcan-defi-tag:last-child {
    border-right-width: 1px;
}

.courses-defi-tag:hover,
.vulcan-defi-tag:hover {
    background: rgba(16, 207, 189, 0.08);
    border-color: rgba(16, 207, 189, 0.42);
    color: #ffffff;
}

/* ===== Hairline divider (centered label) ===== */
.courses-defi-divider,
.vulcan-defi-divider {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.34em;
    line-height: 1;
    text-transform: uppercase;
}

.courses-defi-divider span,
.vulcan-defi-divider span {
    display: block;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

/* ===== Light-theme variants ===== */
.portfolio-landing-statusbar--light,
.portfolio-landing-statusbar-light {
    border-top-color: rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.55);
}

.portfolio-landing-statusbar--light .portfolio-landing-statusbar-sep,
.portfolio-landing-statusbar-light .portfolio-landing-statusbar-sep {
    color: rgba(15, 23, 42, 0.3);
}

.courses-defi-scroll-cue-line--light,
.vulcan-defi-scroll-cue-line--light {
    background: rgba(15, 23, 42, 0.22);
}

/* ===== Section base styles (used by generator output) ===== */
.defi-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0 90px;
    font-family: "Space Grotesk", sans-serif;
}

.defi-section--dark {
    background: #0d0d14;
    color: #ffffff;
}

.defi-section--light {
    background: #fff;
    color: #0b0d10;
}

.defi-section-head {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}

.defi-section-kicker {
    margin: 0 0 18px;
    justify-content: center;
}

.defi-section--dark .defi-section-kicker {
    color: rgba(255, 255, 255, 0.46);
}

.defi-section--light .defi-section-kicker {
    color: rgba(15, 23, 42, 0.46);
}

.defi-section-title {
    font-size: clamp(24px, 2.8vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0 0 16px;
}

.defi-section-body {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.defi-section--dark .defi-section-body {
    color: rgba(255, 255, 255, 0.66);
}

.defi-section--light .defi-section-body {
    color: rgba(15, 23, 42, 0.66);
}

/* ===== Responsive (shared mobile rules) ===== */
@media (max-width: 767px) {
    .portfolio-landing-statusbar {
        align-items: flex-start;
        flex-direction: column;
        font-size: 10px;
    }

    .portfolio-landing-statusbar-left,
    .portfolio-landing-statusbar-right {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .portfolio-landing-statusbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .portfolio-landing-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-landing-stat {
        padding: 18px 14px 16px;
    }

    .portfolio-landing-stat:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .portfolio-landing-stat:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .portfolio-landing-kicker {
        font-size: 10px;
    }
}
