/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #030303 !important;
}

/* iOS-specific fixes for white space */
@supports (-webkit-touch-callout: none) {
    html {
        height: -webkit-fill-available;
    }
    body {
        min-height: -webkit-fill-available;
    }
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

:root {
    --bg-primary: #030303;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #0F0F0F;
    --border-color: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --accent-primary: #FFFFFF;
    --accent-glow: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(10, 10, 10, 0.6);
    --card-border: rgba(26, 26, 26, 0.8);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #030303 !important;
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #030303 !important;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: #030303;
    z-index: -1;
}

/* ===== STARFIELD BACKGROUND ===== */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    z-index: 0;
    pointer-events: none;
    background: #030303;
    overflow: hidden;
}

#starsCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== AMBIENT GLOW EFFECTS ===== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: 2s;
}

.glow-3 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    margin: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-download-btn {
    display: inline-flex;
    padding: 0.625rem 1.25rem;
    background: white;
    color: #0A0A0A;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-download-btn:hover {
    background: #F5F5F5;
    opacity: 0.95;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

.mobile-download-btn {
    display: inline-flex;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: white;
    color: #0A0A0A;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    letter-spacing: -0.01em;
}

.mobile-download-btn:hover {
    background: #F5F5F5;
    opacity: 0.95;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    padding-top: calc(8rem + env(safe-area-inset-top));
    width: 100%;
    overflow-x: hidden;
    background: transparent;
}

.hero-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    color: #4ade80;
    font-size: 0.9rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    font-weight: 600;
    background: linear-gradient(100deg, #FFFFFF 20%, #5865F2 50%, #FFFFFF 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: #0A0A0A;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    animation: ctaGlow 3s ease-in-out infinite;
}

.primary-btn i {
    font-size: 0.9375rem;
}

.primary-btn:hover {
    background: #F5F5F5;
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
    animation-play-state: paused;
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 0 32px rgba(255, 255, 255, 0.3); }
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    letter-spacing: -0.01em;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTION CONTAINERS ===== */
.section-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
}

.feature-card:hover {
    background: rgba(15, 15, 15, 0.8);
    border-color: rgba(40, 40, 40, 0.8);
    transform: translateY(-5px);
}

.feature-highlight {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    height: 60px;
}

.feature-icon i {
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.tag-special {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== GAME PERFORMANCE COMPARISON SECTION ===== */
.performance-comparison-section {
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 5, 0.3);
    padding: 4rem 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.game-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.game-engine {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.fps-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.fps-before,
.fps-after {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fps-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.fps-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.fps-before .fps-value {
    color: rgba(255, 255, 255, 0.6);
}

.fps-after .fps-value {
    color: #4ade80;
}

.fps-unit {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.fps-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
}

.fps-gain {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.performance-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 1.5rem;
}

/* ===== WHAT'S INCLUDED SECTION ===== */
.whats-included-section {
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 5, 0.5);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.included-column {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
}

.included-category {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.included-category i {
    font-size: 1.1rem;
    color: #4ade80;
}

.included-list {
    list-style: none;
}

.included-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.included-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* ===== SHOWCASE SECTION ===== */
.showcase-section {
    position: relative;
    z-index: 2;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
}

.showcase-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.showcase-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.showcase-image.no-shot::after {
    content: 'Screenshot coming soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.05);
}

.showcase-info {
    padding: 1.5rem;
}

.showcase-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.showcase-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: white;
    color: #0A0A0A;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.cta-button i {
    font-size: 1rem;
}

.cta-button:hover {
    background: #F5F5F5;
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link i {
    font-size: 1.25rem;
}

.social-link:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
}

.social-link:active {
    transform: translateY(0);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: white;
    opacity: 0.95;
}

.modal-icon i {
    font-size: 3rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.modal-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-submessage {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-button {
    padding: 0.875rem 2rem;
    background: white;
    color: #0A0A0A;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.modal-button:hover {
    background: #F5F5F5;
    opacity: 0.95;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-content {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#lightboxImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: white;
    font-size: 1.125rem;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
}

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Slide up animation classes */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up-delay-1 {
    transition-delay: 0.1s;
}

.slide-up-delay-2 {
    transition-delay: 0.2s;
}

.slide-up-delay-3 {
    transition-delay: 0.3s;
}

.slide-up-delay-4 {
    transition-delay: 0.4s;
}

/* Hover shimmer effect for cards */
.shimmer-hover {
    position: relative;
    overflow: hidden;
}

.shimmer-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.shimmer-hover:hover::before {
    left: 100%;
}

/* Make showcase images clickable */
.showcase-image {
    cursor: pointer;
    overflow: hidden;
}

.showcase-image img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-image:hover img {
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        background: #030303;
        overflow-x: hidden;
        width: 100%;
        height: 100%;
    }

    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        background: #030303;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        position: relative;
        padding-top: 0;
    }

    * {
        max-width: 100%;
    }

    .stars-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background: #030303;
    }

    #starsCanvas {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .navbar {
        padding: 0.75rem 0;
        width: 100%;
        left: 0;
        right: 0;
        top: 0 !important;
        background: rgba(8, 8, 8, 0.98) !important;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    .nav-container {
        padding: 0 1rem;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        width: 100%;
        left: 0;
        right: 0;
        background: rgba(3, 3, 3, 0.98) !important;
    }

    .hero {
        padding: 5rem 1.5rem 2rem;
        width: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background: transparent;
    }

    .hero-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .section-container {
        padding: 4rem 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .features-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.5rem;
    }

    .comparison-card {
        padding: 1.5rem 1.25rem;
    }

    .fps-comparison {
        gap: 1rem;
    }

    .fps-value {
        font-size: 2rem;
    }

    .included-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cta-container {
        padding: 3rem 2rem;
        width: 100%;
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    footer {
        width: 100%;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
        width: 90%;
        border-radius: 12px;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .ambient-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        background: #030303;
        height: 100%;
    }

    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .navbar {
        padding: 0.5rem 0;
        width: 100%;
        top: 0;
    }

    .nav-container {
        padding: 0 0.75rem;
        width: 100%;
    }

    .hero {
        padding: 4.5rem 1rem 2rem;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        width: 100%;
        background: transparent;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .primary-btn,
    .secondary-btn,
    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .section-container {
        padding: 3rem 1rem;
        width: 100%;
    }

    .comparison-card {
        padding: 1.25rem 1rem;
    }

    .game-name {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .fps-comparison {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .fps-value {
        font-size: 1.75rem;
    }

    .fps-arrow {
        font-size: 1rem;
    }

    .fps-gain {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .modal-content {
        padding: 1.75rem 1.25rem;
        max-width: 95%;
        width: 95%;
        border-radius: 12px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .modal-icon i {
        font-size: 2.5rem;
    }

    .modal-message {
        font-size: 0.9375rem;
    }

    .modal-submessage {
        font-size: 0.8125rem;
        margin-bottom: 1.5rem;
    }
}

/* ===== DISCORD TOAST ===== */
.discord-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    max-width: 340px;
    padding: 1.25rem 1.5rem 1.25rem 1.25rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    pointer-events: none;
}

.discord-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.discord-toast-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.discord-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.discord-toast-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
}

.discord-toast-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 1rem;
}

.discord-toast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
}

.discord-toast-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.discord-toast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.6rem 1rem;
    background: #5865F2;
    color: white;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.discord-toast-btn:hover {
    background: #4752C4;
}

@media (max-width: 480px) {
    .discord-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

.hero-banner {
    margin-top: 3.5rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-banner {
        margin-top: 2.5rem;
    }
}

/* ===== STAGGERED GRID REVEALS ===== */
.features-grid > .feature-card:nth-child(1),
.included-grid > .included-column:nth-child(1),
.comparison-grid > .comparison-card:nth-child(1),
.showcase-grid > .showcase-item:nth-child(1) { transition-delay: 0s; }

.features-grid > .feature-card:nth-child(2),
.included-grid > .included-column:nth-child(2),
.comparison-grid > .comparison-card:nth-child(2),
.showcase-grid > .showcase-item:nth-child(2) { transition-delay: 0.08s; }

.features-grid > .feature-card:nth-child(3),
.included-grid > .included-column:nth-child(3),
.comparison-grid > .comparison-card:nth-child(3),
.showcase-grid > .showcase-item:nth-child(3) { transition-delay: 0.16s; }

.features-grid > .feature-card:nth-child(4),
.included-grid > .included-column:nth-child(4),
.comparison-grid > .comparison-card:nth-child(4) { transition-delay: 0.24s; }

.features-grid > .feature-card:nth-child(5),
.included-grid > .included-column:nth-child(5),
.comparison-grid > .comparison-card:nth-child(5) { transition-delay: 0.32s; }

.features-grid > .feature-card:nth-child(6),
.included-grid > .included-column:nth-child(6),
.comparison-grid > .comparison-card:nth-child(6) { transition-delay: 0.4s; }

.included-grid > .included-column:nth-child(7),
.comparison-grid > .comparison-card:nth-child(7) { transition-delay: 0.48s; }

.included-grid > .included-column:nth-child(8),
.comparison-grid > .comparison-card:nth-child(8) { transition-delay: 0.56s; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #5865F2, #FFFFFF);
    z-index: 6000;
    transition: width 0.1s ease-out;
    pointer-events: none;
}
