:root {
    --athlete-accent: #031F47;
    --data-blue: #3b82f6;
    --card-radius: 24px;
    --border-soft: #f0f0f5;
}

.performance-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 24px;
}

.perf-section {
    margin-bottom: 120px;
    scroll-margin-top: 120px;
}

.section-title-box {
    margin-bottom: 48px;
    position: relative;
}

.section-title-box h2 {
    font-size: 36px;
    color: var(--athlete-accent);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title-box h2::after {
    content: "";
    height: 2px;
    flex: 1;
    background: linear-gradient(var(--athlete-accent), transparent);
    opacity: 0.1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: #f8faff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--athlete-accent);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--athlete-accent);
    font-weight: 700;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    word-break: keep-all;
}

.flow-container {
    background: #fcfcfd;
    border-radius: 32px;
    padding: 60px;
    border: 1px solid var(--border-soft);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.flow-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.flow-circle {
    width: 64px;
    height: 64px;
    background: white;
    border: 2px solid var(--border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--athlete-accent);
    font-size: 18px;
    transition: all 0.3s ease;
}

.flow-step-item:hover .flow-circle {
    border-color: var(--icon-purple);
    box-shadow: 0 10px 20px rgba(157, 74, 255, 0.2);
}

.flow-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--athlete-accent);
}

.flow-line {
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-soft);
    z-index: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
}

.analytics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 15px;
}

.data-visual-card {
    background: white;
    border-radius: 32px;
    padding: 35px;
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    flex-direction: column;
}

.label-pill {
    font-size: 12px;
    font-weight: 500;
    color: var(--icon-purple);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.radar-box {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8faff;
    border-radius: 16px;
}

.history-date {
    font-size: 14px;
    color: var(--text-muted);
}

.history-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--athlete-accent);
}

@keyframes riseUp {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: var(--op, 1);
    }
}

@keyframes growFromCenter {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fillProgress {
    from {
        width: 0;
    }
}

.imbalance-bar {
    transform-origin: bottom;
    opacity: 0;
}

.imbalance-bar.animate {
    animation: riseUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.radar-polygon {
    transform-origin: center;
    opacity: 0;
}

.radar-polygon.animate {
    animation: growFromCenter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.progress-fill {
    width: 0;
}

.progress-fill.animate {
    animation: fillProgress 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.flow-tag {
    position: absolute;
    top: -15px;
    left: 40px;
    background: var(--athlete-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(3, 31, 71, 0.2);
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .perf-section {
        margin-bottom: 80px;
        scroll-margin-top: 100px;
    }

    .flow-steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .analytics-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .performance-container {
        padding: 0 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        overflow-x: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding-left: 20px;
    }

    .flow-line {
        width: 2px;
        height: auto;
        top: 0;
        bottom: 0;
        left: 51px;
        right: auto;
    }

    .flow-line {
        left: 52px;
        top: 0;
        height: 100%;
        width: 1px;
    }

    .flow-step-item {
        flex-direction: row;
        width: 100%;
        gap: 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .flow-container {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .section-title-box h2 {
        font-size: 28px;
    }

    .data-visual-card {
        padding: 24px;
    }

    .flow-tag {
        left: 20px;
        font-size: 14px;
    }
}