/* =========================================
   Reset & Base Styles - Arrow Puzzle
   ========================================= */
:root {
    --bg-dark: #080B11;
    --bg-light: #0F172A;
    --bg-card: rgba(15, 23, 42, 0.75);
    --primary-blue: #0D80F2;
    --primary-blue-dark: #0056D6;
    --primary-gradient: linear-gradient(135deg, #0D80F2 0%, #0060E6 100%);
    --accent-cyan: #38BDF8;
    --accent-red: #FF2D55;
    --accent-gold: #F59E0B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(13, 128, 242, 0.4);
    --shadow-glow: 0 10px 40px rgba(13, 128, 242, 0.25);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .btn {
    font-family: 'Outfit', sans-serif;
}

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

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

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

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 0;
    background: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(13, 128, 242, 0.3);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 45px rgba(13, 128, 242, 0.45);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-nav {
    padding: 9px 20px;
    font-size: 0.9rem;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding: 150px 0 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 75% 25%, rgba(13, 128, 242, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1.1;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(13, 128, 242, 0.12);
    border: 1px solid rgba(13, 128, 242, 0.3);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.12;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.hero-mockup-wrap {
    position: relative;
}

.hero-img-display {
    width: 320px;
    height: auto;
    max-height: 620px;
    border-radius: 36px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7), 0 0 50px rgba(13, 128, 242, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.12);
    transform: rotateY(-10deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.hero-mockup-wrap:hover .hero-img-display {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Floating stat badges */
.float-stat {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.float-stat.stat-left {
    top: 15%;
    left: -35px;
}

.float-stat.stat-right {
    bottom: 12%;
    right: -30px;
    animation-delay: -2s;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info h4 {
    font-size: 1rem;
    color: var(--text-main);
}

.stat-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* =========================================
   Features Section
   ========================================= */
.features {
    padding: 110px 0;
    background: var(--bg-light);
    position: relative;
}

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

.section-title {
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(13, 128, 242, 0.15);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(13, 128, 242, 0.12);
    border: 1px solid rgba(13, 128, 242, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* =========================================
   How to Play Section
   ========================================= */
.how-to-play {
    padding: 110px 0;
    background: var(--bg-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    padding: 40px 28px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* =========================================
   Screenshots Section
   ========================================= */
.screenshots {
    padding: 110px 0;
    background: var(--bg-light);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    justify-items: center;
}

.screenshot-item {
    border-radius: 24px;
    overflow: hidden;
    padding: 12px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    width: 100%;
    max-width: 280px;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.screenshot-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--glass-border-hover);
    box-shadow: 0 25px 50px rgba(13, 128, 242, 0.2);
}

.screenshot-caption {
    text-align: center;
    margin-top: 14px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

/* =========================================
   CTA Banner Section
   ========================================= */
.cta-banner {
    padding: 80px 0;
    background: var(--bg-dark);
}

.cta-box {
    background: linear-gradient(135deg, rgba(13, 128, 242, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(13, 128, 242, 0.3);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto 36px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
}

.contact-box {
    max-width: 620px;
    margin: 0 auto;
    padding: 50px 40px;
}

.contact-box h2 {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.email-display {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 28px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.email-display:hover {
    border-color: var(--primary-blue);
}

.email-icon {
    font-size: 1.5rem;
}

.email-text {
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent-cyan);
}

.contact-note {
    font-size: 0.9rem !important;
    color: var(--text-muted);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #05070B;
    padding: 60px 0 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: var(--text-main);
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* =========================================
   Subpages Content Wrapper
   ========================================= */
.page-content {
    padding: 140px 0 100px;
    min-height: 80vh;
}

.page-content h1 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.page-content h2 {
    font-size: 1.6rem;
    margin: 36px 0 16px;
    color: var(--accent-cyan);
}

.page-content p, .page-content li {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-content ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 960px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 32px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero-img-display {
        width: 280px;
    }

    .float-stat.stat-left {
        left: -10px;
    }

    .float-stat.stat-right {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 11, 17, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        gap: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .contact-box {
        padding: 36px 20px;
    }
    
    .email-display {
        flex-direction: column;
        padding: 16px;
        word-break: break-all;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
