/* ===== COMPONENTS - BILLION DOLLAR SAAS ===== */

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.2s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 7, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.open {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Primary Button */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Small Button */
.btn-sm {
    padding: 10px 18px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* Large Button */
.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

/* Button Variants */
.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

/* ===== TRUST BAR ===== */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent-primary);
}

/* ===== BENTO GRID CARDS ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.bento-card {
    background: linear-gradient(135deg, rgba(26, 34, 54, 0.7) 0%, rgba(17, 25, 39, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-6px);
}

.bento-card:hover::after {
    opacity: 1;
}

/* Bento Icon */
.bento-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.bento-icon svg {
    color: var(--accent-primary);
    width: 26px;
    height: 26px;
}

.bento-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Bento Visual */
.bento-visual {
    margin-top: 24px;
    height: 100px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

/* Orderbook Animation */
.orderbook-animation {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.orderbook-animation .order-row {
    height: 16px;
    border-radius: 4px;
    animation: orderbook-fade 2s ease-in-out infinite;
}

.orderbook-animation .order-row.buy {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3));
    animation-delay: 0s;
}

.orderbook-animation .order-row.sell {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3));
    animation-delay: 0.5s;
}

@keyframes orderbook-fade {
    0%, 100% { opacity: 0.3; transform: translateX(-10px); }
    50% { opacity: 1; transform: translateX(0); }
}

/* Wallet Animation */
.wallet-animation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.wallet-animation .address {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-animation .address::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Blockchain Animation */
.blockchain-animation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.blockchain-animation .block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(10, 14, 23, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    animation: block-slide 3s ease-in-out infinite;
}

.blockchain-animation .block-height {
    color: var(--accent-primary);
    font-weight: 600;
}

.blockchain-animation .block-status {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blockchain-animation .block-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes block-slide {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

/* Pulse Animation */
.pulse-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pulse-animation .pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: pulse-ring 2s ease-out infinite;
}

.pulse-animation .pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-animation .pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

.pulse-animation .pulse-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: linear-gradient(135deg, rgba(26, 34, 54, 0.6) 0%, rgba(17, 25, 39, 0.5) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

.service-card p {
    color: var(--text-secondary);
    margin: 16px 0;
    line-height: 1.65;
    font-size: 0.9375rem;
}

.service-tech {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-tech::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    border-radius: 50%;
}

/* ===== TECH TAGS ===== */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

/* ===== STATS CARDS ===== */
.stat-card {
    text-align: center;
    padding: 36px 28px;
    background: linear-gradient(135deg, rgba(26, 34, 54, 0.6) 0%, rgba(17, 25, 39, 0.4) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 850;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-block;
    margin-left: 2px;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== CHAIN BADGES ===== */
.chain-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin: 0 8px;
    transition: all 0.2s ease;
}

.chain-badge:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    text-align: center;
    margin-top: 64px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .trust-bar {
        gap: 20px;
    }
}
