/* ===== PGSEXY88 t9999-Style CSS ===== */
:root {
    --primary: #4f6ef7;
    --primary-light: #6b8aff;
    --accent: #f7c948;
    --accent-dark: #e0b030;
    --bg: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --success: #22c55e;
    --gradient-1: linear-gradient(135deg, #4f6ef7, #7c3aed);
    --gradient-2: linear-gradient(135deg, #22c55e, #10b981);
    --gradient-3: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-cta: linear-gradient(135deg, #f7c948, #f59e0b);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Kanit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
}
.navbar.scrolled {
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem; font-weight: 700;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 400;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--gradient-1) !important; color: #fff !important;
    padding: 8px 24px; border-radius: 50px; font-weight: 500 !important;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 20px 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, rgba(79,110,247,0.15), transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(124,58,237,0.1), transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
    display: inline-block; background: rgba(247,201,72,0.15); color: var(--accent);
    padding: 6px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    margin-bottom: 24px; border: 1px solid rgba(247,201,72,0.3);
}
.hero-title { margin-bottom: 20px; }
.hero-brand {
    display: block; font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem; font-weight: 800; line-height: 1.1;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { display: block; font-size: 1.5rem; font-weight: 300; color: var(--text-muted); margin-top: 8px; }
.hero-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; max-width: 560px; margin-inline: auto; }

.hero-rating { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.rating-score { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stars { color: var(--accent); font-size: 1.3rem; letter-spacing: 2px; }
.rating-count { color: var(--text-muted); font-size: 0.9rem; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-size: 1rem; font-weight: 500;
    text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
    font-family: 'Kanit', sans-serif;
}
.btn-download { background: var(--gradient-2); color: #fff; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.3); }
.btn-login { background: var(--gradient-3); color: #fff; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.3); }
.btn-register { background: var(--gradient-cta); color: #1a1a1a; font-weight: 600; }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,201,72,0.3); }
.btn-play {
    background: var(--gradient-1); color: #fff; padding: 8px 20px;
    font-size: 0.85rem; border-radius: 50px;
}

/* ===== Sections ===== */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.text-gradient {
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Screenshots */
.screenshots { padding: 80px 0; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.screenshot-card {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card);
    transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.screenshot-placeholder {
    height: 200px; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; text-align: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
}
.screenshot-placeholder small { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* Games */
.games { padding: 80px 0; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 12px; transition: all 0.3s;
}
.game-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(79,110,247,0.15); }
.game-img { font-size: 3rem; margin-bottom: 4px; }
.game-info h3 { font-size: 1.05rem; font-weight: 600; }
.game-provider { display: block; font-size: 0.8rem; color: var(--text-muted); }
.game-rtp {
    display: inline-block; background: rgba(34,197,94,0.15); color: var(--success);
    padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; margin-top: 4px;
}

/* About */
.about { padding: 80px 0; }
.about-text { max-width: 800px; margin: 0 auto; }
.about-text p { color: var(--text-muted); text-align: center; margin-bottom: 32px; font-size: 1.05rem; }
.app-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app-info-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-align: center;
}
.info-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.info-value { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* Features */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ */
.faq { padding: 80px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; background: var(--bg-card); border: none;
    color: var(--text); font-size: 1rem; font-weight: 500; cursor: pointer;
    font-family: 'Kanit', sans-serif; text-align: left;
}
.faq-icon { font-size: 1.4rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 18px; color: var(--text-muted); font-size: 0.92rem; }

/* Final CTA */
.final-cta {
    padding: 100px 0; text-align: center;
    background: radial-gradient(ellipse at center, rgba(79,110,247,0.1), transparent 60%);
}
.final-cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.final-cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }

/* Footer */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); background: var(--bg-card); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
    background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,14,26,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; }
    .hero-brand { font-size: 2.5rem; }
    .hero-sub { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; justify-content: center; }
    .screenshot-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .app-info-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}


.screenshot-card img, .game-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: calc(var(--radius) - 2px); }
