/* ========================================
   CWSN TWEAKS - PURPLE EDITION
   Dark violet + black premium theme
   With noise texture and interactive cursor gradient
   ======================================== */

/* CSS @property for smooth animations */
@property --rotate {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}
@property --glow-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 0.6;
}
@property --float-x {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}
@property --float-y {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}
@property --pulse {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Deep purple + black theme */
    --ground: #050508;
    --ground-deep: #020205;
    --surface: rgba(20, 15, 35, 0.7);
    --surface-elevated: rgba(30, 25, 50, 0.8);

    /* Purple accent palette */
    --purple-primary: 242, 0, 137;      /* RGB for rgba */
    --purple-light: 209, 0, 209;
    --purple-dark: 161, 0, 242;
    --purple-deep: 45, 0, 247;
    --purple-rgb: 168, 85, 247;

    /* For direct color use */
    --purple-color: #A855F7;
    --purple-light-color: #C084FC;
    --purple-dark-color: #7C3AED;
    --purple-deep-color: #6B21A8;
    --purple-glow: rgba(168, 85, 247, 0.5);
    --purple-dim: rgba(168, 85, 247, 0.15);
    --purple-subtle: rgba(168, 85, 247, 0.08);

    /* Pink accent */
    --pink-accent: #EC4899;
    --pink-dim: rgba(236, 72, 153, 0.12);
    --pink-glow: rgba(236, 72, 153, 0.4);

    /* Blue accent */
    --blue-accent: #3B82F6;
    --blue-dim: rgba(59, 130, 246, 0.12);

    /* Cyan accent */
    --cyan-accent: #06B6D4;
    --cyan-dim: rgba(6, 182, 212, 0.12);

    /* Green for success */
    --green-accent: #10B981;
    --green-dim: rgba(16, 185, 129, 0.12);

    /* Text colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.35);

    /* Borders */
    --border: rgba(168, 85, 247, 0.15);
    --border-strong: rgba(168, 85, 247, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 80px;
    --space-9: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Interactive gradient variables */
    --cursor-x: 50%;
    --cursor-y: 50%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ground);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    min-width: 320px;
}

/* Ensure animated elements don't affect layout */
.animated-blob,
.floating-particles {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    pointer-events: none;
    z-index: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Animated blobs should not affect layout */
.animated-blob,
.floating-particles {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.floating-particles {
    inset: 0;
}

.app-window {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* ========================================
   NOISE TEXTURE OVERLAY
   ======================================== */
/* Noise texture for colored elements only */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.noise-overlay-heavy {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(168, 85, 247, 0.03) 2px,
            rgba(168, 85, 247, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(168, 85, 247, 0.03) 2px,
            rgba(168, 85, 247, 0.03) 4px
        );
}

/* ========================================
   SPOTLIGHT BACKGROUND
   ======================================== */
.spotlight-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(107, 33, 168, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #050508 0%, #020205 100%);
}

.spotlight {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--spotlight-color) 0%, transparent 60%);
    pointer-events: none;
    will-change: transform;
}

/* Spotlight 1 - Purple - Top Left */
.spotlight-1 {
    --spotlight-color: rgba(242, 0, 137, 0.3);
    top: -300px;
    left: -200px;
    animation: spotlightFloat1 30s ease-in-out infinite;
}

/* Spotlight 2 - Pink - Right */
.spotlight-2 {
    --spotlight-color: rgba(236, 72, 153, 0.25);
    top: 20%;
    right: -250px;
    width: 700px;
    height: 700px;
    animation: spotlightFloat2 25s ease-in-out infinite;
}

/* Spotlight 3 - Deep Purple - Bottom */
.spotlight-3 {
    --spotlight-color: rgba(124, 58, 237, 0.28);
    bottom: -200px;
    left: 30%;
    width: 900px;
    height: 900px;
    animation: spotlightFloat3 35s ease-in-out infinite;
}

/* Spotlight 4 - Blue accent - Left */
.spotlight-4 {
    --spotlight-color: rgba(59, 130, 246, 0.2);
    top: 50%;
    left: -300px;
    width: 600px;
    height: 600px;
    animation: spotlightFloat4 28s ease-in-out infinite;
}

@keyframes spotlightFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 80px) scale(1.15); }
    66% { transform: translate(50px, -40px) scale(0.9); }
}

@keyframes spotlightFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-120px, 100px) scale(1.2); }
}

@keyframes spotlightFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-100px, -60px) rotate(180deg); }
}

@keyframes spotlightFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -80px) scale(1.1); }
}

/* ========================================
   INTERACTIVE CURSOR GRADIENT
   ======================================== */
.interactive-gradients {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

/* Static background blobs - barely moving */
.gradient-blob:nth-child(1) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(168, 85, 247, 0) 70%);
    top: 40%;
    left: 30%;
    animation: subtleFloat1 12s ease-in-out infinite;
}

.gradient-blob:nth-child(2) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(236, 72, 153, 0) 70%);
    top: 60%;
    left: 70%;
    animation: subtleFloat2 14s ease-in-out infinite;
}

.gradient-blob:nth-child(3) {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    top: 30%;
    left: 60%;
    animation: subtleFloat3 13s ease-in-out infinite;
}

.gradient-blob:nth-child(4) {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 70%);
    top: 70%;
    left: 40%;
    animation: subtleFloat4 15s ease-in-out infinite;
}

.gradient-blob:nth-child(5) {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, rgba(192, 132, 252, 0) 70%);
    top: 50%;
    left: 50%;
    animation: subtleFloat5 16s ease-in-out infinite;
}

/* Mouse trail blobs - created dynamically */
.trail-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes subtleFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

@keyframes subtleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, -30px); }
}

@keyframes subtleFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -25px); }
}

@keyframes subtleFloat4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

@keyframes subtleFloat5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 20px); }
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
    25% { transform: translate(-50%, -50%) translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-50%, -50%) translate(-20px, 50px) scale(0.95); }
    75% { transform: translate(-50%, -50%) translate(-40px, -20px) scale(1.05); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(-50%, -50%) translate(-100px, -80px) rotate(0deg); }
    33% { transform: translate(-50%, -50%) translate(-60px, -120px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-50%, -50%) translate(-140px, -40px) rotate(240deg) scale(0.9); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(-50%, -50%) translate(100px, 80px) scale(1); }
    50% { transform: translate(-50%, -50%) translate(140px, 40px) scale(1.2); }
}

@keyframes blobFloat4 {
    0%, 100% { transform: translate(-50%, -50%) translate(-80px, 100px) scale(1); }
    50% { transform: translate(-50%, -50%) translate(-40px, 140px) scale(0.85); }
}

@keyframes blobFloat5 {
    0%, 100% { transform: translate(-50%, -50%) translate(80px, -100px) scale(1); }
    25% { transform: translate(-50%, -50%) translate(120px, -60px) scale(1.15); }
    75% { transform: translate(-50%, -50%) translate(40px, -140px) scale(0.95); }
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -50px) scale(1.2); }
    50% { transform: translate(-50px, 100px) scale(0.9); }
    75% { transform: translate(-100px, -80px) scale(1.1); }
}

@keyframes blobFloat2x {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(80px, 60px) rotate(120deg); }
    66% { transform: translate(-60px, -40px) rotate(240deg); }
}

@keyframes blobFloat3x {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-150px, 100px) scale(1.3); }
}

@keyframes blobFloat4x {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(120px, 80px) scale(0.8); }
}

@keyframes blobFloat5x {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-80px, -100px) scale(1.15); }
    75% { transform: translate(100px, 60px) scale(0.95); }
}

/* Grid pattern overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.03;
}

.content-above {
    position: relative;
    z-index: 10;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container-narrow {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ========================================
   BADGE
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.badge-purple {
    background: var(--purple-dim);
    color: var(--purple-light-color);
    border: 1px solid var(--purple-glow);
    box-shadow: 0 0 20px var(--purple-glow);
}

.badge-green {
    background: var(--green-dim);
    color: var(--green-accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pink {
    background: var(--pink-dim);
    color: var(--pink-accent);
    border: 1px solid var(--pink-glow);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    height: 54px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover::before {
    opacity: 0.03;
}

.btn:focus-visible {
    outline: 2px solid var(--purple-light-color);
    outline-offset: 2px;
}

.btn-lg {
    height: 60px;
    padding: 0 var(--space-7);
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-accent), var(--purple-dark-color));
    color: #FFF;
    box-shadow: 0 0 40px var(--purple-glow);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px var(--purple-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--purple-light-color);
}

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--purple-dark-color);
}

.btn-white:hover {
    background: #FFF;
}

/* ========================================
   CARDS - Premium glassmorphism
   ======================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(168, 85, 247, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: var(--purple-light-color);
    background: var(--surface-elevated);
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(107, 33, 168, 0.3);
}

.card:hover::before {
    opacity: 0.03;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: var(--space-9) 0 var(--space-8);
    text-align: center;
}

.hero-badge {
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 0.9;
    margin-bottom: var(--space-5);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.3),
        0 0 20px rgba(168, 85, 247, 0.2);
}

.hero-title .emphasis {
    color: var(--pink-accent);
    text-shadow:
        0 0 15px rgba(236, 72, 153, 0.5),
        0 0 30px rgba(236, 72, 153, 0.3);
}

@keyframes gradientShift {
    0%, 100% { filter: drop-shadow(0 0 40px var(--purple-glow)); }
    50% { filter: drop-shadow(0 0 60px var(--pink-glow)); }
}

@keyframes title-glow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(168, 85, 247, 0.3),
            0 0 20px rgba(168, 85, 247, 0.2);
    }
    50% {
        text-shadow:
            0 0 15px rgba(168, 85, 247, 0.4),
            0 0 25px rgba(168, 85, 247, 0.3);
    }
}

@keyframes emphasis-glow {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(236, 72, 153, 0.5),
            0 0 30px rgba(236, 72, 153, 0.3);
    }
    50% {
        text-shadow:
            0 0 20px rgba(236, 72, 153, 0.6),
            0 0 35px rgba(236, 72, 153, 0.4);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto var(--space-8);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.hero-trust {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    margin-bottom: var(--space-3);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-item i {
    font-size: 16px;
    color: var(--purple-color);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: var(--space-4) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--pink-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Noise texture on stat cards */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    opacity: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Noise only on gradient bottom bar when hovering */
.stat-card:hover::before {
    opacity: 0.03;
}

.stat-card:hover {
    border-color: var(--purple-light-color);
    background: var(--surface-elevated);
    transform: translateY(-4px);
}

.stat-card:hover::after {
    opacity: 0.03;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-2);
    background: linear-gradient(180deg, #FFFFFF, var(--purple-light-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: var(--space-9) 0;
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.features-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-4);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.features-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-section .container {
    max-width: 1600px;
    padding: 0 var(--space-5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    width: 100%;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent), var(--cyan-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Noise texture on feature cards */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    opacity: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Noise only on gradient border when hovering */
.feature-card:hover::before {
    opacity: 0.03;
}

.feature-card:hover {
    border-color: var(--purple-light-color);
    background: var(--surface-elevated);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(107, 33, 168, 0.4);
}

.feature-card:hover::after {
    opacity: 0.03;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    font-size: 28px;
    background: var(--purple-dim);
    color: var(--purple-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    color: #FFF;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px var(--purple-glow);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.feature-list {
    list-style: none;
    margin-top: auto;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-list li i {
    color: var(--purple-color);
    font-size: 12px;
}

/* Chip Grid (port 21st.dev/r/21st/chip-grid): karty wlatuja kaskada po przekatnej
   z overshootem, gdy siatka wejdzie w viewport. cg-armed uzbraja (karty schowane,
   animacja wstrzymana), cg-in odpala. fill backwards = po zakonczeniu wrotu do
   naturalnych stylow, wiec hover translateY nadal dziala. */
.features-grid.cg-armed .feature-card {
    animation: cgCardIn 0.65s cubic-bezier(0.3, 1.4, 0.42, 1) backwards;
    animation-delay: calc(var(--cg-d, 0) * 1ms);
    animation-play-state: paused;
}
.features-grid.cg-in .feature-card { animation-play-state: running; }
.features-grid.cg-armed .feature-card:nth-child(1) { --cg-d: 0; }
.features-grid.cg-armed .feature-card:nth-child(2) { --cg-d: 60; }
.features-grid.cg-armed .feature-card:nth-child(3) { --cg-d: 120; }
.features-grid.cg-armed .feature-card:nth-child(4) { --cg-d: 180; }
.features-grid.cg-armed .feature-card:nth-child(5) { --cg-d: 140; }
.features-grid.cg-armed .feature-card:nth-child(6) { --cg-d: 200; }
.features-grid.cg-armed .feature-card:nth-child(7) { --cg-d: 260; }
.features-grid.cg-armed .feature-card:nth-child(8) { --cg-d: 320; }
.features-grid.cg-armed .feature-card:nth-child(9) { --cg-d: 280; }
.features-grid.cg-armed .feature-card:nth-child(10) { --cg-d: 340; }
.features-grid.cg-armed .feature-card:nth-child(11) { --cg-d: 400; }
.features-grid.cg-armed .feature-card:nth-child(12) { --cg-d: 460; }
@keyframes cgCardIn {
    0% { opacity: 0; transform: translateY(44px) scale(0.88); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chip Grid rozszerzony: statystyki (4 kol) + features-compact (3 kol) + FAQ (2 kol x 5) */
.stats-grid.cg-armed .stat-card,
.features-compact.cg-armed .feature-compact-card,
.faq-grid.cg-armed .faq-item,
.faq-cta.cg-armed {
    animation: cgCardIn 0.65s cubic-bezier(0.3, 1.4, 0.42, 1) backwards;
    animation-delay: calc(var(--cg-d, 0) * 1ms);
    animation-play-state: paused;
}
.stats-grid.cg-in .stat-card,
.features-compact.cg-in .feature-compact-card,
.faq-grid.cg-in .faq-item,
.faq-cta.cg-in { animation-play-state: running; }

.stats-grid.cg-armed .stat-card:nth-child(4n+1) { --cg-d: 0; }
.stats-grid.cg-armed .stat-card:nth-child(4n+2) { --cg-d: 60; }
.stats-grid.cg-armed .stat-card:nth-child(4n+3) { --cg-d: 120; }
.stats-grid.cg-armed .stat-card:nth-child(4n+4) { --cg-d: 180; }

.features-compact.cg-armed .feature-compact-card:nth-child(3n+1) { --cg-d: 0; }
.features-compact.cg-armed .feature-compact-card:nth-child(3n+2) { --cg-d: 80; }
.features-compact.cg-armed .feature-compact-card:nth-child(3n+3) { --cg-d: 160; }

.faq-grid.cg-armed .faq-item:nth-child(1) { --cg-d: 0; }
.faq-grid.cg-armed .faq-item:nth-child(2) { --cg-d: 70; }
.faq-grid.cg-armed .faq-item:nth-child(3) { --cg-d: 110; }
.faq-grid.cg-armed .faq-item:nth-child(4) { --cg-d: 180; }
.faq-grid.cg-armed .faq-item:nth-child(5) { --cg-d: 220; }
.faq-grid.cg-armed .faq-item:nth-child(6) { --cg-d: 290; }
.faq-grid.cg-armed .faq-item:nth-child(7) { --cg-d: 330; }
.faq-grid.cg-armed .faq-item:nth-child(8) { --cg-d: 400; }
.faq-grid.cg-armed .faq-item:nth-child(9) { --cg-d: 440; }
.faq-cta.cg-armed { --cg-d: 520; }

/* ========================================
   DETAILED FEATURES SECTION
   ======================================== */
.detailed-features {
    padding: var(--space-11) 0;
    background: linear-gradient(180deg, transparent, rgba(107, 33, 168, 0.1), transparent);
}

.detailed-features-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.detailed-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Noise texture on detailed feature cards */
.detailed-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    opacity: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Noise only on border when hovering */
.detailed-feature-card:hover::before {
    opacity: 0.03;
}

.detailed-feature-card:hover {
    border-color: var(--purple-light-color);
    background: var(--surface-elevated);
}

.detailed-feature-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.detailed-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--purple-dim), var(--pink-dim));
    color: var(--purple-color);
    flex-shrink: 0;
}

.detailed-feature-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.detailed-feature-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.detailed-feature-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.spec-item {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--purple-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--purple-dim);
}

.spec-item-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

.spec-item-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--purple-light-color);
}

/* ========================================
   COMPACT FEATURES SECTION
   ======================================== */
.features-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.feature-compact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-compact-card:hover {
    border-color: var(--purple-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.feature-compact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid var(--purple-dim);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--purple-light-color);
    flex-shrink: 0;
}

.feature-compact-content {
    flex: 1;
}

.feature-compact-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.feature-compact-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.feature-compact-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.stat-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--purple-dim);
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-light-color);
}

/* FAQ Download CTA */
.faq-download-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-top: var(--space-8);
}

.faq-download-cta .faq-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.faq-download-cta .faq-cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.faq-download-cta .btn {
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-compact {
        grid-template-columns: 1fr;
    }

    .feature-compact-card {
        padding: var(--space-4);
    }

    .faq-download-cta {
        padding: var(--space-6);
    }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
    padding: var(--space-9) 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark-color));
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto var(--space-4);
    box-shadow: 0 0 30px var(--purple-glow);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--space-6) 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--purple-dim) 0%, var(--pink-dim) 50%, var(--blue-dim) 100%);
    border: 1px solid var(--purple-glow);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: var(--space-4) var(--space-6) var(--space-3);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-primary), var(--pink-accent), var(--blue-accent), var(--purple-primary));
    background-size: 300% 100%;
}

/* Noise texture on CTA card gradient background */
.cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.cta-content {
    text-align: center;
    padding: var(--space-4) var(--space-6) var(--space-2);
    position: relative;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0 var(--space-6);
    margin-top: var(--space-9);
    background: linear-gradient(180deg, transparent, rgba(107, 33, 168, 0.05));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.footer-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--purple-color);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-3);
}

.footer-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer-link:hover {
    background: var(--purple-dim);
    color: var(--purple-color);
    border-color: var(--purple-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px var(--purple-glow), 0 0 50px rgba(168, 85, 247, 0.2);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* ========================================
   TITLEBAR
   ======================================== */
.app-window {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
    background: rgba(5, 5, 8, 0.95);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.titlebar-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFF;
    box-shadow: 0 0 25px var(--purple-glow);
}

.titlebar-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.titlebar-right {
    display: flex;
    gap: var(--space-2);
}

.titlebar-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.titlebar-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    color: var(--text-primary);
}

.titlebar-btn.close:hover {
    background: #FF3333;
    color: white;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1;
    overflow-y: auto;
}

.main-container::-webkit-scrollbar {
    width: 10px;
}

.main-container::-webkit-scrollbar-track {
    background: transparent;
}

.main-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

.main-container::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dim);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }
.delay-6 { animation-delay: 0.6s; opacity: 0; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero-section {
        padding: var(--space-8) 0 var(--space-7);
    }

    .stats-section {
        padding: var(--space-7) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .detailed-feature-card {
        padding: var(--space-6);
    }

    .detailed-feature-header {
        flex-direction: column;
        text-align: center;
    }

    .detailed-feature-specs {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: var(--space-7) var(--space-5);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .titlebar-title {
        display: none;
    }

    .hero-trust {
        gap: var(--space-4);
    }

    .stat-number {
        font-size: 42px;
    }

    .interactive-gradients {
    }

    .gradient-blob {
    }

    .gradient-blob:nth-child(1),
    .gradient-blob:nth-child(2),
    .gradient-blob:nth-child(3),
    .gradient-blob:nth-child(4),
    .gradient-blob:nth-child(5) {
        width: 200px !important;
        height: 200px !important;
    }

    .interactive-gradients::after {
        width: 150px !important;
        height: 150px !important;
    }

    .cursor-gradient {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ========================================
   SELECTION & FOCUS
   ======================================== */
::selection {
    background: var(--purple-primary);
    color: #FFF;
}

:focus-visible {
    outline: 2px solid var(--purple-light-color);
    outline-offset: 2px;
}

/* ========================================
   STICKY CTA BUTTON
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-cta .btn-sm {
    height: 48px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.3);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(168, 85, 247, 0.7), 0 0 80px rgba(168, 85, 247, 0.5), 0 0 120px rgba(236, 72, 153, 0.3);
    }
}

.sticky-cta .btn-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.6), 0 0 80px rgba(168, 85, 247, 0.4);
    animation: none;
}

/* ========================================
   ANIMATED GRADIENT BLOBS
   ======================================== */
.animated-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: blob-move 20s ease-in-out infinite;
}

.animated-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(168, 85, 247, 0) 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.animated-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, rgba(236, 72, 153, 0) 70%);
    top: 30%;
    right: -150px;
    animation-delay: 5s;
}

.animated-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0) 70%);
    bottom: -150px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes blob-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* ========================================
   ENHANCED CARD HOVER EFFECTS
   ======================================== */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--pink-accent), var(--cyan-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */
.floating-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--purple-color);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 15s ease-in-out infinite;
    box-shadow: 0 0 10px var(--purple-glow);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 1s; }
.particle:nth-child(7) { left: 70%; animation-delay: 3s; }
.particle:nth-child(8) { left: 80%; animation-delay: 5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 7s; }
.particle:nth-child(10) { left: 95%; animation-delay: 9s; }

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* ========================================
   VISIBLE BADGE WITH GLOW
   ======================================== */
.visible-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--purple-dim);
    border: 1px solid var(--purple-primary);
    border-radius: var(--radius-full);
    animation: badge-float 3s ease-in-out infinite;
    box-shadow: 0 0 30px var(--purple-glow), inset 0 0 20px rgba(168, 85, 247, 0.2);
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 30px var(--purple-glow), inset 0 0 20px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 50px var(--purple-glow), 0 0 80px rgba(236, 72, 153, 0.4), inset 0 0 30px rgba(168, 85, 247, 0.3);
    }
}

/* ========================================
   GLOW EFFECT ON HERO
   ======================================== */
.hero-section {
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ========================================
   ENHANCED BUTTON SHINE EFFECT
   ======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* chip-grid: wejscie kart bezwgledne (user chce animacje zawsze,
       klasa bije globalny kill * przez specyficznosc) */
    .features-grid .feature-card,
    .stats-grid .stat-card,
    .features-compact .feature-compact-card,
    .faq-grid .faq-item,
    .faq-cta { animation-duration: 0.65s !important; }

    .spotlight {
        display: none;
    }

    .grid-overlay {
        display: none;
    }

    .noise-overlay {
        opacity: 0.2;
    }

    .noise-overlay-heavy {
        display: none;
    }

    .interactive-gradients {
        display: none;
    }
}

/* ========================================
   NEW FEATURES - WEBGL SHADER BACKGROUND
   ======================================== */

/* WebGL Shader Canvas */
.shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: fadeInShader 2s ease-out forwards;
}

@keyframes fadeInShader {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Brand Logo Marquee - Optimized */
.brand-marquee-section {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, transparent 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
    contain: layout style paint; /* Optimize repaints */
    transform: translateZ(0); /* Force GPU layer */
}

.marquee-label {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    contain: layout style paint;
    /* Simplified mask for better performance */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-content {
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

.brand-logo {
    width: auto;
    height: 28px;
    max-width: 120px;
    opacity: 0.4;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.brand-logo:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

/* Brand logo colors */
.fill-cyan {
    fill: #06B6D4;
}

.fill-white {
    fill: rgba(255, 255, 255, 0.7);
}

.fill-orange {
    fill: #FF9900;
}

.brand-logo-text text {
    fill: rgba(255, 255, 255, 0.6);
}

/* Duplicate for infinite scroll */
.marquee-track::after {
    content: '';
    position: absolute;
    left: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Tahoe Glass Text Effect - Optimized */
.tahoe-glass-text {
    color: transparent;
    /* Simplified gradient for better performance */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.95) 60%,
        rgba(255, 255, 255, 0.95) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
    /* Simplified shadows */
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
    transform: translateZ(0); /* Force GPU layer */
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Mobile responsive for marquee */
@media (max-width: 768px) {
    .brand-logos {
        gap: 40px;
    }

    .brand-logo {
        width: 60px;
        height: 24px;
    }

    .marquee-label {
        font-size: 10px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    .tahoe-glass-text {
        animation: none;
    }

    .brand-logo {
        transition: none;
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: var(--space-10) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.05) 50%, transparent 100%);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.faq-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: var(--purple-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.faq-question::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-answer {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 36px;
}

.faq-cta {
    text-align: center;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.faq-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.faq-cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .faq-item {
        padding: var(--space-5);
    }

    .faq-cta {
        padding: var(--space-6);
    }
}
