/* Design Tokens from Figma */
:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-yellow-15: #FCF0DC;
    --color-grey-70: #B6B8C5;
    --color-text-primary: #e1e5ea;
    --color-grey-100: #FFFFFF;
    
    /* Background Gradient */
    --bg-gradient-start: #1a1d2e;
    --bg-gradient-end: #2d1f3a;
    
    /* Button Gradient */
    --button-gradient-start: #8B5CF6;
    --button-gradient-end: #6366F1;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    
    /* Typography */
    --font-family-primary: 'Averta CY', 'Averta_CY', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --font-size-4xl: 64px;
    
    /* Layout */
    --container-max-width: 1440px;
    --content-max-width: 1280px;
    --content-min-width: 400px;
}

/* Font Face - Averta CY */
/* Note: If you have Averta CY font files, add them to assets/fonts/ and update these paths */
@font-face {
    font-family: 'Averta CY';
    src: local('Averta CY Regular'), local('AvertaCY-Regular');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta CY';
    src: local('Averta CY Semibold'), local('AvertaCY-Semibold');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta CY';
    src: local('Averta CY Bold'), local('AvertaCY-Bold');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-family-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 100px 0px var(--spacing-xl) var(--spacing-lg);
    display: grid;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* Content Section (Left) */
.content-section {
    max-width: var(--content-max-width);
    min-width: var(--content-min-width);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    z-index: 10;
    position: relative;
    padding-top: var(--spacing-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 10;
}

.logo-icon {
    width: 202px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-wpt {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.logo-home-game {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Headline */
.headline {
    color: var(--text-primary, #E1E5EA);
    text-shadow: 0 0 26.034px rgba(0, 0, 0, 0.30);
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1.6px;
    max-width: 550px;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Body Text */
.body-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0 0 0;
    max-width:375px;
    min-width: 375px;
    padding: 0;
    text-align: left;
}

.paragraph {
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: #989CAF;
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* CTA Button */




.cta-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 18px 32px;
    background: linear-gradient(180deg, #3F1EE5 0%, #7E2CFF 100%);
    color: var(--color-white);
    border: none;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 108.475px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: fit-content;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-primary);
    letter-spacing: 0.3px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* App Store Badges */
.app-badges {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
}

.app-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    height: 70px;
    flex-shrink: 0;
}

.app-badge:hover {
    transform: translateY(-2px);
}

.app-badge img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.app-badge div {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.google-play {
    width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-store {
    width: 150px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}   



/* Visual Section (Right) */
.visual-section {
    position: absolute;
    height: 100%;
    width:100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: visible;
}

/* Background Pattern */
.background-pattern {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.background-pattern-mirror {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 0;
    overflow: hidden;
    top: 94%;
    bottom: -100%;
    transform: scaleY(-1);
    pointer-events: none;
}

.background-pattern-mirror::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.background-pattern-mirror .pattern-image {
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%);
}

.background-pattern-mirror .sparkles-asset-mirror {
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%);
}

.pattern-image {
    width: 100%;
    height: 100%;
    max-height: 1000px;
    position: absolute;
    top:-25px;
    object-fit: cover;
    mix-blend-mode: color-dodge;
}




/* Phone asset Container */
.phone-container {
    position: relative;
    z-index: 2;
    top: 72px;
    left: 100px;
    transform: rotate(0deg);
    animation-name: vertical-move;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    filter: drop-shadow(-16px 11px 63px rgba(0, 0, 0, 1));
}

@keyframes vertical-move {
    0% {
      transform: translateY(6px) rotate(0deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
      transform: translateY(6px) rotate(0deg);
    }
}

.phone-container-content {
    width: 250px;
    height: auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.phone-screen p {
    margin: 8px 0;
}

.phone-screen-mirror {
    left: 0%;
    top: 78%;
    position: absolute;
    animation-name: mirror-vertical-move;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes mirror-vertical-move {
    0% {
      top: 100%; /* Start position - synchronized with main phone */
    }
    50% {
        top: 102%; /* End position - moves down in sync with main phone */
    }
    100% {
      top: 100%; /* Return to start - synchronized with main phone */
    }
}

.phone-screen-mirror::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black background with matching gradient fade */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
    z-index: -1;
    pointer-events: none;
    border-radius: 40px;
}

.phone-screen-mirror img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%);
}

.phone-screen-content {
    position: absolute;
    top: 2%;
    left: 4%;
    width: 98%;
    height: 96%;
    overflow: hidden;
}

.phone-screen-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}







/* Decorative Elements */
.decorative-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sparkles-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height:950px;
    top: -25px;
    z-index: 1.5;
    pointer-events: none;
}

.sparkles-container-mirror {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height:950px;
    top: -25px !important;
    z-index: 1;
    pointer-events: none;
}

.sparkles-asset {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    transform: scaleX(0.9);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.9) 90%, rgba(0,0,0,0) 100%) !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.9) 90%, rgba(0,0,0,0) 100%) !important;
}

.sparkles-1 {
    opacity: 0.85;
    animation: float-1 6s ease-in-out infinite;
}

.sparkles-2 {
    opacity: 0.85;
    animation: float-2 6s ease-in-out infinite;
}

.sparkles-asset-mirror {
    position: absolute;
    transform: scaleY(-1) !important;
    top: 290px !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    transform: scaleX(0.9);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0.9) 100%) !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.9) 90%, rgba(0,0,0,0) 100%) !important;
    /* Inherits scaleY(-1) from parent .background-pattern-mirror for inverse effect */
}

.sparkles-mirror-1 {
    opacity: 0.45;
    animation: float-mirror-1 6s ease-in-out infinite;
}

.sparkles-mirror-2 {
    opacity: 0.45;
    animation: float-mirror-2 6s ease-in-out infinite;
}

.chips-asset {
    position: absolute;
    left: 32%;
    top: 59%;
    width: auto;
    height: auto;
    max-width: 300px;
    z-index: 1;
    pointer-events: none;
}

.chips-big {
    transform: translateY(-50%);
    animation: float-chips 6s ease-in-out infinite;
}

.chips-small {
    transform: translateY(-50%);
    animation: float-mirror-chips 6s ease-in-out infinite;
}

.chip {
    position: absolute;
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
    animation: float 3s ease-in-out infinite;
}

.chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chip-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.chip-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.chip-2 {
    bottom: 30%;
    right: 5%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
    50% {
        transform: translateY(-20px) rotate(1.5deg);
    }
}

@keyframes float-mirror {
    0%, 100% {
        transform: translateY(-20px) rotate(1.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
}

@keyframes float-1 {
    0%, 100% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
    50% {
        transform: translateY(-20px) rotate(1.5deg);
    }
}

@keyframes float-mirror-1 {
    0%, 100% {
        transform: translateY(-20px) rotate(1.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
    50% {
        transform: translateY(-20px) rotate(1.5deg);
    }
}

@keyframes float-mirror-2 {
    0%, 100% {
        transform: translateY(-20px) rotate(1.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
}

@keyframes float-chips {
    0%, 100% {
        transform: translateY(calc(-50% - 10px)) rotate(-1.5deg);
    }
    50% {
        transform: translateY(calc(-50% - 20px)) rotate(1.5deg);
    }
}

@keyframes float-mirror-chips {
    0%, 100% {
        transform: translateY(calc(-50% - 20px)) rotate(1.5deg);
    }
    50% {
        transform: translateY(calc(-50% - 10px)) rotate(-1.5deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        padding: var(--spacing-lg);
    }
    
    .visual-section {
        min-height: 400px;
        order: -1;
    }
    
    .phone-container-content {
        width: 250px;
    }
    
    .sparkles-asset {
        object-fit: contain;
    }
    
    .headline {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: var(--font-size-2xl);
    }
    
    .paragraph {
        font-size: var(--font-size-base);
    }
    
    .logo-wpt {
        font-size: var(--font-size-xl);
    }
    
    .phone-container-content {
        width: 100%;
    }
    
    .phone-screen-content {
        top: 2%;
        left: 4%;
        width: 92%;
        height: 96%;
    }
    
    .sparkles-asset {
        object-fit: contain;
    }
    
    .app-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-button {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .container {
        padding: 50px 0px var(--spacing-xl) var(--spacing-lg);
    }
}

@media (max-width: 500px) {
    /*  Container and Spacing */
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: flex-start;
    }
    
    .content-section {
        gap: var(--spacing-md);
        display: contents;
    }
    
    .logo {
        order: 1;
    }
    
    .headline {
        font-size: var(--font-size-xl);
        order: 2;

    }
    
    /*  Logo and Headline */
    .logo {
        order: 1;
        margin-bottom: var(--spacing-sm);
        justify-content: flex-start;
        align-items: flex-start;
        align-self: flex-start;
        width: 100%;
    }
    
    .logo-icon {
        width: 101px;
        height: 32px;
        justify-content: flex-start;
    }
    
    .headline {
        order: 2;
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
        max-width: 50%;
        padding: var(--spacing-sm);
        /* background: rgba(26, 29, 46, 0.6); */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        position: absolute;
        z-index: 100;
        top: 190px;
        left: 0px;
    }
    
    /* Phone Container Sizing and Positioning */
    .visual-section {
        order: 3;
        position: absolute;
        top: 0;
        left: 0;
        height: auto;
        min-height: 300px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Body Text Constraints */
    .body-text {
        order: 4;
        min-width: unset;
        max-width: 100%;
        margin: 350px 0 0 0;
        padding: 0;
        position: relative;
        z-index: 10;
    }
    
    .cta-button {
        position: relative;
        z-index: 10;
        order: 3;
        top: 360px;
    }
    
    .app-badges {
        order: 5;
        position: relative;
        z-index: 10;
    }
    
    .phone-container {
        left: 25%;
        top: 0;
        position: relative;
        margin: 0 auto;
        animation-name: vertical-move-mobile;
    }
    
    @keyframes vertical-move-mobile {
        0% {
            transform: scale(0.65) translateY(6px) rotate(0deg);
        }
        50% {
            transform: scale(0.65) translateY(0px) rotate(0deg);
        }
        100% {
            transform: scale(0.65) translateY(6px) rotate(0deg);
        }
    }
    
    .phone-container-content {
        width: 265px;
    }
    
    /* Phone Screen Content Clipping */
    .phone-screen-content {
        width: 92%;
        height: 96%;
        top: 2%;
        left: 4%;
    }
    

    .cta-button {
        width: 100%;
        padding: 16px 24px;
        font-size: var(--font-size-base);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    

    .app-badges {
        flex-direction: row;
        gap: var(--spacing-md);
        justify-content: center;
        align-items: center;
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    .app-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .google-play {
        height: 70px;
    }
    
    .app-store {
        height: 55px;
    }
    
    .phone-screen-mirror {
        display: none;
    }
    
    .background-pattern-mirror {
        display: none;
    }
    
    .sparkles-asset,
    .sparkles-asset-mirror {
        opacity: 0.3;
    }
    
    .chips-asset {
        opacity: 0.5;
    }
}

/* FAQ and Terms styles moved to separate stylesheets:
   - FAQ styles: style/support.css
   - Terms styles: style/terms.css
*/

/* Footer */
.footer {
    width: 100%;
    background: var(--bg-gradient-start);
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer > * {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-nav-link {
    color: var(--color-grey-70);
    font-size: var(--font-size-base);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: var(--font-family-primary);
}

.footer-nav-link:hover {
    color: var(--color-white);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--color-grey-70);
    opacity: 0.3;
    margin-bottom: var(--spacing-lg);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-legal-text {
    color: var(--color-grey-70);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
    font-family: var(--font-family-primary);
    margin: 0;
}

.footer-legal-link {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #6BA3F0;
    text-decoration: underline;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-nav-link {
        font-size: var(--font-size-sm);
    }
    
    .footer-legal-text {
        font-size: var(--font-size-xs);
    }
}

/* Subsection Headers - Shared Background and Logo Styles */
.support-header,
.privacy-header,
.terms-header,
.cookies-header {
    position: relative;
    overflow: hidden;
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.support-header::before,
.privacy-header::before,
.terms-header::before,
.cookies-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/png/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.subsection-header-logo-link {
    position: relative;
    top: -50px;
    left: 0;
    z-index: 20;
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-md);
    align-self: flex-start;
}

.subsection-header-logo {
    width: 202px;
    height: 64px;
    object-fit: contain;
    display: block;
}

/* Ensure header content appears above background */
.support-header > h1,
.privacy-header > h1,
.terms-header > h1,
.cookies-header > h1 {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    margin-top: -80px;
}

