siddhant-rajhans
TRIBE-style landing redesign with black/white theme toggle
25b3b03
/* CortexLab Futuristic Theme - Glassmorphism + Neon */
/* === GLOBAL === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
--bg-primary: #050510;
--bg-secondary: rgba(15, 15, 35, 0.7);
--bg-glass: rgba(20, 20, 50, 0.4);
--border-glass: rgba(100, 100, 255, 0.15);
--accent-purple: #7C3AED;
--accent-blue: #3B82F6;
--accent-cyan: #06B6D4;
--accent-pink: #EC4899;
--accent-green: #10B981;
--text-primary: #F1F5F9;
--text-secondary: #94A3B8;
--glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
--glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
--glow-cyan: 0 0 15px rgba(6, 182, 212, 0.2);
}
/* === HIDE STREAMLIT BRANDING (but keep the sidebar toggle reachable) === */
#MainMenu, footer {
visibility: hidden;
}
div[data-testid="stToolbar"] {
display: none;
}
div[data-testid="stDecoration"] {
display: none;
}
/* Streamlit's top header contains the sidebar toggle hamburger; we
* keep it visible but flatten the background so it doesn't conflict
* with our custom tr-header. */
header[data-testid="stHeader"] {
background: transparent !important;
height: auto;
}
header[data-testid="stHeader"]::before { display: none; }
button[data-testid="stSidebarCollapsedControl"],
button[data-testid="stSidebarToggle"],
button[data-testid="stBaseButton-headerNoPadding"] {
color: var(--text-primary) !important;
opacity: 0.9;
}
/* === BASE === */
.stApp {
background: var(--bg-primary);
background-image:
radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
color: var(--text-primary);
font-family: 'Inter', sans-serif;
}
/* === SIDEBAR === */
section[data-testid="stSidebar"] {
background: linear-gradient(180deg, rgba(10, 10, 30, 0.95) 0%, rgba(5, 5, 20, 0.98) 100%);
border-right: 1px solid var(--border-glass);
}
section[data-testid="stSidebar"] .stMarkdown h1,
section[data-testid="stSidebar"] .stMarkdown h2,
section[data-testid="stSidebar"] .stMarkdown h3 {
color: var(--accent-cyan);
font-weight: 600;
letter-spacing: -0.02em;
}
/* === GLASSMORPHISM CONTAINERS === */
div[data-testid="stVerticalBlock"] > div[data-testid="stVerticalBlockBorderWrapper"] {
background: var(--bg-glass);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-glass);
border-radius: 16px;
padding: 1.5rem;
box-shadow: var(--glow-purple);
}
/* Expanders */
div[data-testid="stExpander"] {
background: var(--bg-glass);
backdrop-filter: blur(10px);
border: 1px solid var(--border-glass);
border-radius: 12px;
}
div[data-testid="stExpander"] summary {
color: var(--text-primary);
font-weight: 500;
}
/* === METRICS === */
div[data-testid="stMetric"] {
background: var(--bg-glass);
backdrop-filter: blur(10px);
border: 1px solid var(--border-glass);
border-radius: 12px;
padding: 1rem 1.2rem;
box-shadow: var(--glow-blue);
transition: all 0.3s ease;
}
div[data-testid="stMetric"]:hover {
border-color: var(--accent-cyan);
box-shadow: var(--glow-cyan), 0 4px 20px rgba(6, 182, 212, 0.1);
transform: translateY(-2px);
}
div[data-testid="stMetric"] label {
color: var(--text-secondary);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
div[data-testid="stMetric"] div[data-testid="stMetricValue"] {
color: var(--accent-cyan);
font-weight: 700;
font-size: 1.8rem;
}
div[data-testid="stMetric"] div[data-testid="stMetricDelta"] {
color: var(--accent-green);
}
/* === HEADINGS === */
.stMarkdown h1 {
background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 700;
font-size: 2.5rem;
letter-spacing: -0.03em;
}
.stMarkdown h2 {
color: var(--text-primary);
font-weight: 600;
font-size: 1.4rem;
letter-spacing: -0.02em;
border-bottom: 1px solid var(--border-glass);
padding-bottom: 0.5rem;
}
.stMarkdown h3 {
color: var(--accent-blue);
font-weight: 600;
}
/* === BUTTONS === */
.stButton > button {
background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
color: white;
border: none;
border-radius: 10px;
padding: 0.6rem 1.5rem;
font-weight: 600;
letter-spacing: 0.02em;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.stButton > button:hover {
box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
transform: translateY(-2px);
}
/* === PAGE LINKS === */
a[data-testid="stPageLink-NavLink"] {
background: var(--bg-glass);
backdrop-filter: blur(8px);
border: 1px solid var(--border-glass);
border-radius: 12px;
padding: 0.8rem 1rem;
transition: all 0.3s ease;
}
a[data-testid="stPageLink-NavLink"]:hover {
border-color: var(--accent-purple);
box-shadow: var(--glow-purple);
transform: translateX(4px);
}
/* === DATAFRAMES === */
div[data-testid="stDataFrame"] {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border-glass);
}
div[data-testid="stDataFrame"] table {
background: var(--bg-secondary);
}
/* === SELECT / INPUT === */
div[data-testid="stSelectbox"],
div[data-testid="stMultiSelect"],
div[data-testid="stNumberInput"],
div[data-testid="stSlider"] {
color: var(--text-primary);
}
div[data-baseweb="select"] {
background: var(--bg-glass);
border-color: var(--border-glass);
border-radius: 8px;
}
/* === DIVIDER === */
hr {
border-color: var(--border-glass);
opacity: 0.5;
}
/* === TABS === */
div[data-baseweb="tab-list"] {
gap: 0.5rem;
}
button[data-baseweb="tab"] {
background: var(--bg-glass);
border: 1px solid var(--border-glass);
border-radius: 8px;
color: var(--text-secondary);
transition: all 0.3s ease;
}
button[data-baseweb="tab"]:hover,
button[data-baseweb="tab"][aria-selected="true"] {
background: rgba(124, 58, 237, 0.2);
border-color: var(--accent-purple);
color: var(--text-primary);
}
/* === CAPTIONS === */
.stCaption, .stMarkdown small, figcaption {
color: var(--text-secondary);
font-size: 0.8rem;
}
/* === PLOTLY CHARTS === */
div[data-testid="stPlotlyChart"] {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border-glass);
box-shadow: var(--glow-blue);
}
/* === SCROLLBAR === */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
background: var(--accent-purple);
border-radius: 3px;
}
/* === ANIMATED GLOW BORDER FOR MAIN CONTENT === */
@keyframes borderGlow {
0%, 100% { border-color: rgba(124, 58, 237, 0.2); }
50% { border-color: rgba(6, 182, 212, 0.3); }
}
div[data-testid="stVerticalBlock"] > div:first-child {
animation: borderGlow 4s ease infinite;
}
/* === WARNING/INFO/SUCCESS === */
div[data-testid="stAlert"] {
background: var(--bg-glass);
backdrop-filter: blur(8px);
border-radius: 10px;
}
/* === SPINNER === */
div[data-testid="stSpinner"] {
color: var(--accent-cyan);
}
/* === DOWNLOAD BUTTON === */
.stDownloadButton > button {
background: transparent;
border: 1px solid var(--accent-cyan);
color: var(--accent-cyan);
border-radius: 8px;
}
.stDownloadButton > button:hover {
background: rgba(6, 182, 212, 0.1);
box-shadow: var(--glow-cyan);
}
/* === CODE BLOCKS === */
code {
font-family: 'JetBrains Mono', monospace;
background: rgba(30, 30, 60, 0.6);
border: 1px solid var(--border-glass);
border-radius: 4px;
color: var(--accent-cyan);
}
/* === TRIBE-STYLE HEADER + HERO ====================================== */
.tr-header {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 1.2rem 1.5rem;
margin: -1rem -1rem 1.5rem -1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
background: linear-gradient(180deg,
rgba(5, 5, 16, 0.92) 0%,
rgba(5, 5, 16, 0.65) 100%);
backdrop-filter: blur(14px);
}
.tr-header-left { display: flex; flex-direction: column; line-height: 1; }
.tr-header-title {
font-size: 1.05rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.01em;
}
.tr-header-subtitle {
font-size: 0.72rem;
color: var(--text-secondary);
margin-top: 0.2rem;
font-weight: 400;
}
.tr-header-center {
text-align: center;
color: var(--text-secondary);
font-size: 0.85rem;
font-weight: 500;
letter-spacing: 0.02em;
opacity: 0.85;
}
.tr-header-right {
text-align: right;
display: flex;
justify-content: flex-end;
gap: 1.5rem;
}
.tr-nav-link {
color: var(--text-primary);
font-size: 0.85rem;
font-weight: 500;
text-decoration: none;
opacity: 0.75;
transition: opacity 0.2s ease;
}
.tr-nav-link:hover { opacity: 1; }
.tr-arrow {
display: inline-block;
transform: rotate(0deg);
margin-left: 0.15rem;
font-size: 0.75rem;
opacity: 0.6;
}
/* === Architecture explainer card ==================================== */
.tr-arch {
padding: 0.5rem 0.5rem 1rem 0;
}
.tr-arch-title {
font-size: 1.9rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
margin: 0.5rem 0 1rem 0;
line-height: 1.2;
}
.tr-arch-intro {
color: var(--text-secondary);
font-size: 0.95rem;
margin: 0 0 1.5rem 0;
line-height: 1.55;
}
.tr-step-list {
list-style: none;
padding: 0;
margin: 0;
}
.tr-step {
display: flex;
gap: 1rem;
margin-bottom: 1.3rem;
align-items: flex-start;
}
.tr-step-num {
flex-shrink: 0;
width: 1.6rem;
height: 1.6rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.78rem;
color: var(--text-secondary);
margin-top: 0.1rem;
font-feature-settings: "tnum";
}
.tr-step-body { flex: 1; }
.tr-step-title {
color: var(--text-primary);
font-size: 0.95rem;
font-weight: 600;
display: block;
margin-bottom: 0.25rem;
}
.tr-step-text {
color: var(--text-secondary);
font-size: 0.85rem;
line-height: 1.55;
margin: 0;
}
.tr-step-text u {
text-decoration: none;
border-bottom: 1px dotted rgba(124, 58, 237, 0.6);
color: #C4B5FD;
}
/* === Pipeline diagram =============================================== */
.tr-pipeline {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 1.5rem 0 0 0;
padding: 1rem;
background: rgba(15, 15, 35, 0.4);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 14px;
flex-wrap: wrap;
}
.tr-pipe-rows {
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1;
min-width: 240px;
}
.tr-pipe-row {
display: flex;
align-items: center;
gap: 0.6rem;
}
.tr-pipe-source {
flex: 1;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 8px;
padding: 0.4rem 0.7rem;
color: var(--text-primary);
font-size: 0.8rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.tr-pipe-icon {
color: var(--text-secondary);
font-size: 0.8rem;
width: 1rem;
text-align: center;
}
.tr-pipe-icon-lg {
font-size: 1.4rem;
color: var(--text-primary);
line-height: 1;
margin-bottom: 0.3rem;
}
.tr-pipe-arrow {
color: var(--text-secondary);
font-size: 0.85rem;
opacity: 0.5;
}
.tr-pipe-arrow-h { font-size: 1rem; }
.tr-pipe-model {
background: rgba(124, 58, 237, 0.10);
border: 1px solid rgba(124, 58, 237, 0.25);
color: #DDD6FE;
border-radius: 8px;
padding: 0.4rem 0.7rem;
font-size: 0.78rem;
font-weight: 500;
min-width: 100px;
text-align: center;
}
.tr-pipe-fuse {
background: rgba(59, 130, 246, 0.10);
border: 1px solid rgba(59, 130, 246, 0.25);
border-radius: 10px;
padding: 0.7rem 0.6rem;
color: #BFDBFE;
text-align: center;
min-width: 80px;
}
.tr-pipe-label {
font-size: 0.72rem;
line-height: 1.2;
color: var(--text-secondary);
}
/* === Demo panel (right column wrapper) ============================== */
.tr-demo-card {
background: rgba(15, 15, 35, 0.55);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 18px;
padding: 1rem 1rem 0.5rem 1rem;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(124, 58, 237, 0.05);
}
.tr-demo-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.6rem;
padding: 0.2rem 0.4rem 0.6rem 0.4rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tr-demo-title {
color: var(--text-secondary);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
}
.tr-demo-cbar {
display: flex;
align-items: center;
gap: 0.4rem;
position: relative;
}
.tr-demo-cbar-label {
font-size: 0.7rem;
color: var(--text-secondary);
font-weight: 500;
}
.tr-demo-cbar-grad {
width: 80px;
height: 6px;
border-radius: 3px;
background: linear-gradient(90deg, #1F2937 0%, #DC2626 35%, #F97316 65%, #FCD34D 100%);
box-shadow: 0 0 8px rgba(252, 211, 77, 0.25);
}
.tr-demo-cbar-caption {
position: absolute;
bottom: -1.1rem;
left: 0;
right: 0;
text-align: center;
font-size: 0.65rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.08em;
}
/* === Segmented controls (True / Compare / Predicted etc) ============ */
/* Restyle st.radio horizontal as a pill group. */
.tr-segmented div[role="radiogroup"] {
display: inline-flex;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 0.2rem;
gap: 0;
}
.tr-segmented div[role="radiogroup"] label {
margin: 0 !important;
padding: 0.4rem 1rem !important;
border-radius: 7px;
cursor: pointer;
color: var(--text-secondary) !important;
font-size: 0.82rem !important;
transition: all 0.2s ease;
background: transparent !important;
}
.tr-segmented div[role="radiogroup"] label:has(input:checked) {
background: rgba(255, 255, 255, 0.10) !important;
color: var(--text-primary) !important;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* sr-only: hide visually but keep input in layout so BaseWeb onChange fires */
.tr-segmented div[role="radiogroup"] input {
position: absolute !important;
opacity: 0 !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
}
/* Hide the BaseWeb visual radio dot, but keep it click-targetable */
.tr-segmented div[role="radiogroup"] label > div:first-child {
width: 0 !important;
height: 0 !important;
overflow: hidden !important;
opacity: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
}
.tr-segmented div[role="radiogroup"] label > div:last-child p { margin: 0 !important; }
/* Tab strip: thin underline on the active tab */
.stTabs [data-baseweb="tab-list"] {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
gap: 1.5rem;
}
.stTabs [data-baseweb="tab"] {
padding: 0.5rem 0;
color: var(--text-secondary);
font-size: 0.85rem;
background: transparent !important;
}
.stTabs [data-baseweb="tab"][aria-selected="true"] {
color: var(--text-primary);
border-bottom: 2px solid var(--accent-purple);
}
/* === TRIBE-style footer ============================================== */
.tr-foot {
margin: 4rem -1rem 0 -1rem;
padding: 3rem 2rem 1.5rem 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.06);
background: linear-gradient(180deg,
rgba(0, 0, 0, 0) 0%,
rgba(255, 255, 255, 0.015) 100%);
}
.tr-foot-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr 1fr;
gap: 2.5rem;
max-width: 1200px;
margin: 0 auto;
}
.tr-foot-brand-logo {
display: flex;
gap: 0.4rem;
margin-bottom: 0.7rem;
}
.tr-foot-dot {
width: 0.6rem;
height: 0.6rem;
border-radius: 50%;
display: inline-block;
}
.tr-foot-dot-a { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.tr-foot-dot-b { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.tr-foot-dot-c { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.tr-foot-brand-title {
font-size: 1.15rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.01em;
margin-bottom: 0.25rem;
}
.tr-foot-brand-tagline {
color: var(--text-secondary);
font-size: 0.85rem;
line-height: 1.5;
margin-bottom: 1rem;
max-width: 18rem;
}
.tr-foot-built {
font-size: 0.78rem;
color: var(--text-secondary);
opacity: 0.8;
}
.tr-foot-built a {
color: var(--accent-purple);
text-decoration: none;
}
.tr-foot-col-title {
color: var(--text-primary);
font-size: 0.78rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.9rem;
}
.tr-foot-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.tr-foot-link {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.85rem;
transition: color 0.2s ease;
}
.tr-foot-link:hover {
color: var(--text-primary);
}
.tr-foot-rule {
margin: 2.5rem auto 1rem auto;
max-width: 1200px;
border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tr-foot-legal {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--text-secondary);
font-size: 0.72rem;
opacity: 0.7;
}
.tr-foot-legal-right {
display: flex;
gap: 0.6rem;
align-items: center;
}
.tr-foot-legal-right a {
color: var(--text-secondary);
text-decoration: none;
}
.tr-foot-legal-right a:hover { color: var(--text-primary); }
/* === Feature card grid (Analysis tools) ============================== */
.cl-feature-card {
--card-accent: #7C3AED;
background: rgba(15, 15, 35, 0.55);
backdrop-filter: blur(10px);
border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
border-radius: 14px;
padding: 1.3rem 1.4rem 1.1rem 1.4rem;
transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
display: flex;
flex-direction: column;
min-height: 220px; /* uniform across the grid */
text-decoration: none;
}
.cl-feature-card:hover {
border-color: color-mix(in srgb, var(--card-accent) 70%, transparent);
box-shadow: 0 6px 24px color-mix(in srgb, var(--card-accent) 18%, transparent);
transform: translateY(-2px);
}
.cl-feature-icon {
font-size: 1.5rem;
margin-bottom: 0.6rem;
line-height: 1;
}
.cl-feature-title {
color: var(--card-accent);
font-size: 1.0rem;
font-weight: 600;
margin-bottom: 0.45rem;
letter-spacing: -0.005em;
}
.cl-feature-desc {
color: var(--text-secondary);
font-size: 0.83rem;
line-height: 1.55;
flex: 1; /* push CTA to the bottom of the card */
margin-bottom: 0.9rem;
}
.cl-feature-cta {
display: flex;
align-items: center;
justify-content: space-between;
color: var(--text-primary);
font-size: 0.82rem;
font-weight: 500;
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding-top: 0.75rem;
margin-top: auto;
transition: color 0.2s ease;
}
.cl-feature-arrow {
transition: transform 0.2s ease;
color: var(--card-accent);
font-weight: 600;
}
.cl-feature-card:hover .cl-feature-arrow {
transform: translateX(4px);
}
.cl-feature-link {
display: flex;
cursor: pointer;
color: inherit;
}
.cl-feature-link:visited { color: inherit; }
/* === Sidebar pre-hide (kill the initial flicker) ===================== */
/* Streamlit's collapsed sidebar still flashes briefly on first paint
* before its inline width animation finishes. Force the collapsed
* state at CSS level so users don't see the flash. The hamburger
* toggle stays clickable to expand it on demand. */
section[data-testid="stSidebar"][aria-expanded="false"] {
transform: translateX(-100%);
transition: transform 0.25s ease, width 0.25s ease;
visibility: hidden;
}
section[data-testid="stSidebar"][aria-expanded="true"] {
transform: translateX(0);
visibility: visible;
}
/* === Feature card refinements: anchor + spans + SVG icons =========== */
.cl-feature-card,
.cl-feature-card:visited,
.cl-feature-card:hover,
.cl-feature-card:focus {
text-decoration: none !important;
color: inherit;
}
.cl-feature-card span {
display: block;
text-decoration: none !important;
}
.cl-feature-card .cl-feature-cta-label,
.cl-feature-card .cl-feature-arrow {
display: inline-flex;
align-items: center;
}
/* Inline SVG icon block at the top of each card. */
.cl-feature-icon {
width: 2.0rem;
height: 2.0rem;
margin-bottom: 0.7rem;
color: var(--card-accent);
line-height: 1;
}
.cl-feature-icon svg {
width: 100%;
height: 100%;
display: block;
}
/* Arrow at bottom-right of the CTA strip; tints with the card accent. */
.cl-feature-arrow svg {
width: 1.05rem;
height: 1.05rem;
display: block;
}
.cl-feature-cta {
display: flex !important; /* override the .cl-feature-card span block rule */
align-items: center;
justify-content: space-between;
}
/* === Stat card (glow_card) and section header — variable-driven ===== */
.cl-stat-card {
--card-accent: #06B6D4;
background: var(--bg-glass);
backdrop-filter: blur(10px);
border: 1px solid color-mix(in srgb, var(--card-accent) 25%, var(--border-glass));
border-radius: 14px;
padding: 1.2rem 1rem;
text-align: center;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent) 12%, transparent);
}
.cl-stat-card:hover {
border-color: color-mix(in srgb, var(--card-accent) 50%, var(--border-glass));
box-shadow: 0 0 32px color-mix(in srgb, var(--card-accent) 20%, transparent);
}
.cl-stat-label {
color: var(--text-secondary);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.4rem;
font-weight: 600;
}
.cl-stat-value {
color: var(--card-accent);
font-size: 2.0rem;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
}
.cl-stat-sub {
color: var(--text-secondary);
font-size: 0.74rem;
margin-top: 0.25rem;
opacity: 0.8;
}
.cl-section {
margin: 1.5rem 0 1rem 0;
}
.cl-section-title {
color: var(--text-primary);
font-size: 1.25rem;
font-weight: 600;
letter-spacing: -0.01em;
margin: 0 0 0.3rem 0;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border-glass);
}
.cl-section-desc {
color: var(--text-secondary);
font-size: 0.85rem;
margin: 0;
}
/* The original .cl-feature-card relied on a hardcoded dark background.
* Switch it to the theme variable so the white overlay can re-skin it. */
.cl-feature-card {
background: var(--bg-glass);
}
/* === Theme toggle switch (sliding pill, sun/moon, in the header) ==== */
.tr-header-right {
display: flex;
align-items: center;
gap: 1.2rem;
justify-content: flex-end;
}
.tr-toggle {
text-decoration: none !important;
display: inline-flex;
align-items: center;
line-height: 1;
color: var(--text-primary);
}
.tr-toggle-track {
position: relative;
display: inline-flex;
align-items: center;
justify-content: space-between;
width: 3.4rem;
height: 1.6rem;
padding: 0 0.35rem;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 999px;
transition: background 0.25s ease, border-color 0.25s ease;
box-sizing: border-box;
}
.tr-toggle-track:hover {
border-color: rgba(255, 255, 255, 0.28);
}
.tr-toggle-side {
width: 0.95rem;
height: 0.95rem;
color: var(--text-secondary);
opacity: 0.55;
transition: opacity 0.2s ease, color 0.2s ease;
z-index: 0;
pointer-events: none;
}
.tr-toggle-icon {
width: 100%;
height: 100%;
display: block;
}
/* Active side glows; inactive side fades out */
.tr-toggle-track.off .tr-toggle-left {
opacity: 1;
color: #E2E8F0;
}
.tr-toggle-track.on .tr-toggle-right {
opacity: 1;
color: #FBBF24;
}
.tr-toggle-knob {
position: absolute;
top: 50%;
width: 1.25rem;
height: 1.25rem;
border-radius: 50%;
background: linear-gradient(180deg, #F8FAFC 0%, #CBD5E1 100%);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
transform: translateY(-50%) translateX(0);
transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 1;
pointer-events: none;
}
.tr-toggle-track.off .tr-toggle-knob {
transform: translateY(-50%) translateX(0);
left: 0.18rem;
}
.tr-toggle-track.on .tr-toggle-knob {
transform: translateY(-50%) translateX(1.78rem);
left: 0.18rem;
}