@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #6b6b6b;
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.3);
    --purple: #9945ff;
    --purple-glow: rgba(153, 69, 255, 0.4);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Film grain effect */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

/* Animated spotlights */
.spotlight {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.spotlight-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: spotlight1 20s ease-in-out infinite;
}

.spotlight-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    bottom: -300px;
    left: -300px;
    animation: spotlight2 25s ease-in-out infinite;
}

@keyframes spotlight1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, 100px); }
}

@keyframes spotlight2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, -100px); }
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 6rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: flex;
    gap: 0.5rem;
}

.logo-lux {
    color: var(--text-primary);
}

.logo-labs {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-indicator .status-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Hero Section */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
}

.hero-section {
    margin-bottom: 8rem;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px var(--accent-glow);
}

h1 {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

h1 .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

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

h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* CTA Group */
.cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cta-primary {
    position: relative;
    padding: 1.25rem 3rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    background: var(--accent);
    border: none;
    cursor: pointer;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.cta-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.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-primary:hover .cta-glow {
    opacity: 0.6;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    position: relative;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.4s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.feature-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.02);
}

.card-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    transition: color 0.4s ease;
}

.feature-card:hover .card-number {
    color: rgba(0, 255, 136, 0.08);
}

.card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .card-line {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.813rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    h1 {
        font-size: 4.5rem;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding-bottom: 4rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cta-primary {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
