:root {
    --tf-primary: #17358f;
    --tf-primary-dark: #0a1e5c;
    --tf-primary-2: #234bc0;
    --tf-accent: #20b7ea;
    --tf-accent-2: #2fc4ff;
    --tf-purple: #5d3fd3;
    --tf-purple-light: #9b59b6;
    --tf-green: #10b981;
    --tf-orange: #f59e0b;
    --tf-ink: #10224d;
    --tf-muted: #62719a;
    --tf-soft: #eef5ff;
    --tf-soft-2: #f7fbff;
    --tf-white: #ffffff;
    --tf-card: rgba(255, 255, 255, 0.82);
    --tf-border: rgba(20, 53, 143, 0.12);
    --tf-shadow-sm: 0 4px 14px rgba(16, 34, 77, 0.08);
    --tf-shadow: 0 20px 60px rgba(16, 34, 77, 0.12);
    --tf-shadow-lg: 0 30px 80px rgba(10, 30, 92, 0.18);
    --tf-radius: 24px;
    --tf-radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

.tf-body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--tf-ink);
    background: var(--tf-soft-2);
    overflow-x: hidden;
}

.tf-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--tf-border);
}

.tf-nav {
    max-width: 1400px;
    margin: 0 auto;
}

.tf-brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tf-logo-ts {
    width: 150px;
    max-width: 100%;
    height: auto;
}

.tf-brand-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(23, 53, 143, 0.25), transparent);
}

.tf-logo-tf {
    width: 200px;
    max-width: 100%;
    height: auto;
}

.tf-menu-row {
    width: auto;
    margin-right: 1rem;
}

.tf-nav-link {
    color: var(--tf-ink);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.35rem;
    transition: color 0.2s;
}

.tf-nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.tf-nav-link:hover {
    color: var(--tf-primary);
}

.tf-nav-link:hover::after {
    transform: scaleX(1);
}

.tf-btn-primary,
.tf-btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-2));
    border: none;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(23, 53, 143, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(23, 53, 143, 0.35);
}

.tf-btn-outline,
.tf-btn-outline:hover {
    color: var(--tf-primary);
    border: 1px solid rgba(23, 53, 143, 0.35);
    background: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    transition: all 0.2s;
}

.tf-btn-outline:hover {
    background: var(--tf-primary);
    color: #fff;
    border-color: var(--tf-primary);
}

.tf-btn-ghost,
.tf-btn-ghost:hover {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.tf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
}

.tf-btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

.tf-btn-cta,
.tf-btn-cta:hover {
    background: #fff;
    color: var(--tf-primary);
    border: none;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    transition: all 0.25s;
}

.tf-btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
}

.tf-hero {
    position: relative;
    padding: 3.5rem 0 5rem;
    background: linear-gradient(135deg, #0a1e5c 0%, #12307a 50%, #17358f 100%);
    overflow: hidden;
    color: #fff;
}

.tf-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(32, 183, 234, 0.18), transparent 38%),
        radial-gradient(circle at 85% 75%, rgba(93, 63, 211, 0.18), transparent 40%);
    pointer-events: none;
}

.tf-hero-grid-bg {
    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: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.tf-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

.tf-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tf-accent);
    padding: 0.4rem 0.9rem;
    background: rgba(32, 183, 234, 0.12);
    border: 1px solid rgba(32, 183, 234, 0.3);
    border-radius: 999px;
}

.tf-eyebrow-blue {
    color: var(--tf-primary);
    background: rgba(23, 53, 143, 0.08);
    border-color: rgba(23, 53, 143, 0.18);
}

.tf-hero-title {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.tf-hero-title .tf-accent {
    background: linear-gradient(135deg, var(--tf-accent) 0%, #9be8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tf-hero-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    max-width: 38rem;
    line-height: 1.6;
}

.tf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.tf-pill-light {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tf-dashboard-wrap {
    position: relative;
}

.tf-dashboard-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tf-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(90deg, #0a1e5c, #17358f);
    color: #fff;
}

.tf-dash-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.tf-dash-logo-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: rgba(32, 183, 234, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--tf-accent);
}

.tf-dash-actions {
    display: flex;
    gap: 6px;
}

.tf-dash-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.tf-dash-dot-red { background: #ff5f57; }
.tf-dash-dot-yellow { background: #febc2e; }
.tf-dash-dot-green { background: #28c840; }

.tf-dash-body {
    display: flex;
    min-height: 440px;
}

.tf-dash-sidebar {
    width: 170px;
    background: linear-gradient(180deg, #0a1e5c 0%, #12307a 100%);
    padding: 14px 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tf-sb-item {
    padding: 7px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    transition: background 0.15s;
}

.tf-sb-item i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

.tf-sb-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tf-sb-active {
    background: rgba(32, 183, 234, 0.18) !important;
    color: #fff;
    border: 1px solid rgba(32, 183, 234, 0.35);
}

.tf-dash-content {
    flex: 1;
    padding: 14px;
    background: linear-gradient(180deg, #f7fbff, #eef5ff);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-metric-card {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(23, 53, 143, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(16, 34, 77, 0.04);
}

.tf-metric-label {
    font-size: 0.62rem;
    color: var(--tf-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tf-metric-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tf-primary);
    line-height: 1.1;
}

.tf-metric-delta {
    font-size: 0.6rem;
    font-weight: 600;
}

.tf-delta-up { color: var(--tf-green); }

.tf-metric-accent {
    background: linear-gradient(135deg, rgba(32, 183, 234, 0.12), rgba(23, 53, 143, 0.1));
    border-color: rgba(32, 183, 234, 0.25);
}

.tf-metric-accent .tf-metric-value {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tf-chart-card {
    background: #fff;
    border: 1px solid rgba(23, 53, 143, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(16, 34, 77, 0.04);
}

.tf-chart-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tf-ink);
    margin-bottom: 6px;
}

.tf-chart-svg {
    width: 100%;
    height: 110px;
    display: block;
}

.tf-donut-wrap {
    position: relative;
    width: 110px;
    margin: 0 auto;
}

.tf-donut-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.tf-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tf-donut-center strong {
    font-size: 1rem;
    color: var(--tf-primary);
    line-height: 1;
}

.tf-donut-center small {
    font-size: 0.55rem;
    color: var(--tf-muted);
    font-weight: 600;
}

.tf-legend {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.tf-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    color: var(--tf-muted);
    font-weight: 500;
}

.tf-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tf-list-card {
    background: #fff;
    border: 1px solid rgba(23, 53, 143, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(16, 34, 77, 0.04);
}

.tf-list-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tf-ink);
    margin-bottom: 8px;
}

.tf-list-row {
    display: grid;
    grid-template-columns: 1.3fr 1.6fr 1.3fr 0.8fr;
    gap: 6px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(23, 53, 143, 0.05);
    font-size: 0.7rem;
    align-items: center;
}

.tf-list-row:last-child {
    border-bottom: none;
}

.tf-list-key {
    font-weight: 700;
    color: var(--tf-primary);
}

.tf-list-name {
    color: var(--tf-ink);
}

.tf-list-date {
    color: var(--tf-muted);
}

.tf-list-status {
    padding: 3px 7px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.6rem;
    text-align: center;
    white-space: nowrap;
}

.tf-status-autorizada {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.tf-status-pendente {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.tf-mascote-hero-wrap {
    position: absolute;
    bottom: -55px;
    right: -10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tf-speech-bubble {
    background: #fff;
    color: var(--tf-ink);
    padding: 12px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.92rem;
    max-width: 280px;
    text-align: right;
    position: relative;
    box-shadow: 0 12px 32px rgba(16, 34, 77, 0.18);
    border: 1px solid rgba(23, 53, 143, 0.08);
    line-height: 1.35;
    margin-bottom: 4px;
    animation: tf-bubble-float 3.5s ease-in-out infinite;
}

@keyframes tf-bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tf-speech-tail {
    position: absolute;
    bottom: -12px;
    right: 70px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #fff;
    filter: drop-shadow(0 6px 8px rgba(16, 34, 77, 0.08));
}

.tf-mascote-hero {
    width: 180px;
    max-width: 100%;
    filter: drop-shadow(0 18px 36px rgba(16, 34, 77, 0.25));
    animation: tf-mascot-bob 4s ease-in-out infinite;
}

@keyframes tf-mascot-bob {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.tf-section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tf-ink);
    line-height: 1.15;
}

.tf-section-copy {
    color: var(--tf-muted);
    max-width: 42rem;
    line-height: 1.6;
    font-size: 1.02rem;
}

.tf-solucoes {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.tf-module-card {
    background: #fff;
    border-radius: var(--tf-radius);
    padding: 1.8rem;
    height: 100%;
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s;
    position: relative;
    overflow: hidden;
}

.tf-module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tf-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(16, 34, 77, 0.14);
    border-color: rgba(32, 183, 234, 0.3);
}

.tf-module-card:hover::before {
    transform: scaleX(1);
}

.tf-module-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.tf-icon-blue { background: linear-gradient(135deg, #2f67ff, #17358f); }
.tf-icon-cyan { background: linear-gradient(135deg, #14c7d8, #1487d8); }
.tf-icon-purple { background: linear-gradient(135deg, #7c6bff, #4a38cd); }
.tf-icon-sky { background: linear-gradient(135deg, #2fc4ff, #0f8fe3); }
.tf-icon-green { background: linear-gradient(135deg, #34d399, #059669); }
.tf-icon-orange { background: linear-gradient(135deg, #fbbf24, #d97706); }

.tf-module-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--tf-primary);
    transition: gap 0.2s;
}

.tf-module-link:hover {
    gap: 10px;
    color: var(--tf-primary);
}

.tf-link-cyan { color: #1487d8; }
.tf-link-cyan:hover { color: #1487d8; }
.tf-link-purple { color: #4a38cd; }
.tf-link-purple:hover { color: #4a38cd; }
.tf-link-sky { color: #0f8fe3; }
.tf-link-sky:hover { color: #0f8fe3; }
.tf-link-green { color: #059669; }
.tf-link-green:hover { color: #059669; }
.tf-link-orange { color: #d97706; }
.tf-link-orange:hover { color: #d97706; }

.tf-automacao {
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.tf-automacao-mockup {
    position: relative;
}

.tf-automacao-screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(16, 34, 77, 0.18);
    border: 1px solid rgba(23, 53, 143, 0.1);
}

.tf-auto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(90deg, #0a1e5c, #17358f);
    color: #fff;
    flex-wrap: wrap;
    gap: 10px;
}

.tf-auto-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.tf-auto-logo-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: rgba(32, 183, 234, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--tf-accent);
}

.tf-auto-tabs {
    display: flex;
    gap: 6px;
}

.tf-auto-tab {
    padding: 5px 12px;
    font-size: 0.72rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.tf-auto-tab-active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

.tf-auto-body {
    display: flex;
    min-height: 420px;
}

.tf-auto-sidebar {
    width: 160px;
    background: linear-gradient(180deg, #0a1e5c 0%, #12307a 100%);
    padding: 14px 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tf-auto-sb-item {
    padding: 7px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-auto-sb-item i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

.tf-auto-sb-active {
    background: rgba(32, 183, 234, 0.18);
    color: #fff;
    border: 1px solid rgba(32, 183, 234, 0.35);
}

.tf-auto-content {
    flex: 1;
    padding: 22px;
    background: linear-gradient(180deg, #f7fbff, #eef5ff);
}

.tf-auto-content-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tf-ink);
    margin-bottom: 16px;
}

.tf-auto-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(23, 53, 143, 0.08);
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(16, 34, 77, 0.03);
}

.tf-auto-rule-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-auto-rule-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(32, 183, 234, 0.18), rgba(23, 53, 143, 0.1));
    color: var(--tf-primary);
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tf-auto-summary {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tf-auto-sum-item {
    padding: 12px;
    background: linear-gradient(135deg, rgba(23, 53, 143, 0.06), rgba(32, 183, 234, 0.06));
    border: 1px solid rgba(23, 53, 143, 0.08);
    border-radius: 12px;
    text-align: center;
}

.tf-auto-sum-label {
    display: block;
    font-size: 0.65rem;
    color: var(--tf-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 4px;
}

.tf-auto-sum-item strong {
    font-size: 1.3rem;
    color: var(--tf-primary);
    font-weight: 800;
}

.tf-benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tf-benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tf-benefit-blue { background: linear-gradient(135deg, #2f67ff, #17358f); }
.tf-benefit-cyan { background: linear-gradient(135deg, #14c7d8, #1487d8); }
.tf-benefit-purple { background: linear-gradient(135deg, #7c6bff, #4a38cd); }

.tf-cta-banner {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a1e5c 0%, #17358f 45%, #20b7ea 100%);
    overflow: hidden;
}

.tf-cta-bg-shape1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    border-radius: 50%;
    top: -150px;
    left: -100px;
    animation: tf-shape-drift 18s ease-in-out infinite;
}

.tf-cta-bg-shape2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(32, 183, 234, 0.18), transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -150px;
    animation: tf-shape-drift 22s ease-in-out infinite reverse;
}

@keyframes tf-shape-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
}

.tf-cta-card {
    position: relative;
    z-index: 2;
    color: #fff;
}

.tf-cta-mascote-wrap {
    position: relative;
    display: inline-block;
}

.tf-cta-mascote {
    width: 200px;
    max-width: 100%;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
    animation: tf-mascot-bob 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.tf-cta-title {
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.15;
}

.tf-cta-copy {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
}

.tf-ia-fiscal {
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.tf-ia-card {
    background:
        radial-gradient(circle at top left, rgba(155, 89, 182, 0.08), transparent 40%),
        radial-gradient(circle at bottom right, rgba(32, 183, 234, 0.08), transparent 40%),
        linear-gradient(180deg, #fff, #fdfcff);
    border: 1px solid rgba(93, 63, 211, 0.15);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(93, 63, 211, 0.1);
    position: relative;
    overflow: hidden;
}

.tf-ia-card::before {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.3;
    animation: tf-bubble-float 4s ease-in-out infinite;
}

.tf-ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.14), rgba(93, 63, 211, 0.1));
    color: var(--tf-purple);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(93, 63, 211, 0.2);
}

.tf-ia-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--tf-purple) 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tf-ia-subtitle {
    font-size: 1.05rem;
    color: var(--tf-muted);
    font-weight: 500;
}

.tf-ia-form-wrap {
    position: relative;
    max-width: 720px;
}

.tf-ia-form {
    position: relative;
}

.tf-ia-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 15px 40px rgba(93, 63, 211, 0.14), 0 0 0 1px rgba(93, 63, 211, 0.15);
    transition: box-shadow 0.25s;
}

.tf-ia-input-wrap:focus-within {
    box-shadow: 0 18px 50px rgba(93, 63, 211, 0.22), 0 0 0 2px rgba(93, 63, 211, 0.3);
}

.tf-ia-input-icon {
    color: var(--tf-purple);
    font-size: 1.2rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.tf-ia-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 6px;
    font-size: 1rem;
    color: var(--tf-ink);
    width: 100%;
}

.tf-ia-input::placeholder {
    color: #98a2c4;
}

.tf-ia-btn {
    background: linear-gradient(135deg, var(--tf-purple), #9b59b6);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(93, 63, 211, 0.3);
    flex-shrink: 0;
}

.tf-ia-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(93, 63, 211, 0.4);
}

.tf-ia-btn:active {
    transform: translateY(0);
}

.tf-ia-btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.tf-ia-btn.is-loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tf-spin 0.8s linear infinite;
    margin-right: 6px;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

.tf-ia-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-chip {
    border: 1px solid rgba(93, 63, 211, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--tf-purple);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tf-chip:hover {
    background: rgba(93, 63, 211, 0.1);
    border-color: rgba(93, 63, 211, 0.35);
    transform: translateY(-1px);
}

.tf-ia-response {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(93, 63, 211, 0.15);
    overflow: hidden;
    animation: tf-response-in 0.35s ease-out;
}

@keyframes tf-response-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tf-ia-response-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.08), rgba(93, 63, 211, 0.06));
    border-bottom: 1px solid rgba(93, 63, 211, 0.1);
}

.tf-ia-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tf-purple), #9b59b6);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(93, 63, 211, 0.22);
}

.tf-ia-response-body {
    padding: 18px;
    color: var(--tf-ink);
    line-height: 1.7;
    font-size: 0.98rem;
}

.tf-ia-response-body p {
    margin: 0 0 0.8rem 0;
}

.tf-ia-response-body p:last-child {
    margin-bottom: 0;
}

.tf-ia-response-body ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.tf-ia-response-body li {
    margin-bottom: 0.4rem;
}

.tf-ia-response-body strong {
    color: var(--tf-purple);
}

.tf-ia-mascote-wrap {
    position: relative;
    display: inline-block;
}

.tf-ia-mascote {
    width: 240px;
    max-width: 100%;
    filter: drop-shadow(0 18px 36px rgba(93, 63, 211, 0.2));
    animation: tf-mascot-bob 5s ease-in-out infinite;
}

.tf-ia-thought {
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 2;
}

.tf-ia-thought-bubble {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid var(--tf-purple);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--tf-purple);
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(93, 63, 211, 0.22);
    animation: tf-bubble-float 3s ease-in-out infinite;
}

.tf-ia-thought-tail {
    position: absolute;
    bottom: -10px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--tf-purple);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.tf-closing-strip {
    background: #fff;
}

.tf-closing-card {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(23, 53, 143, 0.04), rgba(32, 183, 234, 0.04));
    border: 1px solid rgba(23, 53, 143, 0.08);
    border-radius: 24px;
}

.tf-closing-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 12px 28px rgba(23, 53, 143, 0.22);
}

.tf-closing-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tf-ink);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tf-footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.tf-footer-panel {
    background: linear-gradient(135deg, #0a1e5c, #17358f);
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(10, 30, 92, 0.25);
}

.tf-footer-logo-ts {
    width: 160px;
    filter: brightness(0) invert(1);
    display: block;
}

.tf-footer-logo-tf {
    width: 180px;
    display: block;
    filter: brightness(0) invert(1);
}

.tf-footer-link {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.tf-footer-link:hover {
    color: #fff;
}

.tf-footer h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.tf-social {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    color: #fff;
    transition: all 0.2s;
}

.tf-social:hover {
    background: rgba(32, 183, 234, 0.2);
    border-color: rgba(32, 183, 234, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.tf-footer-bottom-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tf-footer-bottom-link:hover {
    color: var(--tf-primary);
}

.tf-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 92, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.tf-loading-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tf-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--tf-accent);
    border-radius: 50%;
    animation: tf-spin 0.9s linear infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199.98px) {
    .tf-mascote-hero-wrap {
        bottom: -45px;
        right: 0;
    }
    .tf-speech-bubble {
        max-width: 240px;
        font-size: 0.82rem;
    }
    .tf-mascote-hero {
        width: 150px;
    }
}

@media (max-width: 991.98px) {
    .tf-brand-group {
        gap: 10px;
    }
    .tf-logo-ts {
        width: 110px;
    }
    .tf-brand-divider {
        height: 32px;
    }
    .tf-logo-tf {
        width: 150px;
    }
    .tf-hero {
        padding: 2.5rem 0 3.5rem;
    }
    .tf-mascote-hero-wrap {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        align-items: center;
        flex-direction: column;
    }
    .tf-speech-bubble {
        margin-bottom: -8px;
        text-align: center;
        max-width: 320px;
        font-size: 0.9rem;
    }
    .tf-speech-tail {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .tf-dash-sidebar,
    .tf-auto-sidebar {
        width: 130px;
        font-size: 0.68rem;
    }
    .tf-cta-card {
        text-align: center;
    }
    .tf-cta-mascote {
        width: 160px;
    }
    .tf-ia-card {
        padding: 1.8rem;
    }
    .tf-ia-mascote {
        width: 180px;
    }
    .tf-closing-card {
        padding: 1.2rem;
    }
    .tf-auto-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    .tf-footer-panel {
        padding: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .tf-brand-group {
        gap: 8px;
    }
    .tf-logo-ts {
        width: 90px;
    }
    .tf-brand-divider {
        height: 26px;
    }
    .tf-logo-tf {
        width: 120px;
    }
    .tf-dash-sidebar,
    .tf-auto-sidebar {
        display: none;
    }
    .tf-metric-label {
        font-size: 0.55rem;
    }
    .tf-metric-value {
        font-size: 0.9rem;
    }
    .tf-list-row {
        grid-template-columns: 1.2fr 1.2fr 1fr;
    }
    .tf-list-status {
        grid-column: 1 / -1;
        margin-top: 4px;
    }
    .tf-ia-input-wrap {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    .tf-ia-btn {
        width: 100%;
        justify-content: center;
    }
    .tf-closing-card {
        text-align: center;
    }
    .tf-closing-card .col-md-3:last-child {
        margin-top: 1rem;
        text-align: center !important;
    }
    .tf-auto-content {
        padding: 14px;
    }
    .tf-auto-summary {
        grid-template-columns: 1fr;
    }
}
