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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: sans-serif;
    overflow-x: hidden;
}

.landing-container {
    position: relative;
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(54.83% 54.83% at 51.56% 40.33%, #2082FF 0.96%, #033677 100%);
    overflow: hidden;
}

.decor-layer {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: clamp(240px, 28vh, 360px);
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.math-symbol {
    position: absolute;
    top: var(--top);
    left: var(--left);
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--size);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(151, 225, 255, 0.3);
    white-space: nowrap;
    user-select: none;
    z-index: 1;
    pointer-events: none;
    opacity: var(--symbol-opacity, 0.3);
    text-shadow:
        0 0 calc(10px + var(--symbol-glow, 0px)) rgba(40, 178, 255, 0.28),
        0 0 calc(24px + var(--symbol-glow, 0px)) rgba(40, 178, 255, 0.16);
    transform: translate3d(var(--offset-x, 0px), var(--offset-y, 0px), 0) rotate(var(--rotate)) scale(var(--symbol-scale, 1));
    transform-origin: center;
    transition: color 0.22s ease;
    will-change: transform, opacity, text-shadow;
}

.math-symbol.is-active {
    color: rgba(227, 247, 255, 1);
    opacity: 0.75;
    transform: translate3d(var(--offset-x, 0px), var(--offset-y, 0px), 0) rotate(var(--rotate)) scale(1.08);
    text-shadow:
        0 0 calc(8px + (var(--symbol-glow, 0px) * 0.35)) rgba(255, 255, 255, 0.6),
        0 0 calc(18px + (var(--symbol-glow, 0px) * 0.2)) rgba(103, 208, 255, 0.35);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 30px;
    text-align: center;
    color: #ffffff;
}

.sign-in-link {
    font-size: 18px;
    color: #1a3d6e;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    text-align: center;
    /* padding: 40px 20px 20px; */
    position: relative;
    z-index: 10;
}

.hero-title-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 30px;
    padding: 0 12px;
}

.hero-title {
    display: block;
    width: auto;
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 1.14;
    letter-spacing: 0;
    color: #ffffff;
    text-align: center;
    text-shadow:
        0 4px 0 #053168,
        0 4px 12.7px #28B2FF;
}

.hero-title-break {
    display: none;
}

.cta-button {
    display: inline-block;
    background-image: url('https://trubuddy.me/assets/Tiktakgo/wise-warrior/landing-page-button.png?v=1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 300px;
    height: 80px;
    border: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    margin-bottom: 30px;
}

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

.cta-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    color: #5D3303;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #FFE598;
}

/* Content Section */
.content-section {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 0;
    flex: 1;
    display: flex;
    padding-bottom: 2rem;
}

.game-preview-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    flex: 1;
    padding: 15px 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px;
    background: #ffffff;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gameplay-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

/* Game Layer - Fixed at bottom of preview section */
.game-layer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.game-layer-image {
    width: 100%;
    height: auto;
    display: block;
    padding-left: 0px;
    padding-right: 0px;
}

.game-layer-image-mobile {
    display: none;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: #021732;
    color: white;
    font-size: 22px;
    font-weight: 400;
    position: relative;
    z-index: 100;
    margin-top: auto;
}

.footer-text {
    margin: 0;
    font-size: 22px;
    font-family: 'Satoshi';
    color: #B7E3FF;
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 1600px) and (max-height: 1100px) {
    .decor-layer {
        bottom: clamp(280px, 31vh, 380px);
    }

    .hero-title {
        font-size: 64px;
    }

    .game-preview-container {
        padding: 8px 20px 18px;
    }

    .video-container {
        max-width: 850px;
    }
}

@media (max-width: 1024px) {
    .decor-layer {
        bottom: clamp(260px, 30vh, 380px);
    }

    .hero-title {
        font-size: 64px;
    }
    
    .cta-button {
        width: 250px;
        height: 70px;
    }
    
    .cta-text {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .landing-container {
        height: auto;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .decor-layer {
        bottom: clamp(280px, 36vh, 360px);
    }

    .header {
        padding: 15px 20px;
    }

    .math-symbol {
        font-size: calc(var(--size) * 0.72);
    }
    
    .logo {
        font-size: 14px;
    }
    
    .sign-in-link {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 42px;
        white-space: normal;
    }

    .hero-title-wrap {
        width: fit-content;
        margin: 14px auto 16px;
        padding: 0 10px;
    }

    .content-section {
        padding-bottom: 0;
        display: flex;
        flex: 0 0 auto;
        min-height: 0;
    }

    .game-preview-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        min-height: 0;
        flex: 0 0 auto;
    }

    .video-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow:
            13px -13px 25.6px 0 #00000040,
            -13px 13px 25.6px 0 #00000040;
    }

    .gameplay-video {
        width: 100%;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
    }
    
    .game-layer {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 0;
        z-index: 1;
    }

    .game-layer-image-desktop {
        display: none;
    }

    .game-layer-image-mobile {
        display: none;
    }

    .video-frame {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 9px 9px 0 0;
    }

    .footer {
        padding: 10px 12px;
        margin-top: auto;
        height: auto;
        min-height: 44px;
        flex: 0 0 auto;
        position: relative;
        z-index: 100;
    }
}

@media (max-width: 480px) {
    .decor-layer {
        bottom: clamp(220px, 42vh, 300px);
    }

    .math-symbol {
        font-size: calc(var(--size) * 0.52);
    }

    .hero-title {
        font-size: 32px;
        white-space: normal;
    }

    .hero-title-break {
        display: block;
    }

    .hero-title-wrap {
        margin-top: 12px;
        padding: 0 8px;
    }
    .footer-text {
        font-size: 14px;
    }
    .cta-button {
        width: 200px;
        height: 55px;
        margin-top: 2rem;
    }

    .cta-text {
        font-size: 18px;
    }
}
