:root {
    --primary: #4a9eff;
    --secondary: #7b68ee;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --card: #252541;
    --text: #ffffff;
    --text-muted: #b8b8d1;
    --gold: #ffd700;
    --success: #4caf50;
    --error: #f44336;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.navbar {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

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

.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.game-description {
    padding: 80px 24px;
    background: var(--darker);
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
}

.description-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.gameplay-showcase {
    padding: 80px 24px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.showcase-item {
    background: var(--card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.showcase-item:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 158, 255, 0.3);
}

.showcase-image {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.showcase-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gold);
}

.showcase-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mechanics {
    padding: 80px 24px;
    background: var(--darker);
}

.mechanics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mechanics-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mechanics-visual > img {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.controls-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.arrow {
    width: 48px;
    height: auto;
}

.arrow-horizontal {
    display: flex;
    gap: 8px;
}

.mechanics-text h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.mechanics-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

footer {
    background: var(--darker);
    padding: 48px 24px 24px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 0.8;
}

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

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-header,
.privacy-header {
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.support-header h1,
.privacy-header h1 {
    font-size: 2.75rem;
    margin-bottom: 12px;
}

.support-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.effective-date {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-section {
    padding: 80px 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.info-box {
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--gold);
}

.info-box p {
    color: var(--text-muted);
    margin: 0;
}

.info-box a {
    color: var(--primary);
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
}

.form-response.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    display: block;
}

.form-response.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    display: block;
}

.privacy-content {
    padding: 60px 24px;
}

.privacy-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.privacy-intro {
    padding: 24px;
    background: var(--darker);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-bottom: 40px;
}

.privacy-intro p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.privacy-section {
    margin-bottom: 32px;
}

.privacy-section h2 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.privacy-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-section a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .hero,
    .mechanics-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 20px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .mechanics-visual > img {
        max-width: 60%;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .support-header h1,
    .privacy-header h1 {
        font-size: 2rem;
    }

    .privacy-wrapper {
        padding: 24px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img,
    .footer-logo img {
        height: 32px;
    }

    .nav-menu a.active::after {
        bottom: -12px;
    }
}