/* ================================================================
   HOME PAGE - DARK CANVAS
   ================================================================ */

.home-page-content {
    background-color: #09090f;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    color: rgba(255,255,255,0.85);
    font-family: 'Nunito', sans-serif;
    padding-top: 54px; /* fixed header height */
    overflow-x: clip;
}

/* Links inside home reset to white - except action buttons */
.home-page-content a,
.home-page-content a:link,
.home-page-content a:visited { color: inherit; }

.home-page-content a.tb-btn-green,
.home-page-content a.tb-btn-green:link,
.home-page-content a.tb-btn-green:visited,
.home-page-content a.tb-btn-green:hover {
    color: #09090f !important;
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.tb-hero {
    position: relative;
    overflow: visible;
    padding: 0;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    grid-template-areas:
        "hero-top"
        "hero-mid"
        "hero-bot";
    align-items: center;
    justify-items: center;
    min-height: calc(100vh - 54px);
    height: calc(100vh - 54px);
}

/* 3-D canvas background */
#tb-viz-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
}

/* Hero copy */
.tb-hero-copy {
    grid-area: hero-mid;
    position: relative;
    z-index: 2;
    max-width: 640px;
    text-align: center;
    padding: 0 28px;
    transform: translateY(clamp(-56px, -6vh, -34px));
}

/* Fills space under the mid content; toggle stays vertically centered here.
   Pass clicks through empty padding so the Browse control stays usable. */
.tb-hero-lower {
    grid-area: hero-bot;
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px 92px;
    pointer-events: none;
}


.tb-hero-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 600;
    color: rgba(255,255,255,0.94);
    line-height: 1.06;
    letter-spacing: -0.5px;
    margin: 0 0 22px;
}

.tb-hero-subtitle {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.44);
    margin-bottom: 20px;
}

.tb-hero-subtitle br {
    display: none;
}

.tb-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 650;
    color: rgba(255,255,255,0.54);
    margin: 0 0 22px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.22);
}

.tb-hero-controls {
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
    transform: translateY(-40px);
    pointer-events: auto;
}

.tb-hero-control-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tb-hero-mode-group {
    flex-direction: column;
    padding-left: 0;
}

.tb-hero-control-kicker {
    display: inline-flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(80,250,123,0.86);
    text-shadow: 0 1px 10px rgba(0,0,0,0.32);
}

.tb-hero-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.35;
    white-space: nowrap;
}

.tb-hero-stat strong {
    color: rgba(255,255,255,0.86);
    font-size: 14px;
    font-weight: 800;
}

/* ----------------------------------------------------------------
   HERO THEME SWITCH
   ---------------------------------------------------------------- */
.tb-hero-theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(12,12,20,0.54);
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
    margin: 0;
}

.tb-hts-opt {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.58);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s;
    white-space: nowrap;
    line-height: 1;
}
.tb-hts-opt svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.tb-hts-opt[data-active] {
    color: #50fa7b;
}

.tb-hts-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    border-radius: 999px;
    background: rgba(80,250,123,0.1);
    border: 1px solid rgba(80,250,123,0.25);
    pointer-events: none;
    z-index: 0;
    transition: none;
}
.tb-hts-slider.tb-hts-ready {
    transition: left 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

html:not([data-theme="dark"]) .tb-hero-theme-switch {
    border-color: rgba(36,27,22,0.22);
    background: rgba(255,250,239,0.82);
    box-shadow: 0 12px 30px rgba(20,58,35,0.2);
}
html:not([data-theme="dark"]) .tb-hts-opt {
    color: rgba(36,27,22,0.62);
}
html:not([data-theme="dark"]) .tb-hts-opt[data-active] {
    color: #1f5f3e;
}
html:not([data-theme="dark"]) .tb-hts-slider {
    background: rgba(47,125,86,0.12);
    border-color: rgba(47,125,86,0.3);
}

html:not([data-theme="dark"]) .tb-hero-controls {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

html:not([data-theme="dark"]) .tb-hero-meta {
    background: transparent;
    border-color: transparent;
    color: rgba(36,27,22,0.68);
    text-shadow: 0 1px 10px rgba(255,250,239,0.42);
}

html:not([data-theme="dark"]) .tb-hero-control-kicker {
    color: #fff8eb;
    text-shadow: 0 2px 10px rgba(20,58,35,0.7);
}

html:not([data-theme="dark"]) .tb-hero-stat strong {
    color: #241b16;
}

@keyframes tb-hts-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.tb-hts-opt.tb-hts-pulse-once {
    animation: tb-hts-pulse 1s ease-in-out 3;
    color: rgba(255,255,255,0.7);
}
html:not([data-theme="dark"]) .tb-hts-opt.tb-hts-pulse-once {
    color: rgba(60,47,36,0.75);
}

/* Search */
.tb-hero-search {
    max-width: 480px;
    margin: 0 auto;
}

.tb-search-input {
    width: 100%;
    padding: 13px 20px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.tb-search-input::placeholder { color: rgba(255,255,255,0.28); }
.tb-search-input:focus {
    border-color: rgba(80,250,123,0.35);
    background: rgba(255,255,255,0.08);
}

.tb-hero-browse-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: rgba(255,255,255,0.34) !important;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
}
.tb-hero-browse-scroll:hover,
.tb-hero-browse-scroll:focus-visible {
    color: rgba(80,250,123,0.75) !important;
    text-decoration: none !important;
}
.tb-hero-browse-scroll:focus-visible {
    outline: 2px solid rgba(80,250,123,0.55);
    outline-offset: 6px;
    border-radius: 4px;
}
.tb-hero-browse-scroll svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    animation: tb-browse-bob 2.2s ease-in-out infinite;
}
@keyframes tb-browse-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ----------------------------------------------------------------
   GENERIC SECTION WRAPPER
   ---------------------------------------------------------------- */
.tb-s {
    padding: 80px 28px;
}

.tb-s-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.tb-s-head {
    margin-bottom: 52px;
}

.tb-label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(80,250,123,0.55);
    margin-bottom: 14px;
}

.tb-h2 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0 0 14px;
    line-height: 1.1;
}

.tb-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.38);
    line-height: 1.75;
    max-width: none;
    margin: 0;
}

/* ----------------------------------------------------------------
   FEATURES: OBSERVE / IDENTIFY / REFRAME
   ---------------------------------------------------------------- */
.tb-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tb-feat {
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 34px 28px;
    transition: background 0.2s, border-color 0.2s;
}
.tb-feat:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}

.tb-feat-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 18px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    color: rgba(80,250,123,0.85);
    border: 1px solid rgba(80,250,123,0.28);
    background: rgba(80,250,123,0.08);
}

.tb-feat-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 23px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin: 0 0 10px;
}

.tb-feat-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.38);
    line-height: 1.72;
    margin: 0 0 16px;
}

.tb-feat-badge {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(80,250,123,0.22);
    color: rgba(80,250,123,0.6);
    text-decoration: none !important;
}
.tb-feat-badge:hover { border-color: rgba(80,250,123,0.5); color: rgba(80,250,123,0.9) !important; }

/* ----------------------------------------------------------------
   CATALOG CONTROLS
   ---------------------------------------------------------------- */
#tb-catalog .tb-s-head {
    margin-bottom: 32px;
}

.tb-catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    width: 100%;
}

.tb-catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.tb-catalog-search {
    flex: 0 1 280px;
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 10px 38px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 13px center;
}
.tb-catalog-search::placeholder { color: rgba(255,255,255,0.25); }
.tb-catalog-search:focus {
    border-color: rgba(80,250,123,0.3);
    background-color: rgba(255,255,255,0.07);
}

.tb-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    width: 100%;
}

.tb-filter {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.38);
    cursor: pointer;
    transition: all 0.15s;
}
.tb-filter.active,
.tb-filter:hover {
    border-color: rgba(80,250,123,0.4);
    color: rgba(80,250,123,0.85);
    background: rgba(80,250,123,0.05);
}

.tb-catalog-sort-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
}

.tb-catalog-sort-label {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}

.tb-catalog-sort {
    padding: 6px 28px 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s, background 0.2s;
}
.tb-catalog-sort option {
    background-color: #14141c;
    color: rgba(255,255,255,0.88);
}
.tb-catalog-sort:hover,
.tb-catalog-sort:focus {
    border-color: rgba(80,250,123,0.35);
    background-color: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .tb-catalog-toolbar {
        flex-wrap: wrap;
    }
}

/* ----------------------------------------------------------------
   BUG SPECIMEN CARDS
   ---------------------------------------------------------------- */
.tb-bugs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 10px;
    align-content: start;
}

.tb-bug-card {
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 13px;
    padding: 20px 20px 18px;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    gap: 8px;
    min-width: 0;
}

.tb-bug-card-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none !important;
    color: inherit !important;
}
.tb-bug-card-main:hover,
.tb-bug-card-main:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.tb-bug-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cc, #467ed2);
    opacity: 0.55;
    transition: opacity 0.2s;
}

.tb-bug-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    text-decoration: none !important;
}
.tb-bug-card:hover::after { opacity: 1; }

.tb-bug-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tb-bug-cat {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cc, #467ed2);
    opacity: 0.9;
}

.tb-bug-id {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.17);
}

.tb-bug-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin: 0;
    line-height: 1.2;
}

.tb-bug-tagline {
    font-size: 12.5px;
    color: rgba(255,255,255,0.36);
    line-height: 1.6;
    margin: 0;
}

.tb-bug-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
    min-width: 0;
}

.tb-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.26);
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.tb-tag:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.18);
    text-decoration: none;
}

.tb-tag--umbrella { border-color: rgba(59,130,246,0.28); color: rgba(147,197,253,0.7); }
.tb-tag--problem  { border-color: rgba(249,115,22,0.24); color: rgba(251,146,60,0.65); }
.tb-tag--life     { border-color: rgba(16,185,129,0.24); color: rgba(52,211,153,0.65); }

/* Bug avatar + trait indicators */
.tb-bug-visual {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.tb-bug-avatar {
    flex-shrink: 0;
    display: block;
}

.tb-harm-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tb-harm-score {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--hc, #50fa7b);
}

.tb-harm-label {
    font-size: 8px;
    opacity: 0.55;
    color: rgba(255,255,255,0.5);
}

.tb-harm-badge.harm-severe .tb-harm-score { color: #ef4444; }
.tb-harm-badge.harm-high .tb-harm-score { color: #f97316; }
.tb-harm-badge.harm-moderate .tb-harm-score { color: #f59e0b; }
.tb-harm-badge.harm-mild .tb-harm-score { color: #a3e635; }
.tb-harm-badge.harm-low .tb-harm-score { color: #50fa7b; }

/* Catalog footer */
.tb-catalog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

.tb-catalog-count {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
}

.tb-btn-ghost {
    padding: 9px 20px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
}
.tb-btn-ghost:hover {
    border-color: rgba(80,250,123,0.4);
    color: rgba(80,250,123,0.8);
    text-decoration: none !important;
}

.tb-bug-card.is-hidden { display: none !important; }

.tb-catalog-empty {
    text-align: center;
    padding: 24px 20px 10px;
    color: rgba(255,255,255,0.32);
    font-size: 14px;
    display: block;
}
.tb-catalog-empty.is-hidden { display: none; }

/* Hero search dropdown */
.tb-hero-search-wrap {
    position: relative;
    flex: 1;
}

.tb-hero-search-wrap .tb-search-input {
    width: 100%;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(255,255,255,0.32)' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.tb-hero-search-wrap .tb-search-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(80,250,123,0.55)' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

.tb-hero-search-results {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 56px));
    top: calc(100% + 6px);
    background: #12121c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    display: none;
    max-height: min(620px, 72vh);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(80,250,123,0.45) rgba(255,255,255,0.03);
}
.tb-hero-search-results.is-open { display: block; }

/* Let the dropdown paint over the catalog (hero otherwise clips / sits under .tb-s) */
.tb-hero:has(.tb-hero-search-results.is-open) {
    overflow: visible;
    z-index: 40;
}
.tb-hero-copy:has(.tb-hero-search-results.is-open),
html:not([data-theme="dark"]) .tb-hero-copy:has(.tb-hero-search-results.is-open) {
    z-index: 10;
}

.tb-hero-search-results::-webkit-scrollbar { width: 10px; }
.tb-hero-search-results::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.tb-hero-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(80,250,123,0.35);
    border-radius: 10px;
    border: 2px solid #12121c;
}

.tb-hero-search-header {
    padding: 10px 16px 8px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(80,250,123,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: #12121c;
    z-index: 1;
}

.tb-hero-search-result {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
    align-items: flex-start;
}
.tb-hero-search-result:last-child { border-bottom: none; }
.tb-hero-search-result:hover,
.tb-hero-search-result.is-active {
    background: rgba(80,250,123,0.06);
    text-decoration: none !important;
}

.tb-hero-search-result-stripe {
    width: 3px;
    align-self: stretch;
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.85;
}

.tb-hero-search-result-body {
    flex: 1;
    min-width: 0;
}

.tb-hero-search-result-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.tb-hero-search-result-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.2;
}

.tb-hero-search-result-name mark,
.tb-hero-search-result-tagline mark {
    background: #facc15;
    color: #14532d;
    border-radius: 2px;
    padding: 0 2px;
}

.tb-hero-search-result-id {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.22);
    flex-shrink: 0;
}

.tb-hero-search-result-cat {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rc, rgba(255,255,255,0.4));
    margin-bottom: 5px;
}

.tb-hero-search-result-tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.36);
    line-height: 1.5;
    margin: 0;
}

.tb-hero-search-footer {
    padding: 9px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    text-align: center;
    position: sticky;
    bottom: 0;
    background: #12121c;
}

.tb-hero-search-footer a {
    color: rgba(80,250,123,0.7) !important;
    text-decoration: none !important;
}
.tb-hero-search-footer a:hover { color: #50fa7b !important; }

.tb-hero-search-empty {
    padding: 20px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* ----------------------------------------------------------------
   CATEGORIES GRID
   ---------------------------------------------------------------- */
.tb-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.tb-cat-card {
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 20px 18px;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tb-cat-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.tb-cat-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cc, #467ed2);
    margin-bottom: 12px;
    box-shadow: 0 0 6px var(--cc, #467ed2);
    opacity: 0.8;
}

.tb-cat-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 0 0 5px;
    line-height: 1.25;
}

.tb-cat-n {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cc, #467ed2);
    opacity: 0.75;
    margin-bottom: 8px;
    display: block;
}

.tb-cat-desc {
    font-size: 11.5px;
    color: rgba(255,255,255,0.3);
    line-height: 1.55;
}

/* ----------------------------------------------------------------
   CTA BANNER
   ---------------------------------------------------------------- */
.tb-cta-wrap {
    padding: 64px 28px 16px;
}

.tb-cta-banner {
    max-width: 1160px;
    margin: 0 auto;
    background: rgba(80,250,123,0.025);
    border: 1px solid rgba(80,250,123,0.12);
    border-radius: 22px;
    padding: 60px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.tb-cta-banner::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(80,250,123,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.tb-cta-copy { position: relative; }

.tb-cta-eyebrow {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(80,250,123,0.55);
    margin-bottom: 14px;
}

.tb-cta-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0 0 14px;
    line-height: 1.15;
}

.tb-cta-text {
    font-size: 14px;
    color: rgba(255,255,255,0.38);
    line-height: 1.75;
    max-width: 480px;
    margin: 0;
}

.tb-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    position: relative;
}

.tb-btn-green {
    padding: 13px 24px;
    border-radius: 32px;
    background: #50fa7b;
    color: #09090f;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}
.tb-btn-green:hover { background: #6cff8e; transform: translateY(-1px); text-decoration: none !important; }

.tb-btn-dim {
    padding: 13px 22px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.14);
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
}
.tb-btn-dim:hover {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
}

/* High-contrast light home theme */
html:not([data-theme="dark"]) .home-page-content {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    color: #111827;
}

html:not([data-theme="dark"]) #tb-viz-canvas {
    filter: invert(1) hue-rotate(180deg) contrast(1.2);
}

html:not([data-theme="dark"]) .tb-hero-title,
html:not([data-theme="dark"]) .tb-h2,
html:not([data-theme="dark"]) .tb-feat-title,
html:not([data-theme="dark"]) .tb-bug-name,
html:not([data-theme="dark"]) .tb-cat-name,
html:not([data-theme="dark"]) .tb-cta-title {
    color: #0f172a;
}

html:not([data-theme="dark"]) .tb-hero-subtitle,
html:not([data-theme="dark"]) .tb-sub,
html:not([data-theme="dark"]) .tb-feat-desc,
html:not([data-theme="dark"]) .tb-bug-tagline,
html:not([data-theme="dark"]) .tb-cat-desc,
html:not([data-theme="dark"]) .tb-cta-text {
    color: #475569;
}

html:not([data-theme="dark"]) .tb-feat-step {
    color: #096b2c;
    border-color: #16a34a;
    background: #f0fdf4;
}

html:not([data-theme="dark"]) .tb-label,
html:not([data-theme="dark"]) .tb-cta-eyebrow {
    color: #087a35;
}

html:not([data-theme="dark"]) .tb-search-input,
html:not([data-theme="dark"]) .tb-catalog-search,
html:not([data-theme="dark"]) .tb-catalog-sort {
    background-color: #ffffff;
    border-color: #64748b;
    color: #0f172a;
}

html:not([data-theme="dark"]) .tb-search-input::placeholder,
html:not([data-theme="dark"]) .tb-catalog-search::placeholder {
    color: #64748b;
}

html:not([data-theme="dark"]) .tb-search-input:focus,
html:not([data-theme="dark"]) .tb-catalog-search:focus,
html:not([data-theme="dark"]) .tb-catalog-sort:focus {
    background-color: #ffffff;
    border-color: #087a35;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.14);
}

html:not([data-theme="dark"]) .tb-hero-search-wrap .tb-search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23334155' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

html:not([data-theme="dark"]) .tb-hero-search-wrap .tb-search-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23087a35' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

html:not([data-theme="dark"]) .tb-catalog-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23334155' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

html:not([data-theme="dark"]) .tb-catalog-sort {
    color-scheme: light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23334155' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html:not([data-theme="dark"]) .tb-catalog-sort option {
    background: #ffffff;
    color: #0f172a;
}

html:not([data-theme="dark"]) .tb-filter,
html:not([data-theme="dark"]) .tb-btn-ghost,
html:not([data-theme="dark"]) .tb-btn-dim {
    background: #ffffff;
    border-color: #94a3b8;
    color: #334155 !important;
}

html:not([data-theme="dark"]) .tb-filter:hover,
html:not([data-theme="dark"]) .tb-filter.active,
html:not([data-theme="dark"]) .tb-btn-ghost:hover {
    background: #f0fdf4;
    border-color: #16803d;
    color: #096b2c !important;
}

html:not([data-theme="dark"]) .tb-feat,
html:not([data-theme="dark"]) .tb-bug-card,
html:not([data-theme="dark"]) .tb-cat-card,
html:not([data-theme="dark"]) .tb-cta-banner {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}

html:not([data-theme="dark"]) .tb-feat:hover,
html:not([data-theme="dark"]) .tb-bug-card:hover,
html:not([data-theme="dark"]) .tb-cat-card:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

html:not([data-theme="dark"]) .tb-bug-id,
html:not([data-theme="dark"]) .tb-harm-label,
html:not([data-theme="dark"]) .tb-catalog-count,
html:not([data-theme="dark"]) .tb-catalog-sort-label {
    color: #64748b;
}

html:not([data-theme="dark"]) .tb-tag {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

html:not([data-theme="dark"]) .tb-catalog-foot {
    border-color: #cbd5e1;
}

html:not([data-theme="dark"]) .tb-hero-search-results,
html:not([data-theme="dark"]) .tb-hero-search-header,
html:not([data-theme="dark"]) .tb-hero-search-footer {
    background: #ffffff;
    border-color: #cbd5e1;
}

html:not([data-theme="dark"]) .tb-hero-search-results {
    box-shadow: 0 16px 40px rgba(15,23,42,0.18);
}

html:not([data-theme="dark"]) .tb-hero-search-result {
    border-color: #e2e8f0;
}

html:not([data-theme="dark"]) .tb-hero-search-result:hover,
html:not([data-theme="dark"]) .tb-hero-search-result.is-active {
    background: #f0fdf4;
}

html:not([data-theme="dark"]) .tb-hero-search-result-name {
    color: #0f172a;
}

html:not([data-theme="dark"]) .tb-hero-search-result-name mark,
html:not([data-theme="dark"]) .tb-hero-search-result-tagline mark {
    background: #facc15;
    color: #14532d;
}

html:not([data-theme="dark"]) .tb-hero-search-result-id,
html:not([data-theme="dark"]) .tb-hero-search-result-tagline,
html:not([data-theme="dark"]) .tb-hero-search-footer,
html:not([data-theme="dark"]) .tb-hero-search-empty {
    color: #475569;
}

html:not([data-theme="dark"]) .tb-hero-browse-scroll {
    color: #334155 !important;
}

html:not([data-theme="dark"]) .tb-hero-browse-scroll:hover,
html:not([data-theme="dark"]) .tb-hero-browse-scroll:focus-visible {
    color: #fff8eb !important;
}

/* Garden theme: abstract greenery hero layer */
.tb-garden-layers {
    display: none;
}

/* One continuous cream → deep moss flow for the whole page */
html:not([data-theme="dark"]) .home-page-content {
    background: linear-gradient(180deg,
        #faf3e1 0%,
        #efeeda 16%,
        #d3ddba 42%,
        #a3bd8f 70%,
        #6d9a68 90%,
        #4d7a52 100%);
    color: #241b16;
    position: relative;
    overflow: clip;
}

/* Lighter companion leaf on the left, near the features section */
html:not([data-theme="dark"]) .home-page-content::before {
    content: '';
    position: absolute;
    left: -24vw;
    bottom: 19%;
    width: 52vw;
    height: 44vw;
    border-radius: 42% 58% 46% 54% / 48% 55% 45% 52%;
    background: linear-gradient(205deg, rgba(228,237,199,0.55) 0%, rgba(168,196,136,0.25) 75%);
    transform: rotate(11deg);
    pointer-events: none;
}

/* Big background leaf anchoring the bottom-right of the page */
html:not([data-theme="dark"]) .home-page-content::after {
    content: '';
    position: absolute;
    right: -18vw;
    bottom: -16vw;
    width: 62vw;
    height: 54vw;
    border-radius: 62% 38% 54% 46% / 55% 45% 58% 42%;
    background: linear-gradient(160deg, rgba(64,110,70,0.55) 0%, rgba(17,52,31,0.72) 80%);
    transform: rotate(-9deg);
    pointer-events: none;
}

/* Keep section content above the background leaf */
html:not([data-theme="dark"]) .tb-s,
html:not([data-theme="dark"]) .tb-cta-wrap,
html:not([data-theme="dark"]) .tb-newsletter {
    position: relative;
    z-index: 1;
}

html:not([data-theme="dark"]) #tb-viz-canvas {
    display: none;
}

html:not([data-theme="dark"]) .tb-hero-title,
html:not([data-theme="dark"]) .tb-h2,
html:not([data-theme="dark"]) .tb-feat-title,
html:not([data-theme="dark"]) .tb-bug-name,
html:not([data-theme="dark"]) .tb-cat-name,
html:not([data-theme="dark"]) .tb-cta-title {
    color: #241b16;
}

html:not([data-theme="dark"]) .tb-hero-subtitle,
html:not([data-theme="dark"]) .tb-sub,
html:not([data-theme="dark"]) .tb-feat-desc,
html:not([data-theme="dark"]) .tb-bug-tagline,
html:not([data-theme="dark"]) .tb-cat-desc,
html:not([data-theme="dark"]) .tb-cta-text {
    color: #7b6d61;
}

html:not([data-theme="dark"]) .tb-label,
html:not([data-theme="dark"]) .tb-cta-eyebrow,
html:not([data-theme="dark"]) .tb-bug-cat,
html:not([data-theme="dark"]) .tb-cat-n {
    color: #2f7d56;
}

html:not([data-theme="dark"]) .tb-feat,
html:not([data-theme="dark"]) .tb-bug-card,
html:not([data-theme="dark"]) .tb-cat-card,
html:not([data-theme="dark"]) .tb-cta-banner,
html:not([data-theme="dark"]) .tb-hero-search-results,
html:not([data-theme="dark"]) .tb-hero-search-header,
html:not([data-theme="dark"]) .tb-hero-search-footer {
    background: rgba(255,250,239,0.72);
    border-color: rgba(58,66,48,0.16);
    box-shadow: 0 18px 50px rgba(30,48,32,0.13);
    backdrop-filter: blur(16px);
}

html:not([data-theme="dark"]) .tb-feat:hover,
html:not([data-theme="dark"]) .tb-bug-card:hover,
html:not([data-theme="dark"]) .tb-cat-card:hover {
    background: rgba(255,245,223,0.94);
    border-color: rgba(47,125,86,0.24);
}

html:not([data-theme="dark"]) .tb-search-input,
html:not([data-theme="dark"]) .tb-catalog-search,
html:not([data-theme="dark"]) .tb-catalog-sort,
html:not([data-theme="dark"]) .tb-filter,
html:not([data-theme="dark"]) .tb-btn-ghost,
html:not([data-theme="dark"]) .tb-btn-dim {
    background-color: rgba(255,250,239,0.64);
    border-color: rgba(71,57,45,0.18);
    color: #241b16 !important;
}

html:not([data-theme="dark"]) .tb-search-input::placeholder,
html:not([data-theme="dark"]) .tb-catalog-search::placeholder {
    color: #7b6d61;
}

html:not([data-theme="dark"]) .tb-filter:hover,
html:not([data-theme="dark"]) .tb-filter.active,
html:not([data-theme="dark"]) .tb-btn-ghost:hover {
    background: #dff3df;
    border-color: rgba(47,125,86,0.35);
    color: #2f7d56 !important;
}

html:not([data-theme="dark"]) .tb-tag {
    background: rgba(223,243,223,0.46);
    border-color: rgba(47,125,86,0.16);
    color: #6f6255;
}

/* Garden action colors: deep leaf green instead of neon */
html:not([data-theme="dark"]) .tb-btn-green {
    background: #2f7d56;
}
html:not([data-theme="dark"]) .tb-btn-green:hover {
    background: #245f42;
}
html:not([data-theme="dark"]) .home-page-content a.tb-btn-green,
html:not([data-theme="dark"]) .home-page-content a.tb-btn-green:link,
html:not([data-theme="dark"]) .home-page-content a.tb-btn-green:visited,
html:not([data-theme="dark"]) .home-page-content a.tb-btn-green:hover {
    color: #fff8eb !important;
}

html:not([data-theme="dark"]) .tb-feat-badge {
    color: #245f42 !important;
    border-color: rgba(47,125,86,0.35);
}
html:not([data-theme="dark"]) .tb-feat-badge:hover {
    color: #1c4a33 !important;
    border-color: rgba(47,125,86,0.6);
}

html:not([data-theme="dark"]) .tb-feat-step {
    color: #245f42;
    border-color: rgba(47,125,86,0.4);
    background: rgba(223,243,223,0.6);
}

/* Text sitting directly on the green gradient needs deeper ink */
html:not([data-theme="dark"]) .tb-sub {
    color: rgba(30,38,26,0.72);
}

html:not([data-theme="dark"]) .tb-label,
html:not([data-theme="dark"]) .tb-cta-eyebrow {
    color: #245f42;
}

html:not([data-theme="dark"]) .tb-catalog-count,
html:not([data-theme="dark"]) .tb-catalog-sort-label {
    color: rgba(30,38,26,0.55);
}

html:not([data-theme="dark"]) .tb-catalog-foot {
    border-color: rgba(40,62,42,0.2);
}

html:not([data-theme="dark"]) .tb-bug-id,
html:not([data-theme="dark"]) .tb-harm-label {
    color: #8a7a6b;
}

/* Garden hero - quiet cream sky; deep green lives in the orbs below */
html:not([data-theme="dark"]) .tb-hero {
    min-height: calc(100vh - 54px);
    height: calc(100vh - 54px);
    /* Keep visible so search results can overlay the catalog; orbs clip in .tb-garden-layers */
    overflow: visible;
}

html:not([data-theme="dark"]) .tb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 19% 14%, rgba(240,196,102,0.18), transparent 16rem),
        radial-gradient(ellipse at 50% 118%, rgba(20,58,35,0.26), transparent 42rem);
}

html:not([data-theme="dark"]) .tb-hero-copy {
    z-index: 5;
    max-width: 640px;
    padding: 0 28px;
    text-align: center;
}

html:not([data-theme="dark"]) .tb-hero-title {
    font-size: clamp(42px, 6vw, 76px);
}

html:not([data-theme="dark"]) .tb-hero-search {
    margin: 0 auto;
}

html:not([data-theme="dark"]) .tb-hero-browse-scroll {
    z-index: 8;
    bottom: 24px;
    color: rgba(255,248,235,0.78) !important;
    text-shadow: 0 1px 12px rgba(0,0,0,0.28);
}
html:not([data-theme="dark"]) .tb-hero-browse-scroll:hover,
html:not([data-theme="dark"]) .tb-hero-browse-scroll:focus-visible {
    color: #fff8eb !important;
}
html:not([data-theme="dark"]) .tb-hero-browse-scroll:focus-visible {
    outline-color: rgba(255,248,235,0.7);
}

/* Animated greenery layer inside the hero */
html:not([data-theme="dark"]) .tb-garden-layers {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
    pointer-events: none;
}

.tb-greenery-orb,
.tb-garden-roamer,
.tb-garden-search-bug {
    position: absolute;
}

/* Three still, deep-green forms - no shine, no stripes */
html:not([data-theme="dark"]) .tb-greenery-orb {
    z-index: 2;
    border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
    background: linear-gradient(150deg, var(--orb-a), var(--orb-b));
    opacity: 0.9;
    animation: tb-organic-drift 24s ease-in-out infinite;
}

.tb-greenery-orb-one {
    width: 46vw;
    height: 44vw;
    left: -15vw;
    top: 24vh;
    --orb-a: rgba(24,77,45,0.82);
    --orb-b: rgba(84,130,80,0.4);
}

.tb-greenery-orb-two {
    width: 34vw;
    height: 30vw;
    right: -11vw;
    top: 6vh;
    --orb-a: rgba(52,102,60,0.5);
    --orb-b: rgba(140,168,112,0.3);
    animation-delay: -8s;
}

.tb-greenery-orb-three {
    width: 58vw;
    height: 32vw;
    right: 8vw;
    bottom: -12vw;
    --orb-a: rgba(16,54,32,0.78);
    --orb-b: rgba(52,105,66,0.5);
    animation-delay: -16s;
}

html:not([data-theme="dark"]) .tb-garden-roamer {
    z-index: var(--z, 4);
    left: var(--start-x);
    top: var(--start-y);
    width: var(--bug-size, 28px);
    height: var(--bug-size, 28px);
    opacity: var(--bug-alpha, 0.82);
    animation: tb-garden-roam var(--duration, 28s) linear infinite;
    animation-delay: var(--delay, 0s);
    pointer-events: none;
}

html:not([data-theme="dark"]) .tb-garden-search-bug {
    z-index: var(--z, 6);
    left: var(--start-x);
    top: var(--start-y);
    width: var(--bug-size, 34px);
    height: var(--bug-size, 34px);
    opacity: 0;
    pointer-events: none;
    animation: tb-garden-search-in 0.45s ease forwards, tb-garden-roam var(--duration, 18s) linear infinite;
    animation-delay: var(--delay, 0s), var(--delay, 0s);
}

.tb-garden-bug-shape {
    position: absolute;
    inset: 0;
    transform: rotate(var(--bug-rotate, 0deg));
}

.tb-garden-bug-body {
    position: absolute;
    left: 18%;
    top: 22%;
    width: 64%;
    height: 58%;
    border-radius: 56% 56% 48% 48%;
    background: var(--bug-fill, #e5484d);
    border: var(--bug-border, 1px solid rgba(60,47,36,0.42));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 10px 24px rgba(30,78,44,0.18);
}

.tb-garden-bug-body::before {
    content: '';
    position: absolute;
    left: 49%;
    top: 9%;
    bottom: 7%;
    width: 1px;
    background: var(--bug-line, rgba(40,30,24,0.42));
}

.tb-garden-bug-body::after {
    content: '';
    position: absolute;
    left: 22%;
    top: 26%;
    width: 14%;
    height: 14%;
    border-radius: 50%;
    background: var(--bug-spots, #2f261f);
    box-shadow:
        78% 18% 0 -1px var(--bug-spots, #2f261f),
        24% 116% 0 -1px var(--bug-spots, #2f261f),
        96% 106% 0 -1px var(--bug-spots, #2f261f);
}

.tb-garden-bug-head {
    position: absolute;
    right: 6%;
    top: 32%;
    width: 24%;
    height: 28%;
    border-radius: 50%;
    background: var(--bug-head, #3c2f24);
}

.tb-garden-bug-head::before,
.tb-garden-bug-head::after {
    content: '';
    position: absolute;
    right: 5%;
    width: 62%;
    height: 1px;
    background: var(--bug-line, rgba(40,30,24,0.5));
}

.tb-garden-bug-head::before {
    top: 12%;
    transform: rotate(-34deg);
}

.tb-garden-bug-head::after {
    bottom: 8%;
    transform: rotate(34deg);
}

.tb-garden-bug-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%);
    color: var(--bug-label, rgba(255,250,239,0.9));
    font-family: 'Nunito', sans-serif;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tb-bug-ladybug {
    --bug-fill: #e5484d;
    --bug-spots: #2f261f;
    --bug-head: #2f261f;
    --bug-label: rgba(255,250,239,0.9);
}

.tb-bug-rainbow {
    --bug-fill: linear-gradient(135deg, #fb7185 0%, #ffb84d 24%, #d9ef94 48%, #38bdf8 72%, #8b5cf6 100%);
    --bug-spots: rgba(255,250,239,0.72);
    --bug-head: #2f261f;
    --bug-label: #241b16;
}

.tb-bug-white {
    --bug-fill: rgba(255,252,239,0.92);
    --bug-border: 1.5px solid rgba(36,27,22,0.86);
    --bug-spots: rgba(36,27,22,0.86);
    --bug-head: rgba(36,27,22,0.86);
    --bug-label: #241b16;
}

.tb-bug-black {
    --bug-fill: #241b16;
    --bug-spots: rgba(255,252,239,0.72);
    --bug-head: #120d0a;
    --bug-line: rgba(255,252,239,0.26);
    --bug-label: rgba(255,252,239,0.88);
}

.tb-bug-gold {
    --bug-fill: #ffb84d;
    --bug-spots: rgba(60,47,36,0.56);
    --bug-head: #47392d;
    --bug-label: #241b16;
}

@keyframes tb-organic-drift {
    0%, 100% { transform: translate3d(0,0,0) rotate(-1deg) scale(1); }
    50% { transform: translate3d(0.8vw,-1vh,0) rotate(1.4deg) scale(1.02); }
}

@keyframes tb-garden-roam {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--move-x), var(--move-y), 0); }
}

@keyframes tb-garden-search-in {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .tb-bugs-grid { grid-template-columns: repeat(2, 1fr); }
    .tb-cats-grid  { grid-template-columns: repeat(3, 1fr); }
    .tb-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .tb-hero {
        min-height: calc(100dvh - 54px);
        height: calc(100dvh - 54px);
        padding: 0;
        overflow: visible;
    }
    .tb-hero:not(:has(.tb-hero-search-results.is-open)) {
        overflow: hidden;
    }
    .tb-hero-copy {
        transform: translateY(clamp(-64px, -9vh, -40px));
        padding: 0 20px;
        width: 100%;
        max-width: 640px;
    }
    html:not([data-theme="dark"]) .tb-hero {
        min-height: calc(100dvh - 54px);
        height: calc(100dvh - 54px);
        padding: 0;
    }
    html:not([data-theme="dark"]) .tb-hero-copy {
        width: auto;
        margin: 0;
        padding: 0 20px;
        transform: translateY(clamp(-64px, -9vh, -40px));
    }
    .tb-hero-lower {
        padding: 10px 16px 84px;
    }
    .tb-hero-control-group {
        justify-content: center;
    }
    .tb-hero-browse-scroll {
        bottom: max(22px, env(safe-area-inset-bottom, 22px));
    }
    html:not([data-theme="dark"]) .tb-hero-browse-scroll {
        bottom: max(22px, env(safe-area-inset-bottom, 22px));
    }
    .tb-hero-meta {
        padding: 5px 8px;
    }
    .tb-bugs-grid { grid-template-columns: 1fr; }
    .tb-cats-grid  { grid-template-columns: repeat(2, 1fr); }
    .tb-features-grid { grid-template-columns: 1fr; }
    .tb-cta-banner { flex-direction: column; padding: 40px 28px; }
    .tb-s { padding: 60px 20px; }
    .tb-cta-wrap { padding: 40px 20px 8px; }
}

@media (max-width: 480px) {
    .tb-cats-grid { grid-template-columns: 1fr; }
    .tb-hero-title { font-size: 40px; }
    .tb-hero-controls {
        width: 100%;
    }
    .tb-hero-lower {
        padding-bottom: 78px;
    }
    .tb-hero-meta {
        gap: 10px;
    }
}
