/* === SUBWAY SURFERS PREMIUM STYLES === */

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'General Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: clip;
    color: var(--text);
    background: var(--bg);
}

/* === PREMIUM TOKENS (LIGHT THEME) === */
:root {
    --bg: #fcfcfd;
    --bg-alt: #f3f4f6;
    --text: #1a1c1e;
    --text-muted: #64748b;
    --accent: #ffcc00; /* Subway Surfers Yellow */
    --accent-secondary: #00b4d8; /* Subway Surfers Blue */
    --accent-pink: #f72585;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --container-max: 1200px;
    --section-pad: 80px;
}

h1, h2, h3, h4 {
    font-family: 'Cabinet Grotesk', sans-serif;
    line-height: 1.1;
    font-weight: 800;
}

/* === MESH GRADIENT BACKGROUND === */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, hsla(48,100%,85%,1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(190,100%,85%,1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(330,100%,85%,1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(200,100%,85%,1) 0, transparent 50%);
    filter: blur(80px);
    animation: mesh-shift 20s ease infinite alternate;
}

@keyframes mesh-shift {
    0% { transform: scale(1); }
    100% { transform: scale(1.1) rotate(2deg); }
}

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

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

.zigzag-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .zigzag-section {
        flex-direction: row;
        align-items: center;
    }
    .zigzag-section.reverse {
        flex-direction: row-reverse;
    }
    .zigzag-content {
        flex: 1;
    }
    .zigzag-visual {
        flex: 1.5;
    }
}

/* === PAPER TEAR DIVIDER === */
.paper-tear {
    height: 60px;
    width: 100%;
    background: var(--bg);
    clip-path: polygon(0 0, 5% 40%, 10% 10%, 15% 50%, 20% 20%, 25% 60%, 30% 15%, 35% 45%, 40% 5%, 45% 55%, 50% 10%, 55% 65%, 60% 20%, 65% 50%, 70% 15%, 75% 70%, 80% 25%, 85% 55%, 90% 10%, 95% 40%, 100% 0, 100% 100%, 0 100%);
    margin-top: -59px;
    position: relative;
    z-index: 5;
}

/* === 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: 2rem;
    box-shadow: var(--shadow-glass);
}

/* === BUTTONS (Text only with animated arrow) === */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px 0;
}

.btn-arrow i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-arrow:hover {
    color: var(--accent-pink);
}

.btn-arrow:hover i {
    transform: translateX(8px);
}

/* === NAVIGATION (Floating Pill) === */
.nav-pill-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
}

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

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

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

.nav-links {
    display: none;
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 32px;
    }
    .nav-links a {
        font-weight: 600;
        font-size: 14px;
        color: var(--text-muted);
        transition: color 0.3s ease;
    }
    .nav-links a.active, .nav-links a:hover {
        color: var(--text);
    }
    .nav-cta {
        display: block;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: block;
}

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

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay a {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

/* === HERO (Dual Phone) === */
.hero-surfers {
    padding-top: 140px;
    text-align: center;
    overflow: hidden;
}

.hero-surfers h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #1a1c1e, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.badge-rating {
    background: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-downloads {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.download-btn i {
    font-size: 24px;
}

.download-text span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

.download-text strong {
    font-size: 16px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    gap: 20px;
    perspective: 1000px;
}

.phone-mockup {
    max-width: 280px;
    width: 45%;
    border-radius: 40px;
    border: 10px solid #1a1c1e;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3);
    transition: transform 0.5s ease;
}

.phone-mockup img {
    width: 100%;
    height: auto;
}

.phone-left { transform: rotateY(20deg) translateY(40px); }
.phone-right { transform: rotateY(-20deg) translateY(0); }

@media (max-width: 768px) {
    .hero-visual { gap: 10px; }
    .phone-mockup { border-width: 6px; border-radius: 24px; }
}

/* === FEATURES (Timeline) === */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--accent-secondary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 20px;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.timeline-content {
    width: 45%;
    padding: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    text-align: left;
}

@media (max-width: 768px) {
    .timeline-line { left: 30px; }
    .timeline-dot { left: 30px; transform: none; }
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        text-align: left !important;
        padding: 10px;
    }
}

/* === SCREENSHOT GALLERY (Immersive Stacked) === */
.stacked-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

.gallery-item {
    width: 100%;
    max-width: 90vw;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* === STATS (Floating Cards) === */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-10px); }

.stat-card i {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* === REVIEWS (Quote Spotlight Carousel) === */
.reviews-section {
    overflow: hidden;
}

.review-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.review-slide.active {
    opacity: 1;
    z-index: 1;
}

.review-stars {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 20px;
}

.review-quote {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.review-quote::before, .review-quote::after {
    content: '\"';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
}

.review-quote::before { left: -40px; top: -20px; }
.review-quote::after { right: -40px; bottom: -40px; }

.review-user {
    font-weight: 700;
    color: var(--text-muted);
}

/* === DOWNLOAD CTA (Frosted Glass) === */
.download-cta {
    padding: 100px 0;
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* === FOOTER (Gradient) === */
.footer-main {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-pink));
    padding: 80px 0 40px;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

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

.footer-brand p {
    opacity: 0.8;
    font-size: 14px;
    max-width: 250px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.footer-col ul li a:hover { opacity: 1; }

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
}

.newsletter-form button {
    background: white;
    color: var(--text);
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.social-links a {
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a:hover { opacity: 1; }

.copyright {
    font-size: 13px;
    opacity: 0.6;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
