/* TPMS Exact Design Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --tp-primary: #5b45ff;
    /* Matches the vibrant purple in the image */
    --tp-primary-light: #ecebfa;
    --tp-text-dark: #1e1e1e;
    --tp-text-gray: #6b7280;
    --tp-bg-light: #ffffff;
    --tp-bg-gray: #f9fafb;
    --tp-border: #e5e7eb;
}

body.tpms-page {
    font-family: 'Inter', sans-serif;
    color: var(--tp-text-dark);
    background-color: var(--tp-bg-light);
}

.tpms-page-container {
    overflow-x: hidden;
}

/* Common Typography & Utilities */
.tpms-section-label {
    color: var(--tp-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: block;
    margin-bottom: 8px;
}

.tpms-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--tp-text-dark);
    margin-bottom: 12px;
}

.tpms-title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--tp-primary);
    margin: 0 auto 29px auto;
    border-radius: 2px;
}

/* Buttons */
.tp-btn-primary {
    background-color: var(--tp-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--tp-primary);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tp-btn-primary:hover {
    background-color: #4a35e0;
    border-color: #4a35e0;
    color: white;
}

.tp-btn-outline {
    background-color: transparent;
    color: var(--tp-primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--tp-primary);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tp-btn-outline:hover {
    background-color: var(--tp-primary-light);
    color: var(--tp-primary);
}

/* 1. Hero Section */
.tpms-hero {
    padding: 100px 0 120px;
    position: relative;
    background: url('/assets/images/TPMS.webp') center right / cover no-repeat;
    overflow: hidden;
}

.tpms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(36, 36, 97, 0.95) 0%, rgba(36, 36, 97, 0.75) 45%, rgba(36, 36, 97, 0) 100%);
    z-index: 0;
}

.tpms-hero .container {
    position: relative;
    z-index: 1;
}

.tpms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid #eef2ff;
}

.tpms-hero .tp-btn-outline {
    background-color: #f9c015;
    color: #1e1e1e;
    border: 2px solid #f9c015;
    box-shadow: 0 4px 15px rgba(249, 192, 21, 0.4);
}

.tpms-hero .tp-btn-outline:hover {
    background-color: #eab308;
    border-color: #eab308;
    color: #1e1e1e;
    transform: translateY(-2px);
}

.tpms-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(270deg, #ffffff, #fbd341, #c4b5fd, #ffffff, #fbd341);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    animation: tpms-gradient-text 8s ease infinite;
}

@keyframes tpms-gradient-text {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.tpms-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tpms-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 90%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tpms-trusted-by {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tpms-trusted-logos {
    display: flex;
    gap: 8px;
}

.tpms-trusted-logos img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tpms-trusted-logos img:not(:first-child) {
    margin-left: -12px;
}

.tpms-trusted-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tpms-trusted-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Right Side Image Composition */
.tpms-hero-img-container {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.tpms-main-image {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    z-index: 1;
}

.tpms-floating-dashboard {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 70%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 2. Key Features */
.tpms-features {
    padding: 80px 0;
    background: white;
}

.tpms-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tpms-feature-card {
    background: white;
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tpms-feature-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    background: var(--tp-primary);
    border-color: var(--tp-primary);
}

.tpms-fc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tpms-fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Icon Colors matching the design */
.icon-purple {
    background: #f3e8ff;
    color: #a855f7;
}

.icon-blue {
    background: #e0f2fe;
    color: #0ea5e9;
}

.icon-green {
    background: #dcfce7;
    color: #22c55e;
}

.icon-orange {
    background: #ffedd5;
    color: #f97316;
}

.icon-red {
    background: #fee2e2;
    color: #ef4444;
}

.icon-violet {
    background: #ede9fe;
    color: #8b5cf6;
}

.icon-teal {
    background: #ccfbf1;
    color: #14b8a6;
}

.icon-yellow {
    background: #fef9c3;
    color: #eab308;
}

.tpms-feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--tp-text-dark);
    transition: color 0.3s ease;
}

.tpms-feature-card p {
    font-size: 13px;
    color: var(--tp-text-gray);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover States for Content */
.tpms-feature-card:hover h4,
.tpms-feature-card:hover p {
    color: white;
}

.tpms-feature-card:hover .tpms-fc-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 3. Showcase Section (Marquee) */
.tpms-marquee-showcase {
    padding: 40px 0;
    background: #f4f5f7;
    overflow: hidden;
}

.tpms-marquee-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    /* gradient masks for smooth fade on edges */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
}

.tpms-marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: tpms-marquee 40s linear infinite;
}

.tpms-marquee-track:hover {
    animation-play-state: paused;
}

.tpms-browser-mockup {
    display: inline-block;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 20px;
    vertical-align: middle;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpms-browser-mockup:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tpms-browser-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-left: 5px;
}

.tpms-browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tpms-browser-dot.red {
    background-color: #ff5f56;
}

.tpms-browser-dot.yellow {
    background-color: #ffbd2e;
}

.tpms-browser-dot.green {
    background-color: #27c93f;
}

.tpms-marquee-img {
    height: 246px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--tp-border);
    display: block;
}

.tpms-marquee-img:hover {
    transform: scale(1.02);
}

@keyframes tpms-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 4. Process Steps */
/* 4. Process Steps */
.tpms-process {
    padding: 38px 0;
    background: #fafafc;
    /* very light grey background matching the image top part if needed, else white */
}

.tpms-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tpms-process-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: all 0.3s ease;
}

.tpms-process-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--tp-primary);
    border-color: var(--tp-primary);
}

.tpms-process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tpms-process-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.icon-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.icon-orange {
    background: #ffedd5;
    color: #ea580c;
}

.icon-teal {
    background: #ccfbf1;
    color: #0d9488;
}

.tpms-process-number {
    font-size: 40px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 0.8;
    transition: color 0.3s ease;
}

.tpms-process-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tp-text-dark);
    transition: color 0.3s ease;
}

.tpms-process-content p {
    font-size: 13px;
    color: var(--tp-text-gray);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.tpms-process-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
}

/* Hover States for Process Card Content */
.tpms-process-card:hover h4,
.tpms-process-card:hover p {
    color: white;
}

.tpms-process-card:hover .tpms-process-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tpms-process-card:hover .tpms-process-arrow {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tpms-process-card:hover .tpms-process-number {
    color: rgba(255, 255, 255, 0.15);
}

.arrow-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.arrow-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.arrow-green {
    background: #dcfce7;
    color: #16a34a;
}

.arrow-orange {
    background: #ffedd5;
    color: #ea580c;
}

.arrow-teal {
    background: #ccfbf1;
    color: #0d9488;
}


/* 5. Benefits */
.tpms-benefits {
    padding: 31px 0;
    background: radial-gradient(circle at top right, rgba(245, 243, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.tpms-benefit-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.tpms-benefit-card-new {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.tpms-benefit-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--tp-primary);
    border-color: var(--tp-primary);
}

.tpms-bc-left {
    flex-shrink: 0;
}

.tpms-bc-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    transition: all 0.3s ease;
}

.success-circle {
    color: #16a34a;
    background: #dcfce7;
    box-shadow: 0 0 0 10px rgba(220, 252, 231, 0.4);
}

.purple-circle {
    color: #7c3aed;
    background: #f3e8ff;
    box-shadow: 0 0 0 10px rgba(243, 232, 255, 0.4);
}

.warning-circle {
    color: #ea580c;
    background: #ffedd5;
    box-shadow: 0 0 0 10px rgba(255, 237, 213, 0.4);
}

.primary-circle {
    color: #2563eb;
    background: #dbeafe;
    box-shadow: 0 0 0 10px rgba(219, 234, 254, 0.4);
}

.danger-circle {
    color: #dc2626;
    background: #fee2e2;
    box-shadow: 0 0 0 10px rgba(254, 226, 226, 0.4);
}

.green-circle {
    color: #059669;
    background: #d1fae5;
    box-shadow: 0 0 0 10px rgba(209, 250, 229, 0.4);
}

.tpms-bc-right h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--tp-text-dark);
    transition: color 0.3s ease;
}

.tpms-bc-line {
    width: 60px;
    height: 3px;
    margin-bottom: 12px;
    background-size: 16px 3px;
    animation: flowLine 1s linear infinite;
    transition: width 0.3s ease;
}

@keyframes flowLine {
    to {
        background-position: -16px 0;
    }
}

.success-line {
    background-image: linear-gradient(90deg, #16a34a 50%, transparent 50%);
}

.purple-line {
    background-image: linear-gradient(90deg, #7c3aed 50%, transparent 50%);
}

.warning-line {
    background-image: linear-gradient(90deg, #ea580c 50%, transparent 50%);
}

.primary-line {
    background-image: linear-gradient(90deg, #2563eb 50%, transparent 50%);
}

.danger-line {
    background-image: linear-gradient(90deg, #dc2626 50%, transparent 50%);
}

.green-line {
    background-image: linear-gradient(90deg, #059669 50%, transparent 50%);
}

.tpms-bc-right p {
    font-size: 13px;
    color: var(--tp-text-gray);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover States for Benefit Card Content */
.tpms-benefit-card-new:hover .tpms-bc-right h4,
.tpms-benefit-card-new:hover .tpms-bc-right p {
    color: white;
}

.tpms-benefit-card-new:hover .tpms-bc-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
}

.tpms-benefit-card-new:hover .tpms-bc-line {
    background-image: linear-gradient(90deg, white 50%, transparent 50%);
    width: 80px;
}

/* 6. CTA Banner */
.tpms-cta {
    padding: 60px 0 100px;
    background: white;
}

.tpms-cta-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
}

.tpms-cta-left {
    flex: 0 0 40%;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding-left: 40px;
}

.tpms-cta-left img {
    max-width: 120%;
    margin-bottom: -20px;
    margin-left: -20px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.tpms-cta-right {
    flex: 1;
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tpms-cta-right h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tpms-cta-right p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: #e0e7ff;
    line-height: 1.5;
    max-width: 90%;
}

.tpms-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-btn-white {
    background-color: white;
    color: var(--tp-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid white;
    transition: all 0.2s;
}

.tp-btn-white:hover {
    background-color: #f8fafc;
    color: #4338ca;
}

.tp-btn-outline-white {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid white;
    transition: all 0.2s;
}

.tp-btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
    .tpms-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tpms-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tpms-benefit-grid,
    .tpms-benefit-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }

    .tpms-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .tpms-hero {
        padding: 80px 0;
    }

    .tpms-hero h1 {
        font-size: 2.5rem;
    }

    .tpms-hero-img-container {
        min-height: 300px;
        margin-top: 40px;
    }

    .tpms-main-image {
        position: relative;
        width: 100%;
        left: 0;
    }

    .tpms-floating-dashboard {
        width: 80%;
        top: 50%;
        right: 0;
    }

    .tpms-timeline-container {
        flex-wrap: wrap;
        gap: 40px 0;
    }

    .tpms-timeline-container::before {
        display: none;
    }

    .tpms-step {
        flex: 0 0 33.333%;
    }

    .tpms-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tpms-cta-banner {
        flex-direction: column;
    }

    .tpms-cta-left {
        display: none;
        /* Hide image on mobile for cleaner look */
    }

    .tpms-cta-right {
        padding: 40px;
        text-align: center;
    }

    .tpms-cta-right h2 {
        font-size: 2rem;
    }

    .tpms-cta-right p {
        max-width: 100%;
        margin: 0 auto 30px auto;
    }

    .tpms-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tpms-feature-grid {
        grid-template-columns: 1fr;
    }

    .tpms-showcase-grid {
        grid-template-columns: 1fr;
    }

    .tpms-benefit-grid,
    .tpms-benefit-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .tpms-process-grid {
        grid-template-columns: 1fr;
    }

    .tpms-step {
        flex: 0 0 50%;
    }

    .tpms-hero h1 {
        font-size: 2.2rem;
    }

    .tpms-section-title {
        font-size: 2rem;
    }

    .tpms-marquee-img {
        height: 200px;
    }

    .tpms-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .tpms-cta-buttons a {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .tpms-hero {
        padding: 60px 0;
        background-position: right 30%;
    }

    .tpms-hero h1 {
        font-size: 1.8rem;
    }

    .tpms-hero-subtitle {
        font-size: 1.1rem;
    }

    .tpms-hero-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .d-flex.flex-wrap.gap-3 a {
        width: 57%;
        text-align: center;
    }

    .tpms-benefit-grid,
    .tpms-benefit-grid-new {
        grid-template-columns: 1fr;
    }

    .tpms-benefit-card-new {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tpms-bc-left {
        margin-bottom: 12px;
    }

    .tpms-bc-line {
        margin-left: auto;
        margin-right: auto;
    }

    .tpms-step {
        flex: 0 0 100%;
    }

    .tpms-trusted-by {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tpms-marquee-img {
        height: 160px;
        margin: 0 10px;
    }

    .tpms-process {
        padding: 60px 0;
    }

    .tpms-features {
        padding: 60px 0;
    }

    .tpms-benefits {
        padding: 60px 0;
    }

    .tpms-section-title {
        font-size: 1.6rem;
    }

    .tpms-process-number {
        font-size: 40px;
    }
}