/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Bold Color Palette - Not Conservative! */
    --primary: #FF006E;
    --secondary: #8338EC;
    --accent: #3A86FF;
    --success: #06FFA5;
    --warning: #FFB800;
    
    /* Gradient Meshes */
    --gradient-1: linear-gradient(135deg, #FF006E 0%, #8338EC 50%, #3A86FF 100%);
    --gradient-2: linear-gradient(135deg, #06FFA5 0%, #3A86FF 50%, #8338EC 100%);
    --gradient-3: linear-gradient(135deg, #FFB800 0%, #FF006E 50%, #8338EC 100%);
    --gradient-mesh: radial-gradient(at 20% 30%, #FF006E 0%, transparent 50%),
                     radial-gradient(at 80% 70%, #8338EC 0%, transparent 50%),
                     radial-gradient(at 40% 80%, #3A86FF 0%, transparent 50%),
                     radial-gradient(at 90% 10%, #06FFA5 0%, transparent 50%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Heebo', sans-serif;
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: #0A0A0F;
    color: #fff;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    opacity: 0.3;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
    filter: blur(10px);
}

body:hover .custom-cursor {
    transform: scale(1.5);
    border-color: var(--accent);
}

a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor {
    transform: scale(2);
    border-color: var(--success);
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0F;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOut 0.8s ease 2s forwards;
}

.loading-octopus {
    text-align: center;
}

.loading-octopus img {
    width: 150px;
    height: 150px;
    animation: bounce 1s infinite ease-in-out;
    filter: drop-shadow(0 0 30px var(--primary));
}

.loading-text {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: 2s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: var(--success);
    top: 20%;
    left: 10%;
    animation-delay: 6s;
}

.orb-5 {
    width: 450px;
    height: 450px;
    background: var(--warning);
    bottom: 30%;
    right: 20%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ========================================
   PARTICLES
   ======================================== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav-glass.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-img {
    width: 40px;
    height: 40px;
    animation: rotate 10s linear infinite;
    transition: var(--transition-bounce);
}

.logo:hover .logo-img {
    transform: scale(1.2) rotate(360deg);
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
}

.nav-link:not(.cta-button):hover {
    color: var(--primary);
}

.nav-link:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:not(.cta-button):hover::after {
    width: 80%;
}

.cta-button {
    background: var(--gradient-1);
    border-radius: 50px;
    padding: 0.75rem 1.5rem !important;
    transition: var(--transition-bounce);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem;
    position: relative;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 40px;
    margin-bottom: 2rem;
    animation: slideInRight 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    color: var(--primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse infinite;
    color: var(--accent);
    z-index: -2;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

.typing-text {
    border-left: 2px solid var(--primary);
    padding-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

.btn {
    position: relative;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

.btn-icon {
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: slideInLeft 0.8s ease 0.6s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* ========================================
   HERO OCTOPUS VARIATIONS
   ======================================== */

.hero-octopus {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease;
}

.hero-octopus img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 50px var(--primary));
    animation: float 6s ease-in-out infinite;
}

/* Coding Animation - New Simple Version */
.coding-animation {
    position: relative;
    margin: 30px auto 0;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.coding-octopus {
    width: 120px;
    height: auto;
    animation: bounce 2s ease-in-out infinite;
}

.laptop {
    width: 150px;
    height: 100px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.screen {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 4px;
    padding: 8px;
}

.code-line {
    height: 4px;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    margin-bottom: 6px;
    border-radius: 2px;
    animation: typing 1.5s ease-in-out infinite;
}

.code-line:nth-child(2) {
    width: 80%;
    animation-delay: 0.3s;
}

.code-line:nth-child(3) {
    width: 60%;
    animation-delay: 0.6s;
}

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

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

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 20px;
    opacity: 0.2;
    transform: rotate(45deg);
    transition: var(--transition-smooth);
}

.feature-card:hover .icon-bg {
    transform: rotate(90deg) scale(1.2);
    opacity: 0.4;
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

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

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-octopus {
    width: 100px;
    height: 100px;
    margin: 2rem auto;
    position: relative;
}

.feature-octopus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Multi-tasking Octopus */
.octopus-multitask img {
    animation: multitask 2s infinite;
}

@keyframes multitask {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Music Octopus */
.octopus-music {
    animation: bounce 1s infinite;
}

.headphones {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: headphoneBounce 1s infinite;
}

@keyframes headphoneBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.music-notes {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    animation: musicNotes 2s infinite;
}

@keyframes musicNotes {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-40px); }
}

/* Success Octopus */
.octopus-success img {
    animation: celebrate 1.5s infinite;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.success-stars {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: translateX(-50%) scale(0); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* Thinking Octopus */
.octopus-thinking img {
    animation: think 3s infinite;
}

@keyframes think {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.thinking-bubble {
    position: absolute;
    top: -30px;
    right: -20px;
    font-size: 2.5rem;
    animation: thinkingBubble 2s infinite;
}

@keyframes thinkingBubble {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.feature-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.feature-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* ========================================
   ARCHITECTURE SECTION
   ======================================== */

.architecture {
    padding: var(--spacing-xl) var(--spacing-md);
}

.architecture-visual {
    max-width: 1000px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    height: 600px;
}

.central-brain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.brain-core {
    position: relative;
    width: 150px;
    height: 150px;
}

.brain-core img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--primary));
    animation: breathe 3s infinite;
}

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

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.brain-label {
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agents-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
}

.agent-node {
    position: absolute;
    width: 80px;
    height: 80px;
}

.node-content {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.agent-node:hover .node-content {
    transform: scale(1.3);
    background: var(--gradient-1);
    box-shadow: 0 10px 40px var(--primary);
}

.node-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Position nodes in circle */
.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { top: 15%; right: 5%; }
.node-3 { top: 50%; right: 0; transform: translateY(-50%); }
.node-4 { bottom: 15%; right: 5%; }
.node-5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-6 { bottom: 15%; left: 5%; }
.node-7 { top: 50%; left: 0; transform: translateY(-50%); }
.node-8 { top: 15%; left: 5%; }

.connection-line {
    position: absolute;
    width: 2px;
    height: 150px;
    background: var(--gradient-1);
    top: 50%;
    left: 50%;
    transform-origin: top center;
    opacity: 0.3;
    animation: dataFlow 2s infinite;
}

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.architecture-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   MARKETPLACE SECTION
   ======================================== */

.marketplace {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.agent-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.agent-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition-smooth);
    animation: rotate 10s linear infinite;
}

.agent-card:hover .card-glow {
    opacity: 0.1;
}

.agent-card.featured {
    border: 2px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
}

.agent-preview {
    position: relative;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.agent-preview img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--primary));
    transition: var(--transition-bounce);
}

.agent-card:hover .agent-preview img {
    transform: scale(1.1) rotate(5deg);
}

.agent-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--warning);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.new-badge {
    background: var(--success);
}

.agent-info {
    padding: 1.5rem 2rem 2rem;
}

.agent-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.agent-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    font-size: 1.1rem;
}

.rating-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.agent-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.agent-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
}

.agent-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    color: rgba(255, 255, 255, 0.5);
}

.agent-btn {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.agent-btn:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.featured-btn {
    background: var(--gradient-1);
    border-color: transparent;
}

.marketplace-cta {
    text-align: center;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-octopus {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.cta-octopus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px var(--primary));
    animation: float 4s ease-in-out infinite;
}

.cta-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    animation: sparkleRotate 3s linear infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 10%; right: 10%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 10%; left: 10%; animation-delay: 1s; }
.sparkle:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 1.5s; }

@keyframes sparkleRotate {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.5rem 3.5rem;
    font-size: 1.2rem;
}

.cta-trust {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-icon {
    color: var(--success);
    font-weight: 900;
    font-size: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--primary));
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 6rem 2rem 2rem;
    }
    
    .hero-octopus {
        max-width: 400px;
    }
    
    .architecture-visual {
        height: 400px;
    }
    
    .agents-circle {
        width: 350px;
        height: 350px;
    }
    
    .agent-node {
        width: 60px;
        height: 60px;
    }
    
    .node-content {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .coding-animation {
        max-width: 250px;
    }
    
    .coding-octopus {
        width: 80px;
    }
    
    .laptop {
        width: 120px;
        height: 80px;
    }
    
    .features-grid,
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-visual {
        height: 300px;
    }
    
    .agents-circle {
        width: 250px;
        height: 250px;
    }
    
    .agent-node {
        width: 50px;
        height: 50px;
    }
    
    .node-content {
        font-size: 1.2rem;
    }
    
    .node-label {
        font-size: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    body {
        cursor: auto;
    }
    
    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}
