/* ═══════════════════════════════════════════════════════
   XPLOUSE — Brand Kit Styles
   Sophisticated, Minimalist, Editorial
   ═══════════════════════════════════════════════════════ */

/* ══════════ LAYOUT ══════════ */
.bk-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.bk-section {
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ══════════ SECTION HEADER ══════════ */
.bk-section-header {
    margin-bottom: 3.5rem;
    max-width: 560px;
}

.bk-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.bk-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.bk-section-desc {
    color: #71717A;
    font-size: 0.95rem;
    line-height: 1.7;
}

.bk-subsection-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #A1A1AA;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.bk-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ══════════ HERO — FloatingLines ══════════ */
.bk-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
}

.bk-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bk-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(0, 240, 255, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.5) 60%, #050505 100%);
    z-index: 1;
    pointer-events: none;
}

.bk-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem clamp(1.25rem, 4vw, 2.5rem);
}

.bk-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: #fff;
    margin-bottom: 1.5rem;
}

.bk-hero__subtitle {
    color: #71717A;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}

/* ══════════ GOOEY NAV ══════════ */
.bk-nav-section {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 72px;
    z-index: 100;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
}

.gooey-nav {
    position: relative;
    padding: 1rem 0;
}

.gooey-nav nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.gooey-nav nav ul li {
    position: relative;
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gooey-nav nav ul li a {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #71717A;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.gooey-nav nav ul li:hover a {
    color: #A1A1AA;
}

.gooey-nav nav ul li.active a {
    color: #050505;
}

.gooey-nav nav ul li::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.gooey-nav nav ul li.active::after {
    opacity: 1;
    transform: scale(1);
}

/* Gooey effect layer */
.gooey-effect {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 1;
    pointer-events: none;
    display: grid;
    place-items: center;
    z-index: 1;
}

.gooey-effect.gooey-filter {
    filter: blur(7px) contrast(100) blur(0);
    mix-blend-mode: lighten;
}

.gooey-effect.gooey-filter::before {
    content: '';
    position: absolute;
    inset: -75px;
    z-index: -2;
    background: #050505;
}

.gooey-effect.gooey-filter::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scale(0);
    opacity: 0;
    z-index: -1;
    border-radius: 9999px;
}

.gooey-effect.gooey-filter.active::after {
    animation: gooeyPill 0.3s ease both;
}

.gooey-effect.gooey-text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gooey-effect.gooey-text.active {
    color: #050505;
}

@keyframes gooeyPill {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Gooey particles */
.gooey-nav .particle,
.gooey-nav .point {
    display: block;
    opacity: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform-origin: center;
}

.gooey-nav .particle {
    position: absolute;
    top: calc(50% - 7px);
    left: calc(50% - 7px);
    animation: gooeyParticle var(--time, 1200ms) ease 1 -200ms;
}

.gooey-nav .point {
    background: var(--color, white);
    opacity: 1;
    animation: gooeyPoint var(--time, 1200ms) ease 1 -200ms;
}

@keyframes gooeyParticle {
    0% {
        transform: rotate(0deg) translate(var(--start-x, 0), var(--start-y, 0));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }

    70% {
        transform: rotate(calc(var(--rotate, 0) * 0.5)) translate(calc(var(--end-x, 0) * 1.2), calc(var(--end-y, 0) * 1.2));
        opacity: 1;
    }

    85% {
        transform: rotate(calc(var(--rotate, 0) * 0.66)) translate(var(--end-x, 0), var(--end-y, 0));
        opacity: 1;
    }

    100% {
        transform: rotate(calc(var(--rotate, 0) * 1.2)) translate(calc(var(--end-x, 0) * 0.5), calc(var(--end-y, 0) * 0.5));
        opacity: 1;
    }
}

@keyframes gooeyPoint {
    0% {
        transform: scale(0);
        opacity: 0;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }

    25% {
        transform: scale(calc(var(--scale, 1) * 0.25));
    }

    38% {
        opacity: 1;
    }

    65% {
        transform: scale(var(--scale, 1));
        opacity: 1;
    }

    85% {
        transform: scale(var(--scale, 1));
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* ══════════ COLORS ══════════ */
.bk-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.bk-color-group__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.bk-color-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.bk-color-card__swatch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--swatch);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bk-color-card:hover .bk-color-card__swatch {
    transform: scale(1.15);
}

.bk-color-card__name {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

.bk-color-card__info code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #71717A;
}

/* Gradient Bar */
.bk-gradient-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bk-gradient-bar__preview {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(135deg, #00F0FF, #8A2BE2);
    margin-bottom: 0.75rem;
}

.bk-gradient-bar__label code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #71717A;
}

/* ══════════ TYPOGRAPHY ══════════ */
.bk-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bk-type-card {
    background: rgba(17, 17, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.bk-type-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.bk-type-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bk-type-card__role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #00F0FF;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.bk-type-card__family {
    font-size: 0.8rem;
    color: #A1A1AA;
    font-weight: 500;
}

.bk-type-card__sample {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bk-type-card__specimen {
    font-size: 3.5rem;
    line-height: 1;
    color: #fff;
    font-weight: 600;
}

.bk-type-card__weights {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bk-type-card__weights span {
    font-size: 0.7rem;
    color: #71717A;
    line-height: 1.4;
}

.bk-type-card__chars {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1.6;
    letter-spacing: 0.12em;
}

/* Type Scale */
.bk-type-scale {
    margin-top: 1rem;
}

.bk-scale-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.bk-scale-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bk-scale-demo {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-scale-row code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #71717A;
    white-space: nowrap;
}

/* ══════════ LOGO ══════════ */
.bk-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bk-logo-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.bk-logo-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.bk-logo-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    min-height: 140px;
}

.bk-logo-card__preview img {
    height: 32px;
    width: auto;
}

.bk-logo-card__wordmark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
}

.bk-logo-card__label {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #71717A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bk-logo-card--dark {
    background: #0A0A0A;
}

.bk-logo-card--light {
    background: #F5F5F5;
}

.bk-logo-card--icon {
    background: #0A0A0A;
}

.bk-logo-card--icon .bk-logo-card__preview img {
    height: 48px;
}

.bk-logo-card--min {
    background: #0A0A0A;
}

/* ══════════ LOGO LOOP / MARQUEE ══════════ */
.bk-logo-loop-section {
    margin-top: 1rem;
}

.bk-logo-loop {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.bk-logo-loop::before,
.bk-logo-loop::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(40px, 10%, 100px);
    z-index: 10;
    pointer-events: none;
}

.bk-logo-loop::before {
    left: 0;
    background: linear-gradient(to right, #050505, transparent);
}

.bk-logo-loop::after {
    right: 0;
    background: linear-gradient(to left, #050505, transparent);
}

.bk-logo-loop__track {
    display: flex;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

.bk-logo-loop__list {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}

.bk-logo-loop__item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: default;
}

.bk-logo-loop:hover .bk-logo-loop__item {
    color: rgba(255, 255, 255, 0.45);
}

.bk-logo-loop:hover .bk-logo-loop__track {
    animation-play-state: paused;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ══════════ COMPONENTS SHOWCASE ══════════ */
.bk-components-showcase {
    position: relative;
}

.bk-magnet-bg {
    position: absolute;
    inset: -20px;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none;
}

.bk-comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.bk-comp-card {
    background: rgba(17, 17, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bk-comp-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bk-comp-card__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.bk-comp-card__demo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex-grow: 1;
}

.bk-comp-card__code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #71717A;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Mini Card Preview */
.bk-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
}

.bk-mini-card__icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.bk-mini-card__title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.bk-mini-card__desc {
    font-size: 0.7rem;
    color: #71717A;
}

/* Demo Input */
.bk-demo-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    width: 100%;
}

.bk-demo-input input {
    background: none;
    border: none;
    outline: none;
    color: #71717A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    flex: 1;
    min-width: 0;
}

/* Demo Stat */
.bk-demo-stat {
    text-align: center;
    width: 100%;
}

.bk-demo-stat__value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00F0FF;
}

.bk-demo-stat__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #71717A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ══════════ SPACING ══════════ */
.bk-spacing-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bk-spacing-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.bk-spacing-row code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #A1A1AA;
}

.bk-spacing-bar {
    height: 6px;
    background: linear-gradient(135deg, #00F0FF, #8A2BE2);
    border-radius: 3px;
    min-width: 4px;
}

.bk-spacing-row span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #71717A;
}

/* Border Radius */
.bk-radius-grid {
    margin-top: 1rem;
}

.bk-radius-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.bk-radius-demo {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bk-radius-row div:last-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bk-radius-row code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #A1A1AA;
}

.bk-radius-row span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #71717A;
}

/* ══════════ FLOATING DOCK ══════════ */
.bk-dock-wrapper {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.bk-dock {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(17, 17, 20, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.bk-dock__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #A1A1AA;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.bk-dock__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateY(-6px) scale(1.15);
}

.bk-dock__item:hover~.bk-dock__item:not(.bk-dock__separator) {
    transform: translateY(-2px) scale(1.05);
}

.bk-dock__separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
    pointer-events: none;
}

/* ══════════ MAGNET LINES (positioned via JS) ══════════ */
.bk-magnet-grid {
    display: grid;
    justify-items: center;
    align-items: center;
}

.bk-magnet-grid span {
    display: block;
    transform-origin: center;
    will-change: transform;
    transform: rotate(var(--rotate, -10deg));
    transition: transform 0.1s ease;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
    .bk-color-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bk-type-grid {
        grid-template-columns: 1fr;
    }

    .bk-comp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bk-logo-grid {
        grid-template-columns: 1fr;
    }

    .bk-scale-row {
        grid-template-columns: 60px 1fr;
    }

    .bk-scale-row code {
        display: none;
    }
}

@media (max-width: 768px) {
    .gooey-nav nav ul {
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .bk-comp-grid {
        grid-template-columns: 1fr;
    }

    .bk-dock {
        padding: 6px 8px;
    }

    .bk-dock__item {
        width: 36px;
        height: 36px;
    }

    .bk-hero__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .bk-spacing-row {
        grid-template-columns: 90px 1fr auto;
    }
}