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

/* === JOKER & SEVENS PREMIUM CSS FOUNDATION === */

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .game-title {
    font-family: 'Righteous', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

img, video {
    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; }

/* === PREMIUM TOKENS === */
:root {
  /* DARK THEME: Deep jewel palette */
  --bg: #050508;
  --bg-alt: #0d0d1a;
  --text: #ffffff;
  --text-muted: #8e9aaf;
  --accent: #00f2ff; /* Cyan Jewel */
  --accent-secondary: #7000ff; /* Purple Jewel */
  --accent-dark: #005f63;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.8);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --container-max: 1240px;
  --section-pad: 80px;
}

/* === BACKGROUND TEXTURE & ANIMATION === */
.bg-textured {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 242, 255, 0.02) 0px,
        rgba(0, 242, 255, 0.02) 2px,
        transparent 2px,
        transparent 10px
    );
    background-size: 200% 200%;
    animation: moveStripes 60s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

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

section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* Section Dividers: Full-width accent stripe */
.section-divider {
    width: 100%;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px var(--accent);
}

/* Tag-style buttons */
.btn-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-tag:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.05);
}

/* === NAVIGATION: Floating Pill Nav === */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 800px;
}

.nav-pill {
    background: rgba(13, 13, 26, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-logo span {
    font-family: 'Righteous', cursive;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.nav-cta .btn-primary {
    padding: 8px 20px;
    font-size: 0.8rem;
}

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

/* === HERO: iPhone Mockup Hero === */
.hero-arena {
    padding-top: 140px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
}

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

.hero-tagline {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text);
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
}

.hero-rating i { color: #FFD700; }

.iphone-frame {
    position: relative;
    width: 280px;
    height: 570px;
    margin: 40px auto 0;
    background: #1a1a1a;
    border: 8px solid #333;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8), 0 0 20px rgba(0, 242, 255, 0.1);
    overflow: hidden;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.iphone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hero-downloads {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === GALLERY: Horizontal Scroll === */
.gallery-section {
    padding-bottom: 120px;
}

.gallery-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.gallery-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.gallery-item {
    flex: 0 0 auto;
    width: 281px;
    height: 500px;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Override reset */
}

/* === STATS: Counter Bar === */
.stats-bar {
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* === FEATURES: Asymmetric Bento & Horizontal Cards === */
.feature-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
}

.feature-scroll-container::-webkit-scrollbar { display: none; }

.feature-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Bento Grid Variation */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 24px;
    margin-top: 60px;
}

.bento-item {
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-tall { grid-row: span 2; }

/* === REVIEWS: Rating Breakdown === */
.reviews-section {
    background: var(--bg);
}

.rating-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.rating-badge {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text);
}

.star-bars {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.star-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.star-label { min-width: 60px; font-size: 0.8rem; color: var(--text-muted); }

.bar-bg {
    flex-grow: 1;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

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

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

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

.review-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
}

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

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

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

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

.faq-trigger i {
    transition: transform 0.3s;
    color: var(--accent);
}

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(0,0,0,0.2);
}

.faq-item.active .faq-content {
    max-height: 500px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-inner { padding: 24px; color: var(--text-muted); font-size: 0.95rem; }

/* === DOWNLOAD CTA: Frosted Glass Card === */
.download-section {
    padding: 120px 0;
}

.cta-glass-card {
    background: rgba(13, 13, 26, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 100px 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    background-image: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent);
}

.cta-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin: 0 auto 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    object-fit: contain;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.cta-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

/* === FOOTER: Timeline Footer === */
footer {
    padding: 80px 0 40px;
    background: #020204;
    border-top: 1px solid var(--glass-border);
}

.footer-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 80px;
    padding-bottom: 40px;
}

.footer-timeline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
}

.timeline-event {
    position: relative;
    padding: 0 10px;
    flex: 1;
}

.timeline-event::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.event-year {
    font-family: 'Righteous', cursive;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.event-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === RESPONSIVE UTILITIES === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@media (max-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 60px; }

    .nav-links { display: none; }
    .menu-toggle { display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-item h3 { font-size: 2rem; }

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

    .footer-timeline { display: none; }

    /* Mobile Menu Drawer (Simple Overlay) */
    .nav-pill.mobile-active {
        flex-direction: column;
        border-radius: 24px;
        padding-bottom: 30px;
    }

    .nav-pill.mobile-active .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 20px 0;
        gap: 15px;
    }
}

/* Specific Layout Request: Asymmetric Column Sizes */
.asym-section {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .asym-35-65 { grid-template-columns: 0.35fr 0.65fr; }
    .asym-70-30 { grid-template-columns: 0.7fr 0.3fr; }
    .asym-40-60 { grid-template-columns: 0.4fr 0.6fr; }
}

/* iPhone Protector */
.screenshot-img, .hero img:not(.icon) {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
