/* ==================== CSS ЗМІННІ (ТЕМИ) ==================== */
:root {
    --bg-primary: #0f1115;
    --bg-secondary: #181b20;
    --bg-card: #20242c;
    --text-primary: #f0f2f5;
    --text-secondary: #9da6b4;
    --accent-gold: rgb(212, 175, 55);
    --accent-gold-hover: #f3ca3e;
    --border-color: #2e3440;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;

}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #f1f3f5;
    --text-primary: #1a1d20;
    --text-secondary: #6c757d;
    --accent-gold: rgb(212, 175, 55);
    --accent-gold-hover: #d4af37;
    --border-color: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

}

/* ==================== БАЗОВІ СТИЛІ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /*width: 100dvw;*/
    /*height: 100dvh;*/
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .logo-text {
    font-family: 'Cinzel', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;

    &.primary {
        background-color: var(--accent-gold);
        color: #0f1115;
    }

    &.primary:hover {
        background-color: var(--accent-gold-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    }

    &.store {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 10px 18px;
    }

    &.store:hover {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}


/* ==================== HERO SECTION ==================== */
.hero {
    padding: 160px 0 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
}

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

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

.hero-title span {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

/* ==================== ABOUT CHESS SECTION ==================== */
.about-chess {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

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

.chess-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.chess-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.chess-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.chess-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.chess-card p {
    color: var(--text-secondary);
}

/* ==================== APP FEATURES SECTION ==================== */
.app-features {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

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

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--text-secondary);
}

.app-preview-img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    display: block;
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

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

.price-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.price-card.popular {
    border-color: var(--accent-gold);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    color: #0f1115;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

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

.price-features {
    margin-bottom: 30px;
    text-align: left;
}

.price-features li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--accent-gold);
}


/* ==================== ADAPTIVE (RESPONSIVE) ==================== */
@media (max-width: 992px) {
    .hero-grid, .features-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-item {
        text-align: left;
    }

    .price-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

