/* CSS Custom Properties */
:root {
    /* Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-accent-primary: #00e5ff;
    --color-accent-secondary: #1de9b6;
    --color-accent-tertiary: #7c4dff;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-muted: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 50%, var(--color-accent-tertiary) 100%);
    --gradient-bg: radial-gradient(ellipse at center, var(--color-bg-secondary) 0%, var(--color-bg-primary) 70%);
    --gradient-glow: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-size-hero: clamp(2rem, 5vw, 4rem);
    --font-size-subtitle: clamp(1rem, 2.5vw, 1.5rem);
    --font-size-body: clamp(0.875rem, 1.5vw, 1rem);
    --line-height-tight: 1.0;
    --line-height-normal: 1.5;
    
    /* Effects */
    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 16px;
    --shadow-glow: 0 0 60px rgba(0, 229, 255, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Cursor Effects */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    filter: blur(var(--blur-md));
}

/* Background Layers */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

#bgLayer1 {
    background: var(--gradient-bg);
    transform: none;
}

#bgLayer2 {
    background: radial-gradient(circle at 20% 80%, rgba(124, 77, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(29, 233, 182, 0.1) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

#bgLayer3 {
    background: radial-gradient(circle at 60% 40%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    animation: bgFloat 15s ease-in-out infinite reverse;
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 0;
}



/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem var(--spacing-md) 1rem var(--spacing-md);
    text-align: center;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}

/* Logo Container & Effects */
.logo-container {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.main-logo {
    height: clamp(60px, 8vw, 120px);
    width: auto;
    filter: 
        drop-shadow(0 0 20px rgba(0, 229, 255, 0.6))
        drop-shadow(0 0 40px rgba(0, 229, 255, 0.4))
        drop-shadow(0 0 60px rgba(0, 229, 255, 0.2))
        brightness(1.2)
        contrast(1.1);
    transition: all 0.3s ease;
    transform: scale(1);
    animation: logoGlow 4s ease-in-out infinite;
    will-change: filter, transform;
    backface-visibility: hidden;
}

.main-logo:hover {
    filter: 
        drop-shadow(0 0 30px rgba(0, 229, 255, 0.8))
        drop-shadow(0 0 60px rgba(0, 229, 255, 0.6))
        drop-shadow(0 0 90px rgba(0, 229, 255, 0.4))
        brightness(1.4)
        contrast(1.2);
    transform: scale(1.05);
}

/* Hero Title */
.hero-title {
    font-family: var(--font-titles);
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0.2rem;
}

.title-line {
    display: block;
    position: relative;
    opacity: 0;
    animation: titleReveal 1.2s ease-out forwards;
    animation-delay: calc(var(--line-index, 0) * 0.3s);
    transform: translateY(30px);
    margin-bottom: 0.2rem;
    padding-bottom: 0.1rem;
    overflow: visible;
}

.title-emphasis {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
    padding-bottom: 0;
    margin-bottom: 0;
}



/* CTA Section */
.cta-container {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.cta-button {
    background: var(--color-accent-primary);
    border: none;
    color: var(--color-bg-primary);
    font-family: var(--font-subtitles);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    background: var(--color-accent-secondary);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.orb-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.orb-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

/* Email Modal */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-modal.show {
    opacity: 1;
    visibility: visible;
}

.email-modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-accent-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.email-modal.show .email-modal-content {
    transform: scale(1) translateY(0);
}

.email-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.email-modal-title {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.email-modal-subtitle {
    font-family: var(--font-subtitles);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input {
    background: var(--color-bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.1);
}

.email-input::placeholder {
    color: var(--color-text-muted);
}

.email-submit {
    background: var(--color-accent-primary);
    border: none;
    color: var(--color-bg-primary);
    font-family: var(--font-subtitles);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.email-submit:hover {
    background: var(--color-accent-secondary);
}

.email-submit:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
}

.email-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.email-close:hover {
    color: var(--color-text-primary);
}

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
    text-align: center;
    position: relative;
    z-index: 20;
}

.footer-text {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    opacity: 0.6;
    margin: 0;
}

/* Animations */
@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1.02);
    }
    33% {
        transform: translate3d(20px, -20px, 0) scale(1.05);
    }
    66% {
        transform: translate3d(-15px, 15px, 0) scale(1.03);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: 
            drop-shadow(0 0 20px rgba(0, 229, 255, 0.6))
            drop-shadow(0 0 40px rgba(0, 229, 255, 0.4))
            drop-shadow(0 0 60px rgba(0, 229, 255, 0.2))
            brightness(1.2)
            contrast(1.1);
    }
    50% {
        filter: 
            drop-shadow(0 0 25px rgba(0, 229, 255, 0.8))
            drop-shadow(0 0 50px rgba(0, 229, 255, 0.5))
            drop-shadow(0 0 75px rgba(0, 229, 255, 0.3))
            brightness(1.3)
            contrast(1.15);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --font-size-hero: clamp(1.6rem, 6vw, 2.8rem);
    }
    
    .hero {
        padding: 0.5rem var(--spacing-md);
        height: 100vh;
        overflow: hidden;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .main-logo {
        height: clamp(50px, 10vw, 80px);
    }
    
    .hero-title {
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .hero-content {
        padding-bottom: 0;
    }
    
    .main-container {
        padding-bottom: 0;
        height: 100vh;
        overflow: hidden;
    }
    
    .cta-container {
        margin-top: 1.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .floating-orb {
        width: 6px;
        height: 6px;
    }
    
    .email-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .email-modal-title {
        font-size: 1.25rem;
    }
    
    .email-input, .email-submit {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-hero: clamp(1.4rem, 7vw, 2.4rem);
    }
    
    .hero {
        padding: 0.5rem var(--spacing-md);
        height: 100vh;
        overflow: hidden;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .main-logo {
        height: clamp(40px, 12vw, 70px);
    }
    
    .hero-title {
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }
    
    .hero-content {
        padding-bottom: 0;
    }
    
    .main-container {
        padding-bottom: 0;
        height: 100vh;
        overflow: hidden;
    }
    
    .cta-container {
        margin-top: 2rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .floating-orb {
        width: 4px;
        height: 4px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .title-emphasis {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-glow {
        display: none;
    }
    
    .main-logo {
        animation: none;
        filter: 
            drop-shadow(0 0 20px rgba(0, 229, 255, 0.6))
            drop-shadow(0 0 40px rgba(0, 229, 255, 0.4))
            brightness(1.2)
            contrast(1.1);
    }
} 