/* ==========================================================================
   Nelarin Dark Premium Design System - Perfect 100vh Layout with Footer
   ========================================================================== */

:root {
    /* Color System */
    --color-bg: #05040b;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.55);
    --color-text-muted: rgba(255, 255, 255, 0.4);
    
    --color-accent: #a78bfa;
    --color-indigo: #6366f1;
    --color-purple: #8b5cf6;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Interactive Canvas Background --- */
.wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Ambient Glow Orbs --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    left: -100px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 0px;
    right: -100px;
}

/* --- Layout (100vh No-Scroll Flex Container) --- */
.main-container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* --- Brand Header --- */
.brand-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 65px;
    margin-bottom: 0;
}

.logo-wrapper {
    margin-top: 10px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.logo-brand-flex {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    white-space: nowrap;
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    position: relative;
    z-index: 2;
    transform: translateX(0);
    animation: logoMoveRightToCenter 4.2s cubic-bezier(0.1, 0.9, 0.2, 1) 1.0s forwards;
}

@keyframes logoMoveRightToCenter {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(31px);
    }
}

.text-mask-wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-left: 3px; /* N pegada al logotipo */
    display: inline-flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.4) 14px, rgba(0, 0, 0, 1) 32px, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, transparent 0px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.4) 14px, rgba(0, 0, 0, 1) 32px, rgba(0, 0, 0, 1) 100%);
}

.logo-brand-text {
    font-family: 'Manrope', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.03em;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    opacity: 1;
    transform: translateX(0);
    will-change: transform, opacity;
    animation: textSlideLeftIntoMask 4.2s cubic-bezier(0.1, 0.9, 0.2, 1) 1.0s forwards;
}

@keyframes textSlideLeftIntoMask {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.25;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
    }
}

/* --- Category Pill Badge --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9999px;
    margin-bottom: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #818cf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #818cf8;
}

.badge-text {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
    white-space: nowrap;
}

.animated-dots {
    display: inline-block;
    width: 0.9em;
    text-align: left;
}

.animated-dots::after {
    content: '';
    animation: dotsLoop 2s steps(1, end) infinite;
}

@keyframes dotsLoop {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
}

.brand-subtitle {
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* --- Center Lens Flare / Starburst Accent --- */
.center-flare-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    margin: 70px 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.light-burst {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 
        0 0 12px 5px rgba(255, 255, 255, 1),
        0 0 28px 10px rgba(167, 139, 250, 0.75),
        0 0 60px 20px rgba(99, 102, 241, 0.45);
}

.flare-ray-h {
    position: absolute;
    width: 220px;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.35) 25%, 
        rgba(255, 255, 255, 0.95) 43%, 
        rgba(255, 255, 255, 0) 44%, 
        rgba(255, 255, 255, 0) 56%, 
        rgba(255, 255, 255, 0.95) 57%, 
        rgba(255, 255, 255, 0.35) 75%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.flare-ray-v {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.35) 25%, 
        rgba(255, 255, 255, 0.95) 43%, 
        rgba(255, 255, 255, 0) 44%, 
        rgba(255, 255, 255, 0) 56%, 
        rgba(255, 255, 255, 0.95) 57%, 
        rgba(255, 255, 255, 0.35) 75%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

@keyframes flarePulse {
    0% { transform: scale(0.9); opacity: 0.85; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* --- Feature Highlights Grid (2 Items) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 480px;
    background: rgba(10, 8, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    margin: auto auto 20px auto;
    padding: 12px 8px;
    position: relative;
    z-index: 5;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(167, 139, 250, 0.16),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 6px;
    position: relative;
    opacity: 0;
    animation: featureStaggerIn 0.8s ease-out forwards;
}

.item-1 { animation-delay: 0.2s; }
.item-2 { animation-delay: 0.7s; }

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

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.feature-icon {
    font-size: 1.05rem;
    color: #a78bfa;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    position: relative;
}

.feature-icon svg {
    stroke: #a78bfa;
    fill: none;
}

/* Icon 1: AI-Powered Magic Wand & Sparkles */
.icon-ai {
    position: relative;
}

.wand-icon {
    display: inline-block;
    animation: wandSlowFade 1.4s ease-out 0.4s forwards;
    transform: scale(0) rotate(-30deg);
    opacity: 0;
}

@keyframes wandSlowFade {
    0% { transform: scale(0.3) rotate(-30deg); opacity: 0; }
    70% { transform: scale(1.12) rotate(6deg); opacity: 0.85; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.sparkle {
    position: absolute;
    font-size: 0.55rem;
    color: #c084fc;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.sparkle-1 {
    top: -6px;
    right: -9px;
    animation: sparkleGlowSlow 1.2s ease-out 1.2s forwards;
}

.sparkle-2 {
    bottom: -4px;
    left: -8px;
    animation: sparkleGlowSlow 1.2s ease-out 1.6s forwards;
}

@keyframes sparkleGlowSlow {
    0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
    65% { transform: scale(1.25) rotate(10deg); opacity: 0.85; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Icon 2: Privacy First Lock Smooth Close */
.lock-icon {
    display: inline-block;
    animation: lockSlowClose 1.6s ease-out 0.9s forwards;
    transform: scale(0) rotate(-15deg);
    transform-origin: center bottom;
    opacity: 0;
}

@keyframes lockSlowClose {
    0% { transform: translateY(-6px) scale(0.4) rotate(-20deg); opacity: 0; }
    65% { transform: translateY(-2px) scale(1.1) rotate(4deg); opacity: 0.85; }
    100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

/* Icon 3: Human Centered Person Slow Rise */
.human-icon {
    display: inline-block;
    animation: humanSlowRise 1.6s ease-out 1.4s forwards;
    transform: scale(0) translateY(8px);
    opacity: 0;
}

@keyframes humanSlowRise {
    0% { transform: scale(0.3) translateY(8px); opacity: 0; }
    65% { transform: scale(1.15) translateY(-2px); opacity: 0.85; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Icon 4: Always Improving Growth Arrow Slow Draw */
.growth-icon {
    display: inline-block;
    animation: drawArrowSlow 1.6s ease-out 1.9s forwards;
    transform: scale(0) translateX(-10px);
    opacity: 0;
}

@keyframes drawArrowSlow {
    0% { transform: scale(0.3) translateX(-10px); opacity: 0; }
    65% { transform: scale(1.12) translateX(2px); opacity: 0.85; }
    100% { transform: scale(1) translateX(0); opacity: 1; }
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
    font-weight: 400;
}

/* --- Footer Divider Line --- */
.footer-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 50%, transparent 100%);
    margin: 4px auto 8px auto;
}

/* --- Footer Inside Main Container --- */
.footer {
    width: 100%;
    text-align: center;
    padding-bottom: 12px;
    position: relative;
    z-index: 5;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-ceo {
    margin-bottom: 2px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.38);
}

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

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
    .main-container {
        padding: 8px 14px;
    }
    
    .brand-title {
        font-size: 2.2rem;
        margin-bottom: 6px;
        white-space: normal;
    }

    .brand-subtitle {
        font-size: 0.85rem;
    }

    /* Smaller flare & position higher on mobile */
    .center-flare-wrapper {
        margin-top: 55px;
        margin-bottom: 45px;
        height: 25px;
    }

    .light-burst {
        width: 8px;
        height: 8px;
        box-shadow: 
            0 0 8px 3px rgba(255, 255, 255, 1),
            0 0 16px 6px rgba(167, 139, 250, 0.75),
            0 0 35px 12px rgba(99, 102, 241, 0.45);
    }

    .flare-ray-h {
        width: 130px;
        height: 1.5px;
    }

    .flare-ray-v {
        height: 55px;
        width: 1.5px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 6px;
        margin-top: auto;
        margin-bottom: 30px;
    }

    .feature-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 38px;
        height: 38px;
        margin-top: 6px;
        margin-bottom: 0;
    }

    .badge-pill {
        margin-bottom: 8px;
        padding: 3px 8px;
    }

    .badge-text {
        font-size: 0.58rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }

    .feature-title {
        font-size: 0.75rem;
    }

    .feature-desc {
        font-size: 0.62rem;
    }
}
