@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --primary-text-color: #fff;
    --bg-color: #000000;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Cinematic Intro */
#cinematic-intro {
    transition: opacity 1s ease, visibility 1s ease;
}

#cinematic-intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-canvas {
    width: 100vw;
    height: 100vh;
}

/* Particles.js Container */
#particles-js {
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
}

/* Shooting star canvas - ignore pointer to not block interactions */
#shooting-canvas {
    pointer-events: none;
    z-index: 2; /* above particles, below content (content has z-index 10) */
}

/* Edge click hints */
.edge-hint {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(200, 210, 255, 0.7);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none; /* don't block clicks */
    font-size: clamp(18px, 2.2vw, 28px);
    z-index: 12; /* above particles, below content */
}
#hint-left  { left: 24px; }
#hint-right { right: 24px; }
.edge-hint.visible { opacity: .55; }

/* Ensure content stays above particles */
.statement-section, footer, header {
    position: relative;
    z-index: 10;
}

/* Opening Section */
#opening-section {
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Glow Effects */
.glow-text {
    background: linear-gradient(90deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.glow-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
}

.hero-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 100, 255, 0.2) 0%, rgba(100, 100, 255, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: breatheGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    z-index: 1;
}

/* Statement Sections - Initially hidden for click navigation */
.statement-section {
    perspective: 1000px;
}

.statement-text {
    will-change: opacity, transform, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform-origin: center center;
}

/* TARA Logo Section specific styles */
#tara-reveal {
    position: relative;
}

/* CTA Section */
.cta-headline {
    will-change: opacity, transform, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.cta-subtext {
    will-change: opacity, transform, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.waitlist-input {
    transition: all 0.3s ease;
}

.waitlist-input:focus {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.waitlist-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.waitlist-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.waitlist-button:hover::before {
    width: 300px;
    height: 300px;
}

.waitlist-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

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

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

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

@keyframes breatheGlow {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Intensified glow on hover/interaction */
.hero-glow.intensified {
    opacity: 0.6 !important;
    animation: breatheGlowIntense 2s ease-in-out infinite;
}

@keyframes breatheGlowIntense {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Easter Egg Animation */
#easter-egg {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .statement-text {
        font-size: 1.25rem !important;
    }
    
    .cta-headline {
        font-size: 1.5rem !important;
    }
    
    .hero-glow {
        width: 350px;
        height: 350px;
    }
    
    .waitlist-button {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
    
    #opening-section .statement-text {
        font-size: 1rem !important;
    }
    
    #tara-reveal h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .statement-text {
        font-size: 1rem !important;
    }
    
    .cta-headline {
        font-size: 1.25rem !important;
    }
    
    #opening-section .statement-text {
        font-size: 0.95rem !important;
    }
    
    #tara-reveal h1 {
        font-size: 2rem !important;
    }
    
    .hero-glow {
        width: 300px;
        height: 300px;
    }
}

/* Utility Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===================================================== */
/* HARD-CENTER ALL CONTENT BLOCKS - CENTERING OVERRIDES */
/* ===================================================== */

/* Reinforce flex centering on all sections */
.statement-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force inner wrappers to center with max-width + auto margins */
.statement-section > div {
    width: 100%;
    max-width: 48rem;  /* ~768px */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Keep header centered on ultra-wide screens */
header > div {
    margin-left: auto;
    margin-right: auto;
}

/* Prevent horizontal scroll from canvases or overlays */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Background canvases should never capture pointer or offset flow */
#intro-canvas {
    pointer-events: none;
}

/* Particles.js NEEDS pointer events for mouse interaction */
#particles-js {
    pointer-events: auto;
}

/* Neutralize any rogue translateX from GSAP or other animations */
.statement-text {
    transform: translateX(0) !important;
}

/* CTA section gets same treatment */
#cta-section > div {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Ensure opening section is also centered */
#opening-section > div {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


/* ===================================================== */
/* STATEMENT TEXT - SCROLL-DRIVEN VANISH (VIEW TIMELINE) */
/* ===================================================== */

@keyframes statement-zoom-vanish {
  0% {
    transform: translateZ(-800px) scale(0.85);
    opacity: 0;
    filter: blur(12px);
  }
  10% {
    transform: translateZ(0px) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  90% {
    transform: translateZ(0px) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    transform: translateZ(800px) scale(1.15);
    opacity: 0;
    filter: blur(12px);
  }
}


/* ===================================================== */
/* ENHANCED GLOBAL LAYOUT FIXES                          */
/* ===================================================== */

/* Ensure each section scrolls naturally */
.statement-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
    position: relative;
}

/* Fix centering issues and prevent drift */
.statement-section > div {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Scale down the main logo in reveal section */
#tara-reveal img {
    height: 48px;
    width: 48px;
}

#tara-reveal h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.25em;
}

/* Center and resize header logo properly */
header {
    justify-content: center !important;
}

header img {
    height: 20px !important;
    width: 20px !important;
}

/* Remove any rogue transforms from animations */
.statement-text {
    transform: translateX(0) !important;
}

/* Prevent fixed elements (like canvases) from blocking scroll */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===================================================== */
/* GSAP ANIMATION HELPERS                                */
/* ===================================================== */

/* Ensure smooth transforms for GSAP */
.statement-text,
.statement-section > div {
    will-change: opacity, transform;
}

/* Smooth transitions for scroll effects */
body {
    scroll-behavior: smooth;
}

/* ===================================================== */
/* NORMALIZE HEADLINE SIZES                             */
/* Make all headline lines match "Something intelligent  */
/* is awakening." sizing (3xl / 4xl / 5xl)               */
/* ===================================================== */
.statement-text,
.cta-headline {
    font-size: 1.875rem !important; /* base ~3xl */
    line-height: 1.2;
}

@media (min-width: 768px) { /* md */
    .statement-text,
    .cta-headline {
        font-size: 2.25rem !important; /* ~4xl */
    }
}

@media (min-width: 1024px) { /* lg */
    .statement-text,
    .cta-headline {
        font-size: 3rem !important; /* ~5xl */
    }
}

/* Smaller size for opening hook only */
.hook-small {
    font-size: 1.125rem !important;
}
@media (min-width: 768px) { .hook-small { font-size: 1.25rem !important; } }
@media (min-width: 1024px) { .hook-small { font-size: 1.5rem !important; } }

/* Make CTA headline smaller than the others (further reduced) */
.cta-headline { font-size: 1.25rem !important; line-height: 1.25; }
@media (min-width: 768px) { .cta-headline { font-size: 1.5rem !important; } }
@media (min-width: 1024px) { .cta-headline { font-size: 2rem !important; } }
