/**
 * BO-IS.eu - Modern Landing Page Styles
 * Matrix Effect, Video Background, Interactive Products
 */

/* ===== MATRIX CANVAS ===== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f23 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #7b2ff7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s ease-in-out infinite;
    margin-bottom: 2rem;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #7b2ff7);
    animation: loading-progress 2s ease-out forwards;
    border-radius: 2px;
}

.loading-text {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    animation: typing 2s steps(20) forwards;
}

@keyframes loading-progress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0,255,136,0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(0,212,255,0.8)); }
}

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

/* ===== HERO SECTION - VIDEO BACKGROUND ===== */
.hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Animierter Gradient-Fallback wenn Video nicht lädt */
.hero-gradient-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #0f3460 75%,
        #0a0a0a 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

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

/* Video verstecken wenn nicht geladen, Fallback zeigen */
.hero-video:not([src]):not([poster]),
.hero-video[src=""] {
    display: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.8) 0%,
        rgba(10,10,10,0.4) 40%,
        rgba(10,10,10,0.6) 70%,
        rgba(10,10,10,0.95) 100%
    );
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
}

.hero-glitch-text {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

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

.hero-glitch-text::before {
    color: #00ff88;
    animation: glitch-effect 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, 2px);
}

.hero-glitch-text::after {
    color: #00d4ff;
    animation: glitch-effect 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, -2px);
}

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

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-0.5deg); }
    40% { transform: skew(0.5deg); }
    60% { transform: skew(-0.3deg); }
    80% { transform: skew(0.3deg); }
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255,255,255,0.7);
    margin-top: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-tagline .highlight {
    color: #00ff88;
    font-weight: 600;
}

.hero-cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-neon {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-neon-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    color: #0a0a0a;
    border-radius: 4px;
}

.btn-neon-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,255,136,0.4);
}

.btn-neon-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}

.btn-neon-secondary:hover {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0,255,136,0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

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

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(135deg, rgba(0,255,136,0.1) 0%, rgba(0,212,255,0.1) 100%);
    border-top: 1px solid rgba(0,255,136,0.2);
    border-bottom: 1px solid rgba(0,212,255,0.2);
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value .counter {
    display: inline-block;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f1a 100%);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0,255,136,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0,212,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 50px;
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.section-title-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.section-title-xl span {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PRODUCT CARDS - SHUFFLED ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: card-appear 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,255,136,0.1) 0%, rgba(0,212,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 20px 60px rgba(0,255,136,0.15);
}

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

.product-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0,255,136,0.1), transparent 30%);
    animation: rotate-glow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.2) 0%, rgba(0,212,255,0.2) 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.product-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.product-features li::before {
    content: '✓';
    color: #00ff88;
    font-weight: bold;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-price .amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price .period {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.product-price .from {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.product-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.btn-product {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-product-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    color: #0a0a0a;
}

.btn-product-primary:hover {
    box-shadow: 0 5px 20px rgba(0,255,136,0.4);
    transform: translateY(-2px);
}

.btn-product-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-product-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #00ff88;
}

.product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.product-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    color: #fff;
}

.product-badge.new {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #0a0a0a;
}

.product-badge.limited {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    color: #fff;
}

/* ===== SHUFFLE ANIMATION ===== */
.products-grid.shuffling .product-card {
    animation: shuffle 0.6s ease;
}

@keyframes shuffle {
    0% { transform: translateY(0) rotateY(0); opacity: 1; }
    50% { transform: translateY(-20px) rotateY(90deg); opacity: 0; }
    100% { transform: translateY(0) rotateY(0); opacity: 1; }
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    padding: 6rem 0;
    background: #0a0a0a;
    position: relative;
}

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

.tool-card-modern {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tool-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,212,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card-modern:hover {
    border-color: rgba(0,255,136,0.3);
    transform: translateX(5px);
}

.tool-card-modern:hover::before {
    opacity: 1;
}

.tool-icon-modern {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.15) 0%, rgba(0,212,255,0.15) 100%);
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tool-content-modern {
    flex: 1;
    position: relative;
    z-index: 1;
}

.tool-content-modern h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.tool-content-modern p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.tool-arrow {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tool-card-modern:hover .tool-arrow {
    color: #00ff88;
    transform: translateX(5px);
}

/* ===== DEMO SECTION ===== */
.demo-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f0f1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.demo-feature {
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.demo-feature:hover {
    border-color: rgba(0,255,136,0.3);
    transform: translateY(-5px);
}

.demo-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.demo-feature p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ===== IP WIDGET ===== */
.ip-widget {
    max-width: 600px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    position: relative;
}

.ip-widget-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ip-widget-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.ip-widget-icon {
    font-size: 1.5rem;
}

.ip-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: #00ff88;
    text-align: center;
    padding: 1rem;
    background: rgba(0,255,136,0.05);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.ip-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ip-detail-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}

.ip-detail-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.ip-detail-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .hero-cta-container {
        flex-direction: column;
        align-items: center;
    }

    .btn-neon {
        width: 100%;
        max-width: 300px;
    }

    .ip-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-glitch-text {
        font-size: 2.5rem;
    }

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