:root {
    --tms-accent: #ef4444;
    --tms-dark: #0b1020;
    --tms-ink: #0f172a;
    --tms-muted: #64748b;
    --tms-light: #f8fafc;
    --tms-soft: #eef2f7;
}

.tms-home {
    background: #ffffff;
}

.tms-section {
    padding: 96px 0;
}

.tms-section.tms-soft {
    background: var(--tms-light);
}

.tms-section.tms-dark {
    background: linear-gradient(135deg, #0b1020 0%, #121a2d 60%, #16233d 100%);
    color: #ffffff;
}

.tms-hero {
    position: relative;
    padding: calc(70px + var(--nav-height, 90px)) 0 70px;
    margin-top: calc(-1 * var(--nav-height, 90px));
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(239, 68, 68, 0.35), transparent 60%),
        linear-gradient(135deg, #0b1020 0%, #101a30 50%, #0f172a 100%);
    overflow: hidden;
}

@media (max-width: 991px) {
    .tms-hero {
        padding: calc(110px + var(--nav-height, 90px)) 0 70px;
        margin-top: calc(-1 * var(--nav-height, 90px) + 12px);
    }
}

.tms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1400&q=80") center/cover;
    opacity: 0.15;
    pointer-events: none;
}

.tms-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -120px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.35), transparent 65%);
    pointer-events: none;
}

.tms-hero .carousel {
    position: relative;
    z-index: 2;
}

.tms-hero .carousel-inner {
    position: relative;
    z-index: 2;
}

.tms-hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
}

.tms-hero .carousel-indicators .active {
    background-color: #ffffff;
}

.tms-hero .carousel-control-prev,
.tms-hero .carousel-control-next {
    width: 54px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
}

.tms-hero .carousel-control-prev-icon,
.tms-hero .carousel-control-next-icon {
    filter: invert(1);
    width: 1.2rem;
    height: 1.2rem;
}

.tms-hero .carousel-control-prev,
.tms-hero .carousel-control-next {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.tms-hero .carousel-control-prev:hover,
.tms-hero .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.tms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.2);
    color: #ffd2d2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tms-hero-title {
    font-size: clamp(2.2rem, 3.2vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.tms-hero-title span {
    color: #ffb4b4;
}

.tms-hero-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 520px;
}

.tms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tms-hero-actions .btn-outline-light {
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    border-width: 2px;
}

.tms-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.tms-kpi {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 16px;
}

.tms-kpi h4 {
    margin: 0;
    font-weight: 800;
    color: #ffffff;
}

.tms-kpi p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.tms-device {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 22px;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(8, 12, 24, 0.45);
    max-width: 520px;
    margin-left: auto;
}

.tms-device img {
    border-radius: 18px;
    width: 100%;
    height: clamp(240px, 45vh, 420px);
    object-fit: cover;
}

.tms-device-tag {
    position: absolute;
    left: -14px;
    top: 24px;
    background: #ffffff;
    color: var(--tms-ink);
    padding: 10px 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.tms-device-tag i {
    color: var(--tms-accent);
    margin-right: 6px;
}

.tms-float-card {
    position: absolute;
    right: -24px;
    bottom: -18px;
    background: #ffffff;
    color: var(--tms-ink);
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    font-size: 0.85rem;
    font-weight: 700;
}

.tms-float-card span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tms-muted);
    margin-top: 2px;
}

.tms-section-title {
    text-align: center;
    margin-bottom: 56px;
}

.tms-section-title h6 {
    font-weight: 800;
    color: var(--tms-accent);
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.tms-section-title h2 {
    font-weight: 800;
    color: var(--tms-ink);
    margin-bottom: 12px;
}

.tms-section-title p {
    color: var(--tms-muted);
    max-width: 620px;
    margin: 0 auto;
}

.about-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.about-image-wrapper,
.about-video-wrapper {
    position: relative;
}

.about-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    background: #000;
}

.about-image-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(25%);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 16px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    font-weight: 700;
    color: var(--tms-ink);
    width: calc(100% - 40px);
}

.about-image-badge-top {
    top: 0;
    bottom: auto;
    transform: translateY(-15%);
}

.about-image-badge i {
    color: var(--tms-accent);
}

.about-video-pill {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--tms-dark);
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    max-width: 210px;
}

.about-video-pill strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 800;
}

.about-card-compact {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.about-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 18px;
    border: 1px solid #e2e8f0;
    text-align: center;
    min-height: 120px;
}

.about-stat-card h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--tms-accent);
}

.about-stat-card p {
    margin: 8px 0 0;
    color: var(--tms-muted);
    font-size: 0.95rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--tms-accent);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-card .about-pillars {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    min-height: 130px;
}

.about-card .about-pillars i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.14);
    color: var(--tms-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-card .about-pillars h6 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.about-card .about-pillars p {
    margin: 0;
    color: var(--tms-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.about-card .about-pillars:hover {
    transform: translateY(-1px);
}

.section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tms-accent);
}

.feature-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(239, 68, 68, 0.12);
    color: var(--tms-accent);
    margin-bottom: 20px;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.service-card h5 {
    font-weight: 700;
    margin-bottom: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    position: relative;
}

.services-grid::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
    background: rgba(239, 68, 68, 0.06);
    border-radius: 40px;
    z-index: 0;
}

.service-feature-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.35);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.14);
    color: var(--tms-accent);
    font-size: 1.2rem;
}

.service-feature-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.service-feature-card p {
    margin: 0;
    color: var(--tms-muted);
    line-height: 1.75;
}

.service-benefits li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--tms-muted);
}

.service-benefits li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--tms-accent);
}

.service-benefits li:last-child {
    margin-bottom: 0;
}

.workflow-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.workflow-step {
    position: relative;
    padding-left: 64px;
    padding-right: 18px;
    margin-bottom: 32px;
}

.workflow-step::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 14px;
    bottom: 0;
    width: 4px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 999px;
}

.workflow-step:last-child::before {
    height: calc(100% - 32px);
}

.workflow-step span {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tms-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.18);
}

.workflow-step h5 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--tms-ink);
}

.workflow-step p {
    margin: 0;
    color: var(--tms-muted);
    line-height: 1.75;
}

.workflow-visual {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.workflow-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--tms-accent);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.workflow-metric-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.workflow-metric-card h4 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--tms-accent);
}

.workflow-metric-card p {
    margin: 0;
    color: var(--tms-muted);
    font-size: 0.95rem;
}

.stats-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 36px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.28);
}

.stats-card-glow {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.stats-card-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.45rem;
}

.stats-card h2 {
    color: #ffffff;
    font-weight: 900;
    font-size: 2.75rem;
    margin: 0;
}

.stats-card p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 0.96rem;
    letter-spacing: 0.02em;
}

.testimonial-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 32px;
    padding: 36px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 720px;
    margin: auto;
}

.testimonial-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.14);
    color: var(--tms-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
}

.testimonial-card-top h5 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.testimonial-card-top p {
    margin: 0;
    color: var(--tms-muted);
}

.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f59e0b;
    font-size: 0.95rem;
}

.testimonial-stars span,
.testimonial-stars strong {
    color: var(--tms-muted);
    font-size: 0.85rem;
}

.testimonial-stars::before {
    content: "★★★★★";
    letter-spacing: 0.15em;
}

.testimonial-stars span {
    margin-left: 8px;
}

.testimonial-quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    color: rgba(239, 68, 68, 0.14);
}

.testimonial-score {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.1);
    color: var(--tms-accent);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 0.95rem;
}

.testimonial-text {
    color: var(--tms-dark);
    line-height: 1.9;
    margin-bottom: 22px;
    font-size: 0.96rem;
}

.testimonial-footer {
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    color: var(--tms-muted);
    font-size: 0.92rem;
}

.testimonial-footer span {
    font-weight: 700;
    color: var(--tms-ink);
}

.testimonial-carousel {
    position: relative;
    padding: 40px 0 20px;
}

.testimonial-carousel .carousel-inner {
    min-height: 420px;
}

.testimonial-indicators {
    justify-content: center;
    gap: 12px;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    filter: invert(1);
}

.testimonial-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.2);
}

.testimonial-indicators .active {
    background: var(--tms-accent);
}

.faq-intro {
    max-width: 540px;
}

.faq-support-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.faq-support-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.12);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.faq-support-card h5 {
    margin-bottom: 0.5rem;
}

.faq-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.06);
}

.faq-wrapper .accordion-item {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    margin-bottom: 1rem;
    background: #ffffff;
}

.faq-wrapper .accordion-button {
    font-weight: 700;
    padding: 1.4rem 1.6rem;
    color: var(--tms-ink);
}

.faq-wrapper .accordion-button::after {
    filter: invert(0.4);
}

.faq-wrapper .accordion-button:not(.collapsed) {
    background: rgba(239, 68, 68, 0.08);
    color: var(--tms-ink);
}

.faq-wrapper .accordion-body {
    padding: 1.3rem 1.6rem 1.6rem;
    color: var(--tms-muted);
    line-height: 1.8;
}

.faq-wrapper .accordion-button:focus {
    box-shadow: none;
}

.contact-panel .section-label {
    letter-spacing: 1.8px;
    color: var(--tms-accent);
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
}

.contact-panel h2 {
    max-width: 470px;
}

.contact-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-feature-pill {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tms-accent);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.contact-info-card h6 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info-card p {
    color: var(--tms-muted);
}

.contact-card {
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
}

.contact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-card-header h5 {
    margin-bottom: 0;
}

.contact-card-badge {
    background: rgba(239, 68, 68, 0.12);
    color: var(--tms-accent);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.contact-card .form-control,
.contact-card .form-select,
.contact-card textarea {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
}

.contact-card textarea {
    min-height: 130px;
}

.contact-card button {
    min-width: 220px;
}

.contact-confirm {
    color: var(--tms-muted);
}

@media (max-width: 767px) {
    .contact-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card button {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .tms-hero {
    padding: 70px 0 70px;
    }

    .tms-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tms-device-tag {
        left: 16px;
    }

    .tms-float-card {
        position: static;
        margin-top: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tms-section {
        padding: 72px 0;
    }

    .tms-hero {
        padding: 72px 0 60px;
        min-height: auto;
    }

    .tms-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .tms-kpi-row {
        grid-template-columns: 1fr;
    }

    .tms-device {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}


