/* ──────────────────────────────────────────────────────────────────────
   Premium polish layer — B2B SaaS / industrial aesthetic.
   Loaded last; refines typography, spacing, shadows, and color discipline.
   No experimental layouts. No fancy effects. Real-product, not Dribbble.
   ──────────────────────────────────────────────────────────────────── */

:root {
    /* Refined neutrals — calmer foundation than pure white. */
    --th-bg: #fafaf7;
    --th-surface: #ffffff;
    --th-border: #ececea;
    --th-border-strong: #d8d6d3;
    --th-text: #0e0c0a;
    --th-text-muted: #5a5a55;
    --th-text-subtle: #888581;

    /* Multi-layer shadow tokens (the difference between fine and amateur). */
    --th-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --th-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --th-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --th-shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --th-shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
    --th-shadow-warm: 0 16px 38px rgba(232, 93, 28, 0.16), 0 2px 6px rgba(15, 23, 42, 0.05);
}

/* ── Document baseline — quieter, more readable ────────────────── */
body {
    background: var(--th-bg);
    color: var(--th-text);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';  /* Inter stylistic alts */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Section rhythm — premium breathing room ───────────────────── */
.th-section {
    padding-block: clamp(3.25rem, 6vw, 5.5rem);
}
.th-section-tight {
    padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* ── Container restraint ───────────────────────────────────────── */
.th-container-narrow { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* ── Eyebrow label (the "category" mark above titles) ──────────── */
.th-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--th-primary);
    margin-bottom: 0.75rem;
}

/* ── Heading hierarchy — strong but disciplined ────────────────── */
.th-h-eyebrow {
    color: var(--th-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.th-h-display {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--th-text);
    margin: 0;
}
.th-h-section {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--th-text);
    margin: 0;
}
.th-h-card {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--th-text);
    margin: 0;
}
.th-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--th-text-muted);
    max-width: 620px;
}

/* ── Section header utility — eyebrow + title + lead, centered ─ */
.th-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.th-section-head .th-h-section { margin: 0.6rem 0 0.75rem; }
.th-section-head .th-lead { margin: 0 auto; color: var(--th-text-muted); }

/* ── Premium card primitives ───────────────────────────────────── */
.th-card-premium {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: 1rem;
    box-shadow: var(--th-shadow-sm);
    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 cubic-bezier(0.16, 1, 0.3, 1);
}
.th-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--th-shadow-lg);
    border-color: var(--th-border-strong);
}

/* ── Hero polish — calmer, more confident ─────────────────────── */
.th-hero-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18), 0 14px 38px rgba(0,0,0,0.22);
}
.th-hero-carousel .text-white-75 {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.05rem;
    line-height: 1.6;
}
.th-hero-carousel .lead { font-weight: 400; }

/* Hero search — premium feel */
.th-hero-search {
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0,0,0,0.20), 0 2px 6px rgba(0,0,0,0.10);
}
.th-hero-search .form-control { font-size: 1rem; padding: 0.85rem 1rem; }
.th-hero-search .btn { padding-inline: 1.5rem; }

/* ── Industries section — calmer ground ─────────────────────────── */
.th-industries-section {
    background:
        radial-gradient(ellipse at top, rgba(232,93,28,0.025), transparent 55%),
        var(--th-bg);
}
.th-industries-section::before,
.th-industries-section::after {
    background: linear-gradient(90deg, transparent, var(--th-border), transparent);
}

/* Industry cards — quieter resting state, confident hover */
.th-industry-card {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    box-shadow: var(--th-shadow-xs);
    border-radius: 0.95rem;
    padding: 1.5rem 1rem 1.25rem;
}
.th-industry-card:hover {
    border-color: var(--th-border-strong);
    box-shadow: var(--th-shadow-warm);
}
.th-industry-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(232,93,28,0.08);
}
.th-industry-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--th-text);
}

/* ── KPI strip — subtle, confident ─────────────────────────────── */
.th-kpi-card {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    box-shadow: var(--th-shadow-sm);
}
.th-kpi-card:hover { box-shadow: var(--th-shadow-md); }

/* ── Trust strip — quieter spacing ─────────────────────────────── */

/* ── Why-Us cards — premium card treatment ─────────────────────── */
.th-why-card {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--th-shadow-sm);
    transition: box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}
.th-why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--th-shadow-lg);
}
.th-why-card .th-why-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: var(--th-primary);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: inset 0 0 0 1px rgba(232,93,28,0.10);
}
.th-why-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.th-why-card p {
    color: var(--th-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── CTA — navy → royal blue band, matches navbar + hero family.
   Old maroon→orange gradient replaced as part of the premium B2B palette
   migration; final CTA + app CTA + footer now read as one dark anchor. */
.th-cta {
    background:
        radial-gradient(ellipse 900px 500px at 15% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
        radial-gradient(ellipse 700px 400px at 100% 100%, rgba(176, 141, 87, 0.18), transparent 60%),
        linear-gradient(135deg, #0B1F33 0%, #1E40AF 55%, #1E5A8A 100%);
}
.th-cta h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.th-cta p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
}

/* ── Buttons — confident, restrained ───────────────────────────── */
.btn {
    font-weight: 600;
    border-radius: 0.55rem;
    padding: 0.55rem 1.1rem;
    transition:
        transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
        background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-lg { padding: 0.75rem 1.4rem; font-size: 0.98rem; }
.btn-light { box-shadow: var(--th-shadow-sm); }
.btn-light:hover { box-shadow: var(--th-shadow-md); }

/* Outline-primary refined to brand */
.btn-outline-primary {
    color: var(--th-primary);
    border-color: var(--th-primary-light);
}
.btn-outline-primary:hover {
    background: var(--th-primary);
    border-color: var(--th-primary);
    color: #fff;
    box-shadow: var(--th-shadow-md);
}

/* ── Section dividers — ultra-subtle ───────────────────────────── */
.th-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--th-border), transparent);
    margin: 0;
}

/* ── Badge / Verified pill refinement ──────────────────────────── */
.th-hero-badge {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.20);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Footer polish — deep navy, continues the CTA gradient downward. */
.th-footer { background: linear-gradient(180deg, #06101F 0%, #0B1F33 100%); }
.th-footer .small { color: rgba(255,255,255,0.72); }
.th-footer a { color: #93C5FD; transition: color 180ms ease; }
.th-footer a:hover { color: #DBEAFE; }
.th-footer-section-title {
    color: #93C5FD;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
}
.th-footer-bottom {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Reduce visual noise from old gradients ────────────────────── */
.th-section-title-center {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--th-text);
}
.th-section-title-center::after { display: none; }

/* ── Ensure focus-visible is always premium ────────────────────── */
:focus-visible {
    outline: 2px solid var(--th-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Tighten campaign hero typography on home ─────────────────── */
.th-camp-hero-title { letter-spacing: -0.015em; }
.th-camp-hero-desc { color: var(--th-text-muted); }
