/* ========================================
   Alethea AI - Dark Mode Immersive Landing
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: #7B2D8E;
    --primary-dark: #5E2270;
    --primary-light: #9B4DAE;
    --primary-gradient: linear-gradient(135deg, #A855F7 0%, #7B2D8E 50%, #5E2270 100%);
    
    /* Accent Colors */
    --accent: #A855F7;
    --accent-light: #C084FC;
    --accent-dark: #7C3AED;
    
    /* Dark Theme Colors */
    --bg-primary: #0D0D12;
    --bg-secondary: #13131A;
    --bg-tertiary: #1A1A24;
    --bg-card: rgba(26, 26, 36, 0.8);
    --bg-card-hover: rgba(35, 35, 50, 0.9);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(168, 85, 247, 0.3);
    
    /* Status Colors */
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.2);
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Typography */
    --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.3);
    --shadow-glow-sm: 0 0 30px rgba(168, 85, 247, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Animated Background
   ======================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    max-width: 100vw;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(123, 45, 142, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(168, 85, 247, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(94, 34, 112, 0.2), transparent);
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.1) rotate(2deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.95) rotate(-2deg);
    }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px);
    }
}

.bg-orbs {
    position: absolute;
    inset: 0;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.5), transparent 70%);
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.3), transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(94, 34, 112, 0.4), transparent 70%);
    bottom: 10%;
    right: 20%;
    animation-delay: -15s;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    top: 30%;
    left: 60%;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

.bg-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 600px;
    background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(168, 85, 247, 0.15), transparent);
    pointer-events: none;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 13, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    animation: logoSpin 30s linear infinite;
}

.nav-logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover {
    color: var(--text-primary);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary-gradient);
    color: var(--text-primary) !important;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-glow-sm);
}

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

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-accent);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    max-width: 600px;
    flex-shrink: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success);
}

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

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--border-primary);
}

.stat {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 520px;
    height: 520px;
    flex-shrink: 0;
}

.hex-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.hex-ring-1 {
    width: 480px;
    height: 480px;
    border-color: rgba(168, 85, 247, 0.2);
    animation: hexRingPulse 6s ease-in-out infinite;
}

.hex-ring-2 {
    width: 400px;
    height: 400px;
    border-color: rgba(168, 85, 247, 0.15);
    border-style: dashed;
    animation: hexRingRotate 60s linear infinite;
}

.hex-ring-3 {
    width: 320px;
    height: 320px;
    border-color: rgba(168, 85, 247, 0.1);
    animation: hexRingPulse 6s ease-in-out infinite reverse;
}

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

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

.hex-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(123, 45, 142, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: hexGlowPulse 4s ease-in-out infinite;
}

@keyframes hexGlowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

.hex-logo {
    position: absolute;
    width: 260px;
    height: 260px;
    animation: hexLogoSpin 100s linear infinite;
}

.hex-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.5));
}

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

/* Data Points */
.data-points {
    position: absolute;
    inset: 0;
}

.data-point {
    position: absolute;
    display: flex;
    align-items: center;
}

.dp-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
    animation: dpPulse 2s ease-in-out infinite;
}

.dp-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.dp-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.dp-2 {
    top: 15%;
    right: 15%;
    flex-direction: row-reverse;
}

.dp-2 .dp-line {
    background: linear-gradient(270deg, var(--accent), transparent);
}

.dp-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 0.5s;
}

.dp-4 {
    bottom: 15%;
    right: 15%;
    flex-direction: row-reverse;
}

.dp-4 .dp-line {
    background: linear-gradient(270deg, var(--accent), transparent);
}

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

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    animation: cardFloat 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-sm);
}

.card-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
}

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

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon.success {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-light);
}

.card-icon.location {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-light);
}

.card-icon.ai {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-light);
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-tertiary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.5s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

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

/* ========================================
   Section Styles
   ======================================== */
section {
    position: relative;
    z-index: 1;
}

.section-glow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 400px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.1), transparent 70%);
    pointer-events: none;
}

.section-glow.glow-right {
    left: auto;
    right: 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--border-accent);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding);
    background: transparent;
    position: relative;
}

/* Falling Circles Animation */
.falling-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: visible;
    z-index: 999;
    display: none;
}

.falling-circles.animate {
    display: block;
}

.falling-circle {
    position: absolute;
    top: -120px;
    opacity: 0;
    color: var(--accent);
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6));
}

.falling-circle svg {
    width: 100%;
    height: 100%;
}

.fc-1 { left: 5%; width: 70px; height: 70px; }
.fc-2 { left: 18%; width: 50px; height: 50px; }
.fc-3 { left: 32%; width: 90px; height: 90px; }
.fc-4 { left: 48%; width: 60px; height: 60px; }
.fc-5 { left: 62%; width: 80px; height: 80px; }
.fc-6 { left: 75%; width: 55px; height: 55px; }
.fc-7 { left: 85%; width: 65px; height: 65px; }
.fc-8 { left: 93%; width: 45px; height: 45px; }

/* Animation triggered by JS */
.falling-circles.animate .falling-circle {
    animation: fallAndFade 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.falling-circles.animate .fc-1 { animation-delay: 0s; }
.falling-circles.animate .fc-2 { animation-delay: 0.15s; }
.falling-circles.animate .fc-3 { animation-delay: 0.3s; }
.falling-circles.animate .fc-4 { animation-delay: 0.1s; }
.falling-circles.animate .fc-5 { animation-delay: 0.4s; }
.falling-circles.animate .fc-6 { animation-delay: 0.05s; }
.falling-circles.animate .fc-7 { animation-delay: 0.5s; }
.falling-circles.animate .fc-8 { animation-delay: 0.25s; }

@keyframes fallAndFade {
    0% {
        top: -120px;
        opacity: 0;
        transform: rotate(0deg) scale(0.3);
    }
    10% {
        opacity: 0.9;
        transform: rotate(30deg) scale(1);
    }
    30% {
        opacity: 0.8;
        transform: rotate(120deg) scale(1);
    }
    70% {
        opacity: 0.5;
        transform: rotate(280deg) scale(0.8);
    }
    100% {
        top: 110vh;
        opacity: 0;
        transform: rotate(400deg) scale(0.2);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    overflow: hidden;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1), transparent 50%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-sm);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: var(--section-padding);
}

.steps-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--primary-dark), transparent);
}

.step {
    display: flex;
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
}

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

.step-marker {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-hex {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: stepHexSpin 30s linear infinite;
}

.step-hex svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
}

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

.step-number {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.step-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: stepPulse 2s infinite;
}

.step-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.step:nth-child(2) .step-pulse { animation-delay: 0.5s; }
.step:nth-child(3) .step-pulse { animation-delay: 1s; }
.step:nth-child(4) .step-pulse { animation-delay: 1.5s; }

@keyframes stepPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.step-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateX(8px);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* ========================================
   Use Cases Section
   ======================================== */
.use-cases {
    padding: var(--section-padding);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.use-case-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}

.use-case-icon {
    width: 72px;
    height: 72px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.use-case-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.use-case-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    padding: 140px 24px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(123, 45, 142, 0.3), transparent);
    pointer-events: none;
}

.cta-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(168, 85, 247, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 28px;
}

.cta-section h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-section > .container > .cta-content > p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-feature svg {
    color: var(--accent-light);
}

.cta-section .btn-primary {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-glow);
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.5);
}

.cta-note {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

.cta-note a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cta-note a:hover {
    color: var(--text-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 56px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
    animation: logoSpin 30s linear infinite;
}

.footer-logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 1rem;
    font-style: italic;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-divider {
    color: var(--border-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1400px) {
    .hero-visual {
        width: 450px;
        height: 450px;
    }
    
    .hex-logo {
        width: 220px;
        height: 220px;
    }
    
    .hex-ring-1 { width: 420px; height: 420px; }
    .hex-ring-2 { width: 360px; height: 360px; }
    .hex-ring-3 { width: 300px; height: 300px; }
    .hex-glow { width: 300px; height: 300px; }
}

@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .hero-visual {
        width: 400px;
        height: 400px;
        margin-top: 40px;
    }
    
    .hex-logo { width: 180px; height: 180px; }
    .hex-ring-1 { width: 360px; height: 360px; }
    .hex-ring-2 { width: 300px; height: 300px; }
    .hex-ring-3 { width: 250px; height: 250px; }
    .hex-glow { width: 250px; height: 250px; }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-card {
        padding: 10px 14px;
    }
    
    .floating-card .card-icon {
        width: 32px;
        height: 32px;
    }
    
    .floating-card .card-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-desc {
        font-size: 0.7rem;
    }
    
    .card-1 {
        top: 0;
        right: 0;
    }
    
    .card-2 {
        top: 45%;
        right: -15%;
    }
    
    .card-3 {
        bottom: 5%;
        right: 5%;
    }
    
    .data-points {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 100px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-container {
        text-align: center;
        align-items: center;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    .hero-badge {
        align-self: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }
    
    .stat {
        align-items: center;
        text-align: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .steps-timeline {
        padding-left: 0;
    }
    
    .timeline-line {
        display: none;
    }
    
    .step {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .step-marker {
        align-self: center;
    }
    
    .step-card {
        width: 100%;
        text-align: center;
    }
    
    .step-card:hover {
        transform: none;
    }
    
    .step-icon {
        margin: 0 auto 20px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .cta-feature {
        justify-content: center;
    }
    
    .hero-visual {
        width: 320px;
        height: 320px;
        position: relative;
    }
    
    .hex-logo { width: 140px; height: 140px; }
    .hex-ring-1 { width: 280px; height: 280px; }
    .hex-ring-2 { width: 240px; height: 240px; }
    .hex-ring-3 { width: 200px; height: 200px; }
    .hex-glow { width: 200px; height: 200px; }
    
    .floating-card {
        padding: 8px 12px;
    }
    
    .card-1 {
        top: -10px;
        right: -10px;
    }
    
    .card-2 {
        top: 50%;
        right: -30px;
        transform: translateY(-50%);
    }
    
    .card-3 {
        bottom: -10px;
        right: -10px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .feature-card,
    .use-case-card {
        text-align: center;
        width: 100%;
    }
    
    .feature-icon,
    .use-case-icon {
        margin: 0 auto 20px;
    }
    
    .feature-list {
        align-items: center;
    }
    
    .use-case-tags {
        justify-content: center;
    }
    
    .features,
    .how-it-works,
    .use-cases,
    .cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .cta-content {
        max-width: 100%;
        width: 100%;
    }
    
    /* Scale down background orbs */
    .orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .orb-4 {
        width: 220px;
        height: 220px;
    }
    
    .orb-5 {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        max-width: 100%;
    }
    
    .hero {
        padding: 100px 12px 60px;
    }
    
    .hero-container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .btn-large {
        width: 100%;
        padding: 16px 24px;
    }
    
    .feature-card,
    .use-case-card,
    .step-card {
        padding: 24px;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .title-line {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-visual {
        width: 260px;
        height: 260px;
    }
    
    .hex-logo { width: 110px; height: 110px; }
    .hex-ring-1 { width: 230px; height: 230px; }
    .hex-ring-2 { width: 200px; height: 200px; }
    .hex-ring-3 { width: 170px; height: 170px; }
    .hex-glow { width: 160px; height: 160px; }
    
    .floating-card {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .floating-card .card-icon {
        width: 26px;
        height: 26px;
    }
    
    .floating-card .card-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .card-title {
        font-size: 0.65rem;
    }
    
    .card-desc {
        font-size: 0.55rem;
    }
    
    .card-1 {
        top: 0;
        right: -15px;
    }
    
    .card-2 {
        top: 50%;
        right: -35px;
    }
    
    .card-3 {
        bottom: 0;
        right: -15px;
    }
    
    .cta-section {
        padding: 80px 12px;
    }
    
    .cta-content {
        width: 100%;
        max-width: 100%;
    }
    
    .section-header {
        max-width: 100%;
    }
    
    .steps-timeline {
        width: 100%;
        max-width: 100%;
    }
    
    .step-card {
        max-width: 100%;
    }
    
    /* Scale down background orbs on mobile */
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
    }
    
    .orb-3 {
        width: 120px;
        height: 120px;
    }
    
    .orb-4 {
        width: 180px;
        height: 180px;
    }
    
    .orb-5 {
        width: 100px;
        height: 100px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-primary);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
}
