/* === SUDOKU - CLASSIC SUDOKU PUZZLE: PREMIUM STYLES === */

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

:root {
    /* Theme Mode: DARK - Deep jewel palette */
    --bg-deep: #050505;
    --bg-accent: #0a0a0f;
    --bg-nav: rgba(5, 5, 5, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Jewel Tones extracted from app icon (Cyan/Indigo/Violet) */
    --accent: #6d28d9;  /* Indigo */
    --accent-glow: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #6d28d9 100%);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(109, 40, 217, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --container-max: 1240px;
}

body, html {
    font-family: 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: clip;
    color: var(--text-primary);
    background: var(--bg-deep);
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, .brand-font {
    font-family: 'Righteous', cursive;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

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

ul { list-style: none; }

/* === STRUCTURAL BASELINES === */
.puzzle-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

section {
    padding: 80px 0;
    position: relative;
}

.modular-block {
    margin-bottom: 30px;
}

/* === GLASSMORPHISM BLOBS === */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: var(--accent);
    filter: blur(140px);
    opacity: 0.15;
    border-radius: 50%;
    animation: move-blob 25s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; background: var(--accent-cyan); }
.blob-2 { bottom: -10%; right: -10%; animation-duration: 30s; animation-delay: -5s; }

@keyframes move-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10vw, 5vh) scale(1.1); }
    100% { transform: translate(-5vw, 15vh) scale(0.9); }
}

/* === NAVIGATION === */
.sudoku-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
    display: flex;
    align-items: center;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Outlined pill with fill-on-hover */
.btn-outline {
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* === HERO SECTION === */
.logic-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    box-shadow: 0 0 40px rgba(109, 40, 217, 0.5);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fbbf24;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.store-btn {
    background: #000;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.store-btn:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.store-btn i { font-size: 24px; }
.store-btn-text { text-align: left; }
.store-btn-text span { display: block; font-size: 0.7rem; color: var(--text-muted); line-height: 1; }
.store-btn-text strong { display: block; font-size: 1.1rem; }

/* === FEATURES: Icon Grid Cards === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 48px;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* === STATS: Marquee Ticker === */
.marquee-ticker {
    width: 100%;
    background: var(--bg-accent);
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 3rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-primary);
}

.stat-pill i { color: var(--accent-cyan); font-size: 20px; }
.stat-pill strong { font-size: 1.2rem; font-family: 'Righteous'; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === REVIEWS: Featured + Supporting === */
.voices-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.featured-review {
    background: var(--accent-gradient);
    padding: 3rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.featured-review::before {
    content: '\"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 15rem;
    font-family: 'Righteous';
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.review-stars { color: #fbbf24; margin-bottom: 1rem; }

.review-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.review-author { display: flex; align-items: center; gap: 15px; }
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Righteous';
}

.supporting-reviews {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

/* === GALLERY: Horizontal Scroll === */
.gallery-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 24px;
    padding: 20px 0;
    scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar { display: none; }

.screenshot-item {
    flex: 0 0 auto;
    width: 280px; /* Constrained width */
    height: 500px;
    scroll-snap-align: center;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
}

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

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-trigger:hover { background: rgba(255, 255, 255, 0.05); }

.faq-trigger i { transition: transform 0.3s ease; }
.faq-item.active .faq-trigger i { transform: rotate(180deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-body {
    padding: 0 25px 25px;
    color: var(--text-secondary);
}

/* === DOWNLOAD CTA: Frosted Glass === */
.download-island {
    padding: 6rem 0;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-island-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
}

.island-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
}

/* === FOOTER === */
.sudoku-footer {
    background: #000;
    border-top: 1px solid var(--glass-border);
}

.footer-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.footer-brand {
    background: #050505;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-links-side {
    background: #0a0a0f;
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-logo-block { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.footer-logo-block img { width: 24px; height: 24px; border-radius: 6px; }

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

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

.footer-col a:hover { color: var(--accent-cyan); }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: #fff;
    flex: 1;
}

.newsletter-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* === ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .voices-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }

    .sudoku-nav { height: 60px; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }

    .hero-title { font-size: 3rem; }

    .footer-split { grid-template-columns: 1fr; }
    .footer-links-side { grid-template-columns: 1fr; padding-bottom: 2rem; }

    .screenshot-item { width: 220px; height: 400px; }
}

/* Mobile Nav Overlay */
.mobile-nav-active { overflow: hidden; }
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-deep);
    z-index: 999;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.mobile-menu.active { transform: translateX(0); }
.mobile-menu a { font-size: 1.5rem; font-family: 'Righteous'; }

/* Legal Pages Styling */
.legal-page { padding-top: 120px; }
.legal-content { max-width: 800px; margin: 0 auto; color: var(--text-secondary); }
.legal-content h1 { margin-bottom: 2rem; color: var(--text-primary); }
.legal-content h2 { margin: 2rem 0 1rem; color: var(--text-primary); }
.legal-content p { margin-bottom: 1.2rem; }
.reading-time { color: var(--accent-cyan); font-weight: 600; margin-bottom: 1.5rem; display: block; }
