/* ===== CSS Variables ===== */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-surface: #16161f;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-dark: #5a4bd1;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(108, 92, 231, 0.3);
    --gradient-accent: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-hero: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 30px rgba(108, 92, 231, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Prompt', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(212, 168, 67, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.logo-text {
    letter-spacing: 1px;
}

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(162, 155, 254, 0.05) 0%, transparent 60%);
    animation: heroBgMove 20s ease-in-out infinite alternate;
}

@keyframes heroBgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -3%); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-suffix {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.scroll-indicator {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Games ===== */
.games {
    padding: 100px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.game-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-thumb-icon {
    font-size: 4rem;
    opacity: 0.9;
    transition: var(--transition);
}

.game-card:hover .game-thumb-icon {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-badge.hot {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: #fff;
}

.game-badge.new {
    background: linear-gradient(135deg, #00c853, #69f0ae);
    color: #0a0a0f;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.game-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== How Section ===== */
.how-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-connector {
    color: var(--text-muted);
}

/* ===== Promo Banner ===== */
.promo-banner {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.promo-inner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.promo-content {
    flex: 1;
}

.promo-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.promo-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.promo-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
}

.promo-visual {
    flex-shrink: 0;
}

.promo-card-stack {
    position: relative;
    width: 200px;
    height: 260px;
}

.promo-card {
    position: absolute;
    width: 140px;
    height: 200px;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: var(--transition);
}

.promo-card.c1 {
    top: 30px;
    left: 0;
    transform: rotate(-10deg);
    color: #333;
    z-index: 3;
    animation: cardFloat1 4s ease-in-out infinite;
}

.promo-card.c2 {
    top: 15px;
    left: 30px;
    transform: rotate(0deg);
    color: #6c5ce7;
    z-index: 2;
    animation: cardFloat2 4s ease-in-out infinite 0.5s;
}

.promo-card.c3 {
    top: 0;
    left: 60px;
    transform: rotate(10deg);
    color: #c62368;
    z-index: 1;
    animation: cardFloat3 4s ease-in-out infinite 1s;
}

@keyframes cardFloat1 {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-8px); }
}
@keyframes cardFloat2 {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(0deg) translateY(-12px); }
}
@keyframes cardFloat3 {
    0%, 100% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(10deg) translateY(-6px); }
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0f;
    font-size: 0.95rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Register CTA ===== */
.register-cta {
    padding: 100px 0;
}

.register-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.register-content {
    flex: 1;
}

.register-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.register-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.register-form-wrapper {
    flex: 1;
    max-width: 440px;
}

.register-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== Contact ===== */
.contact {
    padding: 80px 0;
    background: var(--bg-surface);
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    margin: 0 auto 16px;
    color: var(--accent);
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-badges .badge {
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--accent-light);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Toast ===== */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    animation: toastIn 0.4s ease;
    min-width: 280px;
}

.toast.success {
    border-color: #00c853;
}

.toast.error {
    border-color: #ff4444;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid,
    .games-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-visual {
        display: none;
    }

    .promo-inner {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .site-header .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .features-grid,
    .games-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .register-inner {
        flex-direction: column;
        text-align: center;
    }

    .register-form-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .promo-inner {
        padding: 32px;
    }

    .contact-grid {
        gap: 40px;
    }

    .hero-actions .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .register-form {
        padding: 24px;
    }

    .promo-inner {
        padding: 24px;
    }
}
