/* ═══════════════════════════════════════════
   HypHosting — Marketing Website
   Dark premium aesthetic, Outfit font
   ═══════════════════════════════════════════ */

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

:root {
    --bg: #050505;
    --bg-elevated: #0a0a0a;
    --surface: #0f0f0f;
    --surface-2: #161616;
    --surface-3: #1c1c1c;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #f0f0f0;
    --text-secondary: #9a9a9a;
    --text-tertiary: #808080;
    --accent: #ef4444;
    --accent-dim: #dc2626;
    --accent-glow: rgba(239,68,68,0.15);
    --accent-glow-strong: rgba(239,68,68,0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Outfit', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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


/* ─── Navbar ─── */

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: var(--border);
    padding: 14px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.nav-logo-img {
    width: 34px; height: 34px; border-radius: 10px;
    box-shadow: 0 0 20px rgba(239,68,68,0.15);
}
.nav-links {
    display: flex; gap: 32px; margin-left: auto;
}
.nav-links a {
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    transition: color 0.2s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--accent); transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 10px; margin-left: 32px; }

.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; margin-left: auto;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px; background: var(--text);
    margin: 5px 0; transition: 0.3s; border-radius: 1px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ─── Buttons ─── */

.btn {
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none; display: inline-flex; align-items: center; gap: 8px;
    letter-spacing: -0.01em;
}
.btn-ghost {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--text); border-color: var(--border-hover);
    background: var(--surface);
}
.btn-primary {
    background: var(--accent); color: #000;
}
.btn-primary:hover {
    background: #f87171;
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-block { display: flex; width: 100%; justify-content: center; }


/* ─── Hero ─── */

.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 140px 24px 60px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black, transparent);
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}
.hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.5;
}
.glow-1 {
    width: 700px; height: 700px; top: -150px; left: 15%;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}
.glow-2 {
    width: 500px; height: 500px; bottom: -5%; right: 5%;
    background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite 3s;
}
.glow-3 {
    width: 400px; height: 400px; top: 40%; right: 25%;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite 1.5s;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Staggered entrance */
.hero-enter {
    opacity: 0; transform: translateY(24px);
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-enter-d1 { animation-delay: 0.1s; }
.hero-enter-d2 { animation-delay: 0.25s; }
.hero-enter-d3 { animation-delay: 0.4s; }
.hero-enter-d4 { animation-delay: 0.55s; }
.hero-enter-d5 { animation-delay: 0.65s; }
.hero-enter-d6 { animation-delay: 0.5s; }
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-split {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px 7px 12px; border-radius: 100px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    margin-bottom: 28px;
}
.badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow-strong);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-glow-strong); }
    50% { opacity: 0.4; box-shadow: 0 0 16px var(--accent-glow-strong); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 68px); font-weight: 800;
    line-height: 1.05; margin-bottom: 20px; letter-spacing: -0.04em;
}
.hero-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #f87171 50%, var(--accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerAccent 4s ease-in-out infinite;
}
@keyframes shimmerAccent {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-subtitle {
    font-size: 17px; color: var(--text-secondary); max-width: 460px;
    margin: 0 0 36px; line-height: 1.7; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
    color: var(--text-tertiary); font-size: 13px; margin-top: 16px;
}

/* Trust indicators */
.hero-trust {
    display: flex; align-items: center; gap: 20px; margin-top: 28px;
    padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-tertiary); font-weight: 500;
}
.hero-trust-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Hero visual — terminal card */
.hero-visual {
    position: relative;
}
.hero-terminal {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.03),
        0 0 60px rgba(239,68,68,0.06);
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-terminal:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
    box-shadow:
        0 32px 100px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.06),
        0 0 80px rgba(239,68,68,0.1);
}
.hero-terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.hero-terminal-dots {
    display: flex; gap: 6px;
}
.hero-terminal-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.hero-terminal-dots span:nth-child(1) { background: #ef4444; }
.hero-terminal-dots span:nth-child(2) { background: #fbbf24; }
.hero-terminal-dots span:nth-child(3) { background: #22c55e; }

/* Terminal title with live indicator */
.hero-terminal-title {
    font-size: 12px; font-weight: 600; color: var(--text-tertiary);
    font-family: var(--mono); margin-left: auto;
    letter-spacing: 0.02em;
    display: inline-flex; align-items: center; gap: 6px;
}
.terminal-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.5);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
    50% { opacity: 0.4; box-shadow: 0 0 12px rgba(34,197,94,0.3); }
}

/* Terminal body */
.hero-terminal-body {
    padding: 20px; font-family: var(--mono);
    font-size: 12.5px; line-height: 1.8; color: var(--text-secondary);
    min-height: 200px; position: relative;
    overflow: hidden;
}

/* Staggered line entrance */
.hero-terminal-body > div {
    opacity: 0; transform: translateX(-8px);
    animation: termLineIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-terminal-body > div:nth-child(1) { animation-delay: 0.6s; }
.hero-terminal-body > div:nth-child(2) { animation-delay: 0.72s; }
.hero-terminal-body > div:nth-child(3) { animation-delay: 0.84s; }
.hero-terminal-body > div:nth-child(4) { animation-delay: 0.96s; }
.hero-terminal-body > div:nth-child(5) { animation-delay: 1.08s; }
.hero-terminal-body > div:nth-child(6) { animation-delay: 1.2s; }
.hero-terminal-body > div:nth-child(7) { animation-delay: 1.32s; }
.hero-terminal-body > div:nth-child(8) { animation-delay: 1.5s; }
@keyframes termLineIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Command prompt */
.t-line-prompt { margin-top: 8px; }

/* Game-specific colors */
.hero-terminal-body .t-green { color: #22c55e; }
.hero-terminal-body .t-blue { color: #3b82f6; }
.hero-terminal-body .t-yellow { color: #fbbf24; }
.hero-terminal-body .t-red { color: #ef4444; }
.hero-terminal-body .t-dim { color: var(--text-tertiary); }
.hero-terminal-body .t-white { color: var(--text); }
.hero-terminal-body .t-rust { color: #cd412b; }
.hero-terminal-body .t-purple { color: #8b5cf6; }
.hero-terminal-body .t-cyan { color: #06b6d4; }

/* Typing cursor */
.hero-cursor {
    display: inline-block; width: 7px; height: 14px;
    background: var(--accent); margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scan line overlay on terminal */
.hero-terminal-body::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(
        transparent 0px, transparent 2px,
        rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px
    );
    pointer-events: none; z-index: 1;
}
/* Bottom fade gradient */
.hero-terminal-body::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--surface));
    pointer-events: none; z-index: 2;
}

/* Floating stat cards around terminal */
.hero-float-card {
    position: absolute;
    background: rgba(15,15,15,0.8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 16px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 2; white-space: nowrap;
    animation: floatBob 5s ease-in-out infinite;
}
.hero-float-card svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-float-value { font-size: 14px; font-weight: 700; }
.hero-float-label { font-size: 11px; color: var(--text-tertiary); }
.hero-float-card.fc-1 {
    top: -16px; right: -20px;
    animation-delay: 0s;
    border-color: rgba(34,197,94,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(34,197,94,0.05);
}
.hero-float-card.fc-2 {
    bottom: 40px; left: -30px;
    animation-delay: 2s;
    border-color: rgba(59,130,246,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.05);
}
.hero-float-card.fc-3 {
    bottom: -12px; right: 40px;
    animation-delay: 1s;
    border-color: rgba(239,68,68,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(239,68,68,0.05);
}
@keyframes floatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-enter { animation: none; opacity: 1; transform: none; }
    .hero-grid { animation: none; }
    .glow-1, .glow-2, .glow-3 { animation: none; }
    .hero-accent { animation: none; }
    .hero-float-card { animation: none; }
    .badge-dot { animation: none; }
    .hero-cursor { animation: none; opacity: 1; }
    .terminal-live-dot { animation: none; }
    .hero-terminal-body > div { animation: none; opacity: 1; transform: none; }
}


/* ─── 3D Hero Showcase ─── */

.hero-showcase-wrapper {
    position: sticky;
    top: -80px;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    perspective: 2400px;
    overflow: hidden;
}
.hero-showcase-card {
    width: 88%;
    max-width: 1100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transform: translateY(200px) rotateX(18deg) scale(0.92);
    transform-origin: center top;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 80px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.hero-showcase-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.hero-showcase-url {
    font-size: 12px; color: var(--text-tertiary); font-family: var(--mono);
    background: var(--surface); padding: 4px 16px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); flex: 1; max-width: 300px;
    text-align: center; margin: 0 auto;
}
.hero-showcase-card img {
    width: 100%;
    display: block;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.cursor-blink {
    display: inline-block; width: 8px; height: 16px;
    background: var(--accent); vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


/* ─── Stats Strip ─── */

.stats-strip {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.stats-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap;
}
.stat-block { text-align: center; }
.stat-number {
    font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
    color: var(--text);
}
.stat-suffix {
    font-size: 20px; font-weight: 600; color: var(--accent);
}
.stat-label {
    display: block; font-size: 13px; color: var(--text-tertiary);
    font-weight: 500; margin-top: 4px; letter-spacing: 0.02em;
    text-transform: uppercase;
}
.stat-divider {
    width: 1px; height: 40px; background: var(--border);
}


/* ─── Features ─── */

.features { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 600;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800;
    margin-bottom: 12px; letter-spacing: -0.03em;
}
.section-header p { color: var(--text-secondary); font-size: 16px; max-width: 480px; margin: 0 auto; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden; cursor: pointer;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px; height: 48px; border-radius: var(--radius-xs);
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
    font-size: 17px; font-weight: 700; margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature-card p {
    color: var(--text-secondary); font-size: 14px; line-height: 1.7;
}


/* ─── Panel Showcase ─── */

.panel-showcase {
    padding: 96px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.panel-window {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 80px var(--accent-glow);
    margin-bottom: 64px;
}
.panel-window-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.panel-window-url {
    font-size: 12px; color: var(--text-tertiary); font-family: var(--mono);
    background: var(--surface); padding: 4px 16px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); flex: 1; max-width: 300px;
    text-align: center;
}
.panel-showcase-devices {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 64px;
}
.panel-window {
    flex: 1;
    min-width: 0;
}
.panel-window-body {
    display: block;
}
.panel-window-body img {
    width: 100%; max-width: 100%; height: auto; display: block;
}

/* Phone mockup */
.panel-phone {
    width: 180px;
    flex-shrink: 0;
    margin-left: -60px;
    background: #0a0a0a;
    border-radius: 28px;
    border: 3px solid #2a2a2a;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px var(--accent-glow);
    z-index: 2;
    align-self: center;
}
.phone-notch {
    width: 80px;
    height: 5px;
    background: #2a2a2a;
    border-radius: 3px;
    margin: 8px auto 0;
}
.panel-phone img {
    width: 100%; max-width: 100%; height: auto;
    display: block;
    padding: 3px;
    border-radius: 24px;
}

/* Panel features grid */
.panel-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.panel-feature {
    padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.panel-feature-icon {
    width: 40px; height: 40px; border-radius: var(--radius-xs);
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; color: var(--accent);
}
.panel-feature-icon svg { width: 20px; height: 20px; }
.panel-feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.panel-feature p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }


/* ─── Marketplace ─── */

.marketplace { padding: 96px 0; }

/* Services split layout */
.services-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    margin-bottom: 48px; align-items: start;
}

/* Left: Apps panel */
.services-apps {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 36px;
    position: relative; overflow: hidden;
}
.services-apps::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(239,68,68,0.08), transparent 70%);
    pointer-events: none;
}
.services-apps-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent);
    margin-bottom: 16px;
}
.services-apps-title {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 12px; line-height: 1.3;
}
.services-apps-desc {
    color: var(--text-secondary); font-size: 14px; line-height: 1.8;
    margin-bottom: 24px;
}
.services-platforms {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.platform-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    padding: 6px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}

/* Right: Service cards stacked */
.services-custom {
    display: flex; flex-direction: column; gap: 16px;
}
.service-card {
    display: flex; align-items: flex-start; gap: 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    transition: border-color 0.2s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.service-card-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid;
}
.service-card h4 {
    font-size: 15px; font-weight: 700; margin-bottom: 6px;
}
.service-card p {
    color: var(--text-secondary); font-size: 13px; line-height: 1.7; margin: 0;
}

.market-cta {
    text-align: center; padding: 48px 40px; border-radius: var(--radius);
    background: linear-gradient(170deg, rgba(239,68,68,0.06) 0%, var(--surface) 40%, var(--surface) 100%);
    border: 1px solid rgba(239,68,68,0.12);
    position: relative; overflow: hidden;
}
.market-cta::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(170deg, rgba(239,68,68,0.3), rgba(239,68,68,0.08), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.cta-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.15);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--accent);
}
.cta-icon-wrap svg { width: 24px; height: 24px; }
.cta-title {
    font-size: 22px; font-weight: 700; margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.market-cta p {
    color: var(--text-secondary); font-size: 15px; margin-bottom: 24px;
    max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.6;
}


/* ─── Games Supported ─── */

.games {
    padding: 96px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.games-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.game-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0;
    text-align: center; position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; overflow: hidden;
}
.game-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.game-card:hover .game-img img { transform: scale(1.05); }
.game-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}
.game-badge {
    position: absolute; top: -1px; z-index: 2;
    background: var(--accent); color: #000;
    font-size: 11px; font-weight: 700; padding: 3px 12px;
    border-radius: 0 0 8px 8px; letter-spacing: 0.02em;
}
.game-img {
    width: 100%; height: 120px; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.game-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.game-info { padding: 16px 20px 20px; width: 100%; }
.game-card-more .game-img-more {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,188,212,0.08), rgba(59,130,246,0.08));
    color: var(--text-tertiary);
}
.game-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.game-card p { color: var(--text-tertiary); font-size: 13px; margin-bottom: 14px; }

.game-tags {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin-bottom: 16px;
}
.game-tag {
    font-size: 11px; font-weight: 600; color: var(--text-tertiary);
    padding: 2px 8px; border-radius: 100px;
    background: var(--surface-2); border: 1px solid var(--border);
}

.game-status {
    font-size: 12px; font-weight: 700; padding: 5px 14px;
    border-radius: 100px; margin-top: auto;
}
.game-status-live {
    background: rgba(34,197,94,0.1); color: #22c55e;
    border: 1px solid rgba(34,197,94,0.2);
}
.game-status-soon {
    background: rgba(234,179,8,0.1); color: #eab308;
    border: 1px solid rgba(234,179,8,0.2);
}
.game-status-request {
    background: rgba(59,130,246,0.1); color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.2);
    cursor: pointer;
}


/* ─── Pricing ─── */

.pricing {
    padding: 96px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; max-width: 1000px; margin: 0 auto;
    align-items: start;
}
.pricing-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px;
    position: relative; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 60px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4);
    transform: scale(1.03);
    z-index: 1;
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }

.popular-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #000; font-size: 12px; font-weight: 700;
    padding: 5px 18px; border-radius: 100px; white-space: nowrap;
    letter-spacing: 0.02em;
}
.pricing-header { margin-bottom: 20px; }
.pricing-name {
    font-size: 22px; font-weight: 700; margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.pricing-desc { font-size: 14px; color: var(--text-tertiary); }

.pricing-price { margin-bottom: 28px; }
.price-currency {
    font-size: 22px; color: var(--text-secondary); vertical-align: top;
    margin-right: 2px; font-weight: 500;
}
.price-amount { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; }
.price-period { font-size: 16px; color: var(--text-tertiary); font-weight: 500; }

.pricing-features {
    list-style: none; margin-bottom: 32px;
}
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; font-size: 14px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }


/* ─── Waitlist Form ─── */

.waitlist-form {
    display: flex; flex-direction: column; gap: 8px;
}
.waitlist-input {
    width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); font-size: 14px; font-family: var(--font);
    outline: none; text-align: center;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-input::placeholder { color: var(--text-tertiary); }
.waitlist-success {
    text-align: center; padding: 12px; font-size: 14px;
    font-weight: 600; color: var(--accent);
}


/* ─── Testimonials ─── */

.testimonials {
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

/* Marquee container */
.testimonial-marquee {
    overflow: hidden;
    margin-bottom: 16px;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}

/* Track: holds cards + duplicated cards side-by-side */
.testimonial-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}
.testimonial-marquee-reverse .testimonial-track {
    animation-duration: 48s;
    animation-direction: reverse;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 24px 20px;
    display: flex; flex-direction: column;
    width: 320px; min-width: 320px;
    position: relative; overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.testimonial-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.testimonial-card:hover::before { opacity: 1; }

.testimonial-stars {
    display: flex; gap: 2px; margin-bottom: 14px;
}
.testimonial-stars svg {
    width: 13px; height: 13px;
}

.testimonial-quote {
    font-size: 13px; line-height: 1.7; color: var(--text-secondary);
    flex: 1; margin-bottom: 18px;
}

.testimonial-author {
    display: flex; align-items: center; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.testimonial-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    flex-shrink: 0; letter-spacing: 0.02em;
}
.testimonial-name {
    font-size: 13px; font-weight: 700; color: var(--text);
}
.testimonial-role {
    font-size: 11px; color: var(--text-tertiary); font-weight: 500;
}

/* Trustpilot link */
.testimonial-source {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 24px; margin-bottom: 8px;
}
.testimonial-source a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-tertiary); font-size: 13px; font-weight: 500;
    transition: color 0.2s;
}
.testimonial-source a:hover { color: var(--text); }
.testimonial-source svg { width: 16px; height: 16px; }

/* Trust stats bar below testimonials */
.trust-stats {
    display: flex; justify-content: center; gap: 48px;
    padding: 32px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-stat { text-align: center; }
.trust-stat-value {
    font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.trust-stat-label {
    font-size: 13px; color: var(--text-tertiary); font-weight: 500; margin-top: 4px;
}


/* ─── FAQ ─── */

.faq {
    padding: 96px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}
.faq-grid {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 8px;
}
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-hover); }
.faq-question {
    width: 100%; padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; color: var(--text);
    font-size: 15px; font-weight: 600; font-family: var(--font);
    cursor: pointer; text-align: left; gap: 16px;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
    font-size: 20px; font-weight: 400; color: var(--text-tertiary);
    flex-shrink: 0; transition: transform 0.3s;
    width: 24px; text-align: center;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 200px; padding: 0 24px 20px;
}


/* ─── CTA ─── */

.cta { padding: 80px 0; }
.cta-box {
    position: relative; text-align: center;
    padding: 80px 40px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800;
    margin-bottom: 12px; letter-spacing: -0.03em;
    position: relative;
}
.cta-box p {
    color: var(--text-secondary); font-size: 16px;
    margin-bottom: 32px; position: relative;
}
.cta-box .btn { position: relative; }


/* ─── Footer ─── */

.footer {
    padding: 64px 0 28px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
    color: var(--text-tertiary); font-size: 14px;
    margin-top: 14px; line-height: 1.7;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
    font-size: 13px; font-weight: 700; margin-bottom: 4px;
    color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-links a {
    color: var(--text-tertiary); font-size: 14px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
}
.footer-bottom p { color: var(--text-tertiary); font-size: 13px; }
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 11px; color: var(--text-tertiary); opacity: 0.7; margin-bottom: 8px; }


/* ─── Scroll Animations ─── */

.fade-in {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ─── Reduced Motion ─── */

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
    .hero-glow { animation: none; }
    .announce-dot, .badge-dot { animation: none; }
    .feature-card, .panel-feature, .service-card, .game-card, .pricing-card, .testimonial-card {
        transition: none;
    }
    .feature-card:hover, .panel-feature:hover, .service-card:hover,
    .game-card:hover, .pricing-card:hover, .testimonial-card:hover {
        transform: none;
    }
    .testimonial-track { animation: none; }
    html { scroll-behavior: auto; }
}


/* ─── Responsive ─── */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .panel-features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-split { grid-template-columns: 1fr 1fr; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card { width: 300px; min-width: 300px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-hamburger { display: block; }

    .nav-links.open, .nav-actions.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 16px 24px; gap: 12px;
    }
    .nav-actions.open { padding-top: 0; border-bottom: none; padding-bottom: 20px; }
    .nav-actions.open .btn { justify-content: center; }

    .hero { padding-top: 120px; min-height: auto; padding-bottom: 40px; }
    .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-container { align-items: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; flex-wrap: wrap; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .hero-float-card.fc-1 { right: -10px; }
    .hero-float-card.fc-2 { left: -10px; }
    .hero-float-card.fc-3 { right: 10px; }

    .stats-grid { gap: 24px; }
    .stat-divider { display: none; }
    .stat-number { font-size: 28px; }

    .features { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr; }

    .panel-showcase { padding: 80px 0; }
    .panel-showcase-devices { flex-direction: column; gap: 24px; }
    .panel-phone { width: 180px; margin-left: 0; align-self: center; }
    .panel-phone img { border-radius: 24px; }
    .phone-notch { width: 80px; height: 5px; margin-top: 8px; }
    .panel-features-grid { grid-template-columns: 1fr; }

    .marketplace { padding: 80px 0; }
    .services-split { grid-template-columns: 1fr; }
    .services-apps { padding: 32px 24px; }

    .games { padding: 80px 0; }
    .games-grid { grid-template-columns: 1fr; }

    .testimonials { padding: 80px 0; }
    .testimonial-card { width: 280px; min-width: 280px; padding: 24px; }
    .trust-stats { gap: 24px; flex-wrap: wrap; }
    .trust-stat-value { font-size: 22px; }

    .faq { padding: 80px 0; }
    .faq-grid { grid-template-columns: 1fr; }

    .pricing { padding: 80px 0; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-4px); }

    .cta { padding: 80px 0; }
    .cta-box { padding: 48px 24px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 14px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-float-card { display: none; }
    .hero-visual { max-width: 100%; }
    .hero-trust { flex-direction: column; align-items: center; gap: 8px; }
    .hero-terminal { transform: none; }
    .hero-terminal:hover { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .games-grid { gap: 12px; }
    .section-container { padding: 0 16px; }
}
