/* =========================================
   CSS VARIABLES - FROM THEME 281
   ========================================= */
:root {
    /* Theme Colors */
    --primary: #4270d3;
    --primary-rgb: 66, 112, 211;
    --primary-hover: #2e5cb8;
    --secondary: #c27458;
    --accent: #fbad2a;
    
    /* Backgrounds */
    --background: #FFFFFF;
    --background-alt: #F8FAFC;
    --surface: #FFFFFF;
    
    /* Text */
    --text: #000000;
    --text-primary: #000000;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* UI Elements */
    --border: #E2E8F0;
    --border-radius: 0px; /* Sharp corners as per UI design */
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

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

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

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

/* =========================================
   SECTION STYLING - MANDATORY
   ========================================= */
section {
    padding: 5rem 2rem;
    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: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 112, 211, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(66, 112, 211, 0.05);
}

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

/* Cards (Base) */
.card, .step-card, .feature-card, .testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

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

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

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

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

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

#header-cta {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

#header-cta:hover {
    background: var(--primary-hover);
    color: white;
}

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

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    background: var(--background);
}

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

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

.hero-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(66, 112, 211, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(66, 112, 211, 0.1) 100%);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 4s ease-in-out infinite;
}

@keyframes gridMove { 
    to { background-position: 60px 60px; } 
}

@keyframes scan { 
    0%, 100% { top: 0; opacity: 0; } 
    50% { opacity: 1; }
    100% { top: 100%; } 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
}

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

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

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

/* =========================================
   LOCKED PLAYGROUND
   ========================================= */
#playground {
    background: var(--background-alt);
}

.playground-locked {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Technical grid background for locked state */
.playground-locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.lock-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.lock-icon {
    width: 80px;
    height: 80px;
    background: rgba(66, 112, 211, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.lock-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* =========================================
   HOW IT WORKS (TIMELINE)
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Timeline connector */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--surface);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--background);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.feature-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(194, 116, 88, 0.1); /* Secondary color faint */
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* =========================================
   GALLERY (MASONRY/GRID)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/5; /* Consistent aspect ratio */
    cursor: pointer;
}

.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;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-prompt {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

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

.testimonial-quote {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

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

.author-name {
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

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

.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;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    padding-right: 2rem;
    margin: 0;
}

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

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: block;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.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);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .steps-grid, .gallery-grid, .testimonials-grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    
    .menu-toggle { display: block; }
    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        align-items: center;
    }
    
    header nav.active { display: flex; }
    
    .hero {
        padding-top: 6rem;
        text-align: center;
    }
    
    .steps-grid, .gallery-grid, .testimonials-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .steps-grid::before { display: none; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn { width: 100%; }
}