* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #060d1b;
    overflow-x: hidden;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0085ff 0%, #7c3aed 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-sm {
    background: linear-gradient(90deg, #00bcff, #0085ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass card */
.glass-card {
    background: rgba(15, 31, 56, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 133, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 133, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 133, 255, 0.08);
    transform: translateY(-2px);
}

/* Dot grid bg */
.dot-grid {
    background-image: radial-gradient(rgba(0, 133, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Mesh gradient */
.mesh-gradient {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 133, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 188, 255, 0.06) 0%, transparent 50%);
}

/* Glow button */
.glow-btn {
    position: relative;
    background: linear-gradient(135deg, #0085ff, #7c3aed);
    transition: all 0.3s ease;
}

.glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0085ff, #7c3aed);
    border-radius: inherit;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-btn:hover::before {
    opacity: 0.6;
}

.glow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 133, 255, 0.3);
}

/* Code block */
.code-block {
    background: rgba(6, 13, 27, 0.8);
    border: 1px solid rgba(0, 133, 255, 0.15);
    font-family: 'IBM Plex Mono', monospace;
}

/* Handle animation */
@keyframes handleSwap {
    0%, 40% { opacity: 1; transform: translateY(0); }
    45%, 50% { opacity: 0; transform: translateY(-8px); }
    55%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.pulse-ring {
    animation: pulse-ring 3s ease-in-out infinite;
}

/* Fade in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

/* Flow step connector */
.flow-connector {
    position: relative;
}

.flow-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -24px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,133,255,0.5), rgba(124,58,237,0.5));
}

/* Tab active */
.tab-active {
    background: linear-gradient(135deg, rgba(0, 133, 255, 0.2), rgba(124, 58, 237, 0.15));
    border-color: rgba(0, 133, 255, 0.4);
}

/* Resolver animation */
@keyframes resolveStep {
    0% { width: 0%; }
    100% { width: 100%; }
}

.resolve-progress {
    animation: resolveStep 0.8s ease forwards;
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

/* Copy button */
.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0, 133, 255, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #060d1b;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 133, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 133, 255, 0.5);
}

/* Nav */
.nav-glass {
    background: rgba(6, 13, 27, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 133, 255, 0.08);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dot-grid {
        background-size: 24px 24px;
    }
}