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

:root {
    --color-bg: #0a0a0a;
    --color-dark: #111111;
    --color-gray: #1a1a1a;
    --color-light-gray: #2a2a2a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Overlay Content */
.overlay {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out 0.2s both;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
        border-color: rgba(59, 130, 246, 0.5);
    }
}

/* Brand Name */
.brand-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 8rem);
    letter-spacing: 0.3em;
    margin-left: 0.3em; /* Compensate for letter-spacing on last letter */
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.05em;
    overflow: hidden;
}

.brand-name .letter {
    display: inline-block;
    animation: letterReveal 0.8s ease-out both;
    opacity: 0;
    transform: translateY(100%);
}

.brand-name .letter:nth-child(1) { animation-delay: 0.3s; }
.brand-name .letter:nth-child(2) { animation-delay: 0.4s; }
.brand-name .letter:nth-child(3) { animation-delay: 0.5s; }
.brand-name .letter:nth-child(4) { animation-delay: 0.6s; }
.brand-name .letter:nth-child(5) { animation-delay: 0.7s; }
.brand-name .letter:nth-child(6) { animation-delay: 0.8s; }
.brand-name .letter:nth-child(7) { animation-delay: 0.9s; }
.brand-name .letter:nth-child(8) { animation-delay: 1.0s; }

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

/* Coming Soon Container */
.coming-soon-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: expandLine 1.5s ease-out 1.4s both;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

.coming-soon {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 2rem);
    letter-spacing: 0.5em;
    color: var(--color-accent);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
    50% {
        text-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 80px rgba(59, 130, 246, 0.4);
    }
}

/* Tagline */
.tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 1.6s both;
}

/* Newsletter */
.newsletter {
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 1s ease-out 1.8s both;
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.newsletter-form {
    display: flex;
    gap: 0;
    background: var(--color-gray);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-light-gray);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: var(--color-accent);
    border: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--color-accent-hover);
}

.newsletter-form button:active {
    transform: scale(0.98);
}

.newsletter-form button svg {
    transition: transform 0.3s ease;
}

.newsletter-form button:hover svg {
    transform: translateX(4px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 2s both;
}

.social-links a {
    color: var(--color-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 2.2s both;
}

.footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.footer .website {
    margin-top: 0.5rem;
    color: var(--color-accent);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Success State for Newsletter */
.newsletter-form.success {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.newsletter-form.success button {
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .overlay {
        padding: 1.5rem;
        justify-content: center;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .brand-name {
        letter-spacing: 0.2em;
    }
    
    .coming-soon-container {
        gap: 1rem;
    }
    
    .line {
        width: 40px;
    }
    
    @keyframes expandLine {
        to {
            width: 40px;
            opacity: 1;
        }
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        text-align: center;
        padding: 1rem;
    }
    
    .newsletter-form button {
        justify-content: center;
        padding: 1rem;
    }
    
    .social-links {
        margin-top: 2rem;
    }
    
    .footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
    
    .coming-soon {
        letter-spacing: 0.3em;
    }
    
    .tagline {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }
}

/* Touch devices - disable cursor glow */
@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
