:root {
    --tps-accent: #E87722;
    --tps-bg: #0F0F0F;
    --tps-text-dim: rgba(255, 255, 255, 0.7);
    --tps-glow: rgba(232, 119, 34, 0.2);
    --tps-border: #59493c;
}

.toonz-process-system {
    background-color: var(--tps-bg);
    color: #ffffff;
    padding: 100px 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
}

.tps-container {
    margin: 0 auto;
    padding: 0 30px;
}

/* Header Styles */
.tps-header {
    text-align: center;
    margin-bottom: 60px;
}

.tps-eyebrow {
    color: var(--tps-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.tps-eyebrow::before,
.tps-eyebrow::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--tps-accent), transparent);
    opacity: 0.5;
}

.tps-title-sep {
    width: 300px;
    height: 1px;
    margin: 0 auto 15px;
}

.tps-headline {
    font-size: 80px;
    font-weight: 300;
    margin: 0 0 25px;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.tps-sub-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.tps-subtext {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 300;
}

.tps-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tps-text-dim);
}

/* Grid Layout */
.tps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    border: 1px solid var(--tps-border);
}

.tps-grid-top-marker {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tps-bg);
    padding: 0 10px;
    color: var(--tps-accent);
    font-size: 14px;
    z-index: 10;
}

/* Card Styles */
.tps-card {
    background: var(--tps-bg);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tps-card:nth-child(1) {
    z-index: 4;
}

.tps-card:nth-child(2) {
    z-index: 3;
}

.tps-card:nth-child(3) {
    z-index: 2;
}

.tps-card:nth-child(4) {
    z-index: 1;
}

.tps-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--tps-border);
    z-index: 5;
}

.tps-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 15;
    overflow: hidden;
    cursor: pointer;
}

.tps-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1.2s ease;
}

.tps-img-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tps-step-num {
    color: var(--tps-accent);
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.tps-step-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Flow Arrows - Placement Fix */
.tps-arrow {
    position: absolute;
    right: -16px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 999;
    background: #000000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tps-accent);
    color: var(--tps-accent);
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(232, 119, 34, 0.4);
}

/* Details Section */
.tps-card-details {
    padding: 40px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tps-card-icon {
    flex-shrink: 0;
    font-size: 28px;
    color: var(--tps-accent);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 35px;
    opacity: 0.8;
}

.tps-card-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tps-card-title {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 15px;
    letter-spacing: 0.5px;
}

.tps-card-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--tps-text-dim);
}

/* Hover Effects */
.tps-card:hover .tps-card-img-wrap img {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.tps-card:hover {
    background: rgba(232, 119, 34, 0.02);
}

.tps-card:hover .tps-card-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Footer Section */
.tps-footer {
    text-align: center;
    position: relative;
    padding: 40px 30px;
    border: 1px solid var(--tps-border);
    border-top: none;
}

.tps-footer-marker {
    color: var(--tps-accent);
    font-size: 14px;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tps-bg);
    padding: 0 15px;
    z-index: 10;
}



.tps-bottom-text {
    font-size: 18px;
    color: var(--tps-accent);
    font-weight: 300;
    letter-spacing: 1.5px;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .tps-headline {
        font-size: 60px;
    }
}

@media (max-width: 1024px) {
    .tps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tps-card::after {
        display: none;
    }

    .tps-card {
        border: 0.5px solid var(--tps-border);
    }

    .tps-arrow {
        display: none;
    }
}

@media (max-width: 767px) {
    .toonz-process-system {
        padding: 60px 0;
    }

    .tps-headline {
        font-size: 36px;
    }

    .tps-grid {
        grid-template-columns: 1fr;
    }

    .tps-subtext {
        font-size: 20px;
    }
}