/* --- Global Scroll Animation Classes --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Full Screen Structural Layout --- */
.fullscreen-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5%;
    box-sizing: border-box;
    position: relative;
}

.content-wrapper { width: 100%; max-width: 1400px; margin: 0 auto; z-index: 2; }
.bg-gray { background: #f9fbfd; }

/* --- Hero & CTA: True Ocean Waves Background (LIGHT THEME) --- */
.hero-section, .bottom-cta {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%); 
    color: var(--dark-bg); /* Dark text for light theme */
    text-align: center;
    overflow: hidden;
    position: relative;
}

.true-ocean-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; /* Height of the waves at the bottom */
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200vw; /* Double the viewport width for seamless sliding */
    height: 100%;
    background-repeat: repeat-x;
    background-size: 1000px 100%; /* Size of one complete sine wave cycle */
    transform-origin: bottom;
}

/* Uses inline SVG for pure mathematical sine waves */
.wave-back {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,150 L0,150 Z' fill='rgba(125, 211, 252, 0.4)'/%3E%3C/svg%3E");
    animation: wave-slide 20s linear infinite;
    z-index: 1;
    transform: scaleY(1.4);
}

.wave-mid {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,150 L0,150 Z' fill='rgba(56, 189, 248, 0.5)'/%3E%3C/svg%3E");
    animation: wave-slide 15s linear infinite;
    z-index: 2;
    transform: scaleY(1.1);
}

.wave-front {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,150 L0,150 Z' fill='rgba(14, 165, 233, 0.8)'/%3E%3C/svg%3E");
    animation: wave-slide 10s linear infinite;
    z-index: 3;
    transform: scaleY(0.8);
}

/* Slides the wave exactly 1000px (one tile width) to loop perfectly */
@keyframes wave-slide {
    0% { transform: translateX(0) scaleY(var(--scale, 1)); }
    100% { transform: translateX(-1000px) scaleY(var(--scale, 1)); }
}

/* Re-applying the specific scales to the keyframe variables for the front/mid/back */
.wave-back { --scale: 1.4; }
.wave-mid { --scale: 1.1; }
.wave-front { --scale: 0.8; }

.hero-content, .cta-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Typography & Buttons (Updated for Light Theme) --- */
.hero-section h1, .bottom-cta h2 { 
    font-size: 5.5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    color: var(--dark-bg); /* Solid dark blue */
}

.hero-section p, .bottom-cta p { 
    font-size: 1.6rem; 
    color: #475569; /* Slate gray for readability */
    margin-bottom: 3.5rem; 
    max-width: 850px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6;
}

.btn-large { padding: 18px 40px; font-size: 1.2rem; border-radius: 12px; }

.badge-pill { 
    background: white; 
    color: var(--primary-blue);
    padding: 10px 24px; 
    border-radius: 50px; 
    display: inline-block; 
    margin-bottom: 2rem; 
    border: 1px solid rgba(14, 165, 233, 0.2); 
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary { 
    background: transparent; 
    color: var(--primary-blue); 
    border: 2px solid var(--primary-blue); 
    border-radius: 8px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.2s; 
}
.btn-secondary:hover { 
    background: var(--primary-blue); 
    color: white; 
}

/* --- Nav Login Button --- */
.btn-login { background: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); padding: 8px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s; }
.btn-login:hover { background: var(--primary-blue); color: white; }
.btn-login i { margin-right: 6px; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: var(--primary-blue); font-size: 2.5rem; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-20px) translateX(-50%); } 60% { transform: translateY(-10px) translateX(-50%); } }

/* --- FAQ Styles --- */
.faq-container { max-width: 1000px; margin: 0 auto; width: 100%; }
.faq-card { background: white; border: 1px solid #eee; border-radius: 16px; margin-bottom: 1.5rem; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.faq-question { padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s;}
.faq-question:hover { background: #fcfcfc; }
.faq-question h3 { font-size: 1.6rem; margin: 0; color: var(--dark-bg); font-weight: 600; }

.faq-icon { position: relative; width: 26px; height: 26px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background: var(--primary-blue);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; border-radius: 4px;
}
.faq-icon::before { width: 100%; height: 3px; }
.faq-icon::after { width: 3px; height: 100%; }

.faq-card.is-open .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer p { padding: 0 2.5rem 2.5rem; font-size: 1.3rem; color: #666; line-height: 1.8; margin: 0; }

/* --- Marquee --- */
.marquee-section { padding: 3rem 0; border-bottom: 1px solid #eee; background: white; }
.marquee-label { text-align: center; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 2rem; }
.marquee-container { display: flex; width: 100vw; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-flex; align-items: center; animation: marquee 40s linear infinite; }
.marquee-item { font-size: 1.8rem; font-weight: 700; color: #a0aec0; margin: 0 4rem; display: flex; align-items: center; gap: 15px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Stats Bar --- */
.stats-bar { display: flex; justify-content: space-between; background: white; padding: 4rem 5%; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 2rem; width: 100%; }
.stat-item { text-align: center; flex: 1; min-width: 200px; border-right: 1px solid #eee; }
.stat-item:last-child { border-right: none; }
.stat-item h3 { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 0.5rem; font-weight: 800; }
.stat-item h3 span { font-size: 1.3rem; color: #888; }
.stat-item p { color: #555; font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Shared Typography --- */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 4rem; color: var(--dark-bg); margin-bottom: 1.5rem; line-height: 1.1; }
.section-header p { font-size: 1.4rem; color: #666; max-width: 900px; margin: 0 auto; line-height: 1.6; }

/* --- Features Section --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.feature-box { background: white; padding: 4rem; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.02); text-align: center; }
.feature-icon { font-size: 4rem; color: var(--light-blue); margin-bottom: 2rem; }
.feature-box h3 { font-size: 2.2rem; color: var(--dark-bg); margin-bottom: 1rem; }
.feature-box p { color: #555; line-height: 1.7; font-size: 1.25rem; }

/* --- Task Categories Grid --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.category-card { background: white; padding: 3.5rem; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }
.cat-icon { width: 80px; height: 80px; background: #e3f2fd; color: var(--primary-blue); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 2rem; }
.category-card h3 { font-size: 2.2rem; color: var(--dark-bg); margin-bottom: 1rem; }
.category-card p { color: #555; line-height: 1.6; margin-bottom: 1.5rem; font-size: 1.25rem; }
.cat-list { list-style: none; margin-bottom: 2.5rem; flex: 1; }
.cat-list li { margin-bottom: 1rem; color: #444; font-size: 1.2rem; display: flex; align-items: center; gap: 12px; }
.cat-list i { color: var(--primary-blue); }
.cat-link { color: var(--primary-blue); font-weight: 800; text-decoration: none; font-size: 1.3rem; transition: color 0.2s; display: block; margin-top: auto; }
.cat-link:hover { color: var(--dark-bg); }

.highlight-card { background: linear-gradient(145deg, #fffcf5 0%, #ffffff 100%); border: 1px solid #ffe0b2; }
.highlight-card .cat-icon { background: #ffe0b2; color: #e65100; }
.highlight-card .cat-list i { color: #e65100; }
.highlight-card .cat-link { color: #e65100; }
.highlight-card .cat-link:hover { color: var(--dark-bg); }

/* --- Discord Community Banner --- */
.community-banner { background: #5865F2; color: white; }
.community-inner { display: flex; gap: 6rem; align-items: center; justify-content: space-between; width: 100%; }
.community-content { flex: 1; max-width: 700px; }
.community-content h2 { font-size: 4rem; margin-bottom: 1.5rem; line-height: 1.1; color: white;}
.community-content p { font-size: 1.4rem; line-height: 1.7; margin-bottom: 2.5rem; color: #e0e6ff; }
.community-perks { list-style: none; margin-bottom: 3rem; }
.community-perks li { margin-bottom: 1.2rem; font-size: 1.3rem; display: flex; align-items: flex-start; gap: 15px; }
.community-perks i { font-size: 1.8rem; margin-top: 2px; }
.btn-discord { background: white; color: #5865F2; border: none; }
.btn-discord:hover { background: #f0f0f0; }
.community-image { flex: 1; display: flex; justify-content: center; }
.mockup-box { background: #36393f; border-radius: 12px; width: 100%; max-width: 600px; box-shadow: 0 25px 50px rgba(0,0,0,0.3); overflow: hidden; }
.mockup-header { background: #202225; padding: 18px 25px; font-weight: 600; font-size: 1.2rem; color: white; border-bottom: 1px solid #2f3136; }
.mockup-body { padding: 30px; }
.mockup-msg { margin-bottom: 25px; color: #dcddde; font-size: 1.2rem; line-height: 1.6; }
.mockup-msg strong { color: white; display: block; margin-bottom: 6px; }

/* --- Who Is This For Section --- */
.audience-section { background: white; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.audience-card { background: #f9fbfd; padding: 3.5rem; border-radius: 12px; border: 1px solid #eee; text-align: center; }
.audience-card i { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 1.5rem; }
.audience-card h4 { font-size: 1.8rem; color: var(--dark-bg); margin-bottom: 1rem; }
.audience-card p { color: #666; font-size: 1.2rem; line-height: 1.6; }

/* --- How It Works --- */
.how-it-works { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.step-row { display: flex; gap: 3rem; background: white; padding: 4rem; border-radius: 20px; margin-bottom: 2.5rem; border: 1px solid #eee; align-items: center; }
.step-number { width: 80px; height: 80px; background: var(--primary-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; flex-shrink: 0; }
.step-text h3 { font-size: 2.5rem; color: var(--dark-bg); margin-bottom: 1rem; }
.step-text p { color: #555; line-height: 1.7; font-size: 1.35rem; margin: 0;}

/* --- Testimonials --- */
.testimonials-section { background: white; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }
.testimonial-card { background: var(--dark-bg); color: white; padding: 3.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.testimonial-card .stars { color: #ffc107; margin-bottom: 1.5rem; font-size: 1.4rem; }
.testimonial-card p { font-size: 1.25rem; line-height: 1.7; margin-bottom: 2rem; font-style: italic; color: #e0e0e0; }
.testimonial-card strong { color: var(--light-blue); font-size: 1.2rem; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .community-inner { flex-direction: column; }
    .step-row { flex-direction: column; text-align: center; }
    .step-number { margin: 0 auto 1.5rem; }
    .hero-section h1, .bottom-cta h2 { font-size: 3.8rem; }
    .section-header h2 { font-size: 3rem; }
    .true-ocean-waves { height: 150px; } /* Smaller waves on mobile */
}