/* Custom properties */
:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #262626;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-content .logo {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    opacity: 1;
    margin: 0;
}

.loading-line {
    width: 0; /* Starts at 0, animated by JS */
    height: 1px;
    background-color: var(--text-secondary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Prevent text selection to keep the premium app-like feel */
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

/* Background Canvas */
#eclipse-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,5,0.8), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

/* Typography and Layout */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 8vw;
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Promotions Section */
.promotions-section {
    padding: 8rem 4rem;
    min-height: 100vh;
}

.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: transform 0.4s ease, background 0.4s ease;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.card-image.placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-image.placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.story-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Proof Section */
.proof-section {
    padding: 8rem 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.empty-state {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 24px;
}

.wireframe-graphic {
    width: 64px;
    height: 64px;
    margin: 0 auto 2rem;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    position: relative;
    animation: rotate 10s linear infinite;
}

.wireframe-graphic::before, .wireframe-graphic::after {
    content: '';
    position: absolute;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
}

.wireframe-graphic::before {
    top: 10%; left: 10%; right: 10%; bottom: 10%;
}

.wireframe-graphic::after {
    top: 25%; left: 25%; right: 25%; bottom: 25%;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 6rem 4rem 2rem;
    text-align: center;
    background: linear-gradient(to top, #000, transparent);
}

.footer h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 30px;
    margin-bottom: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Total Eclipse Modal */
#contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
}

#contact-modal.active {
    pointer-events: auto;
}

#close-modal {
    position: absolute;
    top: 3rem;
    right: 4rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 4rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

#close-modal:hover {
    color: var(--text-secondary);
    transform: scale(1.1);
}

.modal-content {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #e6e6e6;
}

/* Success Message State */
#success-message {
    display: none; /* Hidden by default, toggled by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    opacity: 0;
}

#success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

#success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 10px;
    border-left: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: translate(-50%, -60%) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 1.5rem 2rem; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 1.5rem 0;
        font-size: 2rem;
        font-weight: 600;
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title { font-size: 15vw; }
    .promotions-section, .proof-section { padding: 4rem 2rem; }
    .section-header h2 { font-size: 2.2rem; }
    .empty-state { padding: 2rem; }
}
