/* ═══════════════════════════════════════════════════════════════
   STORM HUB v2 — No emojis. SVGs only. Premium dark.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7c3aed;
    --purple-800: #6b21a8;
    --purple-900: #581c87;

    --bg-primary: #06050a;
    --bg-secondary: #0c0a14;
    --bg-card: rgba(255, 255, 255, 0.015);
    --bg-card-hover: rgba(255, 255, 255, 0.04);

    --text-primary: #eeedf2;
    --text-secondary: #8e8aa3;
    --text-muted: #524e66;

    --border: rgba(124, 58, 237, 0.12);
    --border-hover: rgba(124, 58, 237, 0.3);

    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Background ────────────────────────────────────────────── */
.bg-mesh {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        /* Dot grid pattern */
        radial-gradient(circle, rgba(124, 58, 237, 0.07) 1px, transparent 1px),
        /* Soft gradient orbs */
        radial-gradient(ellipse 80% 50% at 30% 10%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 90%, rgba(99, 33, 168, 0.05) 0%, transparent 60%);
    background-size: 32px 32px, 100% 100%, 100% 100%;
}

/* Animated floating orbs */
.bg-particles {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.bg-particles::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    top: -10%; left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}
.bg-particles::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    bottom: -10%; right: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, 80px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -30px) scale(1.05); }
    66% { transform: translate(40px, -60px) scale(0.9); }
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0;
    backdrop-filter: blur(16px);
    background: rgba(6, 5, 10, 0.75);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text-primary);
}
.logo-svg { flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 18px; letter-spacing: -0.5px; }
.logo-accent { color: var(--purple-400); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 13px; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.btn-nav {
    display: inline-flex !important; align-items: center; gap: 8px;
    background: rgba(124, 58, 237, 0.15) !important;
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--purple-300) !important;
    padding: 7px 16px; border-radius: 8px;
    font-weight: 600 !important; font-size: 13px !important;
    transition: var(--transition);
}
.btn-nav:hover {
    background: rgba(124, 58, 237, 0.25) !important;
    border-color: rgba(124, 58, 237, 0.4);
}

.mobile-menu {
    display: none; background: none; border: none;
    color: var(--text-primary); cursor: pointer;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    padding: 100px 24px 60px; position: relative;
}

.hero-glow {
    position: absolute; top: 5%; left: 50%; transform: translateX(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.15); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--purple-400);
    padding: 6px 16px; border-radius: 50px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 28px; letter-spacing: 0.3px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--purple-500);
    box-shadow: 0 0 8px var(--purple-500);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-line {
    display: block;
    font-size: clamp(38px, 6.5vw, 68px);
    font-weight: 900; line-height: 1.05; letter-spacing: -2px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-gradient {
    display: block;
    font-size: clamp(38px, 6.5vw, 68px);
    font-weight: 900; line-height: 1.05; letter-spacing: -2px;
    background: linear-gradient(135deg, var(--purple-400), var(--purple-600), #e879a8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.15s both;
}
.hero-sub {
    color: var(--text-secondary); font-size: 16px;
    max-width: 480px; margin: 20px auto 32px; line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.25s both;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    color: white; text-decoration: none;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    transition: var(--transition); border: none; cursor: pointer;
    position: relative; overflow: hidden;
}
.btn-primary.small { padding: 10px 24px; font-size: 13px; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text-primary);
    text-decoration: none; padding: 12px 28px; border-radius: 10px;
    font-weight: 600; font-size: 14px; transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--bg-card-hover); border-color: var(--border-hover);
    transform: translateY(-2px);
}
.btn-secondary span { position: relative; z-index: 1; }

/* ─── Hero Code Block ───────────────────────────────────────── */
.hero-code {
    margin-top: 48px; text-align: left;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; position: relative;
    max-width: 520px; margin-left: auto; margin-right: auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.code-header {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.code-dots span:first-child { background: rgba(239, 68, 68, 0.5); }
.code-dots span:nth-child(2) { background: rgba(245, 158, 11, 0.5); }
.code-dots span:last-child { background: rgba(16, 185, 129, 0.5); }

.code-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--text-muted);
}
.code-body {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; line-height: 1.5;
    overflow-x: auto;
}
.code-body code { white-space: nowrap; }
.code-kw { color: var(--purple-400); }
.code-fn { color: #93c5fd; }
.code-str { color: #86efac; }

.code-copy {
    position: absolute; top: 8px; right: 12px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted); padding: 4px 10px;
    border-radius: 6px; font-size: 11px;
    font-family: 'Inter', sans-serif;
    cursor: pointer; transition: var(--transition);
}
.code-copy:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* ─── Section Headers ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--purple-400);
    padding: 5px 14px; border-radius: 50px;
    font-size: 11px; font-weight: 600; margin-bottom: 16px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.section-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 10px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--purple-400), var(--purple-600));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header p {
    color: var(--text-secondary); font-size: 15px;
    max-width: 500px; margin: 0 auto;
}

/* ─── Features Grid ─────────────────────────────────────────── */
.features { padding: 100px 0; position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: var(--transition);
}
.feature-card:hover {
    background: var(--bg-card-hover); border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}
.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px; margin-bottom: 18px;
    color: var(--purple-400);
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }

/* ─── Games — 2 Column Large Cards ──────────────────────────── */
.games {
    padding: 100px 0; position: relative; z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.015) 50%, transparent 100%);
}
.games-grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.game-card-lg {
    position: relative; border-radius: var(--radius-xl);
    overflow: hidden; transition: var(--transition);
}
.game-card-lg:hover { transform: translateY(-4px); }

.game-card-bg {
    position: absolute; inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}
.game-card-lg:hover .game-card-bg { border-color: var(--border-hover); }

.game-card-inner {
    position: relative; z-index: 1; padding: 32px;
}

.game-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.game-status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.game-status-pill.online {
    background: rgba(16, 185, 129, 0.1); color: #10b981;
}
.status-pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    animation: pulse 2s ease-in-out infinite;
}
.game-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 10px; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-image-wrapper {
    display: flex; justify-content: center;
    margin-bottom: 20px;
}
.game-image-placeholder {
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px;
    transition: var(--transition);
}
.game-image-placeholder img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 20px;
}

.game-card-lg h3 {
    font-size: 22px; font-weight: 800; margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.game-desc {
    color: var(--text-secondary); font-size: 13px;
    line-height: 1.7; margin-bottom: 16px;
}

.game-features-list {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px;
}
.game-features-list span {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: var(--purple-400);
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 500;
}

.btn-game-lg {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    color: white; text-decoration: none;
    padding: 10px 24px; border-radius: 10px;
    font-weight: 600; font-size: 13px;
    transition: var(--transition); border: none; cursor: pointer;
}
.btn-game-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.more-games-teaser {
    text-align: center; margin-top: 40px;
    color: var(--text-muted); font-size: 14px;
}

/* ─── Status ────────────────────────────────────────────────── */
.status-section { padding: 100px 0; position: relative; z-index: 1; }
.status-grid {
    max-width: 550px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 10px;
}
.status-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.status-name { flex: 1; font-weight: 500; font-size: 13px; }
.status-label {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}
.status-label.online { background: rgba(16, 185, 129, 0.08); color: #10b981; }

.status-link {
    text-align: center; margin-top: 24px;
}
.status-link a {
    color: var(--purple-400); text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.status-link a:hover { color: var(--purple-300); }

/* ─── Premium ───────────────────────────────────────────────── */
.premium { padding: 100px 0; position: relative; z-index: 1; }
.premium-card {
    position: relative; background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden; padding: 64px 36px;
}
.premium-glow {
    position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 250px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.premium-content {
    position: relative; text-align: center;
    max-width: 600px; margin: 0 auto;
}
.premium-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 5px 14px; border-radius: 50px;
    font-size: 11px; font-weight: 600; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.premium-content h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 10px;
}
.premium-content > p {
    color: var(--text-secondary); font-size: 15px; margin-bottom: 36px;
}
.premium-features {
    text-align: left; max-width: 360px; margin: 0 auto 40px;
}
.pf {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; font-size: 13px; color: var(--text-secondary);
}
.premium-pricing {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.price-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    min-width: 200px; position: relative; transition: var(--transition);
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.price-card.featured {
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.04);
}
.price-badge {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0a0a0f; padding: 3px 14px; border-radius: 20px;
    font-size: 10px; font-weight: 700; white-space: nowrap;
}
.price-card h3 {
    font-size: 14px; font-weight: 600; margin-bottom: 6px;
    color: var(--text-secondary);
}
.price { font-size: 38px; font-weight: 900; margin-bottom: 20px; }
.price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
    padding: 48px 0 24px; border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}
.footer-inner {
    display: flex; justify-content: space-between; margin-bottom: 32px;
}
.footer-logo {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.footer-brand p { color: var(--text-muted); font-size: 12px; }
.footer-columns { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
    font-size: 12px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.footer-col a {
    color: var(--text-muted); text-decoration: none; font-size: 13px;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.footer-bottom p { color: var(--text-muted); font-size: 11px; }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .games-grid-2col { grid-template-columns: 1fr; }
    .premium-card { padding: 36px 20px; }
    .premium-pricing { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-columns { gap: 40px; }
}
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
