/**
 * The Green Game Premium Landing Page Styling
 * Design System:
 * - Primary Green: #7ad03a (App Green)
 * - Secondary Green: #344f2a (Brand Green)
 * - Accent Gold: #f5a623 (Sugar/Rewards)
 * - Backgrounds: Clean White (#ffffff) & Soft Gray (#f8f9fa)
 * - Typography: Neuton (Headings), Roboto (Body)
 */

/* ===== Core Layout & Variables ===== */
:root {
    --gg-primary: #7ad03a;
    --gg-primary-dark: #6cb833;
    --gg-secondary: #344f2a;
    --gg-gold: #f5a623;
    --gg-dark: #1a1a1a;
    --gg-gray: #f4f6f8;
    --gg-border: #e1e4e8;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

.green-game-page {
    font-family: 'Roboto', sans-serif;
    color: var(--gg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.green-game-page .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero Section ===== */
.green-game-hero {
    position: relative;
    min-height: 90vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    /* Light background for cleaner look */
    overflow: hidden;
}

.green-game-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Use a heavy wash over any bg image or just a subtle gradient */
.hero-gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(122, 208, 58, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(245, 166, 35, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gg-border);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gg-secondary);
}

.badge-icon {
    font-size: 16px;
}

/* Typography */
.hero-title {
    font-family: 'Neuton', serif;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title-main {
    display: block;
    font-size: 80px;
    font-weight: 700;
    color: var(--gg-secondary);
    letter-spacing: -1px;
}

.hero-title-sub {
    display: block;
    font-size: 32px;
    font-weight: 400;
    color: var(--gg-primary);
    margin-top: 8px;
}

.hero-description {
    font-size: 20px;
    color: #555;
    max-width: 500px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-large {
    padding: 18px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gg-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(122, 208, 58, 0.4);
}

.btn-primary:hover {
    background: var(--gg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(122, 208, 58, 0.5);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--gg-secondary);
    border: 1px solid var(--gg-border);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--gg-primary);
    color: var(--gg-primary);
}

/* Features List Mini */
.hero-features-list {
    display: flex;
    gap: 24px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.check-icon {
    color: var(--gg-primary);
    font-weight: bold;
}

/* Hero Visual & Modern Phone */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-phone-mockup {
    position: relative;
    width: 340px;
}

.phone-frame-modern {
    background: #000;
    border-radius: 48px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #333;
    aspect-ratio: 9/19;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Cards */
.hero-floating-card {
    position: absolute;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 20;
    animation: float 4s ease-in-out infinite;
}

.card-sugar {
    top: 15%;
    left: -60px;
    animation-delay: 0s;
}

.card-claim {
    bottom: 20%;
    right: -40px;
    animation-delay: 2s;
}

.card-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #fff8e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-weight: 700;
    color: var(--gg-dark);
    font-size: 16px;
}

.card-label {
    font-size: 12px;
    color: #888;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== Registration / How it Works ===== */
.join-section {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--gg-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Neuton', serif;
    font-size: 48px;
    color: var(--gg-secondary);
    margin-bottom: 24px;
}

.section-intro {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.join-steps-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 80px;
}

.join-step-item {
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.step-image-wrapper {
    width: 100%;
    height: 220px;
    background: var(--gg-gray);
    border-radius: 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--gg-border);
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.step-icon-large {
    font-size: 64px;
}

.step-content {
    position: relative;
    padding: 0 16px;
}

.step-number {
    display: inline-block;
    font-family: 'Neuton', serif;
    font-size: 24px;
    color: var(--gg-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.join-step-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--gg-dark);
}

.join-step-item p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

.join-step-arrow {
    padding-top: 100px;
    color: var(--gg-border);
}

/* ===== Features Blocks ===== */
.features-section {
    padding: 100px 0;
    background: #fcfcfc;
}

.feature-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 120px;
    max-width: 1200px;
    /* Constrain separate blocks slightly more than page */
    margin-left: auto;
    margin-right: auto;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 500px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-content h2 {
    font-family: 'Neuton', serif;
    font-size: 40px;
    color: var(--gg-secondary);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: #555;
    font-size: 16px;
}

.feature-list li::before {
    content: '•';
    color: var(--gg-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image {
    max-width: 450px;
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

/* ===== Terms Accordion ===== */
.terms-section {
    padding: 40px 0 80px;
    background: #fcfcfc;
}

.terms-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.terms-toggle-btn {
    width: 100%;
    padding: 24px 32px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--gg-secondary);
    transition: background 0.2s;
}

.terms-toggle-btn:hover {
    background: #f8f9fa;
}

.chevron {
    transition: transform 0.3s ease;
}

.terms-toggle-btn.active .chevron {
    transform: rotate(180deg);
}

.terms-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.terms-inner {
    padding: 32px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.terms-inner h3,
.terms-inner h4 {
    color: var(--gg-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.terms-inner ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

/* ===== CTA Footer ===== */
.green-game-cta-footer {
    background: var(--gg-secondary);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: 'Neuton', serif;
    font-size: 40px;
    margin-bottom: 16px;
    color: #fff;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.cta-content .address {
    font-weight: 600;
    color: var(--gg-primary);
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .green-game-hero {
        padding: 60px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-cta-group,
    .hero-features-list {
        justify-content: center;
    }

    .hero-title-main {
        font-size: 56px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .card-sugar {
        left: 0;
    }

    .card-claim {
        right: 0;
    }

    .join-steps-visual {
        flex-direction: column;
        align-items: center;
    }

    .join-step-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 600px) {

    /* Make NAV container subtler/shorter on mobile */
    .site-header .header-inner {
        padding: 10px 20px !important;
        min-height: auto !important;
    }

    .site-header .logo {
        max-height: 40px !important;
        width: auto !important;
    }

    /* Prevent hero from going under menu - ensure content starts after nav */
    .green-game-hero {
        padding-top: 140px;
        /* Force extra space at top */
    }

    .hero-title-main {
        font-size: 38px;
        line-height: 1.1;
    }

    .hero-title-sub {
        font-size: 18px;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .hero-phone-mockup {
        width: 260px;
    }

    /* Scale down floating cards and pull them in tighter */
    .hero-floating-card {
        transform: scale(0.85);
        padding: 10px 14px;
    }

    .card-sugar {
        left: -10px;
        top: 10%;
    }

    .card-claim {
        right: -10px;
        bottom: 15%;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .feature-image {
        max-width: 100%;
    }

    /* Adjust padding for terms toggle */
    .terms-toggle-btn {
        padding: 20px;
        font-size: 16px;
    }
}