:root {
    --bg-dark: #030406;
    --bg-deep: #080b0f;
    --text-main: #f1f4f8;
    --text-muted: #8b9bb4;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --accent-cyan: #4bcaf9;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-color: #4bcaf9;
    --accent-light: #4bcaf9;
    --danger-red: #ef4444;
    --radius-pill: 99px;
    --radius-card: 16px;
    --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND SYSTEM
   To switch, change the class on <body> in base.html:
     bg-matrix  — animated matrix rain canvas (original)
     bg-grid    — static dot grid + glow radials  ← ACTIVE (Option C)
     bg-orbs    — animated drifting gradient orbs  (Option A)
   ═══════════════════════════════════════════════════════════════ */

/* Particle canvas is visible in all background modes */

/* ── OPTION C: Dot grid + glow radials ─────────────────────────── */
body.bg-grid {
    background-image:
        /* Top-center blue glow */
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(59, 130, 246, 0.32) 0%, transparent 65%),
        /* Bottom-right green accent */
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
        /* Bottom-left subtle purple */
        radial-gradient(ellipse 40% 30% at 5% 95%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
        /* Dot grid */
        radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
    background-attachment: fixed;
}

/* Page-Specific Themes (MC=Green, Rust=Red/Orange, CS2=Yellow/Gold, Gmod=Purple) */
body.bg-grid.theme-mc {
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(16, 185, 129, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(85, 197, 122, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 5% 95%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
        radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
}

body.bg-grid.theme-rust {
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(231, 76, 60, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(243, 156, 18, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 5% 95%, rgba(192, 57, 43, 0.12) 0%, transparent 55%),
        radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
}

body.bg-grid.theme-cs2 {
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(241, 196, 15, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(211, 84, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 5% 95%, rgba(230, 126, 34, 0.10) 0%, transparent 55%),
        radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
}

body.bg-grid.theme-gmod {
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(155, 89, 182, 0.30) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(142, 68, 173, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 5% 95%, rgba(52, 152, 219, 0.12) 0%, transparent 55%),
        radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
}

/* ── OPTION A: Animated drifting gradient orbs ─────────────────── */
body.bg-orbs {
    background-image:
        radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.08), transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(16, 185, 129, 0.05), transparent 45%);
    background-attachment: fixed;
}

body.bg-orbs::before,
body.bg-orbs::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: orb-drift 18s ease-in-out infinite alternate;
}

body.bg-orbs::before {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    background: rgba(59, 130, 246, 0.12);
}

body.bg-orbs::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: rgba(16, 185, 129, 0.09);
    animation-delay: -9s;
}

@keyframes orb-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, 40px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 80px) scale(0.95);
    }
}

/* ── OPTION MATRIX: keep canvas visible ─────────────────────────── */
body.bg-matrix {
    background-image:
        radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.05), transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(16, 185, 129, 0.03), transparent 40%);
    background-attachment: fixed;
}

section[id] {
    scroll-margin-top: 140px;
}

/* Typography Overrides */
.text-muted {
    color: #9ca3af !important;
    /* Much lighter gray for readability against dark backgrounds */
    font-weight: 400;
}

/* Video Background */
.ambient-video-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   NEW DYNAMIC BACKGROUND ELEMENTS
   ───────────────────────────────────────────────────────────── */

/* Warp Transition Overlay */
/* Particle disintegration transition overlay */
.warp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.warp-overlay canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Fade in on page load */
.site-main {
    animation: page-fade-in 0.5s ease both;
}

.site-footer {
    animation: page-fade-in 0.5s ease both;
    animation-delay: 0.2s;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Fade out page content during transition */
body.bg-warping .site-main {
    animation: none;
    transition: opacity 0.5s ease, filter 0.5s ease;
    opacity: 0;
    filter: blur(4px);
}


body.bg-warping .site-footer {
    animation: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Parallax dust replaced by interactive canvas particle system — see particles.js */

/* Abstract Wireframe Terrain — centered with translateX so
   perspective projection stays symmetric on all screen widths */
.wireframe-terrain {
    position: fixed;
    bottom: -15vh;
    left: 50%;
    width: 300vw;
    height: 70vh;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(59, 130, 246, 0.4) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(59, 130, 246, 0.4) 40px);
    background-size: 40px 40px, 40px 40px;
    transform: translateX(-50%) perspective(600px) rotateX(75deg);
    transform-origin: top center;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Theme terrain colors now handled by JS for smooth cross-page transitions */

.ambient-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 4, 6, 0.2) 0%, rgba(3, 4, 6, 0.6) 100%);
    pointer-events: none;
}

/* Navigation */
.navbar-glass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94%, 1240px);
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.14);
    background: rgba(12, 17, 26, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: all 0.3s ease;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand:hover {
    color: #ffffff;
}

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

.nav-links-main {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: auto;
}

.nav-links a {
    color: #b8c7da;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link-actions,
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 28px;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #ffffff;
}

/* Game Servers dropdown */
.navbar-glass .dropdown-menu {
    background: rgba(10, 14, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    min-width: 190px;
    z-index: 1100;
}

.navbar-glass .dropdown-item {
    color: #b8c7da;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 10px 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar-glass .dropdown-item:hover,
.navbar-glass .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399 !important;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

.status-indicator span {
    white-space: nowrap;
}

.status-indicator:hover,
.status-indicator:focus-visible {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    flex: 0 0 auto;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    grid-column: 3;
    justify-self: end;
    padding: 0;
}

.mobile-nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-glass.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-glass.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar-glass.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn-aero {
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
}

.btn-aero:hover,
.btn-aero:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
}

.btn-primary-action {
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-primary-action:hover,
.btn-primary-action:focus-visible {
    background: #e5e7eb;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.site-main {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    z-index: 2;
}

.hero-section {
    padding: 40px 0 60px;
}

.hero-kicker {
    margin: 0 0 20px;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 auto 24px;
    max-width: 900px;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typewriter (Typed.js) — reserve space only on index hero */
.hero-title:has(.typewriter-text) {
    min-height: 4.2em;
}

.hero-title .typed-cursor {
    -webkit-text-fill-color: #ffffff;
    background: none;
    font-weight: 300;
    opacity: 0.7;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-metrics {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 48px;
    border-top: 1px solid var(--glass-border);
    padding-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-metric {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-metric.metric-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-metric:nth-child(2) {
    transition-delay: 0.15s;
}

.hero-metric:nth-child(3) {
    transition-delay: 0.3s;
}

.metric-value {
    display: block;
    font-family: var(--font-mono);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    min-width: 7ch;
    min-height: 1.5em;
}

.metric-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content Sections */
.content-section {
    margin-top: 140px;
}

.section-heading-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.section-header {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.03em;
    font-weight: 500;
    color: #ffffff;
}

.section-header-small {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-align: left;
}

.section-subtitle {
    margin: 16px auto 0;
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Cards (Replacing the tight "glass" design with spacious premium cards) */
.glass-card {
    background: rgba(15, 20, 28, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
    max-width: 100%;
}

/* Only stretch to full height when in a grid/row context */
.row .glass-card,
.col .glass-card,
[class*="col-"] .glass-card {
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Plan Cards */
.plan-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(75, 202, 249, 0.4);
    box-shadow: 0 0 25px rgba(75, 202, 249, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-cyan));
    background-size: 200% auto;
    animation: border-shimmer 3s linear infinite;
    will-change: background-position;
}

@keyframes border-shimmer {
    to {
        background-position: 200% center;
    }
}

.plan-card.featured {
    background: rgba(20, 28, 40, 0.5);
    border-color: rgba(75, 202, 249, 0.25);
    box-shadow: 0 0 20px rgba(75, 202, 249, 0.08);
}

.plan-card.featured:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 35px rgba(75, 202, 249, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.plan-badge {
    align-self: flex-start;
    display: inline-flex;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Coming Soon (disabled purchase) */
.btn-coming-soon {
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.08em;
    font-weight: 500;
    font-size: 0.88rem;
    animation: coming-soon-pulse 3s ease-in-out infinite;
    will-change: opacity;
}

@keyframes coming-soon-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.75;
    }
}

.card-title {
    font-size: 1.5rem;
    margin: 0 0 8px;
    font-weight: 500;
    color: #ffffff;
}

.card-price {
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.spec-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.spec-list li {
    color: #c0cddb;
    font-size: 0.95rem;
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.spec-list i {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Features Structure */
.feature-card {
    height: 100%;
}

.feature-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.feature-title i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    background: rgba(75, 202, 249, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Matrix & Comparison Tables */
.comparison-card {
    padding: 0;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: transparent;
    font-weight: 500;
}

.comparison-table tbody th {
    width: 30%;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
}

.comparison-table td {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.comparison-blackhedge {
    color: #ffffff !important;
    font-weight: 500;
}

.comparison-others {
    color: var(--text-muted) !important;
}

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

.faq-item {
    padding: 24px 32px;
    border-radius: 12px;
    background: rgba(15, 20, 28, 0.4);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--text-muted);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Contact / Provisioning Form */
.contact-card {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 32px;
}

.form-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    padding: 14px 16px;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.form-input:focus {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.form-input::placeholder {
    color: #526071;
}

select.form-input option {
    background: #0b0f15;
    color: #ffffff;
}

.contact-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 1.2rem;
}

.contact-note-success {
    color: #10b981;
}

.contact-note-error {
    color: #ef4444;
}

/* Footer */
.site-footer {
    padding: 60px 0 80px;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    background: rgba(8, 11, 15, 0.6);
    position: relative;
    z-index: 2;
}

.site-footer a:hover {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Status Page Adjustments */
.provision-track {
    max-width: 900px;
    margin: 0 auto;
}

.provision-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.provision-subtitle {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 16px;
}

/* Make Status Colors more subtle */
.status-awaiting_payment {
    border-color: #d97706;
    color: #fbbf24;
}

.status-queued {
    border-color: #3b82f6;
    color: #60a5fa;
}

.status-provisioning {
    border-color: #8b5cf6;
    color: #a78bfa;
}

.status-completed {
    border-color: #10b981;
    color: #34d399;
}

.status-failed {
    border-color: #ef4444;
    color: #f87171;
}

.provision-meta {
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.provision-meta div {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    background: rgba(15, 20, 28, 0.4);
}

.provision-meta dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.provision-meta dd {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-mono);
}

.provision-access {
    margin-top: 24px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.provision-access p {
    margin: 8px 0;
    color: #a7f3d0;
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

.provision-log-heading {
    margin-top: 48px;
    font-size: 1.25rem;
    font-weight: 500;
}

.provision-log {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.provision-log-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(15, 20, 28, 0.4);
    padding: 16px 20px;
    align-items: start;
}

.provision-log-time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.provision-log-stage {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

.provision-log-message {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Quick Checkout */
.quick-checkout-container {
    width: 100%;
}

.quick-checkout-form {
    margin-top: 12px;
    animation: fadeIn 0.2s ease;
}

.quick-input {
    font-size: 0.9rem;
    padding: 10px 14px;
}

.quick-feedback {
    font-size: 0.85rem;
    line-height: 1.3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVENESS — MOBILE FIXES
   ═══════════════════════════════════════════════════════════════ */

/* iOS/mobile: background-attachment: fixed is broken on most
   mobile browsers — it renders zoomed/misaligned. Switch to scroll
   and use simpler gradient positioning. */
@supports (-webkit-touch-callout: none) {

    body.bg-grid,
    body.bg-orbs,
    body.bg-matrix {
        background-attachment: scroll !important;
    }
}

@media (max-width: 991.98px) {

    /* Force scroll attachment on all tablets/phones */
    body.bg-grid,
    body.bg-orbs,
    body.bg-matrix {
        background-attachment: scroll !important;
    }

    /* Shrink the gradient ellipses so they don't look off-center on narrow screens */
    body.bg-grid {
        background-image:
            radial-gradient(ellipse 100% 50% at 50% 0%, rgba(59, 130, 246, 0.25) 0%, transparent 70%),
            radial-gradient(ellipse 80% 40% at 80% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse 60% 30% at 20% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
            radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
    }

    body.bg-grid.theme-mc {
        background-image:
            radial-gradient(ellipse 100% 50% at 50% 0%, rgba(16, 185, 129, 0.20) 0%, transparent 70%),
            radial-gradient(ellipse 80% 40% at 80% 100%, rgba(85, 197, 122, 0.10) 0%, transparent 60%),
            radial-gradient(ellipse 60% 30% at 20% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 55%),
            radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
    }

    body.bg-grid.theme-rust {
        background-image:
            radial-gradient(ellipse 100% 50% at 50% 0%, rgba(231, 76, 60, 0.20) 0%, transparent 70%),
            radial-gradient(ellipse 80% 40% at 80% 100%, rgba(243, 156, 18, 0.10) 0%, transparent 60%),
            radial-gradient(ellipse 60% 30% at 20% 90%, rgba(192, 57, 43, 0.08) 0%, transparent 55%),
            radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
    }

    body.bg-grid.theme-cs2 {
        background-image:
            radial-gradient(ellipse 100% 50% at 50% 0%, rgba(241, 196, 15, 0.18) 0%, transparent 70%),
            radial-gradient(ellipse 80% 40% at 80% 100%, rgba(211, 84, 0, 0.10) 0%, transparent 60%),
            radial-gradient(ellipse 60% 30% at 20% 90%, rgba(230, 126, 34, 0.08) 0%, transparent 55%),
            radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
    }

    body.bg-grid.theme-gmod {
        background-image:
            radial-gradient(ellipse 100% 50% at 50% 0%, rgba(155, 89, 182, 0.22) 0%, transparent 70%),
            radial-gradient(ellipse 80% 40% at 80% 100%, rgba(142, 68, 173, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse 60% 30% at 20% 90%, rgba(52, 152, 219, 0.08) 0%, transparent 55%),
            radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 32px;
        border-top: none;
        padding-top: 0;
    }

    .hero-metric {
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 32px;
    }

    .hero-metric:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .navbar-glass {
        grid-template-columns: auto 1fr auto;
        padding: 12px 20px;
        width: calc(100% - 32px);
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        top: calc(100% + 12px);
        width: 100%;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        background: rgba(10, 14, 20, 0.95);
        backdrop-filter: blur(16px);
        padding: 24px;
        flex-direction: column;
        gap: 24px;
        transform: none;
    }

    .navbar-glass.nav-open .nav-links {
        display: flex;
    }

    .nav-links-main {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-link-actions,
    .nav-actions {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 16px;
    }

    /* Show status + portal links on mobile nav */
    .nav-actions {
        display: flex !important;
    }

    .site-main {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    /* Hide wireframe terrain on mobile — grid lines make the
       iOS Safari address bar resize very obvious */
    .wireframe-terrain {
        display: none;
    }

    /* Particle canvas: GPU-promote for smooth compositing */
    .ambient-video-layer {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

}

@media (max-width: 767.98px) {

    /* Prevent all horizontal overflow */
    html,
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .glass-card {
        padding: 20px;
    }

    .content-section {
        margin-top: 80px;
    }

    /* Hero fixes */
    .hero-section {
        padding: 20px 0 40px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .hero-title:has(.typewriter-text) {
        min-height: 5em;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }

    .hero-actions {
        margin-top: 28px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-aero {
        width: 100%;
        text-align: center;
    }

    .hero-metrics {
        margin-top: 48px;
        gap: 24px;
    }

    .metric-value {
        font-size: 1.25rem;
        min-width: auto;
    }

    /* Section headers */
    .section-heading-wrap {
        margin-bottom: 32px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    /* Cards: prevent overflow */
    .plan-card {
        padding: 24px 20px;
        height: auto;
    }

    /* Force plan cards to single column on phones */
    .row>[class*="col-md-6"],
    .row>[class*="col-xl-3"],
    .row>[class*="col-xl-4"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-price {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .spec-list li {
        font-size: 0.88rem;
        padding: 10px 0;
    }

    /* Feature cards */
    .feature-card {
        padding: 24px 20px;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    /* Comparison table: make it actually readable on mobile */
    .comparison-card {
        border-radius: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 14px 12px;
        font-size: 0.82rem;
    }

    .comparison-table tbody th {
        width: auto;
        min-width: 90px;
    }

    /* FAQ mobile */
    .faq-item {
        padding: 18px 16px;
    }

    .faq-item summary {
        font-size: 0.95rem;
    }

    /* Contact card */
    .contact-card {
        padding: 24px 20px;
    }

    /* Provision page mobile */
    .provision-track-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .provision-meta {
        grid-template-columns: 1fr;
    }

    .provision-meta dd {
        font-size: 0.88rem;
        word-break: break-all;
    }

    .provision-log-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .provision-access p {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn-aero {
        text-align: center;
    }

    /* Footer: prevent overflow */
    .site-footer {
        padding: 40px 0 50px;
    }

    .site-footer iframe {
        max-width: 100%;
        width: 100%;
    }

    .site-footer .d-flex {
        flex-direction: column;
        gap: 12px !important;
    }

    /* Trust badges: allow wrapping properly */
    .badge {
        font-size: 0.72rem !important;
    }

    /* Portal table: stack on mobile */
    .table-responsive {
        border-radius: 12px;
    }

    /* Login page: prevent card overflow */
    .login-card {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 28px 20px !important;
        box-sizing: border-box;
    }

    /* Status page components */
    .list-group-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
}

/* Extra small screens (< 400px) */
@media (max-width: 399.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .glass-card {
        padding: 16px;
        border-radius: 12px;
    }

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

    .hero-kicker {
        font-size: 0.65rem;
    }

    .section-header {
        font-size: 1.5rem;
    }

    .navbar-glass {
        padding: 10px 14px;
        width: calc(100% - 24px);
        top: 12px;
    }

    .plan-card {
        padding: 20px 16px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 0.78rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn-aero {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}