/* Variables */
:root {
    --primary-color: #0071e3;
    --secondary-color: #1d1d1f;
    --background-color: #ffffff;
    --text-color: #1d1d1f;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --border-color: #d2d2d7;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0077ed;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    /* Added border for visibility */
}

.btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.1);
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 60px;
    /* Fixed height */
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-color);
}

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

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, #fbfbfd 0%, #fff 100%);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.3rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

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

.bg-light {
    background-color: var(--bg-light);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Gameplay */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.gallery-item img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-item figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.gameplay-text {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
}

.testimonial-card .author {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-light);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
    font-size: 0.8rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-logo img {
    height: 24px;
}

.footer-links,
.footer-social {
    display: flex;
    gap: 20px;
}

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

/* Related Topics Section */
#related-topics {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

#related-topics h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-links-grid a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.related-links-grid a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .related-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Responsive */
/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .navbar .nav-links.active {
        display: flex;
    }

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

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

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Pricing */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.05), #fff);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Text Pages (Terms, Privacy, About, Help) */
.text-page-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.text-page-container h1 {
    margin-bottom: 40px;
    text-align: center;
}

.text-page-container h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.text-page-container p {
    margin-bottom: 20px;
}

.text-page-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.text-page-container li {
    margin-bottom: 10px;
}

/* Blog */
.blog-header {
    text-align: center;
    padding: 120px 0 60px;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.blog-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    transition: var(--transition);
}

.blog-card:hover {
    opacity: 0.7;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* About Page Specifics */
.about-hero {
    text-align: center;
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #eee;
    margin: 0 auto 20px;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}