/* ============================================================================
   TechfinResources — "Midnight Premium" design system
   A complete, new theme with full LIGHT + DARK support (token-driven).
   Loaded after Bootstrap grid + icon font; replaces the old template look.
   Fonts: Space Grotesk (display) + Inter (body).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens  (light is default; [data-theme="dark"] overrides)
   ---------------------------------------------------------------------------- */
:root {
    --gold: #d38e25;
    --gold-2: #ffba08;
    --gold-grad: linear-gradient(135deg, #ffba08 0%, #d38e25 100%);

    --bg: #fbfbfd;
    --bg-2: #f1f4f9;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --surface-glass: rgba(255, 255, 255, .72);
    --text: #0b1117;
    --text-soft: #2c3744;
    --text-muted: #5b6573;
    --border: #e6e9ef;
    --border-strong: #d7dce5;
    --ring: rgba(211, 142, 37, .35);

    --hero-bg: radial-gradient(120% 90% at 80% -10%, #fff6e2 0%, rgba(255,246,226,0) 55%),
               radial-gradient(110% 90% at 0% 0%, #eef2fb 0%, rgba(238,242,251,0) 60%),
               #fbfbfd;
    --grid-line: rgba(11, 17, 23, .05);
    --on-gold: #1a1205;

    --shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
    --shadow-md: 0 14px 34px rgba(16, 24, 40, .10);
    --shadow-lg: 0 30px 70px rgba(16, 24, 40, .14);
    --shadow-glow: 0 20px 60px rgba(211, 142, 37, .18);

    --radius: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --container: 1200px;
}

[data-theme="dark"] {
    --bg: #0b1117;
    --bg-2: #0e1620;
    --surface: #141e27;
    --surface-2: #18242f;
    --surface-glass: rgba(20, 30, 39, .6);
    --text: #eaf0f6;
    --text-soft: #c4ceda;
    --text-muted: #8d9bab;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --ring: rgba(255, 186, 8, .4);

    --hero-bg: radial-gradient(120% 90% at 82% -15%, rgba(255,186,8,.14) 0%, rgba(255,186,8,0) 55%),
               radial-gradient(120% 100% at -10% 0%, rgba(64,120,180,.18) 0%, rgba(64,120,180,0) 55%),
               #0b1117;
    --grid-line: rgba(255, 255, 255, .05);

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .4);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, .5);
    --shadow-lg: 0 34px 80px rgba(0, 0, 0, .6);
    --shadow-glow: 0 24px 70px rgba(255, 186, 8, .2);
}

/* ----------------------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }

body.tf {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background .4s var(--ease), color .4s var(--ease);
    overflow-x: hidden;
}

.tf h1, .tf h2, .tf h3, .tf h4, .tf h5, .tf h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}
.tf p { margin: 0 0 1rem; color: var(--text-soft); }
.tf a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
.tf img { max-width: 100%; display: block; }

.tf-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.tf-section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.tf-section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.tf-bg-alt { background: var(--bg-2); }

/* Eyebrow + section heading */
.tf-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold);
    padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
    background: var(--surface);
}
.tf-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-grad); }
.tf-h2 { font-size: clamp(28px, 4.4vw, 50px); margin: 18px 0 14px; }
.tf-lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); max-width: 60ch; }
.tf-head-center { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.tf-head-center .tf-lead { margin-inline: auto; }

/* ----------------------------------------------------------------------------
   3. Buttons
   ---------------------------------------------------------------------------- */
.tf-btn {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
    padding: 14px 26px; border-radius: var(--radius-pill); border: 1px solid transparent;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s;
    text-decoration: none;
}
.tf-btn svg { width: 18px; height: 18px; }
.tf-btn--primary { background: var(--gold-grad); color: var(--on-gold); box-shadow: var(--shadow-glow); }
.tf-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 28px 70px rgba(211,142,37,.34); }
.tf-btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.tf-btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.tf-btn--light { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.tf-btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tf-btn .arr { transition: transform .35s var(--ease); }
.tf-btn:hover .arr { transform: translateX(4px); }

/* ----------------------------------------------------------------------------
   4. Navbar
   ---------------------------------------------------------------------------- */
.tf-nav {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.tf-nav.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.tf-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; position: relative; }
/* Menu is absolutely centered across the full bar so logo/actions stay balanced */
.tf-nav__inner > nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tf-nav__logo { flex: 0 0 auto; }
.tf-nav__logo img { height: 34px; width: auto; }
/* Logo PNG has dark "RESOURCES" text — render it crisp white on dark theme */
[data-theme="dark"] .tf-nav__logo img,
[data-theme="dark"] .tf-footer__logo img { filter: brightness(0) invert(1); }
.tf-nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tf-nav__menu a {
    font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 15px; color: var(--text-soft);
    padding: 9px 16px; border-radius: var(--radius-pill); position: relative; transition: color .25s, background .25s;
}
.tf-nav__menu a:hover { color: var(--text); background: var(--surface-2); }
.tf-nav__menu a.active { color: var(--gold); }
.tf-nav__right { display: flex; align-items: center; gap: 12px; }

.tf-toggle {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
    transition: border-color .25s, transform .4s var(--ease), background .25s;
}
.tf-toggle:hover { border-color: var(--gold); transform: rotate(18deg); }
.tf-toggle svg { width: 19px; height: 19px; }
.tf-toggle .icon-moon { display: none; }
[data-theme="dark"] .tf-toggle .icon-sun { display: none; }
[data-theme="dark"] .tf-toggle .icon-moon { display: block; }

.tf-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.tf-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
body.tf-menu-open .tf-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.tf-menu-open .tf-burger span:nth-child(2) { opacity: 0; }
body.tf-menu-open .tf-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.tf-mobile {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .4s var(--ease); padding: 16px 24px 28px;
}
body.tf-menu-open .tf-mobile { transform: translateY(0); }
.tf-mobile a { display: block; padding: 14px 4px; font-family: 'Space Grotesk', sans-serif; font-size: 18px; border-bottom: 1px solid var(--border); }
.tf-mobile .tf-btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ----------------------------------------------------------------------------
   5. Hero
   ---------------------------------------------------------------------------- */
.tf-hero { position: relative; background: var(--hero-bg); overflow: hidden; padding: clamp(70px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.tf-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
.tf-hero__inner { position: relative; max-width: 920px; }
.tf-hero h1 { font-size: clamp(38px, 7vw, 84px); letter-spacing: -0.035em; margin: 22px 0 22px; }
.tf-hero h1 .grad { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tf-hero__lead { font-size: clamp(16px, 2.1vw, 20px); color: var(--text-muted); max-width: 60ch; margin-bottom: 34px; }
.tf-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.tf-hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: clamp(48px, 7vw, 84px); padding-top: 36px; border-top: 1px solid var(--border); }
.tf-stat__num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.tf-stat__num .suffix { color: var(--gold); }
.tf-stat__label { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ----------------------------------------------------------------------------
   6. Marquee (trust strip)
   ---------------------------------------------------------------------------- */
.tf-marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.tf-marquee__track { display: flex; gap: 56px; width: max-content; animation: tf-marquee 28s linear infinite; }
.tf-marquee__track span { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; color: var(--text-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.tf-marquee__track span::after { content: "✦"; color: var(--gold); }
@keyframes tf-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tf-marquee__track { animation: none; } }

/* ----------------------------------------------------------------------------
   7. Bento / feature grid
   ---------------------------------------------------------------------------- */
.tf-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tf-card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
    overflow: hidden;
}
.tf-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(255,186,8,.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s var(--ease); }
.tf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tf-card:hover::after { opacity: 1; }
.tf-card__icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 22px; margin-bottom: 20px; box-shadow: var(--shadow-glow); }
.tf-card__icon .my-icon { color: var(--on-gold); }
.tf-card h3 { font-size: 21px; margin-bottom: 10px; }
.tf-card h4 { font-size: 20px; margin-bottom: 10px; }
.tf-card p { color: var(--text-muted); font-size: 15px; margin: 0; }
.tf-card--wide { grid-column: span 2; }
.tf-card--dark { background: linear-gradient(150deg, #15222c, #0b1117); color: #fff; border-color: transparent; }
.tf-card--dark h3, .tf-card--dark h4 { color: #fff; }
.tf-card--dark p { color: rgba(255,255,255,.72); }

/* ----------------------------------------------------------------------------
   8. Solution card (DB-driven; used on homepage + listing)
   ---------------------------------------------------------------------------- */
.solution-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; text-decoration: none; color: var(--text); }
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.solution-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.solution-card:hover .solution-card__media img { transform: scale(1.07); }
.solution-badge { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); color: #fff; background: rgba(11,17,23,.78); backdrop-filter: blur(6px); }
.solution-badge.badge-live { background: linear-gradient(135deg, #16a34a, #0f7a37); }
.solution-badge.badge-beta { background: linear-gradient(135deg, #2563eb, #1e40af); }
.solution-badge.badge-prototype { background: var(--gold-grad); color: var(--on-gold); }
.solution-badge.badge-coming-soon { background: linear-gradient(135deg, #6b7280, #4b5563); }
.solution-card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px; flex: 1 1 auto; }
.solution-card__category { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.solution-card__title { font-size: 22px; margin: 0; }
.solution-card__summary { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.solution-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text); transition: gap .35s var(--ease), color .35s; }
.solution-card:hover .solution-card__link { gap: 14px; color: var(--gold); }

/* ----------------------------------------------------------------------------
   9. Split feature (who we are / about)
   ---------------------------------------------------------------------------- */
.tf-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tf-split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.tf-split__media img { width: 100%; height: 100%; object-fit: cover; }
.tf-split__badge { position: absolute; left: 22px; bottom: 22px; background: var(--surface-glass); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-md); }
.tf-split__badge .num { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; color: var(--gold); }
.tf-feature-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 18px; }
.tf-feature-list li { display: flex; gap: 16px; }
.tf-feature-list .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--gold); font-size: 18px; }
.tf-feature-list h4 { font-size: 18px; margin: 2px 0 4px; }
.tf-feature-list p { margin: 0; font-size: 14.5px; color: var(--text-muted); }

/* ----------------------------------------------------------------------------
   10. Process timeline
   ---------------------------------------------------------------------------- */
.tf-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.tf-timeline--3 { grid-template-columns: repeat(3, 1fr); }
.tf-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tf-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tf-step__no { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--on-gold); background: var(--gold-grad); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.tf-step__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.tf-step h4 { font-size: 19px; margin-bottom: 10px; }
.tf-step p { margin: 0; font-size: 14.5px; color: var(--text-muted); }

/* ----------------------------------------------------------------------------
   11. Testimonials
   ---------------------------------------------------------------------------- */
.tf-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tf-quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.tf-quote__stars { color: var(--gold-2); letter-spacing: 2px; font-size: 15px; }
.tf-quote p { font-size: 16px; color: var(--text-soft); margin: 0; flex: 1; }
.tf-quote__who { display: flex; align-items: center; gap: 14px; }
.tf-quote__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tf-quote__who h5 { margin: 0; font-size: 16px; }
.tf-quote__who span { color: var(--text-muted); font-size: 13px; }

/* ----------------------------------------------------------------------------
   12. CTA band
   ---------------------------------------------------------------------------- */
.tf-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px); text-align: center; background: linear-gradient(150deg, #15222c, #0b1117); color: #fff; box-shadow: var(--shadow-lg); }
.tf-cta::before { content: ""; position: absolute; top: -50%; right: -10%; width: 60%; height: 200%; background: var(--gold-grad); opacity: .16; filter: blur(70px); transform: rotate(18deg); }
.tf-cta::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%); }
.tf-cta > * { position: relative; }
.tf-cta h2 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 14px; }
.tf-cta p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 28px; }
.tf-cta .tf-btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.tf-cta .tf-btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ----------------------------------------------------------------------------
   13. Page hero / breadcrumb (interior pages)
   ---------------------------------------------------------------------------- */
.tf-pagehero { position: relative; background: var(--hero-bg); padding: clamp(86px, 11vw, 150px) 0 clamp(52px, 7vw, 88px); overflow: hidden; }
.tf-pagehero::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(120% 70% at 50% 0%, #000 30%, transparent 80%); }
.tf-pagehero .tf-container { position: relative; z-index: 2; }
.tf-pagehero__inner { position: relative; z-index: 2; max-width: 780px; }
.tf-pagehero h1 { font-size: clamp(36px, 6vw, 68px); }
.tf-pagehero h1 { font-size: clamp(34px, 6vw, 64px); margin: 16px 0 12px; }
.tf-crumb { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--text-muted); }
.tf-crumb li { position: relative; padding-right: 18px; }
.tf-crumb li:not(:last-child)::after { content: "/"; position: absolute; right: 4px; opacity: .5; }
.tf-crumb a:hover { color: var(--gold); }

/* ----------------------------------------------------------------------------
   14. Solution detail extras
   ---------------------------------------------------------------------------- */
.tf-detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tf-tag { font-size: 13px; font-weight: 600; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 16px; }
.tf-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tf-metric { text-align: center; padding: 30px 16px; border-radius: var(--radius-lg); background: linear-gradient(150deg, #15222c, #0b1117); color: #fff; }
.tf-metric h3 { font-size: 42px; margin: 0 0 6px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tf-metric p { color: rgba(255,255,255,.72); margin: 0; font-size: 14px; }
.tf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tf-gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tf-empty { text-align: center; padding: 70px 20px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* Filter chips */
.tf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 48px; }
.tf-chip { padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14px; transition: all .3s var(--ease); }
.tf-chip:hover { border-color: var(--gold); color: var(--text); }
.tf-chip.is-active { background: var(--gold-grad); border-color: transparent; color: var(--on-gold); }

/* ----------------------------------------------------------------------------
   15. Contact + forms
   ---------------------------------------------------------------------------- */
.tf-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.tf-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); display: grid; gap: 22px; }
.tf-info-card li { list-style: none; display: flex; gap: 16px; align-items: center; }
.tf-info-card ul { margin: 0; padding: 0; display: grid; gap: 20px; }
.tf-info-card .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--gold); font-size: 19px; }
.tf-info-card h4 { margin: 0 0 2px; font-size: 16px; }
.tf-info-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.tf-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.tf-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tf-field { margin-bottom: 16px; }
.tf-field input, .tf-field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.tf-field textarea { min-height: 130px; resize: vertical; }
.tf-field input:focus, .tf-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--ring); }
.tf-form .response { font-size: 14px; margin: 8px 0 0; }
.tf-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 22px; }
.tf-map iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.2); }

/* ----------------------------------------------------------------------------
   16. Accordion (FAQ)
   ---------------------------------------------------------------------------- */
.tf-acc { display: grid; gap: 14px; }
.tf-acc__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .3s; }
.tf-acc__item.is-open { border-color: var(--gold); }
.tf-acc__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tf-acc__q .pm { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.tf-acc__item.is-open .pm { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; transform: rotate(45deg); }
.tf-acc__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.tf-acc__a p { padding: 0 22px 22px; margin: 0; color: var(--text-muted); }

/* ----------------------------------------------------------------------------
   17. Footer
   ---------------------------------------------------------------------------- */
.tf-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: clamp(56px, 7vw, 88px) 0 28px; }
.tf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.tf-footer__logo img { height: 38px; margin-bottom: 18px; }
.tf-footer p { color: var(--text-muted); font-size: 15px; }
.tf-footer h4 { font-size: 16px; margin-bottom: 18px; }
.tf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tf-footer ul a { color: var(--text-muted); font-size: 15px; }
.tf-footer ul a:hover { color: var(--gold); }
.tf-social { display: flex; gap: 10px; margin-top: 18px; }
.tf-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text-soft); transition: all .3s var(--ease); }
.tf-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.tf-newsletter { display: flex; gap: 8px; margin-top: 14px; }
.tf-newsletter input { flex: 1; padding: 13px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font-family: inherit; }
.tf-newsletter input:focus { outline: none; border-color: var(--gold); }
.tf-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }
.tf-footer__bottom ul { display: flex; gap: 22px; }

/* ----------------------------------------------------------------------------
   18. Legal pages
   ---------------------------------------------------------------------------- */
.tf-legal { max-width: 820px; margin: 0 auto; }
.tf-legal h2 { font-size: 24px; margin: 32px 0 12px; }
.tf-legal h3 { font-size: 19px; margin: 24px 0 10px; }
.tf-legal p, .tf-legal li { color: var(--text-soft); }
.tf-legal ul { padding-left: 20px; }

/* ----------------------------------------------------------------------------
   19. Scroll reveal
   ---------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ----------------------------------------------------------------------------
   20. Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .tf-bento, .tf-quotes, .tf-gallery { grid-template-columns: 1fr 1fr; }
    .tf-timeline, .tf-timeline--3, .tf-metrics { grid-template-columns: 1fr 1fr; }
    .tf-split { grid-template-columns: 1fr; }
    .tf-contact { grid-template-columns: 1fr; }
    .tf-footer__grid { grid-template-columns: 1fr 1fr; }
    .tf-card--wide { grid-column: span 2; }
}
/* Switch to the burger menu before the centered menu can collide with logo/actions */
@media (max-width: 992px) {
    .tf-nav__inner > nav { display: none; }
    .tf-nav__right .tf-btn { display: none; }
    .tf-burger { display: flex; }
}
@media (max-width: 720px) {
    .tf-bento, .tf-quotes, .tf-gallery, .tf-timeline, .tf-timeline--3, .tf-metrics, .tf-form .grid2, .tf-footer__grid { grid-template-columns: 1fr; }
    .tf-card--wide { grid-column: span 1; }
    .tf-hero__stats { gap: 24px 36px; }
}

/* ============================================================================
   ★ PREMIUM LAYER — signature hero, lighting, texture, motion
   ============================================================================ */

/* --- Ambient aurora blobs (used in hero/page-hero) ------------------------- */
.tf-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tf-aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: normal; animation: tf-float 16s ease-in-out infinite; }
.tf-aurora span:nth-child(1) { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(255,186,8,.55), transparent 70%); }
.tf-aurora span:nth-child(2) { width: 460px; height: 460px; bottom: -200px; left: -120px; background: radial-gradient(circle, rgba(64,120,200,.45), transparent 70%); animation-delay: -5s; }
.tf-aurora span:nth-child(3) { width: 360px; height: 360px; top: 30%; left: 45%; background: radial-gradient(circle, rgba(211,142,37,.35), transparent 70%); animation-delay: -9s; }
[data-theme="light"] .tf-aurora span { opacity: .38; }
@keyframes tf-float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,24px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .tf-aurora span { animation: none; } }

/* --- Fine grain texture overlay ------------------------------------------- */
.tf-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay; }
[data-theme="dark"] .tf-grain { opacity: .35; }

/* --- Signature hero (two-column with live dashboard) ----------------------- */
.tf-hero--home { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.tf-hero--home .tf-container { position: relative; z-index: 2; }
.tf-hero__grid { display: grid; grid-template-columns: 1.05fr .9fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.tf-hero__copy { min-width: 0; }
.tf-hero--home h1 { font-size: clamp(34px, 4.4vw, 60px); margin: 18px 0 18px; }
.tf-hero--home .tf-hero__lead { margin-bottom: 28px; max-width: 52ch; }
.tf-hero--home .tf-hero__stats { margin-top: clamp(30px, 4vw, 46px); padding-top: 28px; gap: clamp(20px, 3vw, 44px); }
.tf-hero--home .tf-stat__num { font-size: clamp(26px, 3vw, 38px); }
.tf-hero--home h1 .grad { background: linear-gradient(100deg, #ffd166, #ffba08, #d38e25, #ffba08); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: tf-shine 6s linear infinite; }
@keyframes tf-shine { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) { .tf-hero--home h1 .grad { animation: none; } }

.tf-hero__stats .tf-stat__num { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tf-hero__stats .tf-stat__num .suffix { -webkit-text-fill-color: var(--gold); }

/* --- Glass dashboard visual ------------------------------------------------ */
.tf-dash {
    position: relative; border-radius: 24px; padding: 22px;
    background: var(--surface-glass); backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.25);
    animation: tf-bob 7s ease-in-out infinite;
}
[data-theme="dark"] .tf-dash { background: rgba(20,30,39,.55); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.06); }
@keyframes tf-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .tf-dash { animation: none; } }
.tf-dash__head { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk',sans-serif; font-weight: 600; font-size: 14px; color: var(--text); }
.tf-dash__head .dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.tf-dash__live { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #16a34a; border: 1px solid rgba(22,163,74,.4); padding: 3px 9px; border-radius: 999px; }
.tf-dash__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.tf-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.tf-kpi span { font-size: 12px; color: var(--text-muted); }
.tf-kpi strong { display: block; font-family: 'Space Grotesk',sans-serif; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }
.tf-kpi strong.up { color: #16a34a; } .tf-kpi strong.gold { color: var(--gold); }
.tf-dash__chart { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 6px; }
.tf-dash__chart svg { width: 100%; height: 92px; display: block; }
.tf-dash__chart .ln { stroke: var(--gold); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: tf-draw 2.2s var(--ease) .4s forwards; }
@keyframes tf-draw { to { stroke-dashoffset: 0; } }
.tf-dash__flow { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tf-dash__flow b { font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; color: var(--text-soft); }
.tf-dash__flow i { color: var(--gold); font-style: normal; }
.tf-dash__float { position: absolute; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.tf-dash__float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); }
.tf-dash__float--1 { top: -22px; left: -26px; animation: tf-bob 6s ease-in-out infinite; }
.tf-dash__float--2 { bottom: -20px; right: -22px; animation: tf-bob 8s ease-in-out infinite reverse; }
@media (prefers-reduced-motion: reduce) { .tf-dash__float { animation: none; } }

/* --- Spotlight + gradient border on cards (cursor-follow via JS vars) ------- */
.tf-card, .solution-card, .tf-step, .tf-quote {
    --mx: 50%; --my: 50%;
}
.tf-card::before, .solution-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; opacity: 0;
    background: radial-gradient(220px circle at var(--mx) var(--my), rgba(255,186,8,.16), transparent 60%);
    transition: opacity .4s var(--ease); pointer-events: none;
}
.tf-card:hover::before, .solution-card:hover::before { opacity: 1; }
.tf-card > *, .solution-card > * { position: relative; z-index: 1; }
.tf-card::after { background: linear-gradient(var(--ang, 135deg), rgba(255,186,8,.6), rgba(64,120,200,.35) 45%, transparent 70%); }

/* Make the existing gradient-border ring stronger + always faintly visible */
.solution-card { position: relative; }

/* --- Partner logos strip --------------------------------------------------- */
.tf-partners { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tf-partners__label { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; font-family: 'Space Grotesk',sans-serif; }
.tf-partners__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 60px); }
.tf-partners__row span { font-family: 'Space Grotesk',sans-serif; font-weight: 700; font-size: clamp(16px, 2.2vw, 22px); color: var(--text); opacity: .42; letter-spacing: -.01em; transition: opacity .3s, color .3s; }
.tf-partners__row span:hover { opacity: 1; color: var(--gold); }

/* --- Section heading glow accent ------------------------------------------- */
.tf-section .tf-head-center { position: relative; }
.tf-section .tf-head-center::before { content: ""; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 280px; height: 120px; background: radial-gradient(circle, rgba(255,186,8,.18), transparent 70%); filter: blur(20px); z-index: -1; }

/* --- Richer buttons (sheen sweep) ------------------------------------------ */
.tf-btn--primary { position: relative; overflow: hidden; }
.tf-btn--primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.tf-btn--primary:hover::after { left: 140%; }

/* --- Solution card media: gradient scrim for legibility -------------------- */
.solution-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,17,23,.35)); opacity: 0; transition: opacity .5s var(--ease); }
.solution-card:hover .solution-card__media::after { opacity: 1; }

/* --- Responsive: hero dashboard ------------------------------------------- */
@media (max-width: 1180px) {
    .tf-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
    .tf-dash__kpis .tf-kpi strong { font-size: 22px; }
}
@media (max-width: 991px) {
    .tf-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .tf-hero__copy { text-align: center; }
    .tf-hero--home .tf-hero__lead { margin-inline: auto; }
    .tf-hero__cta { justify-content: center; }
    .tf-hero--home .tf-hero__stats { justify-content: center; }
    .tf-hero__visual { max-width: 440px; margin: 4px auto 0; }
    .tf-partners__row span { font-size: 16px; }
}
@media (max-width: 575px) {
    .tf-dash__float { display: none; }
    .tf-hero--home h1 { font-size: clamp(30px, 9vw, 40px); }
    .tf-hero__cta { flex-direction: column; align-items: stretch; }
    .tf-hero__cta .tf-btn { justify-content: center; }
}

/* ============================================================================
   ★ INTERACTIVE LAYER — particle bg, cursor glow, scroll progress, FAB, chatbot
   ============================================================================ */

/* Stack content above the ambient canvas */
#tfMain { position: relative; z-index: 1; }
.tf-footer { position: relative; z-index: 1; }

/* --- Ambient particle canvas (opacity now set in animation layer below) ---- */

/* --- Cursor glow (desktop, fine-pointer only) ----------------------------- */
.tf-cursor { position: fixed; top: 0; left: 0; width: 160px; height: 160px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; opacity: 0; transition: opacity .4s ease; will-change: transform;
    background: radial-gradient(circle, rgba(255,186,8,.06), rgba(255,186,8,.015) 42%, transparent 62%); mix-blend-mode: screen; }
[data-theme="light"] .tf-cursor { background: radial-gradient(circle, rgba(211,142,37,.05), rgba(211,142,37,.01) 42%, transparent 62%); mix-blend-mode: multiply; }
body.tf-cursor-on .tf-cursor { opacity: 1; }
@media (hover: none), (pointer: coarse) { .tf-cursor { display: none; } }

/* --- Scroll progress bar --------------------------------------------------- */
.tf-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--gold-grad); z-index: 200; pointer-events: none; box-shadow: 0 0 12px rgba(255,186,8,.6); }

/* --- Floating action buttons (FAB) ---------------------------------------- */
.tf-fab { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tf-fab__group { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tf-fab__btn, .tf-fab__main { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: none; color: #fff; box-shadow: var(--shadow-md); transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease); position: relative; }
.tf-fab__btn { font-size: 19px; text-decoration: none; }
.tf-fab__btn .my-icon { color: #fff; }
.tf-fab__btn:hover, .tf-fab__main:hover { transform: translateY(-3px) scale(1.06); }
.fab-wa { background: linear-gradient(135deg,#25d366,#128c4b); }
.tf-fab__main { width: 58px; height: 58px; }
.tf-fab__contact { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.tf-fab__contact .my-icon { color: var(--gold); }
.tf-fab__contact .ic-close { display: none; font-size: 20px; }
.tf-fab__chat { background: var(--gold-grad); color: var(--on-gold); }
.tf-fab__chat svg { width: 26px; height: 26px; }
.tf-fab__chat::after { content: ""; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; background: #16a34a; border-radius: 50%; border: 2px solid var(--bg); }

/* collapsed group */
.tf-fab__group .tf-fab__btn { opacity: 0; transform: translateY(14px) scale(.6); pointer-events: none; }
.tf-fab.is-open .tf-fab__group .tf-fab__btn { opacity: 1; transform: none; pointer-events: auto; }
.tf-fab.is-open .tf-fab__contact .ic-open { display: none; }
.tf-fab.is-open .tf-fab__contact .ic-close { display: block; }
/* tooltips */
.tf-fab__btn::after { content: attr(data-tip); position: absolute; right: 64px; top: 50%; transform: translateY(-50%); background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.tf-fab__btn:hover::after { opacity: 1; }

/* --- Chatbot --------------------------------------------------------------- */
.tf-chat { position: fixed; right: 22px; bottom: 92px; z-index: 130; width: min(340px, calc(100vw - 32px)); height: min(460px, calc(100vh - 180px)); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none; transform-origin: bottom right; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.tf-chat.is-open { transform: none; opacity: 1; pointer-events: auto; }
.tf-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(135deg,#15222c,#0b1117); color: #fff; }
.tf-chat__id { display: flex; align-items: center; gap: 12px; }
.tf-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; position: relative; }
.tf-chat__avatar .dot { width: 10px; height: 10px; background: #16a34a; border-radius: 50%; border: 2px solid #15222c; position: absolute; bottom: 0; right: 0; }
.tf-chat__id strong { display: block; font-family: 'Space Grotesk',sans-serif; font-size: 15px; }
.tf-chat__id small { color: rgba(255,255,255,.65); font-size: 12px; }
.tf-chat__close { background: rgba(255,255,255,.12); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tf-chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.tf-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.tf-msg.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.tf-msg.user { background: var(--gold-grad); color: var(--on-gold); align-self: flex-end; border-bottom-right-radius: 4px; }

/* Message action buttons */
.tf-msg-actions { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; margin-top: -4px; }
.tf-msg-action { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; font-family: 'Space Grotesk', sans-serif; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.tf-msg-action:hover { border-color: var(--gold); color: var(--gold); }
.tf-msg-action.primary { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.tf-msg-action.primary:hover { opacity: .88; }

/* Typing indicator */
.tf-typing-indicator { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.tf-typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: tf-type-dot 1.2s ease-in-out infinite; }
.tf-typing-indicator span:nth-child(2) { animation-delay: .2s; }
.tf-typing-indicator span:nth-child(3) { animation-delay: .4s; }

.tf-chat__quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.tf-chat__quick button { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .25s; font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }
.tf-chat__quick button:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,186,8,.06); }
.tf-chat__input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.tf-chat__input input { flex: 1; border: 1px solid var(--border-strong); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 14px; background: var(--bg); color: var(--text); }
.tf-chat__input input:focus { outline: none; border-color: var(--gold); }
.tf-chat__input button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--gold-grad); color: var(--on-gold); cursor: pointer; display: grid; place-items: center; }
.tf-chat__input button svg { width: 18px; height: 18px; }

@media (max-width: 575px) {
    .tf-fab { right: 16px; bottom: 16px; }
    .tf-chat { right: 16px; bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
    .tf-fab__btn, .tf-fab__main, .tf-chat, .tf-cursor { transition: none; }
}

/* ============================================================================
   ★ POLISH PASS — top bar, back-to-top, video modal, media alignment
   ============================================================================ */

/* --- Top utility bar ------------------------------------------------------- */
.tf-topbar { background: var(--bg-2); border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.tf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; font-size: 13.5px; }
.tf-topbar a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.tf-topbar a:hover { color: var(--gold); }
.tf-topbar .my-icon { color: var(--gold); font-size: 14px; }
.tf-topbar__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tf-topbar__wa svg { color: #25d366; }
.tf-topbar__social { display: flex; gap: 14px; }
.tf-topbar__social a { font-size: 15px; }
@media (max-width: 768px) {
    .tf-topbar a.tf-topbar__email, .tf-topbar .tf-topbar__social { display: none; }
    .tf-topbar__inner { justify-content: center; }
    .tf-topbar__contact { gap: 18px; }
}

/* --- Back to top ----------------------------------------------------------- */
.tf-totop { position: fixed; left: 22px; bottom: 22px; z-index: 110; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .25s, color .25s; box-shadow: var(--shadow-md); }
.tf-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tf-totop:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.tf-totop svg { width: 20px; height: 20px; }
@media (max-width: 575px) { .tf-totop { left: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* --- Video play button + modal -------------------------------------------- */
.tf-video__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer; background: var(--gold-grad); color: var(--on-gold); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(211,142,37,.45); z-index: 2; }
.tf-video__play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,186,8,.5); animation: tf-pulse 2.4s ease-out infinite; }
.tf-video__play .my-icon { font-size: 24px; margin-left: 3px; }
@keyframes tf-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,186,8,.5); } 100% { box-shadow: 0 0 0 28px rgba(255,186,8,0); } }
@media (prefers-reduced-motion: reduce) { .tf-video__play::before { animation: none; } }
.tf-vmodal { position: fixed; inset: 0; z-index: 300; background: rgba(5,8,12,.86); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.tf-vmodal.is-open { opacity: 1; pointer-events: auto; }
.tf-vmodal__inner { position: relative; width: min(900px, 100%); }
.tf-vmodal__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.tf-vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-vmodal__close { position: absolute; top: -48px; right: 0; background: var(--surface); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--text); font-size: 16px; box-shadow: var(--shadow-md); }

/* --- Media / content alignment (consistent image sizing) ------------------ */
.tf-split { align-items: center; }
.tf-split__media { aspect-ratio: 4 / 3; max-height: 560px; }
.tf-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991px) { .tf-split__media { aspect-ratio: 16 / 10; max-height: 420px; } }

/* --- WhatsApp as the prominent fixed button ------------------------------- */
.tf-fab__wabtn { width: 58px; height: 58px; position: relative; }
.tf-fab__wabtn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: tf-pulse-wa 2.2s ease-out infinite; }
@keyframes tf-pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 100% { box-shadow: 0 0 0 22px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .tf-fab__wabtn::before { animation: none; } }

/* --- Parallax + floating decorative orbs (2D background motion) ------------ */
[data-parallax] { will-change: transform; }
.tf-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tf-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.tf-orb--gold { background: radial-gradient(circle, rgba(255,186,8,.45), transparent 70%); }
.tf-orb--blue { background: radial-gradient(circle, rgba(64,120,200,.4), transparent 70%); }
[data-theme="light"] .tf-orb { opacity: .35; }
.tf-section, .tf-split { position: relative; }
.tf-section > .tf-container { position: relative; z-index: 1; }

/* =============================================================================
   ★ BACKGROUND ANIMATION 1 — Particle canvas (brighter in light mode)
   ============================================================================= */
.tf-bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .7; }
[data-theme="light"] .tf-bg-canvas { opacity: .55; }

/* =============================================================================
   ★ BACKGROUND ANIMATION 2 — Floating geometric accent shapes
   Spawned by JS into .tf-hero--home, .tf-cta, .tf-pagehero
   ============================================================================= */
.tf-float-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tf-sh {
    position: absolute; pointer-events: none; opacity: 0;
    animation: tf-sh-float 16s ease-in-out infinite;
    transform-origin: center;
}
.tf-sh--ring {
    border-radius: 50%;
    border: 1.5px solid rgba(255,186,8,.28);
    background: transparent;
}
.tf-sh--tri {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: rgba(255,186,8,.09);
}
.tf-sh--diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: rgba(64,120,200,.12);
}
[data-theme="light"] .tf-sh--ring  { border-color: rgba(211,142,37,.22); }
[data-theme="light"] .tf-sh--tri   { background: rgba(211,142,37,.07); }
[data-theme="light"] .tf-sh--diamond { background: rgba(64,120,200,.09); }
@keyframes tf-sh-float {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
    12%  { opacity: 1; }
    86%  { opacity: .72; }
    100% { transform: translateY(-200px) rotate(210deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .tf-sh { display: none; } }

/* =============================================================================
   ★ BACKGROUND ANIMATION 3 — Animated dot-grid pulse on alternate sections
   ============================================================================= */
.tf-bg-alt { overflow: hidden; }
.tf-bg-alt::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
    background-image: radial-gradient(circle, rgba(255,186,8,.13) 1.2px, transparent 1.2px);
    background-size: 38px 38px;
    animation: tf-dot-breathe 5.5s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, #000 25%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, #000 25%, transparent 100%);
}
[data-theme="light"] .tf-bg-alt::after {
    background-image: radial-gradient(circle, rgba(211,142,37,.08) 1.2px, transparent 1.2px);
}
@keyframes tf-dot-breathe {
    0%, 100% { opacity: .25; }
    50%       { opacity: .8; }
}
@media (prefers-reduced-motion: reduce) { .tf-bg-alt::after { animation: none; opacity: .25; } }
