
:root {
    --bg: #07100f;
    --panel: #0d1917;
    --panel-strong: #12231f;
    --line: rgba(186, 230, 214, 0.16);
    --line-strong: rgba(186, 230, 214, 0.32);
    --text: #f4fbf8;
    --muted: #a8bdb6;
    --soft: #d7e7e1;
    --accent: #42f2a9;
    --accent-2: #44c4ff;
    --danger: #ff6b6b;
    --warning: #f4c95d;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(66, 242, 169, 0.1), transparent 34rem),
        radial-gradient(circle at 80% 8%, rgba(68, 196, 255, 0.09), transparent 32rem),
        linear-gradient(145deg, #050908 0%, var(--bg) 46%, #081311 100%);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    padding: 18px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: #000;
    backdrop-filter: blur(18px);
    transition: margin-left 180ms ease, width 180ms ease;
}

.site-shell.sidebar-open .site-header {
    width: calc(100% - 292px);
    margin-left: 292px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.sidebar-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(66, 242, 169, 0.5);
    border-radius: 8px;
    /* background: linear-gradient(135deg, var(--accent), #d7ff73); */
    object-fit: contain;
    padding: 4px;
}

.brand-mark strong,
.brand-mark small {
    display: block;
}

.brand-mark strong {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.1;
}

.brand-mark small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.rate-ticker {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
    display: none;
}
.ticker-track {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: max-content;
    padding: 8px;
    animation: ticker-slide 24s linear infinite;
}

.rate-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--soft);
    font-size: 0.84rem;
    white-space: nowrap;
}

.rate-pill strong {
    color: var(--text);
}

.rate-pill.is-up {
    border-color: rgba(66, 242, 169, 0.28);
    background: rgba(66, 242, 169, 0.08);
}

.rate-pill.is-down {
    border-color: rgba(255, 107, 107, 0.28);
    background: rgba(255, 107, 107, 0.08);
}

.layout-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 28px clamp(18px, 4vw, 56px) 24px;
    transition: padding-left 180ms ease;
}

.site-shell.sidebar-open .layout-frame {
    max-width: none;
    width: 100%;
    padding-left: calc(292px + clamp(18px, 4vw, 56px));
    background: #000;
}

.category-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: 292px;
    overflow-y: auto;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: #000;
    box-shadow: 16px 0 60px rgba(0, 0, 0, 0.26);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-shell:not(.sidebar-open) .category-sidebar {
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-105%);
}

.sidebar-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    margin: -2px -2px 20px;
    padding: 0 2px 16px;
    border-bottom: 1px solid var(--line);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.sidebar-logo .brand-logo {
    width: 34px;
    height: 34px;
    padding: 3px;
}

.sidebar-close {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.sidebar-scrim {
    display: none;
}

.sidebar-heading span,
.eyebrow,
.section-heading span,
.resource-meta {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 10px !important;
    display: block;
}

.sidebar-heading strong {
    display: block;
    margin-top: 5px;
    font-size: 1.32rem;
}

.category-nav {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-link:hover,
.category-link.is-active {
    border-color: color-mix(in srgb, var(--accent) 48%, transparent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent), rgba(255, 255, 255, 0.04));
    transform: translateX(2px);
}

.category-dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--accent);
    box-shadow: 0 0 18px currentColor;
}

.category-dot-cyan { color: #44c4ff; background: #44c4ff; }
.category-dot-emerald { color: #42f2a9; background: #42f2a9; }
.category-dot-amber { color: #f4c95d; background: #f4c95d; }
.category-dot-rose { color: #ff6b8a; background: #ff6b8a; }
.category-dot-violet { color: #ad8cff; background: #ad8cff; }
.category-dot-lime { color: #c7f85b; background: #c7f85b; }

.content-panel {
    min-width: 0;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin: 34px 0 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.05;
}

.section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.resource-card {
    display: grid;
    /* grid-template-rows: 190px 1fr; */
    overflow: hidden;
    /* min-height: 420px; */
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(160deg, rgba(20, 32, 50, 0.96), rgba(9, 14, 27, 0.98)),
        radial-gradient(circle at 20% 10%, rgba(112, 232, 214, 0.12), transparent 18rem);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    transform: translateY(-3px);
}

.resource-image-wrap {
    position: relative;
    min-height: 251px;
    padding: 12px 12px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        #0a1020;
    display: inline-block;
}

.resource-image-wrap img {
    width: 100%;
    height: 100%;
    /* min-height: 193px; */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
}

.resource-image-wrap::after {
    /* position: absolute; */
    /* inset: 12px 12px 0; */
    /* border-radius: 10px; */
    content: "";
    background: linear-gradient(180deg, transparent 44%, rgba(7, 10, 20, 0.72));
}

.resource-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(5, 9, 8, 0.72);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 800;
}

.resource-copy {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px;
    margin-top: 45px;
    display: inline-block;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.resource-copy strong {
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    line-height: 1.14;
    display: block;
    margin-bottom: 10px;
    margin-top: 19px;
}

.resource-copy > span:last-child {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.resource-copy::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    /* min-height: 38px; */
    margin-top: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    content: "Visit Site";
    font-size: 0.88rem;
    font-weight: 800;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: rgba(5, 9, 8, 0.62);
}

.site-footer p {
    max-width: 860px;
    margin: 0;
}

.site-footer a {
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}

@keyframes ticker-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-22%); }
}

@media (max-width: 980px) {
    .site-header {
        align-items: stretch;
        flex-direction: column;
    }

    .rate-ticker {
        max-width: none;
        width: 100%;
    }

    .layout-frame {
        grid-template-columns: 1fr;
    }

    .site-shell.sidebar-open .site-header,
    .site-shell:not(.sidebar-open) .site-header {
        width: 100%;
        margin-left: 0;
    }

    .site-shell.sidebar-open .layout-frame,
    .site-shell:not(.sidebar-open) .layout-frame {
        padding-left: clamp(18px, 4vw, 56px);
    }

    .category-sidebar {
        width: min(340px, calc(100vw - 34px));
        border-radius: 0;
        transform: translateX(0);
    }

    .site-shell:not(.sidebar-open) .category-sidebar {
        visibility: hidden;
        padding: 18px;
        opacity: 0;
        transform: translateX(-105%);
    }

    .site-shell.sidebar-open .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, 0.58);
    }

    .category-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .resource-list {
        grid-template-columns: 1fr;
    }

    .resource-card {
        grid-template-rows: 190px 1fr;
    }

    .resource-image-wrap,
    .resource-image-wrap img {
        min-height: 190px;
    }

    .category-nav {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


.resource-promo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,.8);
    color:white;
    padding:6px 10px;
    border-radius:8px;
    font-size:13px;
}


.copy-code {
    border:0;
    cursor:pointer;
    margin-left:8px;
    padding:3px 8px;
    border-radius:5px;
}


.promo-text {
    display:block;
    margin-top:12px;
    color: #00d084 !important;
    /* font-weight: 700; */
    font-size: 16px !important;
}

.hero-img-box img  {
    width:100%;
    height:100%;
}