/* Homepage visual overrides */

/* Process section */
#process .workflow-step {
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(145deg, #ffffff, #f4f6fa);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#process .workflow-step::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6, #3b82f6);
    background-size: 300% auto;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: flowGradient 3s linear infinite;
    z-index: 10;
}

@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 150% 50%; }
}

#process .workflow-step:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

#process .workflow-step:hover::before {
    opacity: 1;
}

#process .workflow-step h3 {
    color: #1e3a8a;
    font-weight: 700;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

/* Keep final step centered in 2-column layout */
#process .workflow-grid > .workflow-step:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 60%;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    #process .workflow-grid > .workflow-step:nth-child(5) {
        max-width: 100%;
    }
}

/* Hyperliquid guidance section */
section#hyperliquid-hub.section-highlight {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    position: relative;
    color: white;
    padding: 5rem 0;
    overflow: hidden;
}

section#hyperliquid-hub.section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 50%);
    pointer-events: none;
}

section#hyperliquid-hub.section-highlight h2,
#hyperliquid-hub.section-highlight h2 {
    color: white;
    position: relative;
    z-index: 2;
}

section#hyperliquid-hub .section-subtitle,
#hyperliquid-hub .section-subtitle {
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

section#hyperliquid-hub .card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: #f3f4f6;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

section#hyperliquid-hub .card h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

section#hyperliquid-hub .card p {
    color: #94a3b8;
}

section#hyperliquid-hub .card a {
    color: #818cf8;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

section#hyperliquid-hub .card a:hover {
    color: #c7d2fe;
    transform: translateX(5px);
}

section#hyperliquid-hub .card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

section#hyperliquid-hub .card-guide {
    border-top: 4px solid #10b981;
}

section#hyperliquid-hub .card-case {
    border-top: 4px solid #3b82f6;
}

/* Success stories section */
#summary-cases .evidence-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

#summary-cases .evidence-card::after {
    content: '\2192';
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 1.5rem;
    color: #10b981;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

#summary-cases .evidence-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #10b981;
}

#summary-cases .evidence-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

#summary-cases .evidence-card a {
    color: #10b981;
    position: relative;
    z-index: 2;
}

#summary-cases .evidence-card a:hover {
    color: #059669;
}
