/* ===========================
   Kegstory COMPLETELY NEW Landing Page CSS
   100% Redesigned with Heavy Animations
   =========================== */

/* ----- CORE & VARS ----- */
:root {
    --l-red: #ff2a5f;
    --l-green: #00e676;
    --l-purple: #d500f9;
    --l-bg: #030305;
    --l-text: #ffffff;
    --l-text-muted: rgba(255, 255, 255, 0.6);
}

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

.landing-body {
    background: var(--l-bg);
    color: var(--l-text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ----- CANVAS & BACKGROUND ANIMATIONS ----- */
.landing-canvas {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0a0a10 0%, #030305 100%);
}

.canvas-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
    transform: translateZ(0);
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.canvas-red {
    top: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--l-red) 0%, transparent 60%);
    animation-duration: 25s;
}

.canvas-green {
    bottom: -20%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--l-green) 0%, transparent 60%);
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

.canvas-purple {
    top: 30%; left: 30%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, var(--l-purple) 0%, transparent 60%);
    animation-duration: 22s;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(5vw, 10vh) scale(1.1) rotate(60deg); }
    100% { transform: translate(-10vw, -5vh) scale(0.9) rotate(120deg); }
}

.canvas-noise {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.canvas-stars .star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    will-change: opacity;
    animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* ----- LAYOUT ----- */
.landing-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- NAVBAR ----- */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.n-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.n-icon-img {
    width: 44px; height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.n-logo:hover .n-icon-img {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 4px 20px rgba(255, 42, 95, 0.4);
}

.n-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}



/* ----- HERO SECTION ----- */
.hero-section {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding-bottom: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--l-text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--l-green);
    box-shadow: 0 0 10px var(--l-green);
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.title-gradient {
    background: linear-gradient(to right, var(--l-red), var(--l-purple), var(--l-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--l-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300;
}

/* ----- BUTTONS ----- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-primary .btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--l-red), var(--l-purple), var(--l-green));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover .btn-glow {
    opacity: 1;
}

.btn-icon {
    width: 20px; height: 20px;
    transition: transform 0.3s;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

/* ----- HERO VISUAL ----- */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-core {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    will-change: transform;
    transform: translateZ(0);
    animation: ringSpin 20s linear infinite;
}

.core-ring-1 { width: 100%; height: 100%; border-top-color: var(--l-red); animation-duration: 15s; }
.core-ring-2 { width: 140%; height: 140%; border-right-color: var(--l-green); animation-duration: 25s; animation-direction: reverse; }
.core-ring-3 { width: 180%; height: 180%; border-bottom-color: var(--l-purple); animation-duration: 35s; }

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.core-center {
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    -webkit-clip-path: circle(50%);
    clip-path: circle(50%);
    box-shadow: 0 0 30px rgba(213, 0, 249, 0.2);
    animation: corePulse 4s infinite alternate;
    flex-shrink: 0;
    will-change: transform;
    transform: translateZ(0);
}

.core-center-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -webkit-clip-path: circle(50%);
    clip-path: circle(50%);
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    display: block;
    max-width: none;
}

.core-center::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
    z-index: 2;
    pointer-events: none;
}

@keyframes corePulse {
    to { transform: translateZ(0) scale(1.05); opacity: 0.85; }
}

.floating-cards {
    position: absolute;
    top: -50px; right: -50px; bottom: -50px; left: -50px;
    pointer-events: none;
    z-index: 5;
}

.float-card {
    position: absolute;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    will-change: transform;
    transform: translateZ(0);
    animation: cardFloat 6s infinite ease-in-out alternate;
}

.fc-red {
    top: 50px; right: -20px;
    border-left: 3px solid var(--l-red);
}

.fc-green {
    bottom: 50px; right: 20px;
    border-left: 3px solid var(--l-green);
    animation-delay: -2s;
}

.fc-purple {
    top: 50%; left: -60px;
    border-left: 3px solid var(--l-purple);
    animation-delay: -4s;
}

@keyframes cardFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.fc-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    background: rgba(255,255,255,0.05);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.fc-info {
    display: flex;
    flex-direction: column;
}

.fc-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.fc-sub {
    font-size: 0.8rem;
    color: var(--l-text-muted);
}

/* ----- ENTRANCE ANIMATIONS ----- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeUpAnim 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-float {
    opacity: 0;
    transform: scale(0.9);
    animation: floatInAnim 1.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatInAnim {
    to { opacity: 1; transform: scale(1); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 0;
    }
    
    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-visual {
        height: 450px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        overflow: visible;
    }

    .visual-core {
        width: 200px;
        height: 200px;
    }

    .core-center {
        width: 80px;
        height: 80px;
    }

    .floating-cards {
        top: 10px; right: 10px; bottom: 10px; left: 10px;
    }

    .fc-red { top: 20px; right: 10px; border-left-width: 2px; }
    .fc-green { bottom: 20px; right: 40px; border-left-width: 2px; }
    .fc-purple { top: 40%; left: 10px; border-left-width: 2px; }

    .float-card {
        padding: 10px 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .fc-title { font-size: 0.90rem; }
    .fc-sub { font-size: 0.75rem; }
    .fc-avatar { width: 36px; height: 36px; border-radius: 10px; }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 380px;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        transform: none;
        overflow: visible;
    }

    .visual-core {
        width: 160px;
        height: 160px;
    }

    .core-center {
        width: 64px;
        height: 64px;
    }

    .floating-cards {
        top: 10px; right: 10px; bottom: 10px; left: 10px;
    }

    .fc-red { top: 30px; right: 5px; border-left-width: 2px; }
    .fc-green { bottom: 30px; right: 20px; border-left-width: 2px; }
    .fc-purple { top: 40%; left: 5px; border-left-width: 2px; }

    .float-card {
        padding: 8px 12px;
        gap: 10px;
        border-radius: 14px;
    }

    .fc-title { font-size: 0.85rem; }
    .fc-sub { font-size: 0.70rem; }
    .fc-avatar { width: 32px; height: 32px; border-radius: 8px; }
}

@media (max-width: 480px) {
    .landing-wrapper {
        padding: 0 4%;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }

    .hero-visual {
        height: 320px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        transform: none;
        overflow: visible;
    }
    
    .visual-core {
        width: 140px;
        height: 140px;
    }
    
    .core-center {
        width: 56px;
        height: 56px;
    }
    
    .floating-cards {
        top: 10px; right: 10px; bottom: 10px; left: 10px;
    }
    
    .fc-red { top: 15px; right: 5px; border-left-width: 2px; }
    .fc-green { bottom: 20px; right: 10px; border-left-width: 2px; }
    .fc-purple { top: 42%; left: 5px; border-left-width: 2px; }

    .float-card {
        padding: 6px 10px;
        gap: 8px;
        border-radius: 12px;
    }

    .fc-title { font-size: 0.75rem; }
    .fc-sub { font-size: 0.60rem; }
    .fc-avatar { width: 28px; height: 28px; border-radius: 8px; }

    .btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
