/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

/* Main Hero Container */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* 1. Gradient Background with Animated Mesh Pattern */
.deep-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 0;
}

/* 2. Single Subtle Orb */
.orb-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Single subtle orb */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform, background-color, opacity;
    mix-blend-mode: screen;
    transition: all 8000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: min(50vw, 500px);
    height: min(50vw, 500px);
    filter: blur(80px);
    opacity: 0.3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 100, 100, 0.2);
}

/* Hide other orbs */
.orb-2, .orb-3 {
    display: none;
}

/* Subtle vignette */
.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.5;
}

.radial-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, transparent 10%, #0a0a0a 70%);
    opacity: 0.4;
}

/* 3. Animated Geometric Mesh Pattern */
.architectural-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 
        80px 80px,
        80px 80px,
        40px 40px,
        40px 40px;
    background-position: 
        calc(50% + 40px) calc(50% + 40px),
        calc(50% + 40px) calc(50% + 40px),
        calc(50% + 20px) calc(50% + 20px),
        calc(50% + 20px) calc(50% + 20px);
    animation: mesh-drift 120s linear infinite;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 30%, transparent 70%);
}

/* 4. Floating Particle Overlay */
.particle-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(100, 200, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 100, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(200, 255, 100, 0.2) 0%, transparent 50%);
    background-size: 400px 400px, 300px 300px, 500px 500px;
    background-position: 20% 80%, 80% 20%, 40% 40%;
    animation: particle-float 80s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

/* 4. Main Content */
.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 800px;
}

/* Logo Container */
.logo-container {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Main Title */
.title-container {
    margin-bottom: 3rem;
    overflow: hidden;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #ffffff;
    transition: all 600ms ease-out;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

@media (min-width: 640px) {
    .main-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 5rem;
    }
}

/* Subtitle */
.subtitle-container {
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 600ms ease-out;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .subtitle {
        font-size: 1.5rem;
    }
}

/* Specifications */
.specs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 500px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Email Subscription */
.subscription-container {
    max-width: 500px;
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
}

.subscription-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .subscription-form {
        flex-direction: row;
    }
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-btn {
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
}

.subscribe-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-spinner {
    display: none;
}

.subscribe-btn.loading .btn-text {
    opacity: 0.7;
}

.subscribe-btn.loading .btn-spinner {
    display: inline-block;
}

.subscription-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 0.5rem;
}

.subscription-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.subscription-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.subscription-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Social Links */
.social-container {
    text-align: center;
    margin-bottom: 3rem;
}

.social-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.25rem;
}

/* 5. Vertical Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.5s ease;
}

.scroll-indicator:hover .scroll-text {
    color: rgba(255, 255, 255, 0.7);
}

.vertical-track {
    position: relative;
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1), transparent);
    border-radius: 1px;
    overflow: hidden;
}

.falling-bead {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 15px #ffffff;
    animation: optic-track 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Mesh pattern animation */
@keyframes mesh-drift {
    0% {
        background-position: 
            calc(50% + 40px) calc(50% + 40px),
            calc(50% + 40px) calc(50% + 40px),
            calc(50% + 20px) calc(50% + 20px),
            calc(50% + 20px) calc(50% + 20px);
    }
    100% {
        background-position: 
            calc(50% + 120px) calc(50% + 120px),
            calc(50% + 120px) calc(50% + 120px),
            calc(50% + 60px) calc(50% + 60px),
            calc(50% + 60px) calc(50% + 60px);
    }
}

/* Particle floating animation */
@keyframes particle-float {
    0% {
        background-position: 
            20% 80%,
            80% 20%,
            40% 40%;
    }
    33% {
        background-position: 
            25% 75%,
            75% 25%,
            45% 45%;
    }
    66% {
        background-position: 
            15% 85%,
            85% 15%,
            35% 35%;
    }
    100% {
        background-position: 
            20% 80%,
            80% 20%,
            40% 40%;
    }
}

/* Scroll indicator animation */
@keyframes optic-track {
    0% { 
        top: -20%; 
        opacity: 0; 
    }
    20% { 
        opacity: 1; 
    }
    80% { 
        top: 120%; 
        opacity: 1; 
    }
    100% { 
        top: 120%; 
        opacity: 0; 
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .logo {
        max-width: 220px;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .specs-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .spec-value {
        font-size: 1.25rem;
    }
    
    .spec-label {
        font-size: 0.6875rem;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .subscribe-btn {
        width: 100%;
    }
    
    .social-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
    
    .vertical-track {
        height: 3rem;
    }
}

/* Fade-in animation for content */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper > * {
    animation: fade-in 0.8s ease-out forwards;
    opacity: 0;
}

.content-wrapper > *:nth-child(1) { animation-delay: 0.1s; }
.content-wrapper > *:nth-child(2) { animation-delay: 0.2s; }
.content-wrapper > *:nth-child(3) { animation-delay: 0.3s; }
.content-wrapper > *:nth-child(4) { animation-delay: 0.4s; }
.content-wrapper > *:nth-child(5) { animation-delay: 0.5s; }
.content-wrapper > *:nth-child(6) { animation-delay: 0.6s; }
.content-wrapper > *:nth-child(7) { animation-delay: 0.7s; }