/* ===================================================================
   ANTISTRESS GAMES — Landing Page Styles
   =================================================================== */

/* -------------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------------------------------- */
:root {
    /* Purple palette */
    --clr-deepest: #0A0312;
    --clr-darker: #12061E;
    --clr-dark: #1A0A2E;
    --clr-primary: #3D1259;
    --clr-mid: #5B2D7A;
    --clr-light: #8B5BA8;
    --clr-pale: #C9A8E8;

    /* Lotus pinks */
    --clr-lotus: #E91E63;
    --clr-lotus-light: #F48FB1;
    --clr-lotus-pale: #FCE4EC;

    /* Neutrals */
    --clr-cream: #FDF8F5;
    --clr-cream-tint: #F5EDF8;
    --clr-white: #FFFFFF;
    --clr-text: #2D1B3D;
    --clr-text-muted: #6B5A7A;

    /* Layout */
    --sidebar-w: 220px;
    --content-max: 1100px;

    /* Typography */
    --ff-display: 'Lato', 'Trebuchet MS', sans-serif;
    --ff-body: 'Lato', 'Trebuchet MS', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--clr-text);
    background: var(--clr-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

sup {
    font-size: 0.45em;
    vertical-align: super;
    opacity: 0.6;
}

/* -------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 600;
    line-height: 1.2;
}

/* -------------------------------------------------------------------
   4. SIDEBAR
   ------------------------------------------------------------------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--clr-darker);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__brand {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.sidebar__logo {
    width: 100%;
    height: auto;
}

.sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar__link {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.sidebar__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 18px;
    background: var(--clr-lotus);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-spring);
}

.sidebar__link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar__link.active {
    color: var(--clr-white);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar__link.active::before {
    transform: translateY(-50%) scaleY(1);
}

.sidebar__footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__footer p {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------
   5. MOBILE HEADER
   ------------------------------------------------------------------- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 6, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-header__brand {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.mobile-header__logo {
    height: 28px;
    width: auto;
}

/* Hamburger */
.hamburger {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 3, 18, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* -------------------------------------------------------------------
   6. MAIN CONTENT
   ------------------------------------------------------------------- */
.content {
    margin-left: var(--sidebar-w);
}

/* -------------------------------------------------------------------
   7. HERO SECTION
   ------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, var(--clr-mid) 0%, var(--clr-primary) 35%, var(--clr-dark) 70%, var(--clr-darker) 100%);
    z-index: 0;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Floating orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    z-index: 2;
    animation: orbFloat linear infinite, orbFadeIn 1.5s ease forwards;
}

.hero__orb--1 {
    width: 350px;
    height: 350px;
    background: var(--clr-mid);
    top: 5%;
    left: 15%;
    animation-duration: 25s;
    animation-delay: 0s, 0.2s;
}

.hero__orb--2 {
    width: 250px;
    height: 250px;
    background: var(--clr-lotus);
    top: 55%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: 0s, 0.5s;
    opacity: 0;
    filter: blur(100px);
}

.hero__orb--3 {
    width: 200px;
    height: 200px;
    background: var(--clr-light);
    bottom: 15%;
    left: 25%;
    animation-duration: 30s;
    animation-delay: 0s, 0.8s;
}

.hero__orb--4 {
    width: 180px;
    height: 180px;
    background: var(--clr-lotus-light);
    top: 30%;
    right: 35%;
    animation-duration: 22s;
    animation-delay: 0s, 1.1s;
    filter: blur(90px);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-25px, 40px) scale(0.95); }
    75% { transform: translate(30px, 25px) scale(1.02); }
}

@keyframes orbFadeIn {
    from { opacity: 0; }
    to { opacity: 0.25; }
}


.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--clr-white);
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.store-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.store-badge div {
    text-align: left;
    line-height: 1.2;
}

.store-badge small {
    font-size: 0.55rem;
    opacity: 0.65;
    display: block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.store-badge strong {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Bottom bar with scroll hint */
.hero__bottom-bar {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(10, 3, 18, 0.7) 0%, transparent 100%);
    margin-top: auto;
}

.hero__scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.3s;
}

.hero__scroll-hint:hover {
    color: var(--clr-white);
}

.hero__scroll-hint span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.hero__scroll-hint svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* -------------------------------------------------------------------
   8. SECTIONS (Common)
   ------------------------------------------------------------------- */
.section {
    padding: 6rem 2rem;
}

.section__inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.section__inner--narrow {
    max-width: 720px;
}

.section__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--clr-lotus);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1.25rem;
    color: var(--clr-text);
}

.section__lead {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    max-width: 620px;
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.section--light {
    background: var(--clr-cream);
}

.section--tinted {
    background: var(--clr-cream-tint);
}

.section--dark {
    background: var(--clr-dark);
}

.section--dark .section__label {
    color: var(--clr-lotus-light);
}

.section--dark .section__title {
    color: var(--clr-white);
}

.section--dark .section__lead {
    color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------------
   9. ANTISTRESS — Pillars
   ------------------------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar {
    background: var(--clr-white);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    border: 1px solid rgba(61, 18, 89, 0.06);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-lotus), var(--clr-lotus-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 18, 89, 0.08);
}

.pillar:hover::before {
    transform: scaleX(1);
}

.pillar__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--clr-mid);
}

.pillar__icon svg {
    width: 100%;
    height: 100%;
}

.pillar__title {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--clr-text);
}

.pillar__text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* -------------------------------------------------------------------
   10. GAMES — Grid & Cards
   ------------------------------------------------------------------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.game-card {
    display: flex;
    gap: 1.5rem;
    background: var(--clr-white);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(61, 18, 89, 0.06);
    transition: all 0.4s var(--ease-out);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(61, 18, 89, 0.1);
}

.game-card__icon-wrap {
    flex-shrink: 0;
}

.game-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.game-card__body {
    flex: 1;
    min-width: 0;
}

.game-card__name {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--clr-text);
}

.game-card__desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.game-card__stores {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.game-card__store {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--clr-mid);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: var(--clr-cream-tint);
    border: 1px solid rgba(91, 45, 122, 0.1);
    transition: all 0.25s;
}

.game-card__store:hover {
    background: var(--clr-mid);
    color: var(--clr-white);
    border-color: var(--clr-mid);
}

.game-card__store svg {
    width: 14px;
    height: 14px;
}

/* -------------------------------------------------------------------
   11. COMMUNITY — Grid & Cards
   ------------------------------------------------------------------- */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--clr-white);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(61, 18, 89, 0.06);
    transition: all 0.35s var(--ease-out);
}

.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(61, 18, 89, 0.08);
    border-color: rgba(61, 18, 89, 0.12);
}

.community-card__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1877F2;
    border-radius: 10px;
    color: var(--clr-white);
}

.community-card__icon svg {
    width: 22px;
    height: 22px;
}

.community-card__body {
    flex: 1;
    min-width: 0;
}

.community-card__body h3 {
    font-family: var(--ff-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text);
    line-height: 1.3;
}

.community-card__body p {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.community-card__arrow {
    font-size: 1.2rem;
    color: var(--clr-pale);
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}

.community-card:hover .community-card__arrow {
    color: var(--clr-mid);
    transform: translateX(4px);
}

/* -------------------------------------------------------------------
   12. ABOUT
   ------------------------------------------------------------------- */
.about__content {
    margin-bottom: 3rem;
}

.about__content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about__content p:last-child {
    margin-bottom: 0;
}

.about__content strong {
    color: var(--clr-lotus-light);
    font-weight: 600;
}

.about__brand-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about__lotus {
    width: 48px;
    height: auto;
    opacity: 0.7;
}

.about__brand-mark span {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------- */
.footer {
    background: var(--clr-deepest);
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.25s;
}

.footer__links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer__copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------
   14. SCROLL REVEAL ANIMATION
   ------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.pillars .reveal:nth-child(2) { transition-delay: 0.1s; }
.pillars .reveal:nth-child(3) { transition-delay: 0.2s; }

.games-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.games-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.games-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.community-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.community-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.community-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

/* Hero entrance animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__scroll-hint {
    animation: heroFadeIn 1s var(--ease-out) 0.6s both;
}

/* -------------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 300;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .content {
        margin-left: 0;
    }

    .hero {
        padding-top: 80px;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .game-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-card__stores {
        justify-content: center;
    }

    .section__title {
        font-size: 1.6rem;
    }
}

/* -------------------------------------------------------------------
   16. COOKIE CONSENT BANNER
   ------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--clr-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner__text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    flex: 1;
}

.cookie-banner__link {
    color: var(--clr-lotus-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.cookie-banner__link:hover {
    color: var(--clr-lotus);
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.cookie-banner__btn--decline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner__btn--decline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__btn--accept {
    background: var(--clr-lotus);
    color: var(--clr-white);
}

.cookie-banner__btn--accept:hover {
    background: #d81557;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
}

@media (max-width: 900px) {
    .cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
}
