/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Color Palette - Liquid Chromatic Studio */
    --primary: #667EEA;
    --primary-rgb: 102, 126, 234;
    --secondary: #764BA2;
    --secondary-rgb: 118, 75, 162;
    --accent: #F093FB;
    --accent-rgb: 240, 147, 251;
    
    /* Backgrounds */
    --background: #0F172A;
    --background-alt: #090E1A; /* Slightly darker than main bg for contrast */
    --surface: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --space-md: 1rem;
    --space-lg: 2rem;
    
    /* Radii */
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

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

/* =========================================
   SECTION STYLING - MANDATORY
   ========================================= */
section, .section {
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    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.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

header nav a:hover {
    color: var(--text);
}

header nav a.btn {
    color: white;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem; /* Header clearance */
    position: relative;
    overflow: hidden;
}

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

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background) 0%, transparent 50%, rgba(15,23,42,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

/* Gradient Mesh Animation (ui_design.animation_style) */
.gradient-mesh {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(at 0% 0%, rgba(var(--primary-rgb), 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--secondary-rgb), 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(var(--accent-rgb), 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(var(--primary-rgb), 0.3) 0px, transparent 50%);
    filter: blur(80px);
    animation: meshMove 20s infinite alternate;
    opacity: 0.6;
}

@keyframes meshMove {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(10deg) scale(1.1); }
}

/* =========================================
   PLAYGROUND (LOCKED)
   ========================================= */
.locked-playground {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: rgba(15, 23, 42, 0.8);
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.locked-playground h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.progress-container {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 1.5rem 0 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

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

.feature-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.3));
}

.step-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--text);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
}

.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: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    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.125rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: serif;
}

.testimonial-card p {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    z-index: 1;
    position: relative;
}

.author {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.author strong {
    color: var(--text);
    font-size: 1.1rem;
}

.author span {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   FAQ
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 0; /* Override padding for internal structure */
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 1rem 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #05080f;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* =========================================
   ANIMATIONS & UTILS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Mobile (max 767px) */
@media (max-width: 767px) {
    html { font-size: 14px; }
    
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: 80vh;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0F172A;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        flex-direction: column;
    }
    
    header nav.active {
        display: flex;
    }
    
    header nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .bento-grid, .steps-grid, .gallery-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    html { font-size: 15px; }
    
    .bento-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 {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    html { font-size: 16px; }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make first two features larger in bento style if we had different content, 
       but for uniform cards 2x2 is good. */
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}