/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    background: #000;
    color: white;
    height: 100vh;
    width: 100vw;
}

/* Main container */
.main-container {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background gradient exactly like the image */
.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 150% 100% at 50% 50%, 
        rgba(0, 100, 255, 0.3) 0%,
        rgba(100, 50, 255, 0.4) 25%,
        rgba(255, 0, 100, 0.5) 50%,
        rgba(255, 100, 0, 0.4) 75%,
        rgba(0, 0, 0, 0.9) 100%
    );
    animation: gradientShift 20s ease-in-out infinite alternate;
}

/* Torus container */
.torus-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 1;
}

/* 3D Torus exactly like in the image */
.torus {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateTorus 30s linear infinite;
}

.torus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #0066ff 0deg,
        #6633ff 60deg,
        #ff0066 120deg,
        #ff6600 180deg,
        #ffff00 240deg,
        #66ff00 300deg,
        #0066ff 360deg
    );
    filter: blur(2px);
    opacity: 0.8;
    animation: pulseGlow 4s ease-in-out infinite;
}

.torus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.7) 41%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2;
}

/* Multiple torus rings for depth */
.torus::before {
    box-shadow: 
        inset 0 0 100px rgba(0, 100, 255, 0.3),
        0 0 200px rgba(255, 100, 0, 0.2),
        0 0 400px rgba(100, 0, 255, 0.1);
}

/* Content layer */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

/* Header with logo */
.header {
    margin-bottom: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
        from 45deg,
        #ff6600,
        #ff0066,
        #6633ff,
        #0066ff,
        #ff6600
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateIcon 8s linear infinite;
}

.btc-symbol {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff6600, #ff0066, #6633ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Main content */
.main-content {
    margin-bottom: 4rem;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    
    /* Force bright rainbow gradient - very aggressive approach */
    background: linear-gradient(90deg, 
        #ff0080 0%,     /* Magenta */
        #ff4000 14%,    /* Red-Orange */
        #ff8000 28%,    /* Orange */
        #ffff00 42%,    /* Yellow */
        #80ff00 56%,    /* Lime */
        #00ff80 70%,    /* Spring Green */
        #00ffff 84%,    /* Cyan */
        #ff0080 100%    /* Back to Magenta */
    );
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    
    /* Very visible sliding animation */
    animation: hyperVividSlide 3s linear infinite;
    
    /* Force hardware acceleration */
    transform: translate3d(0, 0, 0);
    will-change: background-position;
    
    /* Additional glow for visibility */
    filter: drop-shadow(0 0 10px #ff0080) drop-shadow(0 0 20px #00ffff);
}

/* Ensure the title definitely shows the gradient */
@media all {
    .main-title {
        /* Try different webkit prefixes */
        -webkit-background-clip: text !important;
        -moz-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        -moz-text-fill-color: transparent !important;
        text-fill-color: transparent !important;
    }
}

/* Super aggressive fallback for stubborn browsers */
.main-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: linear-gradient(90deg, #ff0080, #ff8000, #ffff00, #00ffff, #8000ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hyperVividSlide 3s linear infinite;
    filter: blur(0.5px);
}

@keyframes rainbowText {
    0%, 100% { 
        filter: hue-rotate(0deg) saturate(1.2) brightness(1.1);
        text-shadow: 
            0 0 10px #ff6b35,
            0 0 20px #f7931e,
            0 0 30px #ffcd3c;
    }
    25% { 
        filter: hue-rotate(60deg) saturate(1.4) brightness(1.2);
        text-shadow: 
            0 0 10px #f7931e,
            0 0 20px #ffcd3c,
            0 0 30px #4fc3f7;
    }
    50% { 
        filter: hue-rotate(120deg) saturate(1.3) brightness(1.15);
        text-shadow: 
            0 0 10px #ffcd3c,
            0 0 20px #4fc3f7,
            0 0 30px #7c4dff;
    }
    75% { 
        filter: hue-rotate(180deg) saturate(1.5) brightness(1.25);
        text-shadow: 
            0 0 10px #4fc3f7,
            0 0 20px #7c4dff,
            0 0 30px #e91e63;
    }
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
}

@keyframes hyperVividSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes subtitleSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.protocol-abbr {
    display: inline-block;
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.8;
    background: linear-gradient(45deg, #ff6b35, #7c4dff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextFast 4s ease-in-out infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 200% 50%; }
    75% { background-position: 300% 50%; }
    100% { background-position: 400% 50%; }
}

@keyframes gradientTextFast {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes featureGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    
    /* Bright gradient for subtitle */
    background: linear-gradient(90deg, 
        #64b5f6 0%,    /* Light Blue */
        #81c784 25%,   /* Light Green */
        #ffb74d 50%,   /* Warm Orange */
        #f06292 75%,   /* Pink */
        #9575cd 100%   /* Purple */
    );
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: subtitleSlide 4s linear infinite;
    
    /* Fallback color */
    color: #64b5f6;
    
    /* Soft gradient glow effect */
    text-shadow: 
        0 0 10px #64b5f6,
        0 0 15px #81c784,
        0 0 20px #ffb74d;
    
    /* Subtle color animation */
    animation: subtitleShimmer 4s ease-in-out infinite alternate;
}

/* Enhanced gradient for modern browsers */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .subtitle {
        background: linear-gradient(90deg, 
            #64b5f6 0%,    /* Light Blue */
            #81c784 25%,   /* Light Green */
            #ffb74d 50%,   /* Warm Orange */
            #f06292 75%,   /* Pink */
            #9575cd 100%   /* Purple */
        );
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        animation: subtitleGradient 6s ease-in-out infinite alternate;
        text-shadow: none;
    }
}

@keyframes subtitleShimmer {
    0% { 
        color: #64b5f6;
        text-shadow: 
            0 0 10px #64b5f6,
            0 0 15px #81c784;
    }
    50% { 
        color: #81c784;
        text-shadow: 
            0 0 10px #81c784,
            0 0 15px #ffb74d;
    }
    100% { 
        color: #ffb74d;
        text-shadow: 
            0 0 10px #ffb74d,
            0 0 15px #f06292;
    }
}
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features row */
.features {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.feature-text {
    font-size: 1.25rem;
    font-weight: 600;
    /* Feature text gradient */
    background: linear-gradient(45deg, 
        #ff9800 0%,    /* Orange */
        #2196f3 50%,   /* Blue */
        #9c27b0 100%   /* Purple */
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: featureGradient 4s ease-in-out infinite;
    /* Fallback */
    color: rgba(255, 255, 255, 0.8);
}

/* Launch button */
.launch-button {
    /* Dynamic pulsing gradient background */
    background: linear-gradient(45deg, 
        #ff0080, #ff4000, #ff8000, #ffff00, 
        #80ff00, #00ff80, #00ffff, #8000ff, #ff0080
    );
    background-size: 400% 400%;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    /* Pulsing glow animation */
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(255, 128, 0, 0.4),
        0 0 60px rgba(0, 255, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Multiple animations */
    animation: 
        launchButtonPulse 2s ease-in-out infinite,
        launchButtonGlow 3s ease-in-out infinite alternate,
        launchButtonGradient 4s linear infinite;
    
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform, box-shadow, background-position;
    
    /* Text styling */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.launch-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.8),
        0 0 60px rgba(255, 128, 0, 0.6),
        0 0 90px rgba(0, 255, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.4);
    animation-duration: 1.5s, 2s, 3s; /* Speed up animations on hover */
}

.launch-button:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s ease;
}

.launch-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.launch-button:hover::before {
    left: 100%;
}

/* Social links */
.social-links {
    margin-top: 4rem;
    text-align: center;
}

.social-links-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.social-link .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link span {
    font-size: 0.9rem;
}

/* Animations - Reduced for mobile performance */
@keyframes gradientShift {
    0% {
        background: radial-gradient(ellipse 150% 100% at 50% 50%, 
            rgba(0, 100, 255, 0.3) 0%,
            rgba(100, 50, 255, 0.4) 25%,
            rgba(255, 0, 100, 0.5) 50%,
            rgba(255, 100, 0, 0.4) 75%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
    100% {
        background: radial-gradient(ellipse 150% 100% at 50% 50%, 
            rgba(100, 0, 255, 0.3) 0%,
            rgba(255, 0, 100, 0.4) 25%,
            rgba(255, 100, 0, 0.5) 50%,
            rgba(0, 100, 255, 0.4) 75%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
}

@keyframes rotateTorus {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Disable heavy animations on mobile */
@media (max-width: 768px) {
    .background-gradient {
        animation: none;
    }
    
    .torus {
        animation: rotateTorus 60s linear infinite;
        will-change: transform;
    }
    
    .torus::before {
        animation: pulseGlow 8s ease-in-out infinite;
        will-change: opacity, transform;
    }
    
    .logo-circle {
        animation: rotateIcon 16s linear infinite;
        will-change: transform;
    }
}

/* Text highlighting styles */
.highlight-orange {
    background: linear-gradient(45deg, #ff6600, #ff0066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight-blue {
    background: linear-gradient(45deg, #0066ff, #6633ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #9ca3af;
}

/* TestNet Badge */
.testnet-badge {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.testnet-badge > div {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Security Section Styles */
.security-section {
    margin: 4rem 0;
}

.security-card {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 136, 255, 0.1));
    opacity: 0.5;
    z-index: -1;
}

.security-icon {
    margin-bottom: 1.5rem;
}

.security-icon .icon {
    width: 4rem;
    height: 4rem;
    color: #00ff88;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.security-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    animation: securityGlow 4s ease-in-out infinite;
}

.security-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.security-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #00ff88;
}

.security-features .icon {
    width: 1.25rem;
    height: 1.25rem;
}

@keyframes securityGlow {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .torus-container {
        width: 600px;
        height: 600px;
    }
    
    .torus::before {
        width: 450px;
        height: 450px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
}

/* Force horizontal layout for all screens larger than mobile */
@media (min-width: 769px) {
    .features {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem !important;
        flex-wrap: nowrap !important;
        margin-bottom: 3rem !important;
    }
    
    .feature {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .content {
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .torus-container {
        width: 300px;
        height: 300px;
        opacity: 0.4;
    }
    
    .torus::before {
        width: 220px;
        height: 220px;
    }
    
    .main-title {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .brand-title {
        font-size: 1.8rem;
        word-break: keep-all;
    }
    
    .features {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
    }
    
    .logo {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    .btc-symbol {
        font-size: 20px;
    }
    
    .launch-button {
        width: 100%;
        max-width: 300px;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: auto;
    }
    
    .content {
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    
    .main-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .brand-title {
        font-size: 1.4rem;
    }
    
    .torus-container {
        width: 250px;
        height: 250px;
        position: fixed;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.6;
    }
    
    .torus::before {
        width: 180px;
        height: 180px;
    }
    
    .launch-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature {
        justify-content: center;
    }
    
    .feature-text {
        font-size: 1rem;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        max-width: 300px;
    }
    
    .social-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .social-link .icon {
        width: 20px;
        height: 20px;
    }
    
    /* Reduce animations further on small screens */
    .torus {
        animation: none;
    }
    
    .logo-circle {
        animation: rotateIcon 20s linear infinite;
    }
}

/* Launch Button Animations */
@keyframes launchButtonPulse {
    0%, 100% { 
        transform: scale(1) translateZ(0); 
    }
    50% { 
        transform: scale(1.02) translateZ(0); 
    }
}

@keyframes launchButtonGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 0, 128, 0.4),
            0 0 40px rgba(255, 128, 0, 0.3),
            0 0 60px rgba(0, 255, 255, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 0, 128, 0.8),
            0 0 60px rgba(255, 128, 0, 0.6),
            0 0 90px rgba(0, 255, 255, 0.4),
            0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

@keyframes launchButtonGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 200% 50%; }
    75% { background-position: 300% 50%; }
    100% { background-position: 400% 50%; }
}

/* Workflow Logic Styles */
.workflow-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, 
        #ff6b6b 0%,    /* Coral Red */
        #4ecdc4 25%,   /* Teal */
        #45b7d1 50%,   /* Sky Blue */
        #96ceb4 75%,   /* Mint Green */
        #feca57 100%   /* Golden Yellow */
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: workflowTitleGradient 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.workflow-steps {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.workflow-step {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    max-width: 200px;
    min-height: 120px;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Safari fallback */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Safari prefixes */
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-animation: workflowStepPulse 3s ease-in-out infinite;
    -moz-animation: workflowStepPulse 3s ease-in-out infinite;
    -o-animation: workflowStepPulse 3s ease-in-out infinite;
    animation: workflowStepPulse 3s ease-in-out infinite;
    /* Force block layout for Safari */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.workflow-step:nth-child(1) { animation-delay: 0s; }
.workflow-step:nth-child(2) { animation-delay: 0.5s; }
.workflow-step:nth-child(3) { animation-delay: 1s; }
.workflow-step:nth-child(4) { animation-delay: 1.5s; }

.workflow-step:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 107, 107, 0.2);
}

.workflow-step::before {
    content: attr(data-step);
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    animation: stepNumberPulse 2s ease-in-out infinite;
}

.step-icon {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, 
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4
    );
    background-size: 300% 300%;
    -webkit-animation: stepIconGradient 3s ease-in-out infinite;
    -moz-animation: stepIconGradient 3s ease-in-out infinite;
    -o-animation: stepIconGradient 3s ease-in-out infinite;
    animation: stepIconGradient 3s ease-in-out infinite;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.step-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    background: linear-gradient(45deg, 
        #ff9800 0%,    /* Orange */
        #2196f3 50%,   /* Blue */
        #9c27b0 100%   /* Purple */
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: featureGradient 4s ease-in-out infinite;
}

.step-text small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.7;
    background: linear-gradient(45deg, #64b5f6, #81c784);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes workflowTitleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@-webkit-keyframes workflowStepPulse {
    0%, 100% { 
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 0 0 rgba(255, 107, 107, 0);
        box-shadow: 0 0 0 rgba(255, 107, 107, 0);
    }
    50% { 
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
        -webkit-box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
    }
}

@keyframes workflowStepPulse {
    0%, 100% { 
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 0 0 rgba(255, 107, 107, 0);
        box-shadow: 0 0 0 rgba(255, 107, 107, 0);
    }
    50% { 
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
        -webkit-box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
    }
}

@keyframes stepNumberPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

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

/* Experimental Badge for Desktop */
.experimental-badge {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.2) 0%, 
        rgba(255, 69, 0, 0.2) 100%
    );
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 200, 0, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-box-shadow: 
        0 2px 8px rgba(255, 165, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 2px 8px rgba(255, 165, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-animation: warningPulse 3s ease-in-out infinite;
    -moz-animation: warningPulse 3s ease-in-out infinite;
    -o-animation: warningPulse 3s ease-in-out infinite;
    animation: warningPulse 3s ease-in-out infinite;
    white-space: nowrap;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.experimental-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    max-width: 8px;
    max-height: 8px;
    background: rgba(255, 180, 0, 1);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-flex-grow: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    -webkit-animation: dotPulse 2s ease-in-out infinite;
    -moz-animation: dotPulse 2s ease-in-out infinite;
    -o-animation: dotPulse 2s ease-in-out infinite;
    animation: dotPulse 2s ease-in-out infinite;
    -webkit-box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
    -moz-box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
    /* Force perfect circle */
    aspect-ratio: 1;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
}

@-webkit-keyframes warningPulse {
    0%, 100% { 
        opacity: 0.7;
        -webkit-transform: scale(1);
        transform: scale(1);
        border-color: rgba(255, 165, 0, 0.3);
    }
    50% { 
        opacity: 1;
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
        border-color: rgba(255, 165, 0, 0.5);
    }
}

@keyframes warningPulse {
    0%, 100% { 
        opacity: 0.7;
        -webkit-transform: scale(1);
        transform: scale(1);
        border-color: rgba(255, 165, 0, 0.3);
    }
    50% { 
        opacity: 1;
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
        border-color: rgba(255, 165, 0, 0.5);
    }
}

@-webkit-keyframes dotPulse {
    0%, 100% { 
        opacity: 0.8;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
        box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
    }
    50% { 
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        -webkit-box-shadow: 0 0 16px rgba(255, 165, 0, 1);
        box-shadow: 0 0 16px rgba(255, 165, 0, 1);
    }
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 0.8;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
        box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
    }
    50% { 
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        -webkit-box-shadow: 0 0 16px rgba(255, 165, 0, 1);
        box-shadow: 0 0 16px rgba(255, 165, 0, 1);
    }
}

/* Responsive Workflow Styles */
@media (max-width: 1024px) {
    .workflow-steps {
        gap: 1.5rem;
    }
    
    .workflow-step {
        max-width: 180px;
        padding: 1.2rem;
    }
    
    .workflow-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .workflow-step {
        width: 100%;
        max-width: 300px;
        flex-direction: row;
        text-align: left;
        padding: 1rem 1.5rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    
    .workflow-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .step-text {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .step-text small {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
}

@media (max-width: 480px) {
    .workflow-title {
        font-size: 1.2rem;
    }
    
    .workflow-step {
        padding: 0.8rem 1.2rem;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .step-text {
        font-size: 0.9rem;
    }
    
    .step-text small {
        font-size: 0.7rem;
    }
    
    .workflow-step::before {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}