/* Base Reset & Typography */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #050505;
    /* Deep dark background */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 80px 20px 40px 20px;
}

.page-content {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}


/* Logo Setup */

.brand-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    height: 40px;
    width: auto;
    z-index: 10;
    filter: brightness(0) invert(1);
}


/* Live Gradient Background Text */


/* Live Gradient Background Text */

.background-text {
    /* No longer absolute — sits in normal flow above the cards,
       so it scales WITH the cards instead of drifting based on viewport height */
    width: 100%;
    text-align: center;
    font-size: clamp(48px, 15vw, 220px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    z-index: 0;
    margin-bottom: -60px;
    /* pulls the cards up to overlap the text's bottom, like before */
    background: linear-gradient(270deg, #3a3a3a, #8a8a8a, #ffffff, #3a3a3a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
    opacity: 0.4;
    user-select: none;
    pointer-events: none;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Plans Grid */

.plans-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
}


/* Fixes the menu button to the top right corner, mirroring the logo's spacing */


/* =========================================
   MENU BUTTON & OVERLAY STYLES
========================================= */


/* The Menu Button */

.plans-menu-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Hamburger Icon */

.menuIcon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menuIcon span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}


/* Fullscreen Menu Overlay */

.menuPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111;
    /* Dark background to match theme */
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    /* Crucial: Sets the initial state so GSAP can animate it open */
    clip-path: inset(0% 0% 100% 0%);
}


/* Menu Links */

.menuList {
    list-style: none;
}

.menuItem {
    margin-bottom: 20px;
}

.menuItemWrapper {
    overflow: hidden;
    /* Crucial for the text slide-up effect */
}

.menuItemWrapper a {
    color: #fff;
    text-decoration: none;
    font-size: 5vw;
    font-weight: 500;
    font-family: 'Clash Display', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    /* Crucial: Pushes the text down initially so GSAP can animate it up */
    transform: translateY(100%);
    opacity: 0;
}

.menuItemWrapper a:hover {
    color: #a0a0a0;
}


/* Menu Footer */

.menuFooter {
    position: absolute;
    bottom: 40px;
    left: 10vw;
    right: 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.menuFooterLeft a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.menuFooterRight p {
    color: #666;
    font-size: 14px;
}


/* Glassmorphism Cards */

.plan-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    width: 320px;
    flex: 1 1 150px;
    max-width: 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.plan-card.highlight {
    background: rgba(35, 35, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.plan-name {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 40px;
}

.plan-price .month {
    font-size: 20px;
    color: #666;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check {
    flex-shrink: 0;
}

.check {
    background: #222;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.plan-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.plan-btn:hover,
.plan-btn.active {
    background: #fff;
    color: #000;
}


/* Responsive Design for Smaller Screens / Mobile */

@media (max-width: 1050px) {
    /* 2 cards per row once 3 no longer fit */
    .plan-card.highlight {
        transform: none;
    }
    .background-text {
        margin-bottom: -30px;
    }
}

@media (max-width: 800px) {
    body {
        padding: 80px 8px 40px 8px;
    }
    .plans-wrapper {
        gap: 8px;
        padding: 0 4px;
    }
    .plan-card {
        padding: 20px 14px;
    }
    .plan-name {
        font-size: 14px;
    }
    .plan-price {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .plan-features li {
        font-size: 10px;
        gap: 6px;
        margin-bottom: 10px;
    }
    .plan-btn {
        padding: 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* Stack to a single column only on real phone widths */
    .plans-wrapper {
        flex-direction: column;
        align-items: center;
        max-width: 380px;
    }
    .plan-card {
        padding: 24px 16px;
        width: 100%;
        max-width: 340px;
        flex: 0 0 auto;
        min-width: 0;
    }
    .plan-card.highlight {
        transform: none;
    }
    .plan-name {
        font-size: 14px;
    }
    .plan-price {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .plan-features li {
        font-size: 10px;
        gap: 8px;
        margin-bottom: 10px;
    }
    .plan-btn {
        padding: 10px;
        font-size: 11px;
    }
    .background-text {
        margin-bottom: -15px;
    }
}