:root {
    --page-index-primary-color: #1A2E4E;
    --page-index-secondary-color: #FFD700;
    --page-index-text-light: #FFFFFF;
    --page-index-text-dark: #1A2E4E;
    --page-index-background-light: #F8F8F8;
    --page-index-background-dark: #102038;
    --page-index-accent-light: #FFEB3B;
    --page-index-accent-dark: #B39700;
}

.page-index {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--page-index-text-dark);
    background-color: var(--page-index-background-light);
    line-height: 1.6;
}

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

.page-index__section-title {
    font-size: 2.8em;
    color: var(--page-index-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-index__btn--primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn--primary:hover {
    background-color: var(--page-index-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index__btn--secondary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
    border: 2px solid var(--page-index-primary-color);
}

.page-index__btn--secondary:hover {
    background-color: var(--page-index-background-dark);
    border-color: var(--page-index-background-dark);
    transform: translateY(-2px);
}

.page-index__btn--tertiary {
    background-color: transparent;
    color: var(--page-index-text-light);
    border: 2px solid var(--page-index-text-light);
}

.page-index__btn--tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-index__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 5px;
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark);
}

.page-index__btn--small:hover {
    background-color: var(--page-index-accent-light);
}

.page-index__btn--large {
    padding: 18px 36px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* Hero Section */
.page-index__hero-section {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, var(--page-index-background-dark) 100%);
    color: var(--page-index-text-light);
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-index__hero-content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
    padding-left: 20px;
}

.page-index__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--page-index-secondary-color);
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-index__hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
    flex-shrink: 0;
    width: 500px;
    height: 400px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-index__hero-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-index__about-section {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

.page-index__about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-index__about-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-index__about-text p {
    margin-bottom: 15px;
}

.page-index__about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-text-light);
}

.page-index__games-section .page-index__section-title {
    color: var(--page-index-secondary-color);
}

.page-index__games-section .page-index__section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.page-index__game-card {
    background-color: var(--page-index-primary-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
}

.page-index__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__game-card-title {
    font-size: 1.6em;
    color: var(--page-index-secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__game-card-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Promo Section */
.page-index__promo-section {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

.page-index__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-index__promo-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-index__promo-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__promo-card-title {
    font-size: 1.5em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__promo-card-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px;
}

.page-index__promo-action {
    text-align: center;
}

/* App Section */
.page-index__app-section {
    padding: 80px 0;
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
}

.page-index__app-section .page-index__container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-index__app-content {
    flex: 1;
}

.page-index__app-section .page-index__section-title {
    color: var(--page-index-secondary-color);
    text-align: left;
}

.page-index__app-section .page-index__section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index__app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-index__app-features li {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.page-index__icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--page-index-secondary-color);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.page-index__icon-check::before {
    content: '✓';
    color: var(--page-index-text-dark);
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-index__app-download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__btn--app {
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-index__btn--ios {
    background-color: var(--page-index-text-light);
    color: var(--page-index-text-dark);
}

.page-index__btn--ios:hover {
    background-color: #e0e0e0;
}

.page-index__btn--android {
    background-color: #A4C639; /* Android green */
    color: var(--page-index-text-light);
}

.page-index__btn--android:hover {
    background-color: #8bb32f;
}

.page-index__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Advantages Section */
.page-index__advantages-section {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

.page-index__advantage-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-index__advantage-item h3 {
    font-size: 1.5em;
    color: var(--page-index-primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-index__advantage-item p {
    font-size: 0.95em;
    color: #666;
}

/* Icons for advantages - simplified for placeholder */
.page-index__icon-security,
.page-index__icon-games,
.page-index__icon-support,
.page-index__icon-fast {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--page-index-secondary-color);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    position: relative;
}

.page-index__icon-security::before,
.page-index__icon-games::before,
.page-index__icon-support::before,
.page-index__icon-fast::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Font Awesome 5 Free'; /* Assuming Font Awesome is available in shared.css or similar */
    font-weight: 900;
    color: var(--page-index-primary-color);
    font-size: 24px;
}

.page-index__icon-security::before { content: '\f521'; } /* Shield-alt */
.page-index__icon-games::before { content: '\f11b'; } /* Gamepad */
.page-index__icon-support::before { content: '\f003'; } /* Envelope (for support) */
.page-index__icon-fast::before { content: '\f2f2'; } /* Tachometer-alt (for fast) */

/* Detail Pages Section */
.page-index__detail-pages-section {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-text-light);
}

.page-index__detail-pages-section .page-index__section-title {
    color: var(--page-index-secondary-color);
}

.page-index__detail-pages-section .page-index__section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.page-index__detail-page-item {
    background-color: var(--page-index-primary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-index__detail-page-item:hover {
    transform: translateY(-5px);
}

.page-index__detail-page-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-index__detail-page-item h3 a {
    color: var(--page-index-secondary-color);
    text-decoration: none;
}

.page-index__detail-page-item h3 a:hover {
    text-decoration: underline;
}

.page-index__detail-page-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* CTA Bottom Section */
.page-index__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark);
    text-align: center;
}

.page-index__cta-bottom-section .page-index__section-title {
    color: var(--page-index-primary-color);
}

.page-index__cta-bottom-section .page-index__section-subtitle {
    color: #333;
}

.page-index__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
        min-height: auto;
    }

    .page-index__hero-content {
        padding-left: 0;
    }

    .page-index__hero-title {
        font-size: 3em;
    }

    .page-index__hero-description {
        font-size: 1.2em;
    }

    .page-index__hero-actions {
        justify-content: center;
    }

    .page-index__about-grid {
        flex-direction: column;
    }

    .page-index__app-section .page-index__container {
        flex-direction: column-reverse;
    }

    .page-index__app-section .page-index__section-title,
    .page-index__app-section .page-index__section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .page-index__app-features {
        text-align: left;
        padding-left: 20px;
    }

    .page-index__app-download-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-index__section-title {
        font-size: 2.2em;
    }

    .page-index__section-subtitle {
        font-size: 1em;
    }

    .page-index__hero-title {
        font-size: 2.5em;
    }

    .page-index__hero-description {
        font-size: 1.1em;
    }

    .page-index__btn {
        padding: 12px 24px;
        font-size: 1em;
    }

    .page-index__btn--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-index__game-categories,
    .page-index__promo-grid,
    .page-index__advantages-grid,
    .page-index__detail-page-list {
        grid-template-columns: 1fr;
    }

    .page-index__hero-image-wrapper,
    .page-index__about-image-wrapper,
    .page-index__app-image-wrapper {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__btn {
        width: 100%;
    }
}