/* ═══════════════════════════════════════════════════════════════════════════
   OSU!GRIND Landing Page Styles
   Matching the Desktop App Design System
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #0f0f0f;
    --bg-hover: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;

    --accent-pink: #ff66ab;
    --accent-purple: #bb88ff;
    --accent-cyan: #00ffff;
    --accent-green: #00ff88;
    --accent-yellow: #ffcc00;
    --accent-orange: #ff6622;
    --accent-red: #ff5566;
    
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 30px;
    
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}

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

.neon-cyan { color: var(--accent-cyan); }
.neon-pink { color: var(--accent-pink); }
.neon-purple { color: var(--accent-purple); }
.neon-orange { color: var(--accent-orange); }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.app-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer .app-title {
    font-size: 24px;
    letter-spacing: 1px;
}

.footer .logo-img {
    width: 42px;
    height: 42px;
}


.footer .app-title {
    font-size: 22px;
    letter-spacing: 1px;
}

.logo-img {
    width: 28px;
    height: 28px;
}

.footer .logo-img {
    width: 36px;
    height: 36px;
}

.nav-support-btn {
    background: #FF5E5B;
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    border: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 91, 0.4);
    color: white !important;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.nav-download-btn {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(255, 102, 171, 0.05) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(40px, 8vw, 84px);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--radius-xl);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: white;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 16px;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 102, 171, 0.4);
}

/* App Shell Mockup */
.hero-preview {
    width: 95%;
    max-width: 1200px;
    perspective: 1500px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.app-shell:hover {
    transform: scale(1.02);
    border-color: rgba(255, 102, 171, 0.3);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 102, 171, 0.1);
}

.shell-header {
    background: #000;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots { display: flex; gap: 8px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #222; }
.dots span:last-child { background: #ff5566; opacity: 0.8; } /* Close dot highlight */

.shell-title { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 1px; }

.placeholder-img, .snapshot-img {
    width: 100%;
    height: auto;
    display: block;
    /* Enhanced Sharpening for UI Text */
    filter: contrast(1.15) saturate(1.1) brightness(1.02);
    /* Ensure sharp edges on high-DPI displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0); 
}

/* Specific tweak for the large hero image to prevent rotation blur */
.hero-preview .snapshot-img {
    filter: contrast(1.2) saturate(1.1) drop-shadow(0 0 1px rgba(0,0,0,0.5));
    /* Force GPU rasterization to be sharper */
    will-change: transform;
}

.app-shell {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    background: #000;
}


/* Sections */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Compatibility Section */
.comp-single-card {
    padding: 60px;
    background: linear-gradient(145deg, #111 0%, #050505 100%);
}

.comp-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.comp-item {
    flex: 1;
    text-align: center;
}

.comp-divider {
    width: 1px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.comp-icon { font-size: 56px; margin-bottom: 24px; }
.comp-item h3 { font-size: 28px; margin-bottom: 16px; }
.comp-item p { color: var(--text-secondary); font-size: 15px; }

@media (max-width: 900px) {
    .comp-row { flex-direction: column; gap: 40px; }
    .comp-divider { width: 100%; height: 1px; }
}

/* Feature Flex */
.feature-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-flex.reverse { flex-direction: row-reverse; }

.feature-text { flex: 0.6; }
.feature-image { flex: 1.8; }

.feature-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 900;
}

.credit-notice {
    font-size: 13px;
    color: var(--text-muted);
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent-cyan);
    border-radius: 4px;
}

/* Fire Animation */
@keyframes firePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-orange)); }
    50% { transform: scale(1.3) translateY(-5px); filter: drop-shadow(0 0 20px var(--accent-orange)); }
}

.fire-anim {
    display: inline-block;
    animation: firePulse 1.5s infinite;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, #151515 0%, #050505 100%);
    border: 1px solid var(--accent-pink);
    box-shadow: 0 0 50px rgba(255, 102, 171, 0.1);
}

.cta-card h2 { font-size: 48px; margin-bottom: 20px; }
.cta-card p { margin-bottom: 40px; font-size: 18px; }

/* Footer */
.footer {
    background: #000;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-links { display: flex; gap: 40px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 12px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animateFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateX(10deg); }
}

.animate-float {
    animation: animateFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1100px) {
    .nav-links { gap: 15px; }
    .nav-links a:not(.nav-support-btn):not(.nav-download-btn) { display: none; }
    .container { padding: 0 30px; }
}

@media (max-width: 900px) {
    .navbar { height: auto; padding: 15px 0; }
    .nav-container { flex-direction: column; gap: 15px; justify-content: center; }
    #liveStats { margin-right: 0; margin-bottom: 5px; width: auto; }
    .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; }
    
    .hero { padding-top: 160px; }
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 16px; }
    
    .feature-flex, .feature-flex.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .feature-text, .feature-image { flex: 1; width: 100%; }
    .feature-list li { text-align: left; }
    
    .comp-row { flex-direction: column; gap: 40px; }
    .comp-divider { width: 100%; height: 1px; }
    .comp-single-card { padding: 40px 20px; }

    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
}

@media (max-width: 600px) {
    .nav-logo span { display: none; } /* Hide text on very small screens */
    .hero-title { font-size: 36px; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; width: 100%; padding: 0 20px; }
    .btn-secondary { margin-left: 0; }
    .nav-support-btn span { display: none; } /* Hide 'Support' text, keep icon if possible */
    .nav-support-btn { padding: 8px 12px; }
}
