/* ============================================
   FOCSY - Brain Training Landing Page
   Modern, Minimalist Dark Design
   ============================================ */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* App Colors - Purple/Blue Brain Theme */
    --primary: #7C5CFC;
    --primary-light: #9B82FF;
    --primary-dark: #6347E0;

    /* Game Accent Colors */
    --game-red: #FF6B6B;
    --game-teal: #4ECDC4;
    --game-orange: #FFB347;
    --game-purple: #A284FF;

    /* Accent Colors */
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;

    /* Backgrounds */
    --bg-dark: #0D0D1A;
    --bg-card: #1A1A2E;
    --bg-surface: #16213E;
    --bg-light: #F9FAFB;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #8B8BA7;
    --text-muted: #5A5A7A;

    /* Borders */
    --border-dark: #2A2A4A;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C5CFC 0%, #A284FF 100%);
    --gradient-hero: linear-gradient(135deg, #0D0D1A 0%, #16213E 50%, #1A1A2E 100%);
    --gradient-card: linear-gradient(145deg, rgba(26,26,46,0.9) 0%, rgba(22,33,62,0.6) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(124,92,252,0.2);
    --shadow-xl: 0 20px 50px rgba(124,92,252,0.3);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(162,132,255,0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78,205,196,0.08) 0%, transparent 70%);
    top: 40%;
    left: 20%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(124, 92, 252, 0.15);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(124, 92, 252, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-mascot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.mascot-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,92,252,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.mascot-img {
    width: 350px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(124,92,252,0.4));
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 92, 252, 0.15);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(124, 92, 252, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games-section {
    background: var(--bg-surface);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.game-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 92, 252, 0.4);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:nth-child(1)::before { background: var(--game-red); }
.game-card:nth-child(2)::before { background: var(--game-teal); }
.game-card:nth-child(3)::before { background: var(--game-orange); }
.game-card:nth-child(4)::before { background: var(--game-purple); }

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.game-mascot {
    position: absolute;
    top: 24px;
    right: 24px;
}

.game-mascot img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.game-card:hover .game-mascot img {
    opacity: 1;
    transform: scale(1.1);
}

.game-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.game-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 4px 12px;
    background: rgba(124, 92, 252, 0.1);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid rgba(124, 92, 252, 0.2);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 92, 252, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(124, 92, 252, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   MASCOTS SECTION
   ============================================ */
.mascots-section {
    background: var(--bg-surface);
}

.mascots-showcase {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.mascot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.mascot-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: rgba(124, 92, 252, 0.4);
}

.mascot-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.mascot-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mascot-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--border-dark);
}

.mascot-feature-img {
    display: flex;
    justify-content: center;
}

.app-preview {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 20px 40px rgba(124,92,252,0.3));
}

.mascot-feature-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.mascot-feature-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.mood-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-item {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.mood-item.fire { background: rgba(255, 107, 107, 0.15); color: #FF6B6B; }
.mood-item.celebrating { background: rgba(78, 205, 196, 0.15); color: #4ECDC4; }
.mood-item.proud { background: rgba(162, 132, 255, 0.15); color: #A284FF; }
.mood-item.encouraging { background: rgba(255, 179, 71, 0.15); color: #FFB347; }
.mood-item.worried { background: rgba(139, 139, 167, 0.15); color: #8B8BA7; }

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
    background: var(--bg-card);
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.download-mascot img {
    width: 250px;
    filter: drop-shadow(0 20px 40px rgba(124,92,252,0.4));
}

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

.download-section .section-title {
    color: white;
}

.download-section .section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-dark);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.store-name {
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: 60px 24px 24px;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { order: 2; }
    .hero-mascot { order: 1; }

    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .mascot-img { width: 250px; }

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

    .mascot-feature {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 24px 0;
        gap: 0;
        border-bottom: 1px solid var(--border-dark);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 12px 0;
    }

    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .features-grid { grid-template-columns: 1fr; }

    .game-mascot { display: none; }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mascots-showcase { gap: 16px; }

    .mascot-card { padding: 16px; }

    .mascot-card img {
        width: 60px;
        height: 60px;
    }

    .mood-preview { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .mascot-img { width: 200px; }
    .section-title { font-size: 1.75rem; }
    .mascot-feature { padding: 24px; }
}

/* ============================================
   PRIVACY & SUPPORT PAGES
   ============================================ */
.page-hero {
    padding: 140px 24px 60px;
    background: var(--bg-surface);
    text-align: center;
}

.page-content {
    padding: 60px 24px;
    background: var(--bg-dark);
}

.page-content-alt {
    padding: 60px 24px;
    background: var(--bg-surface);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section ul {
    padding-left: 24px;
    color: var(--text-secondary);
}

.content-section ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-section ul li strong {
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-dark);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-surface);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
