/* ══ Home: Hero Carousel, How It Works, Regions Map, CTA ══ */

/* ── Hero Section ── */
.hero-section {
    background-color: var(--bg-darkest);
    position: relative;
    overflow: hidden;
}

/* All screens: carousel + top-games header + first row of cards fully visible.
   Small: ~60px navbar + ~50px header + ~220px first card row (with game names) + ~24px padding = 354px.
   min-height prevents content from collapsing; overflow clips at small viewports. */
.hero-section .carousel-item {
    min-height: 280px;
    height: calc(100vh - 354px);
    overflow: hidden;
}

/* Medium screens: cards are taller with less gap.
   ~60px navbar + ~50px header + ~260px first card row + ~24px padding = 394px. */
@media (min-width: 768px) {
    .hero-section .carousel-item {
        height: calc(100vh - 394px);
        min-height: 280px;
    }
}

/* Large screens: carousel + full top-games section (1 row of 6) visible.
   ~60px navbar + ~50px header + ~250px card row = 360px reserved. */
@media (min-width: 1200px) {
    .hero-section .carousel-item {
        height: calc(100vh - 360px);
        min-height: 300px;
        max-height: 600px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    z-index: 0;
}

.hero-overlay-top { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(4,13,20,0.8) 0%, transparent 15%); }
.hero-overlay-bottom { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(4,13,20,0.8) 0%, transparent 15%); }
.hero-overlay-left { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--bg-darkest) 30%, transparent 70%); }
.hero-overlay-right { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, var(--bg-darkest) 5%, transparent 30%); }
.hero-overlay-mobile { position: absolute; inset: 0; z-index: 1; background: rgba(4,13,20,0.75); }

@media (min-width: 768px) {
    .hero-overlay-mobile { display: none; }
}

/* Small screens: center-aligned content with horizontal padding */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 1.25rem 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Medium screens: left-aligned */
@media (min-width: 768px) {
    .hero-content {
        padding: 1.5rem 0;
        align-items: center;
        text-align: left;
    }
}

/* Large screens: left-aligned, vertically centered */
@media (min-width: 1200px) {
    .hero-content {
        padding: 1rem 0;
    }
}

.hero-section h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1.1;
    margin: 0 0 0.35rem;
}

@media (min-width: 768px) { .hero-section h1 { font-size: 2.5rem; margin: 0 0 0.5rem; } }
@media (min-width: 1200px) { .hero-section h1 { font-size: 3.5rem; margin: 0 0 0.75rem; } }

.hero-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) { .hero-section h2 { font-size: 1.15rem; margin-bottom: 1rem; } }
@media (min-width: 1200px) { .hero-section h2 { font-size: 1.75rem; margin-bottom: 1.25rem; } }

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 0.75rem;
    display: inline-block;
    text-align: left;
}

/* Ensure the CTA button sits below the inline-block features list on small screens */
.hero-section .btn-get-started {
    display: block;
    clear: both;
}

@media (min-width: 768px) {
    .hero-section .btn-get-started {
        display: inline-block;
    }
}

.hero-features li {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.15rem 0;
}

@media (min-width: 768px) {
    .hero-features { margin: 0 0 1.25rem 0; display: block; }
    .hero-features li { font-size: 0.95rem; padding: 0.25rem 0; }
}

@media (min-width: 1200px) {
    .hero-features { margin: 0 0 1.75rem 0; }
    .hero-features li { font-size: 1rem; padding: 0.3rem 0; }
}

.hero-features li::before {
    content: '\2713';
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Hero pricing cards */
.hero-pricing {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-pricing { gap: 1rem; margin-top: 1.5rem; }
}

.pricing-card {
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-card);
    flex: 1;
    min-width: 130px;
    max-width: 200px;
    transition: transform 0.2s;
    text-decoration: none;
    color: #fff;
    border: 2px solid transparent;
}
.pricing-card:hover { transform: scale(1.05); color: #fff; }
.pricing-card.hourly { border-color: #017193; box-shadow: 0 0 20px rgba(1,113,147,0.2); }
.pricing-card.dedicated { border-color: #572c9b; box-shadow: 0 0 20px rgba(87,44,155,0.3); }

.pricing-card-header {
    padding: 0.2rem 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.pricing-card-header.hourly { background: #017193; }
.pricing-card-header.dedicated { background: #572c9b; }

.pricing-card-body {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pricing-card-body .price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 768px) {
    .pricing-card-body { padding: 0.75rem; gap: 0.5rem; }
    .pricing-card-body .price-amount { font-size: 2.5rem; }
}

.pricing-card-body .price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pricing-card-label {
    text-align: center;
    font-size: 0.7rem;
    padding: 0.15rem 0 0.3rem;
    color: var(--text-muted);
}

/* Carousel controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 20;
    width: 5%;
    opacity: 0.5;
}

.hero-section .carousel-indicators {
    z-index: 20;
}

/* ── How It Works ── */
.how-it-works-section {
    background-color: var(--bg-dark);
    padding: 4rem 0;
}

.how-it-works-section .section-heading {
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 1rem;
}

.step-card .step-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-card .step-img svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 12px rgba(14, 167, 231, 0.15));
}

.step-card .step-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to top, #0c3a6b, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-card .step-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.step-card .step-desc {
    font-size: 0.95rem;
    background: linear-gradient(to right, #d946ef, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.how-it-works-cta {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ── Regions Map ── */
.regions-map-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    padding: 1rem;
    pointer-events: none;
}

.regions-section {
    background-color: var(--bg-darkest);
    padding: 0 0 3rem;
}

.regions-layout {
    display: flex;
    flex-direction: column-reverse;
}

@media (min-width: 992px) {
    .regions-layout {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1400px;
        margin: 0 auto;
    }
    .regions-list-panel {
        flex: 0 0 280px;
        max-width: 280px;
        max-height: 500px;
        padding: 0 1rem 1rem 2rem;
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
    }
    /* Hide scrollbar but keep scroll functionality */
    .regions-list-panel::-webkit-scrollbar {
        width: 0;
        display: none;
    }
    .regions-list-panel {
        scrollbar-width: none;
    }
    .region-group {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }
    .regions-map-container {
        flex: 1;
        min-width: 0;
        max-height: 500px;
        display: flex;
        align-items: center;
    }
    .regions-map-container svg {
        max-height: 500px;
        width: auto;
    }
}

.regions-list-panel {
    padding: 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.region-group {
    min-width: 150px;
    margin-bottom: 0;
}

.regions-map-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regions-map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-pin circle {
    transition: r 0.2s ease, fill 0.2s ease, opacity 0.2s ease;
}

.map-pin.active circle:first-child {
    r: 28;
}

.map-pin.active circle:last-child {
    r: 8;
    fill: #3bbdf0;
}

#locationsMap.has-active .map-pin:not(.active) {
    opacity: 0.3;
}

#locationsMap.has-active .map-pin.active {
    opacity: 1;
}

.regions-section .region-group-title {
    color: var(--accent-blue);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.4rem 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.region-chevron {
    color: var(--accent-blue);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.region-group.collapsed .region-chevron {
    transform: rotate(0deg);
}

.region-group:not(.collapsed) .region-chevron {
    transform: rotate(180deg);
}

.region-group-items {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
    opacity: 1;
    margin-top: 0.25rem;
}

.region-group.collapsed .region-group-items {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.regions-section .region-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    cursor: default;
}

.regions-section .region-item:hover,
.regions-section .region-item.highlighted {
    background: rgba(14, 167, 231, 0.1);
    color: var(--text-primary);
}

.region-flag {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── CTA Section ── */
.cta-section {
    padding: 3rem 0;
}

.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

@media (min-width: 576px) { .cta-section h3 { font-size: 2rem; } }

.cta-section .cta-price {
    color: var(--accent-blue);
    font-size: 1.5rem;
    display: block;
    margin-top: 0.25rem;
}
