/* ============================================
   HACKBOX CONSOLE - FUNKY ANIMATED STYLESHEET
   Soft Purples/Pinks/Blues • Maximum Animations
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Soft Purples/Pinks/Blues */
    --purple-100: #f5f3ff;
    --purple-200: #ede9fe;
    --purple-300: #ddd6fe;
    --purple-400: #c4b5fd;
    --purple-500: #a78bfa;
    --purple-600: #8b5cf6;
    --purple-700: #7c3aed;
    
    --pink-100: #fdf2f8;
    --pink-200: #fce7f3;
    --pink-300: #fbcfe8;
    --pink-400: #f9a8d4;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    
    --blue-100: #eff6ff;
    --blue-200: #dbeafe;
    --blue-300: #bfdbfe;
    --blue-400: #93c5fd;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--purple-500), var(--pink-500), var(--blue-500));
    --gradient-soft: linear-gradient(135deg, var(--purple-200), var(--pink-200), var(--blue-200));
    --gradient-hero: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 50%, #eff6ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    
    /* Text Colors */
    --text-primary: #1e1b4b;
    --text-secondary: #4c1d95;
    --text-muted: #6b7280;
    
    /* Background */
    --bg-primary: #fefefe;
    --bg-secondary: #faf5ff;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.1);
    --shadow-md: 0 8px 30px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 20px 60px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-hero);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--purple-300);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--pink-300);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--blue-300);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: var(--purple-400);
    top: 40%;
    left: 10%;
    animation-delay: -7s;
    animation-duration: 28s;
}

.blob-5 {
    width: 450px;
    height: 450px;
    background: var(--pink-200);
    bottom: 20%;
    right: 20%;
    animation-delay: -12s;
    animation-duration: 24s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(50px, -50px) scale(1.1) rotate(90deg); }
    50% { transform: translate(-30px, 30px) scale(0.95) rotate(180deg); }
    75% { transform: translate(40px, 20px) scale(1.05) rotate(270deg); }
}

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

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition-medium);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.navbar.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoSpin 10s linear infinite;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: var(--transition-fast);
    border-radius: 12px;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--purple-700);
    transform: translateY(-2px);
}

.dropdown-arrow {
    transition: var(--transition-fast);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0.75rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    animation: dropdownSlide 0.3s ease forwards;
    opacity: 0;
}

.dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu li:nth-child(5) { animation-delay: 0.25s; }

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--gradient-soft);
    color: var(--purple-700);
    transform: translateX(5px);
}

/* Nav CTA Button */
.nav-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    display: none;
}

.nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

.nav-cta:hover::after {
    transform: translateX(100%);
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.cta-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--purple-700);
    border: 1px solid var(--purple-200);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    animation: rocketLaunch 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--purple-600);
    font-weight: 600;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

.btn-primary:hover .btn-bg {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--purple-700);
    border: 2px solid var(--purple-200);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--purple-100);
    border-color: var(--purple-400);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.btn-secondary svg {
    animation: bounceDown 1.5s ease-in-out infinite;
}

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

.btn-outline {
    background: transparent;
    color: var(--purple-700);
    border: 2px solid var(--purple-400);
}

.btn-outline:hover {
    background: var(--purple-100);
    border-color: var(--purple-600);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Console Mockup */
.console-mockup {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.console-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent, rgba(236, 72, 153, 0.1));
    pointer-events: none;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-soft);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.mockup-dots span:nth-child(1) {
    background: #ff6b6b;
    animation-delay: 0s;
}

.mockup-dots span:nth-child(2) {
    background: #ffd93d;
    animation-delay: 0.2s;
}

.mockup-dots span:nth-child(3) {
    background: #6bcb77;
    animation-delay: 0.4s;
}

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

.mockup-title {
    font-weight: 600;
    color: var(--purple-700);
    font-size: 0.9rem;
}

.mockup-content {
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
    min-height: 250px;
}

.mockup-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    height: 40px;
    background: var(--purple-200);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.sidebar-item.active {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--purple-200);
    position: relative;
    overflow: hidden;
}

.challenge-card.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.challenge-card.delay::after {
    animation-delay: 1s;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.challenge-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--purple-200);
    color: var(--purple-700);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.challenge-badge.unlocked {
    background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
    color: white;
}

.challenge-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.challenge-lines .line {
    height: 10px;
    background: var(--purple-100);
    border-radius: 5px;
}

.challenge-lines .line.short {
    width: 60%;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    animation: floatAround 6s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(139, 92, 246, 0.3));
}

.float-1 { top: 10%; left: -10%; animation-delay: 0s; }
.float-2 { top: 5%; right: 5%; animation-delay: -1s; }
.float-3 { bottom: 20%; right: -5%; animation-delay: -2s; }
.float-4 { bottom: 10%; left: 5%; animation-delay: -3s; }
.float-5 { top: 50%; left: -15%; animation-delay: -4s; }
.float-6 { top: 30%; right: -10%; animation-delay: -5s; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(15px, -20px) rotate(10deg) scale(1.1); }
    50% { transform: translate(-10px, 15px) rotate(-5deg) scale(0.95); }
    75% { transform: translate(20px, 10px) rotate(15deg) scale(1.05); }
}

/* Animate Float */
.animate-float {
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.animate-bounce {
    animation: bounceUpDown 2s ease-in-out infinite;
}

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

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Entry Animations */
.animate-bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(-50px); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-soft);
    color: var(--purple-700);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--purple-200);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: linear-gradient(180deg, transparent, var(--purple-100) 20%, var(--purple-100) 80%, transparent);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-300);
}

.feature-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--gradient-soft);
    border-radius: 50%;
    opacity: 0.5;
    transition: var(--transition-slow);
}

.feature-card:hover .feature-decoration {
    transform: scale(1.5);
    opacity: 0.8;
}

.feature-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-soft);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition-medium);
}

.feature-card:hover .feature-icon {
    transform: rotate(-10deg) scale(1.1);
}

.icon-ring {
    position: absolute;
    inset: -5px;
    border: 2px dashed var(--purple-300);
    border-radius: 24px;
    animation: ringRotate 20s linear infinite;
    opacity: 0;
    transition: var(--transition-fast);
}

.feature-card:hover .icon-ring {
    opacity: 1;
}

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

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   INTEGRATIONS SECTION
   ============================================ */
.integrations {
    background: linear-gradient(180deg, transparent, var(--pink-100) 20%, var(--pink-100) 80%, transparent);
}

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

.integration-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: hidden;
    transition: var(--transition-medium);
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.integration-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--pink-300), transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.integration-card:hover .integration-glow {
    opacity: 0.5;
}

.integration-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink-300);
}

.integration-content {
    position: relative;
    padding: 2.5rem;
    z-index: 1;
}

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

.big-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
    animation: numberPulse 3s ease-in-out infinite;
}

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

.integration-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.integration-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.integration-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.integration-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.integration-link {
    display: inline-flex;
    align-items: center;
    color: var(--purple-600);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.integration-link:hover {
    color: var(--pink-600);
    transform: translateX(5px);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    background: linear-gradient(180deg, transparent, var(--blue-100) 20%, var(--blue-100) 80%, transparent);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: relative;
    flex-shrink: 0;
}

.step-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.step:hover .step-number span {
    transform: scale(1.1) rotate(360deg);
}

.step-line {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% + 1.5rem);
    background: linear-gradient(to bottom, var(--purple-400), var(--pink-400));
    border-radius: 3px;
}

.step:last-child .step-line {
    display: none;
}

.step-content {
    padding-top: 0.75rem;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.videos {
    background: linear-gradient(180deg, transparent, var(--purple-100) 20%, var(--purple-100) 80%, transparent);
}

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

.video-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: var(--transition-medium);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--gradient-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmerVideo 3s infinite;
}

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

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-medium);
    position: relative;
    z-index: 1;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.coming-soon {
    position: absolute;
    bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--purple-600);
}

.video-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem 0.5rem;
    color: var(--text-primary);
}

.video-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 1.5rem 1.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 6rem 2rem;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: ctaFloat 8s ease-in-out infinite;
}

.cta-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.cta-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation-delay: -2s;
}

.cta-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -50px;
    animation-delay: -4s;
}

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

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--purple-700);
}

.cta-buttons .btn-primary:hover {
    background: var(--purple-100);
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, transparent, var(--purple-100));
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--purple-200);
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-license {
    font-size: 0.875rem !important;
    color: var(--purple-500) !important;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.375rem 0;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--purple-100);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: visible;
        border-radius: 12px;
        margin-top: 0.5rem;
    }

    .has-dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 500px;
        padding: 0.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid,
    .integration-cards,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        display: flex;
        justify-content: center;
    }

    .step-line {
        display: none;
    }

    .cta-container {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .console-mockup {
        transform: scale(0.9);
    }
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* Glowing cursor trail effect class */
.glow-cursor {
    pointer-events: none;
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--purple-400), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* Rainbow border animation */
@keyframes rainbowBorder {
    0% { border-color: var(--purple-400); }
    33% { border-color: var(--pink-400); }
    66% { border-color: var(--blue-400); }
    100% { border-color: var(--purple-400); }
}

/* Confetti animation */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Text shimmer */
.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--purple-600) 0%,
        var(--pink-500) 25%,
        var(--blue-500) 50%,
        var(--pink-500) 75%,
        var(--purple-600) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}

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

/* Selection styling */
::selection {
    background: var(--purple-300);
    color: var(--purple-900);
}

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

::-webkit-scrollbar-track {
    background: var(--purple-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-600);
}
