* { margin: 0; padding: 0; box-sizing: border-box; }

/* Palette: deep navy (trust/enterprise), indigo (data/systems), teal (automation/growth) — WCAG-friendly on dark UI */
:root {
    --bg: #040814;
    --bg-soft: #10144a;
    --surface: rgba(255, 255, 255, 0.065);
    --text: #e7ecfb;
    --muted: #8fa4d4;
    --line: rgba(122, 148, 214, 0.28);
    --brand: #009cff;
    --brand-2: #3fe8f0;
    --ok: #12b76a;
    --error: #e04f69;
    --focus: #a8bcff;
    --font: "Poppins", sans-serif;
    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 156, 255, 0.24), transparent 44%),
        radial-gradient(circle at 88% 8%, rgba(63, 232, 240, 0.18), transparent 40%),
        var(--bg);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

.one-page > section[id] {
    scroll-margin-top: 88px;
}

.one-page > section:not(.hero) {
    padding: 4.5rem 0;
}

.section-demo__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.section-demo__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(5, 12, 30, 0.82);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    z-index: 2;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: env(safe-area-inset-top, 0px);
}

.header-nav-cluster {
    display: contents;
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
    text-decoration: none;
    max-width: min(240px, 28%);
}

.header-brand__icon {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    background: #10144a;
}

.header-brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.header-brand__wordmark {
    display: flex;
    align-items: baseline;
    font-family: var(--font);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #eef2ff;
    line-height: 1;
}

.header-brand__it {
    background: linear-gradient(90deg, #009cff, #3fe8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.header-brand__suffix {
    margin-left: 0.4em;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 0;
    color: #aec1ea;
    -webkit-text-fill-color: #aec1ea;
}

.header-brand__reg {
    margin-top: 3px;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 600px) {
    .header-brand__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .header-brand__wordmark {
        font-size: 1.18rem;
    }

    .header-brand__suffix,
    .header-brand__reg {
        display: none;
    }
}

/* Mobile menu toggle — hidden on wide screens */
.nav-toggle {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: #e7ecfb;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 4;
}

.nav-toggle:hover {
    background: rgba(0, 156, 255, 0.18);
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.nav-toggle__box {
    position: relative;
    width: 1.35rem;
    height: 1rem;
    display: block;
}

.nav-toggle__bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #dfe7ff, var(--brand-2));
    transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bar:nth-child(3) { bottom: 0; }

body.nav-menu-open .nav-toggle__bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.nav-menu-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

body.nav-menu-open .nav-toggle__bar:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(2, 6, 18, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.nav-menu-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

.main-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 600;
    font-size: clamp(0.72rem, 0.55vw + 0.62rem, 0.82rem);
    color: #b2c7ff;
    padding: 0.3rem 0.34rem;
    border-radius: 8px;
    transition: 0.2s ease;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: color-mix(in srgb, var(--brand) 28%, transparent);
}

.main-nav a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.main-nav__bottom {
    display: none;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 0.55rem;
}

.main-nav__auth-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.35rem;
}

.main-nav__auth-row .btn-nav-cta {
    flex: 1;
}

.main-nav__auth-row .btn-nav-cta--icon {
    flex: 0 0 auto;
    padding: 0.72rem 0.85rem;
    opacity: 0.9;
}

.main-nav__signin {
    margin-top: 0.35rem;
}

.btn-nav-cta {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.72rem 1rem;
}

.header-ctas {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-header-shop,
.btn-header-account,
.btn-header-cta {
    font-size: clamp(0.72rem, 0.5vw + 0.6rem, 0.8rem);
    padding: 0.42rem 0.72rem;
    white-space: nowrap;
}

.btn-header-logout {
    font-size: 0.72rem;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.38rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-header-logout:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

/* Shop CTA highlight — stands out across header + mobile nav */
.btn-header-shop,
.main-nav__bottom .btn-nav-cta[href*="shop"] {
    position: relative;
    border-color: rgba(63, 232, 240, 0.65);
    background:
        linear-gradient(135deg, rgba(0, 156, 255, 0.28), rgba(63, 232, 240, 0.18)),
        rgba(8, 14, 36, 0.92);
    color: #eef8ff;
    box-shadow:
        0 0 0 1px rgba(63, 232, 240, 0.25),
        0 0 18px rgba(0, 156, 255, 0.28);
    animation: lit-shop-cta-glow 2.4s ease-in-out infinite;
}

.btn-header-shop:hover,
.main-nav__bottom .btn-nav-cta[href*="shop"]:hover {
    border-color: #3fe8f0;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(63, 232, 240, 0.45),
        0 0 24px rgba(0, 156, 255, 0.4);
    transform: translateY(-1px);
}

.btn-header-shop::after,
.main-nav__bottom .btn-nav-cta[href*="shop"]::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(63, 232, 240, 0.45);
    animation: lit-shop-cta-ring 2.4s ease-out infinite;
}

@keyframes lit-shop-cta-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(63, 232, 240, 0.22),
            0 0 14px rgba(0, 156, 255, 0.22);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(63, 232, 240, 0.4),
            0 0 22px rgba(0, 156, 255, 0.38);
    }
}

@keyframes lit-shop-cta-ring {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(63, 232, 240, 0.4);
    }
    70% {
        opacity: 0;
        box-shadow: 0 0 0 10px rgba(63, 232, 240, 0);
    }
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-header-shop,
    .main-nav__bottom .btn-nav-cta[href*="shop"],
    .btn-header-shop::after,
    .main-nav__bottom .btn-nav-cta[href*="shop"]::after {
        animation: none;
    }
}

/* Wide screens: single-line horizontal bar */
@media (min-width: 1181px) {
    .main-header .nav-overlay {
        display: none !important;
        pointer-events: none !important;
    }

    .header-nav-cluster {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.35rem;
    }

    .main-nav {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
    }

    .main-nav__list {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.02rem;
        min-width: 0;
    }

    .main-nav__list > li {
        flex: 0 0 auto;
    }

    .main-nav__bottom {
        display: none !important;
    }

    .header-ctas {
        display: inline-flex;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        gap: 0.35rem;
    }

    .nav-toggle {
        display: none !important;
    }

    .header-brand__reg {
        display: none;
    }

    .header-brand {
        max-width: min(190px, 22%);
    }
}

/* Compact desktop — extra tight so nav + CTAs stay on one line */
@media (min-width: 1181px) and (max-width: 1399px) {
    .header-inner {
        gap: 0.35rem;
    }

    .header-brand {
        max-width: min(168px, 20%);
    }

    .header-brand__suffix {
        display: none;
    }

    .header-brand__wordmark {
        font-size: 1.1rem;
    }

    .header-brand__icon {
        width: 36px;
        height: 36px;
    }

    .main-nav a {
        padding: 0.28rem 0.26rem;
    }

    .header-nav-cluster {
        gap: 0.25rem;
    }

    .btn-header-shop,
    .btn-header-account,
    .btn-header-cta {
        padding: 0.38rem 0.58rem;
    }

    .btn-header-logout {
        font-size: 0.68rem;
        padding: 0.34rem 0.42rem;
    }
}

@media (min-width: 1400px) {
    .header-brand {
        max-width: min(210px, 24%);
    }

    .header-brand__reg {
        display: block;
    }
}

@media (min-width: 1600px) {
    .header-brand {
        max-width: min(240px, 26%);
    }

    .header-brand__wordmark {
        font-size: 1.28rem;
    }

    .main-nav a {
        padding: 0.32rem 0.42rem;
    }

    .header-nav-cluster {
        gap: 0.5rem;
    }
}

/* Medium / narrow: drawer + overlay */
@media (max-width: 1180px) {
    .header-nav-cluster {
        display: contents;
    }

    .header-inner {
        min-height: 64px;
    }

    .header-brand {
        max-width: min(calc(100% - 3.5rem), 280px);
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
    }

    .header-ctas {
        display: none !important;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
        z-index: 2;
    }

    body.nav-menu-open .nav-overlay {
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(100vw - 2.5rem, 22rem);
        max-width: 100%;
        height: 100dvh;
        height: 100vh;
        margin: 0;
        padding: calc(4.75rem + env(safe-area-inset-top, 0px)) 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
        gap: 0;
        background:
            linear-gradient(165deg, rgba(12, 23, 52, 0.98), rgba(5, 10, 26, 0.97));
        border-left: 1px solid var(--line);
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
        z-index: 3;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.nav-menu-open .main-nav {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0.2rem;
    }

    .main-nav__list li {
        border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    }

    .main-nav__list li:last-of-type {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 0.85rem 0.35rem;
        font-size: 1.02rem;
        border-radius: 8px;
        white-space: normal;
    }

    .main-nav a.active {
        background: color-mix(in srgb, var(--brand) 22%, transparent);
        border-left: 3px solid var(--brand-2);
        padding-left: 0.65rem;
    }

    .main-nav__bottom {
        display: flex;
    }
}

@media (max-width: 480px) {
    .main-nav {
        width: 100vw;
        border-left: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

body.nav-menu-open .main-header {
    z-index: 100020;
}

@media (prefers-reduced-motion: reduce) {
    .main-nav,
    .nav-overlay,
    .nav-toggle__bar {
        transition-duration: 0.01ms !important;
    }
}

/* Demo Lab only — context strip under main header */
.demo-context-strip {
    position: relative;
    z-index: 12;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(92deg, rgba(6, 14, 36, 0.97), rgba(10, 22, 52, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-context-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1.25rem;
    min-height: 48px;
    padding: 0.4rem 0;
}

.demo-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
}

.demo-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
}

.demo-breadcrumb__item:not(:last-child)::after {
    content: "/";
    color: color-mix(in srgb, var(--muted) 45%, transparent);
    font-weight: 500;
    margin-left: 0.45rem;
    pointer-events: none;
}

.demo-breadcrumb__link {
    color: #9ecfff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

.demo-breadcrumb__link:hover {
    color: #dce9ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-breadcrumb__link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.demo-breadcrumb__item--current {
    color: #f0f4ff;
    font-weight: 700;
}

.demo-context-strip__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
}

.demo-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--brand-2) 90%, white);
}

.demo-context-badge__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.3);
    animation: demo-context-pulse 2.2s ease-in-out infinite;
}

@keyframes demo-context-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

.demo-context-strip__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #050818;
    text-decoration: none;
    padding: 0.4rem 0.95rem;
    border-radius: 9px;
    background: linear-gradient(92deg, var(--brand), var(--brand-2));
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 12px rgba(0, 156, 255, 0.28);
}

.demo-context-strip__link:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.demo-context-strip__link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .demo-context-strip__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-context-strip__aside {
        width: 100%;
        justify-content: space-between;
    }
}

.hero {
    padding: 5.6rem 0;
    background:
        linear-gradient(120deg, rgba(8, 20, 49, 0.9), rgba(14, 31, 73, 0.78)),
        url("../images/hero-bg.jpg") center/cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 0.9rem;
    max-width: 980px;
}

.hero p { color: var(--muted); max-width: 780px; margin-bottom: 1.3rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

section { padding: 4.2rem 0; }

.section-light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 0.7rem;
}

.section-intro { color: var(--muted); max-width: 860px; margin-bottom: 1.4rem; }

.kicker {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--brand) 78%, white);
    margin-bottom: 0.45rem;
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.section-demo { padding-bottom: 5rem; }

.demo-live-grid {
    gap: 1.35rem;
    margin-top: 0.25rem;
}

.demo-live-grid .demo-card--wide {
    grid-column: 1 / -1;
}

/* ---- Demo cards: accent rail + header (.card.demo-card padding applied after base .card) ---- */
.card.demo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 1;
}

.demo-card--accent-fx::before {
    background: linear-gradient(90deg, #009cff, var(--brand-2));
}

.demo-card--accent-weather::before {
    background: linear-gradient(90deg, #3fe8f0, #3d9fff);
}

.demo-card--accent-country::before {
    background: linear-gradient(90deg, #9b7cff, #009cff);
}

.demo-card--accent-git::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(143, 164, 212, 0.55));
}

.demo-card__header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1.05rem;
}

.demo-card__tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0a1024;
    background: linear-gradient(135deg, #009cff, #7e9aff);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 156, 255, 0.35);
}

.demo-card__tag--teal {
    background: linear-gradient(135deg, #3fe8f0, #2ae8d0);
    box-shadow: 0 4px 14px rgba(63, 232, 240, 0.35);
}

.demo-card__tag--violet {
    background: linear-gradient(135deg, #9b7cff, #b89fff);
    box-shadow: 0 4px 14px rgba(155, 124, 255, 0.3);
}

.demo-card__tag--neutral {
    color: #e8edff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--line);
    box-shadow: none;
}

.demo-card__titles {
    min-width: 0;
}

.demo-card__titles .h2-demo {
    margin-bottom: 0.35rem;
}

.demo-card__titles .demo-card-lead {
    margin-bottom: 0;
}

/* Keyboard styling in demo alerts (JS-injected) */
.demo-kbd {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    color: #e2eaff;
    white-space: nowrap;
    overflow-x: auto;
}

.demo-github-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
    margin: 0;
}

.demo-github-bar__input {
    flex: 1;
    min-width: 10rem;
}

.demo-github-panel {
    margin-top: 0.65rem;
    padding: 0.85rem 1rem;
    max-height: 22rem;
    overflow-y: auto;
    scrollbar-color: rgba(0, 156, 255, 0.45) transparent;
    scrollbar-width: thin;
}

.demo-panel {
    margin-top: 0.45rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    background:
        linear-gradient(165deg, rgba(8, 18, 44, 0.75), rgba(6, 12, 28, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-height: 7rem;
    font-size: 0.92rem;
    color: #d6e3ff;
}

.demo-github-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.demo-repo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-repo-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.demo-repo-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.demo-repo-item__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.demo-repo-item__link {
    font-weight: 700;
    font-size: 0.98rem;
    color: #9ecfff;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, #9ecfff 50%, transparent);
}

.demo-repo-item__link:hover {
    color: #cfe6ff;
    border-bottom-color: #cfe6ff;
}

.demo-repo-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(224, 79, 105, 0.25);
    border: 1px solid color-mix(in srgb, var(--error) 40%, transparent);
    color: #ffc2cf;
}

.demo-repo-meta {
    font-size: 0.78rem;
    color: var(--muted);
    width: 100%;
}

.demo-repo-desc {
    font-size: 0.84rem;
    color: #aabade;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.demo-source-note {
    margin-top: 1.25rem;
    font-size: 0.84rem;
    color: var(--muted);
    max-width: 920px;
    line-height: 1.55;
}

.card a {
    color: #7dd8ed;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card a:hover {
    color: #b8ecfa;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card {
    border-radius: var(--radius);
    padding: 1.2rem;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.card p { color: color-mix(in srgb, var(--muted) 92%, white); }
.card h2,
.card h3 { margin-bottom: 0.45rem; color: #f7faff; }

.card.demo-card {
    position: relative;
    padding: 1.35rem 1.35rem 1.45rem;
    overflow: hidden;
}

.h2-demo {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.demo-card__titles .h2-demo {
    color: #f7faff;
}

.demo-inline-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.84em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.demo-github-help {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.demo-github-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.demo-github-note {
    font-size: 0.82rem;
    color: #a8c4ff;
    margin-bottom: 0.5rem;
}

.demo-card-lead {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--muted) 95%, white);
}

.demo-fx-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.demo-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}

.demo-controls-row .demo-fx-base {
    flex: 1;
    min-width: 9rem;
    max-width: 16rem;
}

.demo-fx-cta {
    flex-shrink: 0;
}

.demo-fx-fieldset {
    border: 1px solid color-mix(in srgb, var(--line) 90%, var(--brand));
    border-radius: 12px;
    padding: 0.75rem 0.85rem 0.9rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.12);
}

.demo-fx-fieldset legend {
    padding: 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9eb6ee;
}

.demo-fx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.demo-fx-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem 0.4rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.demo-fx-chip:focus-within:not(.demo-fx-chip--disabled) {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 65%, transparent);
}

.demo-fx-chip:hover:not(.demo-fx-chip--disabled) {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.demo-fx-chip--on:not(.demo-fx-chip--disabled) {
    border-color: color-mix(in srgb, var(--brand) 70%, var(--line));
    background: rgba(0, 156, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(0, 156, 255, 0.2);
}

.demo-fx-chip--disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.demo-fx-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    accent-color: var(--brand);
}

.demo-fx-chip__code {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f0f4ff;
}

.demo-fx-chip__name {
    font-size: 0.72rem;
    color: var(--muted);
    max-width: 7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-hint {
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0;
}

.demo-surface {
    margin-top: 0.15rem;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    background:
        linear-gradient(180deg, rgba(12, 23, 58, 0.55), rgba(6, 12, 30, 0.4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    min-height: 4rem;
}

.demo-fx-output {
    min-height: 5rem;
}

.demo-fx-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.demo-fx-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: rgba(0, 156, 255, 0.32);
    border: 1px solid var(--line);
    color: #cfe0ff;
}

.demo-fx-date {
    font-size: 0.88rem;
    color: var(--muted);
}

.demo-fx-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: rgba(0, 0, 0, 0.2);
}

.demo-fx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.demo-fx-table th,
.demo-fx-table td {
    padding: 0.62rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

.demo-fx-table th {
    background: rgba(0, 0, 0, 0.35);
    color: #b4c4f2;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.demo-th-hint {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.demo-fx-ccy {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--brand-2) 45%, white);
    width: 3.5rem;
}

.demo-fx-num {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
    color: #e2e9ff;
}

.demo-fx-num strong {
    font-weight: 700;
    color: #fff;
}

.demo-fx-table tbody tr:nth-child(even) td {
    background: rgba(0, 156, 255, 0.04);
}

.demo-fx-table tbody tr:last-child td {
    border-bottom: none;
}

.demo-fx-table tbody tr:hover td {
    background: rgba(0, 156, 255, 0.1);
}

.demo-fx-error {
    color: #ffb3c5;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.demo-loading-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.demo-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.demo-loading__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    animation: demo-dot 0.9s ease-in-out infinite both;
}

.demo-loading__dot:nth-child(2) { animation-delay: 0.15s; background: var(--brand-2); }
.demo-loading__dot:nth-child(3) { animation-delay: 0.3s; background: #9ecfff; }

@keyframes demo-dot {
    0%, 80%, 100% { transform: scale(0.55); opacity: 0.45; }
    40% { transform: scale(1); opacity: 1; }
}

.demo-city-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.55rem;
}

.demo-city-bar__field {
    flex: 1;
    min-width: 12rem;
}

.demo-city-bar__btn {
    flex-shrink: 0;
}

.demo-location-line {
    font-size: 0.84rem;
    color: #9ecfff;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(63, 232, 240, 0.1);
    border: 1px solid color-mix(in srgb, var(--brand-2) 35%, transparent);
}

.demo-weather-head {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f2f6ff;
    margin: 0 0 0.85rem;
    line-height: 1.35;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.demo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.55rem;
}

.demo-kpi {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 4.25rem;
    justify-content: center;
}

.demo-kpi__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.demo-kpi__value {
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    line-height: 1.2;
}

.demo-kpi__value--sm {
    font-size: 1rem;
}

.demo-kpi__unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: color-mix(in srgb, white 70%, var(--muted));
    margin-left: 0.1rem;
}

.demo-country-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.55rem;
}

.demo-country-bar__field {
    flex: 1;
    min-width: 12rem;
}

.demo-country-bar__btn {
    flex-shrink: 0;
}

.demo-country-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.demo-country-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #f2f6ff;
}

.demo-pill {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    background: rgba(155, 124, 255, 0.22);
    border: 1px solid color-mix(in srgb, #9b7cff 45%, var(--line));
    color: #ddd6ff;
}

.demo-dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.demo-dl__row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    font-size: 0.9rem;
    align-items: baseline;
}

.demo-dl__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.demo-dl__row dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.demo-dl__row dd {
    margin: 0;
    color: #e4eaff;
    font-weight: 500;
}

.demo-dl__num {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, Consolas, monospace;
}

@media (max-width: 520px) {
    .demo-dl__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

.metric { font-size: 1.95rem; font-weight: 700; color: color-mix(in srgb, var(--brand) 82%, white); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-list li {
    font-size: 0.84rem;
    font-weight: 600;
    color: #e8eeff;
    background: rgba(91, 130, 255, 0.32);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.68rem;
}

.case-outcome {
    margin-top: 0.45rem;
    color: color-mix(in srgb, var(--brand-2) 85%, white);
    font-weight: 600;
}

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.72rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }

.btn-primary {
    background: linear-gradient(92deg, var(--brand), var(--brand-2));
    color: #050818;
}

.btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.btn-secondary {
    border-color: var(--line);
    color: #ebf0ff;
    background: rgba(255, 255, 255, 0.04);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.field-group { display: grid; gap: 0.35rem; }
.field-group.full { grid-column: 1 / -1; }

label { color: #d3defe; font-size: 0.88rem; font-weight: 600; }

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f8ff;
    font: inherit;
}

input::placeholder, textarea::placeholder { color: #9fb0dc; }
textarea { min-height: 130px; resize: vertical; }

#form-message {
    margin-top: 1rem;
    border-radius: 10px;
    padding: 0.8rem;
    display: none;
}

#form-message.show { display: block; }
#form-message.success { background: color-mix(in srgb, var(--ok) 22%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); color: #9aeec4; }
#form-message.error { background: color-mix(in srgb, var(--error) 22%, transparent); border: 1px solid color-mix(in srgb, var(--error) 45%, transparent); color: #ffd0da; }

.card.demo-card .demo-controls-row .btn,
.card.demo-card .demo-city-bar__btn,
.card.demo-card .demo-country-bar__btn {
    width: auto;
    min-width: 7.5rem;
    margin-top: 0;
}

.card.demo-card .demo-github-actions > .btn-primary {
    align-self: flex-start;
}

.demo-result {
    margin-top: 0.8rem;
    border-radius: 10px;
    border: 1px dashed var(--line);
    background: color-mix(in srgb, var(--bg-soft) 86%, black);
    padding: 0.6rem;
    color: #d6e3ff;
    min-height: 54px;
}

/* Demo Lab: file:// banner + alert panels (also used inside output regions) */
.demo-file-banner {
    background: linear-gradient(180deg, rgba(0, 156, 255, 0.12), rgba(63, 232, 240, 0.06));
    border-bottom: 1px solid var(--line);
    padding: 1.15rem 0;
}

.demo-alert {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 85%, #f0a060);
    background:
        linear-gradient(135deg, rgba(18, 28, 62, 0.9), rgba(12, 20, 44, 0.82));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.demo-alert--warn .demo-alert__glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 160, 96, 0.22), transparent 65%);
    pointer-events: none;
}

.demo-alert__body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.demo-alert__title {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fde9d9;
    letter-spacing: 0.01em;
}

.demo-alert__p {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--muted) 88%, #fff);
}

.demo-alert__p:last-child {
    margin-bottom: 0;
}

.demo-alert a {
    color: #a8c8ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.demo-alert a:hover {
    color: #d6e6ff;
}

.footer--demo .footer__demo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.footer__copy {
    margin: 0;
    font-weight: 600;
    color: #b8c8e8;
}

.footer__meta {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

.footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: rgba(4, 10, 24, 0.9);
    color: #a8b8e6;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer a { color: #c4d4fd; }

.footer .demo-inline-code {
    color: #d0ddf8;
}

.footer-brand p {
    margin: 0.5rem 0 1rem;
}

.footer-nav__label,
.footer-legal-nav__label {
    margin: 0 0 0.65rem;
    font-weight: 600;
    color: #e8eefc;
    font-size: 0.95rem;
}

.footer-nav__list,
.footer-legal-nav__list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style: disc;
    color: #7f92c8;
}

.footer-nav__list li,
.footer-legal-nav__list li {
    margin: 0.4rem 0;
    padding-left: 0.15rem;
}

.footer-nav__list a,
.footer-legal-nav__list a {
    color: #c4d4fd;
    text-decoration: none;
}

.footer-nav__list a:hover,
.footer-nav__list a:focus-visible,
.footer-legal-nav__list a:hover,
.footer-legal-nav__list a:focus-visible {
    color: #3fe8f0;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #c4d4fd;
    background: rgba(0, 156, 255, 0.12);
    border: 1px solid rgba(0, 156, 255, 0.25);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.social-links__item:hover,
.social-links__item:focus-visible {
    transform: translateY(-2px);
    color: #04122b;
    background: linear-gradient(135deg, #009cff, #3fe8f0);
    border-color: transparent;
}

.social-links__icon {
    display: block;
}

.footer-legal {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.footer-legal__inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-legal__entity {
    margin: 0;
    font-weight: 600;
    color: #c4d4fd;
}

.footer-legal__sep {
    margin: 0 0.5rem;
    color: var(--muted);
}

.footer-legal__reg {
    font-weight: 400;
    color: #a8b8e6;
}

.footer-legal__copy {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    .contact-form { grid-template-columns: 1fr; }
}

/* ——— WooCommerce shop ——— */
body.woocommerce-page,
body.woocommerce {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 156, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 0%, rgba(63, 232, 240, 0.12), transparent 50%),
        #070b16;
}

.lit-shop-cats {
    margin: 0 0 1.5rem;
    padding: 1rem 0 0.25rem;
    border-bottom: 1px solid var(--line);
}

.lit-shop-cats__inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lit-shop-cats__label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.lit-shop-cats__list,
.lit-shop-cats__children {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.lit-shop-cats__link,
.lit-shop-cats__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #c5d4ff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lit-shop-cats__link:hover,
.lit-shop-cats__chip:hover,
.lit-shop-cats__link.is-active,
.lit-shop-cats__chip.is-active {
    color: #fff;
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
    background: color-mix(in srgb, var(--brand) 22%, transparent);
}

.lit-shop-cats__count,
.lit-shop-cats__chip span {
    font-size: 0.72rem;
    font-weight: 500;
    color: #8fa3d6;
}

.woocommerce .woocommerce-products-header__title,
.woocommerce .woocommerce-products-header .page-title,
.woocommerce h1.page-title {
    color: #eef2ff;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0.5rem 0 1rem;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem;
    text-align: center;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: auto !important;
    max-width: 100%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 0.65rem;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.88rem;
    line-height: 1.35;
    color: #dce6ff;
    margin: 0 0 0.4rem;
}

.woocommerce ul.products li.product .price {
    color: #7dffe8;
    font-size: 0.95rem;
    font-weight: 700;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
}

.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
    color: var(--muted);
    margin-bottom: 1rem;
}

.woocommerce .woocommerce-breadcrumb {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #9eb6ff;
}

.woocommerce div.product div.images img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.woocommerce div.product .product_title {
    color: #eef2ff;
}

.woocommerce div.product p.price {
    color: #7dffe8;
}

.woocommerce-loop-category__title {
    color: #eef2ff !important;
    font-size: 1rem !important;
}

.woocommerce ul.products li.product-category a img {
    max-height: 100px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        max-height: 96px;
    }
}

.lit-services-pricing-cta { margin: 2rem 0 0; text-align: center; }

