/* ========================================
   Lantr Landing Page
   Colors: Gold #CB9D08, Red #B01433, Purple #520B31
   ======================================== */

:root {
    --gold: #CB9D08;
    --gold-dim: rgba(203, 157, 8, 0.15);
    --gold-glow: rgba(203, 157, 8, 0.4);
    --red: #B01433;
    --red-dim: rgba(176, 20, 51, 0.2);
    --purple: #520B31;
    --purple-deep: #2a0619;
    
    --bg: #0a0a0b;
    --bg-elevated: #2a0619;
    --text: #f5f5f5;
    --text-dim: rgba(245, 245, 245, 0.5);
    --text-muted: rgba(245, 245, 245, 0.7);
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero .container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.curtain-left, .curtain-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    background-size: cover;
    background-position: center;
    /* Hidden until loaded */
    opacity: 0;
    visibility: hidden;
    /* Mask for soft inner edge */
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

.curtain-left { 
    left: 0; 
}

.curtain-right { 
    right: 0; 
    transform: scaleX(-1); 
}

/* Animate only when loaded */
.curtain-left.loaded { 
    visibility: visible;
    animation: slideInLeft 1.2s ease-out forwards;
}

.curtain-right.loaded { 
    visibility: visible;
    animation: slideInRight 1.2s ease-out forwards;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--gold);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

/* ========================================
   CTA Button
   ======================================== */

.cta-button {
    display: inline-block;
    padding: 10px 42px;
    background: var(--red);
    color: var(--text);
    font-size: 1rem;
    font-weight: 450;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.04);
}

/* ========================================
   Pain Section
   ======================================== */

.pain {
    padding: 80px 0;
    background: var(--bg-elevated);
}

.pain .container {
    max-width: 560px;
}

.pain h2 {
    margin-bottom: 16px;
}

.pain p {
    font-size: 1.375rem;
    line-height: 1.8;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.pain p.dim {
    color: var(--text-dim);
    margin-top: 16px;
}

/* ========================================
   Solution Section
   ======================================== */

.solution {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

}

.solution .container {
    max-width: 560px;
}

.solution h2 {
    margin-bottom: 16px;
}


.solution p {
    font-size: 1.375rem;
    line-height: 1.8;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.solution p.dim {
    color: var(--text-dim);
    margin-top: 16px;
}

/* ========================================
   Demo Section
   ======================================== */

.demo {
    padding: 120px 0;
    background: var(--bg);
}

.demo .container {
    max-width: 800px;
}

.demo-video {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.demo-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--bg-elevated) 100%);
}

.demo-placeholder span {
    color: var(--text-dim);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hide placeholder when video loads */
.demo-video video:not([src=""]) + .demo-placeholder {
    display: none;
}

.demo-caption {
    text-align: center;
    margin-top: 24px;
    font-size: 1rem;
    color: var(--text-dim);
    font-style: italic;
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: 120px 0;
    background: var(--bg-elevated);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.tally-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.tally-wrapper iframe {
    border-radius: 8px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 48px 0;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.footer a {
    color: var(--gold);
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 100px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .hero-glow {
        width: 300px;
        height: 300px;
    }
    
    .pain {
        padding: 60px 0;
    }
    
    .pain p {
        font-size: 1.125rem;
    }
    
    .solution {
        padding: 60px 0;
    }
    
    .solution p {
        font-size: 1.125rem;
    }
    
    .demo {
        padding: 80px 0;
    }
    
    .demo-video {
        border-radius: 12px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta-sub {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 28px;
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   Subtle Animations
   ======================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .container > * {
    animation: fadeUp 0.6s ease-out backwards;
}

.hero .logo { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.3s; }
.hero .cta-button { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.3;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scaleX(-1);
        opacity: 0;
    }
    to {
        transform: translateX(0) scaleX(-1);
        opacity: 0.3;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
