/* Premium Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0D0D12;
    --accent: #E34234;
    /* Vermilion Red */
    --accent-glow: rgba(227, 66, 52, 0.5);
    --text-secondary: #C7C7D3;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
}

.fixed-bg {
    background-image: url('images/bg-main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -20;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 18, 0.1);
    z-index: -10;
}

/* Product Grid Sibling Interaction */
.product-grid:hover .product-card {
    opacity: 0.5;
    transform: scale(0.98);
    filter: grayscale(0.6);
}

.product-grid .product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.product-grid .product-card:hover {
    opacity: 1;
    transform: scale(1.03);
    filter: grayscale(0);
    z-index: 10;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
    border-color: rgba(227, 66, 52, 0.4);
    background-color: #15151A;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 {
    animation-delay: 150ms;
}

.delay-200 {
    animation-delay: 300ms;
}

.delay-300 {
    animation-delay: 450ms;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.word-cycle {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.word-cycle span {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to right, #FF6B5B, #E34234);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.word-cycle span.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.word-cycle span.exit {
    position: absolute;
    opacity: 0;
    transform: translateY(-10px);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0D0D12;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.text-balance {
    text-wrap: balance;
}

@keyframes btn-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(227, 66, 52, 0.4);
    }

    50% {
        box-shadow: 0 0 25px 5px rgba(227, 66, 52, 0.6);
    }
}

.animate-pulse-glow {
    animation: btn-pulse-glow 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes gradient-x {

    0%,
    100% {
        background-size: 200% 200%;
        background-position: left center;
    }

    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}

/* Premium Brand Button Design */
.btn-premium {
    position: relative;
    background: #000000;
    color: #E34234;
    border: 1px solid rgba(227, 66, 52, 0.3);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform-origin: center;
    white-space: nowrap;
}

.btn-premium .btn-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Animated Border Scan */
.btn-premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    animation: border-scan 3s linear infinite;
    z-index: -1;
}

/* Holographic Shimmer */
.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:hover::after {
    animation: shimmer-fast 1.5s ease-in-out infinite;
}

@keyframes border-scan {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 160%;
    }
}

@keyframes shimmer-fast {
    0% {
        left: -60%;
    }

    100% {
        left: 160%;
    }
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -5px rgba(227, 66, 52, 0.6), 0 8px 10px -6px rgba(227, 66, 52, 0.3);
    border-color: rgba(227, 66, 52, 0.8);
    color: #FF6B5B;
}

.btn-premium:active {
    transform: scale(0.98);
}

.btn-premium .icon-glow {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hero Enhancements */
.animate-pulse-subtle {
    animation: pulse-subtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-subtle {

    0%,
    100% {
        box-shadow: 0 4px 6px -1px rgba(227, 66, 52, 0.3), 0 2px 4px -1px rgba(227, 66, 52, 0.15);
    }

    50% {
        box-shadow: 0 4px 20px -1px rgba(227, 66, 52, 0.5), 0 2px 10px -1px rgba(227, 66, 52, 0.3);
    }
}

/* Neural Mesh Canvas */
#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Behind content */
}

/* Hero Email Capture Form */
.hero-form-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Mobile Performance Optimization for Form */
@media (max-width: 768px) {
    .hero-form-container {
        backdrop-filter: none;
        /* Disable expensive blur */
        background: rgba(13, 13, 18, 0.95);
        /* Solid background fallback */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.hero-input {
    background: rgba(13, 13, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.hero-input:focus {
    outline: none;
    border-color: rgba(227, 66, 52, 0.5);
    background: rgba(13, 13, 18, 0.8);
    box-shadow: 0 0 0 2px rgba(227, 66, 52, 0.1);
}

.hero-input::placeholder {
    color: #888899;
}

.success-message {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}