/* Integrations Page - Complete Override Styles */

/* Important overrides to ensure our styles take precedence */
.integrations-page {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #1d0c46 !important;
    background: #ffffff !important;
}

/* Override any conflicting container styles */
.integrations-page .container {
    max-width: 1800px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* Override any conflicting main content styles */
.integrations-page .main-content {
    margin: 0 !important;
    padding: 0 !important;
}

.integrations-page * {
    box-sizing: border-box;
}

/* Hero Section */
.integrations-page .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #DDE2EE 50%, #ffffff 100%) !important;
    padding: 120px 0 80px !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-section .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
}

.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #1d0c46;
    text-align: center;
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: #6b5b7a;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Hero Visual - Network Animation */
.hero-visual {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

.network-animation {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 700px;
    overflow: hidden;
}

/* Network Nodes */
.network-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.network-node.central {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.network-node.ethereum {
    top: 10%;
    left: 20%;
}

.network-node.polygon {
    top: 10%;
    right: 20%;
}

.network-node.twitter {
    bottom: 20%;
    left: 15%;
}

.network-node.discord {
    bottom: 20%;
    right: 15%;
}

.network-icon {
    width: 50px;
    height: 50px;
    background: rgba(29, 12, 70, 0.1);
    border: 2px solid #1d0c46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s infinite;
}

.network-icon.central {
    width: 100px;
    height: 100px;
    background: rgba(29, 12, 70, 0.05);
    border: 1px solid rgba(29, 12, 70, 0.1);
}

.network-icon i {
    font-size: 20px;
    color: #1d0c46;
}

.network-icon.central i {
    font-size: 40px;
    color: rgba(29, 12, 70, 0.15);
}

.network-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #1d0c46;
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 10%;
    animation-delay: 2s;
}

.network-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b5b7a;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(29, 12, 70, 0.1);
}


/* Content Sections */
.integrations-page .onchain-section,
.integrations-page .offchain-section,
.integrations-page .sdk-section,
.integrations-page .future-section {
    padding: 100px 0 !important;
    margin: 0 !important;
}

.integrations-page .onchain-section {
    background: #ffffff !important;
}

.integrations-page .offchain-section {
    background: #DDE2EE !important;
}

.integrations-page .sdk-section {
    background: #ffffff !important;
}

.integrations-page .future-section {
    background: #DDE2EE !important;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    overflow: hidden;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: #1d0c46;
    line-height: 1.3;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    hyphens: auto;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b5b7a;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

/* Chains Container */
.chains-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.chains-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d0c46;
    text-align: center;
}

.chain-carousel {
    overflow: hidden;
    margin: 2rem 0 4rem;
    position: relative;
    height: 80px;
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scrollLeft 15s linear infinite;
    gap: 60px;
    padding: 0 40px;
}

.chain-carousel.coming-soon .carousel-track {
    animation: scrollRight 18s linear infinite;
}

.chain-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d0c46;
    white-space: nowrap;
    padding: 16px 32px;
    background: rgba(29, 12, 70, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(29, 12, 70, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.chain-name:hover {
    background: rgba(29, 12, 70, 0.1);
    transform: scale(1.05);
}

.chain-carousel.coming-soon .chain-name {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #b8860b;
}

.chain-carousel.coming-soon .chain-name:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.05);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Integrations Grid */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.integration-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 12, 70, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(29, 12, 70, 0.1);
    text-align: center;
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 12, 70, 0.15);
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: #1d0c46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.integration-icon i {
    font-size: 24px;
    color: white;
}

.integration-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d0c46;
}

.integration-card p {
    color: #6b5b7a;
    line-height: 1.6;
    font-size: 1rem;
}

/* Features Panel */
.features-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 12, 70, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(29, 12, 70, 0.1);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(29, 12, 70, 0.15);
}

.feature-item i {
    font-size: 24px;
    color: #1d0c46;
    margin-bottom: 16px;
    display: block;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d0c46;
}

.feature-item p {
    color: #6b5b7a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* SDK CTA */
.sdk-cta {
    text-align: center;
    margin-top: 40px;
}

.sdk-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #1d0c46;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 12, 70, 0.3);
}

.sdk-cta .btn:hover {
    background: #2d1c56;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 12, 70, 0.4);
}

/* AI Preview */
.ai-preview {
    margin: 3rem auto;
    max-width: 800px;
    padding: 0 20px;
}

.ai-interface {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 12, 70, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(29, 12, 70, 0.1);
}

.ai-prompt {
    background: rgba(29, 12, 70, 0.05);
    border: 1px solid rgba(29, 12, 70, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ai-prompt p {
    margin: 0;
    color: #1d0c46;
    font-style: italic;
}

.ai-response {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 12, 70, 0.02);
    border-radius: 12px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #1d0c46;
    border-radius: 50%;
    display: inline-block;
    animation: loading 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.cta-section .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: #1d0c46;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.125rem;
    color: #6b5b7a;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #1d0c46;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 12, 70, 0.3);
}

.btn-large:hover {
    background: #2d1c56;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 12, 70, 0.4);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.7; }
    25% { transform: translateY(-10px) translateX(5px); opacity: 1; }
    50% { transform: translateY(-5px) translateX(-5px); opacity: 0.8; }
    75% { transform: translateY(-15px) translateX(3px); opacity: 0.9; }
}

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

@keyframes flow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .chain-carousel {
        height: 70px;
    }
    
    .chain-name {
        font-size: 1.4rem;
        padding: 12px 24px;
        min-width: 160px;
    }
    
    .features-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .network-node {
        transform: scale(0.6);
    }
    
    .network-icon {
        width: 35px;
        height: 35px;
    }
    
    .network-icon i {
        font-size: 14px;
    }
    
    .network-icon.central {
        width: 40px;
        height: 40px;
    }
    
    .network-icon.central i {
        font-size: 16px;
    }
    
    .onchain-section,
    .offchain-section,
    .sdk-section,
    .future-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .integrations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .integration-card,
    .chain-item,
    .feature-item {
        padding: 20px;
    }
    
    .chain-carousel {
        height: 60px;
    }
    
    .chain-name {
        font-size: 1.2rem;
        padding: 10px 20px;
        min-width: 140px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section .container,
    .section-header,
    .chains-container,
    .integrations-grid,
    .sdk-visual,
    .cta-section .container {
        padding: 0 16px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 350px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .network-node {
        transform: scale(0.5);
    }
    
    .network-icon {
        width: 30px;
        height: 30px;
    }
    
    .network-icon i {
        font-size: 12px;
    }
    
    .network-icon.central {
        width: 35px;
        height: 35px;
    }
    
    .network-icon.central i {
        font-size: 14px;
    }
    
    .integration-card,
    .chain-item,
    .feature-item {
        padding: 16px;
    }
    
    .chain-carousel {
        height: 50px;
    }
    
    .chain-name {
        font-size: 1rem;
        padding: 8px 16px;
        min-width: 120px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}