/* 
  Langomind Holding Page CSS
  Version: 2.0.0
*/

/* ==========================================================================
   1. Design Tokens & Variables
   ========================================================================== */
    :root {
    /* Color Palette */
    --clr-bg-main: #F7F8FC;
    --clr-bg-surface: #FFFFFF;
    --clr-bg-card: rgba(255, 255, 255, 0.85);
    
    --clr-primary: #4338CA;
    --clr-primary-deep: #312E81;
    --clr-secondary: #2563EB;
    --clr-accent: #0F8A9D;
    
    --clr-text-main: #111827;
    --clr-text-muted: #667085;
    
    --clr-border: #E6E8F0;
    --clr-soft-indigo: #EEF0FF;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Effects */
    --shadow-soft: 0 4px 24px rgba(17, 24, 39, 0.04);
    --shadow-hover: 0 12px 32px rgba(67, 56, 202, 0.08);
    --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 1);
    --transition-base: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. Background Ambient Decor
   ========================================================================== */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 80% 20%, rgba(67, 56, 202, 0.03) 0%, rgba(247, 248, 252, 0) 50%),
                radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.02) 0%, rgba(247, 248, 252, 0) 50%);
    pointer-events: none;
}

/* ==========================================================================
   4. Layout Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
    padding: var(--space-md) 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--clr-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
    color: var(--clr-text-main);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67, 56, 202, 0.3); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(67, 56, 202, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67, 56, 202, 0); }
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero-section {
    padding: var(--space-md) 0 var(--space-lg);
    min-height: calc(90vh - 100px);
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    padding-right: var(--space-md);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--clr-accent);
    margin-bottom: var(--space-sm);
}

.hero-headline {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--clr-text-main);
    letter-spacing: -0.02em;
}

.hero-support {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 480px;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* CSS Fallback (V4 Planet) */
.visual-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: opacity 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.fallback-orbit {
    position: absolute;
    width: 450px;
    height: 120px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    transform: rotateZ(-15deg);
    z-index: 1;
}

.fallback-orbit::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 100px;
    border: 1px solid rgba(67, 56, 202, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(25deg);
}

.fallback-core {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4338CA 0%, #312E81 50%, #1e1c52 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0,0,0,0.4), 
        0 0 20px rgba(15, 138, 157, 0.15);
    z-index: 2;
}

.fallback-card {
    position: absolute;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.fallback-card.card-learn { 
    top: 20%; right: 15%; transform: rotate(5deg); 
    background: rgba(255,255,255,0.9); border: 1px solid var(--clr-border); color: var(--clr-primary);
}
.fallback-card.card-practice { 
    bottom: 25%; right: 10%; transform: rotate(-5deg); 
    background: rgba(255,255,255,0.9); border: 1px solid var(--clr-border); color: var(--clr-accent);
}
.fallback-card.card-english { 
    top: 30%; left: 10%; transform: rotate(-8deg); 
    background: var(--clr-primary); border: 1px solid var(--clr-primary-deep); color: white;
}

canvas#hero-3d-canvas {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    z-index: 10;
    outline: none;
    opacity: 0;
    transition: opacity 1s ease;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
    padding: var(--space-md) 0 var(--space-lg);
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    color: var(--clr-text-main);
    margin-bottom: var(--space-md);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   11. Animations (Intersection Observer Targets)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay { transition-delay: 0.1s; }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }

/* ==========================================================================
   12. Responsive Adjustments
   ========================================================================== */
@media (max-width: 1023px) {
    .hero-section {
        padding: var(--space-xl) 0 var(--space-md);
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }
    
    .hero-visual {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }

    .hero-headline {
        br { display: none; }
    }
}

/* ==========================================================================
   13. Reduced Motion & Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .status-dot {
        animation: none;
        background-color: var(--clr-primary-accent);
    }
}
