/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette from UI Design */
    --primary: #3b7d02;
    --primary-rgb: 59, 125, 2;
    --secondary: #23b2d4;
    --secondary-rgb: 35, 178, 212;
    --accent: #dbaf6b;
    --accent-rgb: 219, 175, 107;
    
    /* Backgrounds */
    --background: #FFFFFF;
    --background-alt: #F5F9F2;
    --surface: #FFFFFF;
    
    /* Text */
    --text-primary: #000000;
    --text-secondary: #4A4A4A;
    --text-muted: #888888;
    
    /* UI Elements */
    --border: #E0E6DD;
    --border-radius: 24px;
    
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--background);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-break: break-word;
}

p {
    margin-bottom: 1.5rem;
    word-break: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2e6102);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

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

.btn-secondary:hover {
    background: var(--background-alt);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    gap: 2rem;
}

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav a:not(.btn) {
    font-weight: 500;
    color: var(--text-secondary);
}

header nav a:not(.btn):hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1; /* Fade background image for animation visibility */
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Morphing Blobs Animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: floatBlob 20s infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--background) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   SECTIONS & CARDS
   ========================================= */
section {
    padding: 5rem 1.5rem;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--background);
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary);
}

.card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--secondary);
}

/* =========================================
   LOCKED PLAYGROUND
   ========================================= */
.locked-playground {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 2px dashed var(--secondary);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.locked-playground::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 125, 2, 0.05), rgba(35, 178, 212, 0.05));
    z-index: 0;
}

.lock-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.locked-playground h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.locked-playground p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.locked-playground .btn {
    position: relative;
    z-index: 1;
}

/* =========================================
   FEATURES GRID
   ========================================= */
.features-grid {
    display: grid;
    gap: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--background-alt);
    border-radius: 16px; /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* =========================================
   BENTO GRID (Key Features)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.bento-item {
    height: 100%;
}

.feature-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

/* =========================================
   SUB MODELS
   ========================================= */
.submodel-card h3 {
    color: var(--secondary);
}

/* =========================================
   HOW IT WORKS (Steps)
   ========================================= */
.steps-grid {
    display: grid;
    gap: 2rem;
    position: relative;
}

/* Connecting line for desktop */
@media (min-width: 1024px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: var(--border);
        z-index: 0;
    }
}

.step-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

/* =========================================
   GALLERY (Masonryish)
   ========================================= */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
    display: grid;
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =========================================
   FAQ
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Approximate max height */
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 5rem 1.5rem 2rem;
}

.footer-content {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =========================================
   RESPONSIVE QUERIES
   ========================================= */
/* Tablet (768px+) */
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        align-items: flex-start;
    }
    
    header nav.active {
        display: flex;
    }
    
    header nav a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
}