/*
 * "GameServerHosting" landing theme — replaces the earlier orange/blue
 * "Electric Xtra" look with a calmer green-on-black dev-tool aesthetic,
 * ported from designs/GameServerHosting Standalone.html: near-black
 * background, a single neon-green accent, Chakra Petch (headings) +
 * Space Grotesk (body) fonts, pill buttons, translucent bordered cards,
 * and a subtle grid + radial-glow backdrop (no scanlines/glitch text/
 * floating shapes this time).
 * Loaded after landing.css so these rules win without !important.
 */

:root {
    --bg-body: #0a0a10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-main: #eef2f4;
    --text-muted: rgba(238, 242, 244, 0.6);
    --primary-color: #39FF9D;
    --primary-hover: #2de88d;
    --secondary-color: #39FF9D;
    --accent-gradient: var(--primary-color);
    --navbar-bg: rgba(10, 10, 16, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-body);
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    position: relative;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn, .section-title, .logo-text,
.game-badge, .tier-name, .badge-outline {
    font-family: 'Chakra Petch', 'Space Grotesk', sans-serif;
}

/* ---------------------------------------------------------------- */
/* Ambient background: faint grid + soft green glow (CSS only)       */
/* ---------------------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(57, 255, 157, 0.14), transparent 60%);
}

/* ---------------------------------------------------------------- */
/* Navbar                                                             */
/* ---------------------------------------------------------------- */
.navbar {
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 16, 0.92) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.35);
}

.nav-link {
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #08130d;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #08130d;
    box-shadow: 0 0 24px rgba(57, 255, 157, 0.5);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    background: transparent;
}

.btn-outline-light:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    background: transparent;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #08130d;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Bootstrap's default .bg-primary clashes with this palette */
.custom-card .bg-primary {
    background: var(--primary-color) !important;
}

/* Our translucent --border-color otherwise lets the background image bleed
   through the 1px border as a light rim around the card edge. */
.custom-card-bg {
    background-clip: padding-box;
}

/* ---------------------------------------------------------------- */
/* Badges / eyebrow labels                                            */
/* ---------------------------------------------------------------- */
.badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(57, 255, 157, 0.35);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 12.5px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- */
/* Hero                                                                */
/* ---------------------------------------------------------------- */
.hero-section {
    padding: 7rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: var(--text-main);
    /* landing.css sets a gradient-clip transparent-text effect on
       .hero-title for the old theme; reset it so the heading is solid
       text again instead of invisible/washed out. */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
    margin-left: 0;
}

.hero-actions {
    justify-content: flex-start !important;
}

.trust-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(238, 242, 244, 0.5);
}

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: repeating-linear-gradient(135deg, #12161d, #12161d 12px, #161b23 12px, #161b23 24px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual span {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 12.5px;
    letter-spacing: 0.5px;
    color: rgba(238, 242, 244, 0.4);
    text-align: center;
    padding: 0 24px;
}

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

    .hero-actions, .trust-stats {
        justify-content: center !important;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------------------------------------------------------------- */
/* Layout width/padding (mockup uses a roomy 1280px / 48px gutter)    */
/* ---------------------------------------------------------------- */
.container {
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 768px) {
    .container {
        max-width: 1280px;
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* ---------------------------------------------------------------- */
/* Section headers (no divider bar in this design)                    */
/* ---------------------------------------------------------------- */
.section-title h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 2rem;
}

#games h1 {
    font-size: 2.25rem;
}

#tiers h1 {
    font-size: 1.875rem;
}

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

/* ---------------------------------------------------------------- */
/* Features grid                                                      */
/* ---------------------------------------------------------------- */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    height: 100%;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(57, 255, 157, 0.12);
    border: 1.5px solid rgba(57, 255, 157, 0.4);
    margin-bottom: 1.1rem;
}

.feature-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------------------------------------------------------------- */
/* Games search + grid                                                */
/* ---------------------------------------------------------------- */
.games-search {
    width: 100%;
    max-width: 360px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 14.5px;
    outline: none;
}

.games-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 255, 157, 0.15);
}

.game-card {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover, .game-card.is-active {
    border-color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.game-badge {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    background: rgba(57, 255, 157, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-color);
    margin: 0 auto 1.1rem;
    overflow: hidden;
}

.game-badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.game-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem;
    margin-top: 1.1rem;
    font-size: 13.5px;
    color: var(--text-muted);
}

.game-price b {
    color: var(--primary-color);
}

.game-price .arrow {
    color: var(--primary-color);
    font-size: 16px;
}

.game-card-empty {
    background: rgba(255, 255, 255, 0.015);
    border: 1.5px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(238, 242, 244, 0.4);
    gap: 6px;
    min-height: 200px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover .game-card-empty {
    border-color: var(--primary-color);
    color: rgba(238, 242, 244, 0.7);
}

/* ---------------------------------------------------------------- */
/* Always-on carousels: the games grid and tier cards always scroll   */
/* horizontally with snap points -- never wrap into a stacked grid,   */
/* at any viewport width. How many cards are visible at once scales   */
/* with viewport width, but it's always a scroll, never a stack.      */
/* ---------------------------------------------------------------- */
#game-grid,
.tier-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

#game-grid::-webkit-scrollbar,
.tier-grid::-webkit-scrollbar {
    height: 6px;
}

#game-grid::-webkit-scrollbar-thumb,
.tier-grid::-webkit-scrollbar-thumb {
    background-color: rgba(57, 255, 157, 0.4);
    border-radius: 999px;
}

#game-grid > .game-grid-item,
.tier-grid > .tier-grid-item {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    #game-grid > .game-grid-item,
    .tier-grid > .tier-grid-item {
        flex-basis: 46%;
        max-width: 46%;
    }
}

@media (min-width: 992px) {
    #game-grid > .game-grid-item {
        flex-basis: 24%;
        max-width: 24%;
    }

    /* Tiers are usually exactly 3 cards (Small/Medium/Large) -- size them
       to fill the content width like the old 3-column grid did, rather
       than the games carousel's narrower "show ~4" width. Categories with
       more than 3 products still scroll horizontally as normal. */
    .tier-grid > .tier-grid-item {
        flex-basis: 33.333%;
        max-width: 33.333%;
    }
}

/* ---------------------------------------------------------------- */
/* Tiers (pricing) section                                            */
/* ---------------------------------------------------------------- */
.tier-group {
    display: none;
}

.tier-group.is-active {
    display: block;
}

.tiers-game-context {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.25rem;
}

.tiers-game-badge {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    border: 2px solid var(--primary-color);
    background: rgba(57, 255, 157, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    flex: none;
}

.tier-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.tier-card.popular {
    background: rgba(57, 255, 157, 0.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 32px rgba(57, 255, 157, 0.15);
}

.tier-popular-ribbon {
    position: absolute;
    top: -13px;
    right: 24px;
    background: var(--primary-color);
    color: #08130d;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.tier-name {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-main);
}

.tier-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: -0.5rem 0 0;
    /* Reserve space for 1 line regardless of whether a product has a
       description, so the price/stats below stay aligned across cards in
       the same row instead of shifting up when a description is missing. */
    min-height: 1.275rem;
    overflow: hidden;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tier-price .amount {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--text-main);
}

.tier-price .suffix {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tier-divider {
    height: 1px;
    background: var(--border-color);
}

.tier-stats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 13.5px;
}

.tier-stat-row {
    display: flex;
    justify-content: space-between;
}

.tier-stat-row .label {
    color: var(--text-muted);
}

.tier-stat-row .value {
    color: var(--text-main);
}

.tier-stat-row .value.included {
    color: var(--primary-color);
}

.tier-cta {
    margin-top: auto;
}

.tiers-contact-note {
    text-align: center;
    color: rgba(238, 242, 244, 0.45);
    font-size: 13.5px;
    margin: 2.5rem 0 0;
}

.tiers-contact-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.tiers-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------- */
/* Comparison table (why choose us)                                   */
/* ---------------------------------------------------------------- */
.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
}

.comparison-table table {
    color: var(--text-main);
    margin-bottom: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    white-space: nowrap;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table thead th {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-bottom-width: 1px;
}

.comparison-table .feature-col {
    color: var(--text-muted);
    font-weight: 500;
}

.comparison-table .others-col {
    color: rgba(238, 242, 244, 0.45);
}

.comparison-table .others-col-negative i {
    color: rgba(239, 68, 68, 0.7);
}

.comparison-table .ours-col {
    color: var(--text-main);
    font-weight: 600;
    background: rgba(57, 255, 157, 0.06);
    border-left: 1px solid rgba(57, 255, 157, 0.25);
    border-right: 1px solid rgba(57, 255, 157, 0.25);
}

.comparison-table .ours-col i {
    color: var(--primary-color);
    margin-right: 0.4rem;
}

.comparison-table thead .ours-col {
    background: rgba(57, 255, 157, 0.12);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .comparison-table th,
    .comparison-table td {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
}

/* ---------------------------------------------------------------- */
/* FAQ accordion                                                       */
/* Re-skinned via Bootstrap 5's accordion CSS variables (--bs-accordion-*)
   rather than fighting individual properties/!important, since Bootstrap's
   own accordion rules already reference these variables internally. */
/* ---------------------------------------------------------------- */
.faq-accordion {
    --bs-accordion-bg: var(--bg-card);
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-border-radius: 12px;
    --bs-accordion-inner-border-radius: 11px;
    --bs-accordion-color: var(--text-main);
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-btn-color: var(--text-main);
    --bs-accordion-btn-focus-border-color: transparent;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(57, 255, 157, 0.15);
    --bs-accordion-active-color: var(--primary-color);
    --bs-accordion-active-bg: rgba(57, 255, 157, 0.06);
    --bs-accordion-body-color: var(--text-muted);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23eef2f4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2339FF9D'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-item {
    margin-bottom: 1rem;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.faq-accordion .accordion-body {
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    min-height: 4rem;
}

/* ---------------------------------------------------------------- */
/* Footer                                                              */
/* ---------------------------------------------------------------- */
footer {
    background-color: #08080c;
    border-top: 1px solid var(--border-color);
    /* landing.css sets padding: 3rem 0 on footer; the new footer markup
       already adds its own py-4 on the inner container, so reset this to
       avoid stacking both. */
    padding: 0;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                          */
/* ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}
