/* ──────────────────────────────────────────────────────────────────────
   Vibrant layer — bold AI-product visuals: mesh gradients, bento, glow.
   Loaded after premium.css so it overrides where needed.
   ──────────────────────────────────────────────────────────────────── */

/* ── Animated mesh-gradient backdrop for hero ──────────────────── */
.th-hero-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.th-mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    will-change: transform;
    animation: th-drift 22s ease-in-out infinite;
    mix-blend-mode: screen;
}
/* Mesh orb palette aligned with the mobile system: navy → sapphire → royal blue
   with a single bronze-gold seal cue. Reads as a global B2B trade-center
   palette (Bloomberg / Stripe-enterprise feel) instead of warm consumer hues. */
.th-mesh-orb-1 {
    background: radial-gradient(circle, #1E40AF 0%, transparent 65%);
    width: 460px; height: 460px;
    top: -140px; left: 5%;
}
.th-mesh-orb-2 {
    background: radial-gradient(circle, #2563EB 0%, transparent 65%);
    width: 380px; height: 380px;
    bottom: 10%; right: 10%;
    animation-delay: -7s;
}
.th-mesh-orb-3 {
    background: radial-gradient(circle, #1E5A8A 0%, transparent 65%);
    width: 320px; height: 320px;
    bottom: -80px; left: 35%;
    animation-delay: -14s;
}
.th-mesh-orb-4 {
    background: radial-gradient(circle, #B08D57 0%, transparent 65%);
    width: 220px; height: 220px;
    top: 20%; right: 20%;
    animation-delay: -3s;
    opacity: 0.30;
}

@keyframes th-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -50px) scale(1.12); }
    66%      { transform: translate(-30px, 40px) scale(0.92); }
}

/* Hero slide carousel needs the carousel-inner above the mesh */
.th-hero-carousel .carousel-inner { position: relative; z-index: 2; }

/* Subtle grid noise on top of hero — adds depth */
.th-hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ── KPI Stat strip — modern SaaS metric cards ────────────────── */
.th-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 768px) { .th-stats-row { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
@media (min-width: 1200px) { .th-stats-row { gap: 1.25rem; } }

.th-stat {
    background: #fff;
    border: 1px solid var(--th-border, #ececea);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem 1rem;
    box-shadow: var(--th-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.05));
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 240ms ease;
}
.th-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(232, 93, 28, 0.13), 0 4px 10px rgba(15, 23, 42, 0.05);
    border-color: #e2dfdb;
}
/* Cursor-following highlight */
.th-stat::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(232, 93, 28, 0.10),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
    z-index: 0;
}
.th-stat:hover::before { opacity: 1; }
.th-stat > * { position: relative; z-index: 1; }

.th-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}
.th-stat-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.th-stat-icon-1 { background: linear-gradient(135deg, #f97316, #c2410c); }
.th-stat-icon-2 { background: linear-gradient(135deg, #5a1e16, #c2410c); }
.th-stat-icon-3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.th-stat-icon-4 { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.th-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    line-height: 1;
}
.th-stat-trend i { font-size: 0.7rem; }
.th-stat-trend-up      { background: #ecfdf5; color: #047857; }
.th-stat-trend-neutral { background: #f1f5f9; color: #475569; }
.th-stat-trend-live {
    background: #fef2f2; color: #b91c1c;
}
.th-pulse-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
    animation: th-pulse-dot 1.6s infinite;
}

.th-stat-num {
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--th-text, #0e0c0a);
    font-variant-numeric: tabular-nums;
}
.th-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--th-text-muted, #5a5a55);
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
}

/* Mini visual under each metric */
.th-stat-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
}
.th-stat-bars span {
    flex: 1;
    background: linear-gradient(180deg, #fed7aa, #ea580c);
    border-radius: 2px;
    transform-origin: bottom;
    animation: th-bar-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.th-stat-bars span:nth-child(1) { animation-delay: 0.05s; }
.th-stat-bars span:nth-child(2) { animation-delay: 0.10s; }
.th-stat-bars span:nth-child(3) { animation-delay: 0.15s; }
.th-stat-bars span:nth-child(4) { animation-delay: 0.20s; }
.th-stat-bars span:nth-child(5) { animation-delay: 0.25s; }
.th-stat-bars span:nth-child(6) { animation-delay: 0.30s; }
.th-stat-bars span:nth-child(7) { animation-delay: 0.35s; }

.th-stat-spark {
    width: 100%; height: 32px;
    color: var(--th-primary, #ea580c);
    overflow: visible;
}
.th-stat-spark path {
    stroke: currentColor; stroke-width: 2; fill: none;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: th-spark-draw 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.th-stat-spark .fill {
    stroke: none; fill: currentColor;
    opacity: 0;
    animation: th-spark-fill 0.6s 1.4s ease forwards;
}

.th-stat-progress {
    height: 8px;
    background: #f5f3f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.th-stat-progress-bar {
    height: 100%;
    width: var(--p, 50%);
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(232, 93, 28, 0.4);
    transform-origin: left;
    animation: th-progress-grow 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes th-progress-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.th-stat-flags {
    display: flex;
    gap: 0.35rem;
    font-size: 1.25rem;
    line-height: 1;
}
.th-stat-flags span {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-stat:hover .th-stat-flags span { transform: translateY(-2px); }
.th-stat:hover .th-stat-flags span:nth-child(1) { transition-delay: 0s; }
.th-stat:hover .th-stat-flags span:nth-child(2) { transition-delay: 0.05s; }
.th-stat:hover .th-stat-flags span:nth-child(3) { transition-delay: 0.10s; }
.th-stat:hover .th-stat-flags span:nth-child(4) { transition-delay: 0.15s; }
.th-stat:hover .th-stat-flags span:nth-child(5) { transition-delay: 0.20s; }

/* ── BENTO KPI / Stats section ─────────────────────────────────── */
.th-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 1rem;
}
@media (min-width: 992px) {
    .th-bento { gap: 1.25rem; grid-auto-rows: 168px; }
}

.th-bento-tile {
    background: var(--th-surface, #fff);
    border: 1px solid var(--th-border, #ececea);
    border-radius: 1.1rem;
    padding: 1.25rem 1.4rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-bento-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(232, 93, 28, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Decorative glow that follows hover-cursor (magnetic feel) */
.th-bento-tile::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        300px circle at var(--mx, 50%) var(--my, 50%),
        rgba(232, 93, 28, 0.16),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 0;
    pointer-events: none;
}
.th-bento-tile:hover::before { opacity: 1; }
.th-bento-tile > * { position: relative; z-index: 1; }

/* Bento sizing — asymmetric (the "AI product" feel) */
.th-bento-feature   { grid-column: span 6; grid-row: span 2; }
.th-bento-half      { grid-column: span 3; }
.th-bento-third     { grid-column: span 2; }
.th-bento-tall      { grid-column: span 3; grid-row: span 2; }
@media (min-width: 992px) {
    .th-bento-feature { grid-column: span 3; grid-row: span 2; }
    .th-bento-half    { grid-column: span 3; }
    .th-bento-third   { grid-column: span 2; }
    .th-bento-tall    { grid-column: span 2; grid-row: span 2; }
}

.th-bento-feature {
    background:
        radial-gradient(800px circle at 0% 0%, rgba(232,93,28,0.06), transparent 50%),
        linear-gradient(135deg, #5a1e16 0%, #c2410c 60%, #ea580c 100%);
    color: #fff;
    border-color: transparent;
}
.th-bento-feature::before { display: none; }
.th-bento-feature .th-bento-num { font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; }
.th-bento-feature .th-bento-label { color: rgba(255,255,255,0.92); }
.th-bento-feature .th-bento-meta  { color: rgba(255,255,255,0.78); }

.th-bento-num {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--th-text, #0e0c0a);
    font-variant-numeric: tabular-nums;
}
.th-bento-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--th-text-muted, #5a5a55);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.th-bento-meta {
    font-size: 0.85rem;
    color: var(--th-text-muted, #5a5a55);
    line-height: 1.5;
}

/* "Live" pulse dot */
.th-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #16a34a;
}
.th-live-dot::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    animation: th-pulse-dot 1.6s infinite;
}
.th-bento-feature .th-live-dot { color: #fcd34d; }
.th-bento-feature .th-live-dot::before { background: #fcd34d; box-shadow: 0 0 0 0 rgba(252, 211, 77, 0.6); }
@keyframes th-pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Mini bar chart — pure CSS; for the "feature" tile */
.th-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-top: 0.5rem;
}
.th-mini-bars span {
    flex: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.3));
    border-radius: 3px;
    transform-origin: bottom;
    animation: th-bar-grow 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes th-bar-grow {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

/* Sparkline-like rising line */
.th-spark {
    width: 100%; height: 36px; margin-top: 0.6rem;
    color: var(--th-primary);
}
.th-spark path { stroke: currentColor; stroke-width: 2; fill: none;
    stroke-dasharray: 240; stroke-dashoffset: 240;
    animation: th-spark-draw 1.4s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.th-spark .fill { stroke: none; fill: currentColor; opacity: 0; animation: th-spark-fill 0.6s 1.6s ease forwards; }
@keyframes th-spark-draw { to { stroke-dashoffset: 0; } }
@keyframes th-spark-fill { to { opacity: 0.12; } }

/* ── How-it-works (3 steps with arrows) ───────────────────────── */
.th-how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: stretch;
}
@media (min-width: 992px) {
    .th-how-grid {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 1rem;
        align-items: stretch;
    }
}

.th-how-step {
    background: #fff;
    border: 1px solid var(--th-border, #ececea);
    border-radius: 1rem;
    padding: 1.4rem 1.4rem 1.5rem;
    box-shadow: var(--th-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.05));
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 240ms ease;
}
.th-how-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(232, 93, 28, 0.13), 0 4px 10px rgba(15, 23, 42, 0.05);
    border-color: var(--th-primary-light, #fed7aa);
}

/* Decorative top accent stripe */
.th-how-step::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--th-primary, #ea580c), transparent);
    opacity: 0;
    transition: opacity 240ms ease;
}
.th-how-step:hover::before { opacity: 1; }

.th-how-step-num {
    position: absolute;
    top: 1.1rem; right: 1.3rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}

.th-how-step-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 22px rgba(232, 93, 28, 0.30);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-how-step:hover .th-how-step-icon {
    transform: scale(1.06) rotate(-3deg);
}

.th-how-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--th-text, #0e0c0a);
    margin: 0 0 0.5rem;
}
.th-how-step-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--th-text-muted, #5a5a55);
    margin: 0;
}

.th-how-arrow {
    display: none;
    align-self: center;
    color: var(--th-primary-light, #fed7aa);
    font-size: 1.4rem;
}
@media (min-width: 992px) {
    .th-how-arrow {
        display: inline-flex;
        align-items: center;
    }
}

/* ── Compact ranked grid (5 mini-cards) — kept for reference ───── */
.th-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
@media (min-width: 576px) { .th-rank-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .th-rank-grid { grid-template-columns: repeat(5, 1fr); gap: 0.75rem; } }

.th-rank-mini {
    background: #fff;
    border: 1px solid var(--th-border, #ececea);
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem;
    text-decoration: none;
    color: var(--th-text, #0e0c0a);
    box-shadow: var(--th-shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
    transition:
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 220ms ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.th-rank-mini:hover {
    transform: translateY(-2px);
    color: var(--th-text, #0e0c0a);
    box-shadow: 0 12px 26px rgba(232, 93, 28, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
    border-color: var(--th-primary-light, #fed7aa);
}

.th-rank-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.th-rank-mini-num {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    background: #f5f3f0;
    color: var(--th-text-muted, #5a5a55);
}
.th-rank-mini-num.th-rank-num-1 {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    box-shadow: 0 4px 10px rgba(232, 93, 28, 0.32);
}
.th-rank-mini-num.th-rank-num-2 {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #5a1e16;
}
.th-rank-mini-num.th-rank-num-3 {
    background: #fff7ed;
    color: #5a1e16;
    border: 1px solid #fed7aa;
}

.th-rank-mini-icon {
    font-size: 1rem;
    color: var(--th-primary, #ea580c);
    opacity: 0.7;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-rank-mini:hover .th-rank-mini-icon {
    opacity: 1;
    transform: scale(1.08) rotate(-4deg);
}

.th-rank-mini-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.25;
    color: var(--th-text, #0e0c0a);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.1em;
}

.th-rank-mini-bar {
    height: 5px;
    background: #f5f3f0;
    border-radius: 999px;
    overflow: hidden;
}
.th-rank-mini-bar > span {
    display: block;
    height: 100%;
    width: var(--p, 50%);
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 999px;
    transform-origin: left;
    animation: th-rank-bar-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes th-rank-bar-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.th-rank-mini-stat {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.th-rank-mini-stat strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--th-text, #0e0c0a);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.th-rank-mini-stat span {
    font-size: 0.7rem;
    color: var(--th-text-muted, #5a5a55);
    text-transform: lowercase;
    font-weight: 600;
}

/* ── Ranked leaderboard (top sectors) — legacy / keep for fallback ─ */
.th-rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--th-border, #ececea);
    border-radius: 1rem;
    padding: 0.6rem;
    box-shadow: var(--th-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.05));
}
.th-rank-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.7rem;
    text-decoration: none;
    color: var(--th-text, #0e0c0a);
    transition:
        background 220ms ease,
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-rank-row:hover {
    background: linear-gradient(90deg, var(--th-primary-50, #fff7ed), transparent 80%);
    color: var(--th-text, #0e0c0a);
}

.th-rank-num {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    width: 36px;
    text-align: center;
    color: var(--th-text-subtle, #888581);
    font-variant-numeric: tabular-nums;
}
/* Highlight the top three */
.th-rank-num-1 {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 8px; padding: 0.3rem 0;
    box-shadow: 0 4px 12px rgba(232, 93, 28, 0.30);
}
.th-rank-num-2 {
    color: #5a1e16;
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-radius: 8px; padding: 0.3rem 0;
    box-shadow: 0 2px 8px rgba(232, 93, 28, 0.18);
}
.th-rank-num-3 {
    color: #5a1e16;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px; padding: 0.3rem 0;
}

.th-rank-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #fff7ed;
    color: var(--th-primary, #ea580c);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(232, 93, 28, 0.10);
    transition: background 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-rank-row:hover .th-rank-icon {
    background: var(--th-primary, #ea580c);
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
}

.th-rank-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.th-rank-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--th-text, #0e0c0a);
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.th-rank-bar {
    height: 6px;
    background: #f5f3f0;
    border-radius: 999px;
    overflow: hidden;
}
.th-rank-bar-fill {
    display: block;
    height: 100%;
    width: var(--p, 50%);
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(232, 93, 28, 0.35);
    transform-origin: left;
    animation: th-rank-bar-grow 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes th-rank-bar-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.th-rank-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    text-align: right;
    min-width: 80px;
}
.th-rank-stat strong {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--th-text, #0e0c0a);
    font-variant-numeric: tabular-nums;
}
.th-rank-stat span {
    font-size: 0.7rem;
    color: var(--th-text-muted, #5a5a55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.th-rank-go {
    color: var(--th-text-subtle, #888581);
    font-size: 1rem;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease;
}
.th-rank-row:hover .th-rank-go {
    transform: translateX(4px);
    color: var(--th-primary, #ea580c);
}

/* Reduce noise on mobile */
@media (max-width: 575px) {
    .th-rank-row {
        grid-template-columns: auto auto 1fr auto;
        gap: 0.6rem;
        padding: 0.7rem;
    }
    .th-rank-go { display: none; }
    .th-rank-stat { min-width: 60px; }
    .th-rank-stat strong { font-size: 1.15rem; }
    .th-rank-name { font-size: 0.92rem; }
    .th-rank-num { width: 32px; }
}

/* ── AI Trending pills (horizontal scrolling) ──────────────────── */
.th-ai-trends {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem;
    scrollbar-width: none;
}
.th-ai-trends::-webkit-scrollbar { display: none; }
.th-trend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--th-surface, #fff);
    border: 1px solid var(--th-border, #ececea);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--th-text, #0e0c0a);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--th-shadow-xs, 0 1px 2px rgba(15,23,42,0.04));
    position: relative;
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
                color 220ms ease;
}
.th-trend-chip:hover {
    transform: translateY(-2px);
    color: var(--th-primary);
    box-shadow: var(--th-shadow-md, 0 4px 12px rgba(15,23,42,0.06));
    border-color: var(--th-primary-light, #fed7aa);
}
.th-trend-chip-trend {
    color: #16a34a;
    font-weight: 700;
    font-size: 0.78rem;
}

/* Shimmer accent on chips */
.th-trend-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(232,93,28,0.10) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-trend-chip:hover::after { transform: translateX(100%); }

/* ── FAQ accordion — premium expandable cards ─────────────────── */
.th-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;            /* each column keeps its own height — opening
                                      an item never stretches/shifts the other */
    gap: 0.7rem 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}
.th-faq-col {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;                  /* allow long questions to wrap, not overflow */
}
/* Single column on tablets/phones */
@media (max-width: 767.98px) {
    .th-faq { grid-template-columns: 1fr; gap: 0.7rem; max-width: 880px; }
}

.th-faq-item {
    background: #fff;
    border: 1px solid var(--th-border, #ececea);
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: var(--th-shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
    transition:
        border-color 220ms ease,
        box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-faq-item[open] {
    border-color: var(--th-primary-light, #fed7aa);
    box-shadow: 0 8px 24px rgba(232, 93, 28, 0.10), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.th-faq-q {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--th-text, #0e0c0a);
    font-weight: 700;
    transition: background 180ms ease;
}
.th-faq-q::-webkit-details-marker { display: none; }
.th-faq-q::marker { display: none; content: ''; }
.th-faq-q:hover { background: var(--th-primary-50, #fff7ed); }

.th-faq-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--th-primary-50, #fff7ed);
    color: var(--th-primary, #ea580c);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(232, 93, 28, 0.10);
    transition: background 220ms ease, color 220ms ease;
}
.th-faq-item[open] .th-faq-icon {
    background: var(--th-primary, #ea580c);
    color: #fff;
}

.th-faq-q-text {
    flex: 1;
    font-size: 0.98rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.th-faq-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f5f3f0;
    color: var(--th-text-muted, #5a5a55);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
                background 220ms ease, color 220ms ease;
}
.th-faq-item[open] .th-faq-toggle {
    transform: rotate(45deg);
    background: var(--th-primary, #ea580c);
    color: #fff;
}

.th-faq-a {
    padding: 0 1.3rem 1.25rem 4.3rem;
    color: var(--th-text-muted, #5a5a55);
    font-size: 0.94rem;
    line-height: 1.65;
    animation: th-faq-fade 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes th-faq-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575px) {
    .th-faq-q { padding: 0.95rem 1rem; gap: 0.7rem; }
    .th-faq-icon { width: 34px; height: 34px; font-size: 0.95rem; }
    .th-faq-q-text { font-size: 0.92rem; }
    .th-faq-a { padding: 0 1rem 1.1rem 3.4rem; font-size: 0.9rem; }
}

/* ── Trust band — coherent with the slider + page-header palette.
   Same dark slate anchor; the soft warm radial provides the brand
   accent without dragging the section toward saturated brown territory. */
.th-trust-band {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background:
        radial-gradient(ellipse 800px 400px at 0% 0%, rgba(30, 64, 175, 0.42), transparent 55%),
        radial-gradient(ellipse 600px 300px at 100% 100%, rgba(176, 141, 87, 0.20), transparent 55%),
        linear-gradient(135deg, #0B1F33 0%, #0F172A 60%, #1E3A8A 100%);
    overflow: hidden;
    color: #fff;
}
.th-trust-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.th-trust-pillars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
@media (min-width: 768px) { .th-trust-pillars { grid-template-columns: repeat(4, 1fr); } }

.th-trust-pillar {
    padding: 1.25rem 1.5rem;
    position: relative;
    text-align: center;
}
/* Vertical dividers between pillars (only between, not edges) */
.th-trust-pillar::after {
    content: '';
    position: absolute;
    top: 18%; bottom: 18%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.th-trust-pillar:nth-child(2n)::after { display: none; }
@media (min-width: 768px) {
    .th-trust-pillar:nth-child(2n)::after { display: block; }
    .th-trust-pillar:nth-child(4n)::after { display: none; }
    .th-trust-pillar:last-child::after  { display: none; }
}
/* Bottom dividers between rows on mobile */
.th-trust-pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 768px) {
    .th-trust-pillar:nth-child(-n+2) { border-bottom: 0; }
}

.th-trust-pillar-icon {
    display: inline-flex;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fed7aa;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.th-trust-pillar:nth-child(2) .th-trust-pillar-icon { color: #fb923c; }
.th-trust-pillar:nth-child(3) .th-trust-pillar-icon { color: #c4b5fd; }
.th-trust-pillar:nth-child(4) .th-trust-pillar-icon { color: #fcd34d; }

.th-trust-pillar-metric {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #fdba74 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.45rem;
    font-variant-numeric: tabular-nums;
}
.th-trust-pillar-metric small {
    font-size: 0.55em;
    font-weight: 700;
    margin-left: 1px;
}

.th-trust-pillar-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.4rem;
}
.th-trust-pillar-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    max-width: 220px;
    margin: 0 auto;
}

/* Live pulse dot for "Recently added" eyebrow */
.th-recent-pulse {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #16a34a;
    margin-right: 0.55rem;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
    animation: th-pulse-dot 1.6s infinite;
    vertical-align: 1px;
}

/* ── Featured / Recent company cards — premium showcase ────────── */
.th-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ────────────────────────────────────────────────────────────────────
   COMPANY CARD (grid view) — info-dense brand-forward design.

   Layout: thin animated accent strip → header (logo + name + chips)
   → description → stat row → action footer with prominent CTA.

   No 16:9 cover photo (saved ~200px and removed empty-space placeholder
   for companies without a cover). Logo is hero-sized (72px) and sits
   inline with the name; flags/verified become inline chips so the
   header stays tight.
   ──────────────────────────────────────────────────────────────────── */
.th-co-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--th-border, #ececea);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--th-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.05));
    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 280ms ease;
    height: 100%;
}
.th-co-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(232, 93, 28, 0.20), 0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: var(--th-primary-light, #fed7aa);
}
.th-co-card.is-featured {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.14), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Top accent strip — animated gradient = brand identity, also acts as
   visual separator without taking real card real-estate (only 6px). */
.th-co-card-strip {
    height: 6px;
    background: linear-gradient(90deg,
        var(--th-primary, #ea580c) 0%,
        #fbbf24 50%,
        var(--th-primary, #ea580c) 100%);
    background-size: 200% 100%;
    animation: th-co-strip-flow 6s linear infinite;
}
.th-co-card.is-featured .th-co-card-strip {
    background: linear-gradient(90deg, #f59e0b 0%, #fde68a 50%, #f59e0b 100%);
    background-size: 200% 100%;
    height: 8px;
}
@keyframes th-co-strip-flow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Main link wraps the header + description + stats; footer sits outside
   so its action buttons remain independently clickable. */
.th-co-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    padding: 1.1rem 1.1rem 0.9rem;
    gap: 0.85rem;
}
.th-co-card-link:hover { color: inherit; }

/* Header: hero logo + title + chip row, side-by-side. */
.th-co-card-head {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.th-co-card-logo {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 1px solid #fed7aa;
    overflow: hidden;
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.14);
    position: relative;
}
.th-co-card-logo::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%);
    pointer-events: none;
}
.th-co-card-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 6px;
    position: relative; z-index: 1;
}
.th-co-card-logo-initial {
    width: 100%; height: 100%;
    background: var(--th-gradient-sunset, linear-gradient(135deg, #f97316, #ea580c));
    color: #fff;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative; z-index: 1;
}

.th-co-card-titlewrap {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 0.45rem;
}
.th-co-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--th-text, #0e0c0a);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.th-co-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

/* Inline chips next to / below the name (industry, stall, flags, verified). */
.th-co-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.th-co-chip i { font-size: 0.72rem; }
.th-co-chip-industry {
    background: var(--th-primary-50, #fff7ed);
    color: var(--th-primary, #ea580c);
    border: 1px solid var(--th-primary-light, #fed7aa);
}
.th-co-chip-stall {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Verified shield — small inline pill rather than absolute corner badge. */
.th-co-card-verified {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    border: 1px solid #dbeafe;
}

/* Featured / new flags — same visual language as before, but inline now. */
.th-co-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
.th-co-flag i { font-size: 0.7rem; }
.th-co-flag-featured {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #5a1e16;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.th-co-flag-new {
    background: rgba(22, 163, 74, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    animation: th-pulse-soft 2.4s infinite;
}
@keyframes th-pulse-soft {
    0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.10), 0 0 0 0 rgba(22, 163, 74, 0.45); }
    50%      { box-shadow: 0 2px 6px rgba(0,0,0,0.10), 0 0 0 6px rgba(22, 163, 74, 0); }
}

/* Description — bigger, 3 lines, the actual story-telling space. */
.th-co-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Stat strip — quick-glance facts (employees, founded, markets, certs).
   Only shows pills with actual data — adapts to lean profiles gracefully. */
.th-co-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.25rem;
}
.th-co-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.6rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.72rem;
    color: #64748b;
    transition: border-color 200ms ease, background 200ms ease;
}
.th-co-stat:hover {
    border-color: var(--th-primary-light, #fed7aa);
    background: var(--th-primary-50, #fff7ed);
}
.th-co-stat i {
    color: var(--th-primary, #ea580c);
    font-size: 0.82rem;
}
.th-co-stat strong {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* Action footer — channels + prominent CTA pill. */
.th-co-card-footer {
    padding: 0.7rem 1rem 0.7rem 1.1rem;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #ffffff 0%, #faf7f2 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.th-co-card-channels {
    display: flex; gap: 0.35rem; flex-wrap: wrap;
}
.th-co-channel.th-co-channel-share {
    background: #fff;
    cursor: pointer;
}
button.th-co-channel { font: inherit; padding: 0; }
.th-co-channel {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--th-border, #ececea);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 0.88rem;
    transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.th-co-channel-wa   { color: #16a34a; }
.th-co-channel-tg   { color: #2563eb; }
.th-co-channel-ph   { color: #f97316; }
.th-co-channel-mail { color: #475569; }
.th-co-channel-map  { color: #dc2626; }
.th-co-channel-share { color: #7c3aed; }
.th-co-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.th-co-channel-wa:hover    { background: #16a34a; color: #fff !important; border-color: #16a34a; }
.th-co-channel-tg:hover    { background: #2563eb; color: #fff !important; border-color: #2563eb; }
.th-co-channel-ph:hover    { background: #f97316; color: #fff !important; border-color: #f97316; }
.th-co-channel-mail:hover  { background: #475569; color: #fff !important; border-color: #475569; }
.th-co-channel-map:hover   { background: #dc2626; color: #fff !important; border-color: #dc2626; }
.th-co-channel-share:hover { background: #7c3aed; color: #fff !important; border-color: #7c3aed; }

.th-co-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.46rem 0.95rem;
    background: var(--th-primary, #ea580c);
    color: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.22);
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
}
.th-co-card-cta:hover {
    background: #c2410c;
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32);
}
.th-co-card-cta i { font-size: 0.82rem; }

/* RFQ variant of card CTA — gold gradient to stand out from primary orange */
.th-co-card-cta-rfq {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #5a1e16;
    box-shadow: 0 4px 12px rgba(245,158,11,0.32);
}
.th-co-card-cta-rfq:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #5a1e16;
    box-shadow: 0 6px 16px rgba(245,158,11,0.42);
}

/* ── Sector-image category tiles ───────────────────────────────── */
.th-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
@media (min-width: 576px) { .th-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .th-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }

.th-cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
    isolation: isolate;
    transition:
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-cat-tile:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(232, 93, 28, 0.25), 0 6px 14px rgba(15, 23, 42, 0.10);
}

.th-cat-tile-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}
.th-cat-tile:hover .th-cat-tile-img {
    transform: scale(1.08);
}

/* Two-stop overlay: subtle at top, dark at bottom for text legibility */
.th-cat-tile-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 12, 10, 0.18) 0%, rgba(15, 12, 10, 0.30) 40%, rgba(15, 12, 10, 0.85) 100%);
    z-index: 1;
    transition: background 320ms ease;
}
.th-cat-tile:hover .th-cat-tile-overlay {
    background:
        linear-gradient(180deg, rgba(232, 93, 28, 0.30) 0%, rgba(15, 12, 10, 0.45) 40%, rgba(90, 30, 22, 0.92) 100%);
}

.th-cat-tile-icon {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    z-index: 2;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), background 320ms ease;
}
.th-cat-tile:hover .th-cat-tile-icon {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(255, 255, 255, 0.32);
}

.th-cat-tile-count {
    position: absolute;
    top: 0.85rem; right: 0.85rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: var(--th-primary, #ea580c);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    text-transform: lowercase;
    line-height: 1.2;
}

.th-cat-tile-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1rem 1.1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.th-cat-tile-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.th-cat-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap 200ms ease, color 200ms ease;
}
.th-cat-tile:hover .th-cat-tile-cta {
    gap: 0.6rem;
    color: #fff;
}
.th-cat-tile-cta i { font-size: 0.85rem; }

/* lazy-loaded img fade-in already handled by motion.css */

/* ── Magnetic-feel industry tiles ──────────────────────────────── */
.th-industry-card {
    overflow: hidden;
    isolation: isolate;
}
.th-industry-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(232, 93, 28, 0.18),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 0;
    pointer-events: none;
}
.th-industry-card:hover::after { opacity: 1; }
.th-industry-card > * { position: relative; z-index: 1; }

/* ── How-it-works rail ─────────────────────────────────────────── */
.th-how {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .th-how { grid-template-columns: repeat(3, 1fr); } }

.th-how-step {
    background: var(--th-surface, #fff);
    border: 1px solid var(--th-border, #ececea);
    border-radius: 1rem;
    padding: 1.75rem;
    position: relative;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.th-how-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(15,23,42,0.08);
}
.th-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 22px rgba(232, 93, 28, 0.32);
    margin-bottom: 1rem;
}
.th-how-step h5 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--th-text, #0e0c0a);
}
.th-how-step p {
    color: var(--th-text-muted, #5a5a55);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ── CTA — vivid animated ──────────────────────────────────────── */
.th-cta {
    position: relative;
    overflow: hidden;
}
.th-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px circle at 20% 50%, rgba(147,197,253,0.18), transparent 50%),
        radial-gradient(600px circle at 80% 50%, rgba(255,255,255,0.10), transparent 50%);
    pointer-events: none;
    animation: th-cta-shift 12s ease-in-out infinite;
}
@keyframes th-cta-shift {
    0%, 100% { transform: scale(1) translateX(0); }
    50%      { transform: scale(1.1) translateX(-5%); }
}

/* ── Reduced motion override ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .th-mesh-orb,
    .th-cta::before,
    .th-mini-bars span,
    .th-spark path,
    .th-spark .fill,
    .th-trend-chip::after { animation: none !important; }
    .th-spark path { stroke-dashoffset: 0 !important; }
    .th-spark .fill { opacity: 0.12 !important; }
}
