/* ═══════════════════════════════════════════════════
   HAPZ GAMES — Design System & Styles
   Premium, minimal, cinematic dark theme
   ═══════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────── */
:root {
    /* Colors */
    --bg-primary: #06060b;
    --bg-secondary: #0c0c14;
    --bg-tertiary: #12121e;
    --bg-card: #0f0f1a;
    --bg-card-hover: #16162a;

    --text-primary: #f0f0f5;
    --text-secondary: #9191a8;
    --text-tertiary: #5e5e75;
    --text-muted: #3e3e55;

    --accent-primary: #a78bfa;
    --accent-secondary: #6d28d9;
    --accent-glow: rgba(167, 139, 250, 0.15);
    --accent-glow-strong: rgba(167, 139, 250, 0.3);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(167, 139, 250, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* ─── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ─── Container ─────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ─── Section Labels & Titles ───────────────────── */
.section-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 24px rgba(109, 40, 217, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(109, 40, 217, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
}

/* ─── Reveal Animation ──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--container-padding);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 11, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled::before {
    opacity: 1;
}

.nav__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: opacity var(--duration-fast);
}

.nav__logo:hover {
    opacity: 0.8;
}

.nav__logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 50px;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Animated underline glow */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
    transform: translateX(-50%);
}

.nav__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.nav__link:hover::after {
    width: 60%;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

.nav__link--cta {
    background: rgba(167, 139, 250, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--border-accent);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.2), inset 0 0 16px rgba(167, 139, 250, 0.06);
    transform: translateY(-1px);
    text-shadow: none;
}

/* Mobile Nav Overlay */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 11, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav__overlay.active {
    opacity: 1;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px var(--container-padding) 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    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;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Glow Orbs ─────────────────────────────────── */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--1 {
    top: 10%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: rgba(109, 40, 217, 0.18);
    animation: glowFloat 12s ease-in-out infinite;
}

.hero__glow--2 {
    bottom: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.12);
    animation: glowFloat 15s ease-in-out infinite reverse;
}

.hero__glow--3 {
    top: 40%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: rgba(192, 132, 252, 0.06);
    animation: glowFloat 20s ease-in-out infinite 3s;
    transform: translate(-50%, -50%);
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-10px, 30px) scale(0.95); }
    75% { transform: translate(-30px, -10px) scale(1.05); }
}

/* ─── Floating Particles ────────────────────────── */
.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero__particle--dot {
    background: var(--accent-primary);
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.4);
}

.hero__particle--ring {
    border: 1px solid rgba(167, 139, 250, 0.25);
    background: transparent;
}

.hero__particle--diamond {
    background: rgba(129, 140, 248, 0.3);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* ─── Mouse-Reactive Orb ────────────────────────── */
.hero__orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

.hero:hover .hero__orb {
    opacity: 1;
}

/* ─── Shooting Stars ────────────────────────────── */
.hero__star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.6), transparent);
    border-radius: 1px;
    pointer-events: none;
    opacity: 0;
}

.hero__star--1 {
    top: 15%;
    left: -100px;
    animation: shootingStar 6s linear infinite 1s;
    transform: rotate(-15deg);
}

.hero__star--2 {
    top: 35%;
    left: -100px;
    animation: shootingStar 8s linear infinite 4s;
    transform: rotate(-8deg);
    width: 140px;
}

.hero__star--3 {
    top: 55%;
    left: -100px;
    animation: shootingStar 7s linear infinite 7s;
    transform: rotate(-20deg);
    width: 80px;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(0) rotate(-15deg);
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100vw + 200px)) rotate(-15deg);
    }
}

/* ─── Cinematic Staggered Entrance ──────────────── */
.hero__entrance {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    animation: heroEnter 1s var(--ease-out) forwards;
}

.hero__entrance[data-delay="0"] { animation-delay: 0.3s; }
.hero__entrance[data-delay="1"] { animation-delay: 0.55s; }
.hero__entrance[data-delay="2"] { animation-delay: 0.8s; }
.hero__entrance[data-delay="3"] { animation-delay: 1.05s; }
.hero__entrance[data-delay="4"] { animation-delay: 1.3s; }

@keyframes heroEnter {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* ─── Hero Content ──────────────────────────────── */
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

/* ─── Badge with Shimmer ────────────────────────── */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 0.02em;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero__badge-text {
    position: relative;
    z-index: 1;
}

.hero__badge-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(167, 139, 250, 0.15),
        transparent
    );
    animation: badgeShimmer 4s ease-in-out infinite 2s;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.hero__badge-link {
    color: #c4b5fd;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--duration-fast);
    border-bottom: 1px solid rgba(196, 181, 253, 0.3);
}

.hero__badge-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); }
}

/* ─── Title with Animated Gradient ──────────────── */
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero__title-accent {
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        #818cf8,
        #c084fc,
        #818cf8,
        var(--accent-primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

/* ─── Stats with Glow ───────────────────────────── */
.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
    transition: text-shadow 0.4s ease;
}

.hero__stat-number.counted {
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.5), 0 0 60px rgba(167, 139, 250, 0.15);
}

.hero__stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════
   GAMES SECTION
   ═══════════════════════════════════════════════════ */
.games {
    padding: var(--section-padding) 0;
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* ─── Game Card — Enhanced ──────────────────────── */
.game-card {
    --card-accent: var(--accent-primary);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
    position: relative;
}

/* Outer glow ring on hover */
.game-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 30%,
        var(--card-accent) 50%,
        transparent 70%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 2;
}

/* Inner ambient glow */
.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(167, 139, 250, 0.12),
        0 0 120px rgba(109, 40, 217, 0.06);
}

.game-card:hover::before {
    opacity: 0.7;
}

.game-card:hover::after {
    opacity: 1;
}

/* Per-card accent colors */
.game-card[data-genre="Space Shooter"] { --card-accent: #818cf8; }
.game-card[data-genre="Sports"] { --card-accent: #4ade80; }
.game-card[data-genre="Card Game"] { --card-accent: #fb923c; }
.game-card[data-genre="Multiplayer"] { --card-accent: #38bdf8; }

/* ─── Visual Area ───────────────────────────────── */
.game-card__visual {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-card__visual--sky {
    background: linear-gradient(135deg, #0f0f2e 0%, #1a1040 50%, #12082a 100%);
}

.game-card__visual--soccer {
    background: linear-gradient(135deg, #061a0e 0%, #0a2810 50%, #071a08 100%);
}

.game-card__visual--callbreak {
    background: linear-gradient(135deg, #1a120a 0%, #2a1a0a 50%, #1a100a 100%);
}

.game-card__visual--shootpong {
    background: linear-gradient(135deg, #0a1520 0%, #0a1a2a 50%, #081520 100%);
}

/* Shimmer sweep across visual on hover */
.game-card__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.game-card:hover .game-card__shimmer {
    transform: translateX(100%);
    transition: transform 0.8s var(--ease-out);
}

/* Genre badge (top-left) */
.game-card__genre {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--card-accent);
    z-index: 4;
    transition: all 0.4s var(--ease-out);
}

.game-card:hover .game-card__genre {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--card-accent);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.15);
}

/* Play button circle (center overlay on hover) */
.game-card__play-btn {
    position: absolute;
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.9);
    color: #fff;
    box-shadow: 0 8px 32px rgba(109, 40, 217, 0.4);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.45s var(--ease-out);
    pointer-events: none;
}

.game-card__play-btn svg {
    margin-left: 2px; /* visual centering for play icon */
}

.game-card:hover .game-card__play-btn {
    opacity: 1;
    transform: scale(1);
}

/* Icon */
.game-card__icon-wrap {
    transition: all 0.5s var(--ease-out);
    position: relative;
    z-index: 2;
}

.game-card:hover .game-card__icon-wrap {
    transform: scale(1.12) translateY(-4px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.game-card__icon {
    width: 110px;
    height: 110px;
}

/* ─── Card Info Area ────────────────────────────── */
.game-card__info {
    padding: 24px 24px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.game-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.game-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.game-card:hover .game-card__title {
    color: var(--card-accent);
}

.game-card__platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.game-card__platform svg {
    opacity: 0.6;
}

.game-card__platform--rated {
    color: rgba(250, 204, 21, 0.8);
}

.game-card__platform--rated svg {
    opacity: 0.9;
    color: rgba(250, 204, 21, 0.9);
}

.game-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

.game-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.game-card__tag {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
}

.game-card:hover .game-card__tag {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Play Now CTA — Rounded pill button ────────── */
.game-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 12px 28px;
    margin: auto 20px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.45s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Gradient sweep on hover */
.game-card__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--card-accent), var(--accent-primary));
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    z-index: 0;
}

.game-card__cta span,
.game-card__cta svg {
    position: relative;
    z-index: 1;
}

.game-card:hover .game-card__cta {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.25);
    transform: translateY(-2px);
}

.game-card:hover .game-card__cta::before {
    opacity: 1;
}

.game-card__cta svg {
    transition: transform 0.4s var(--ease-out);
}

.game-card:hover .game-card__cta svg {
    transform: translateX(5px);
}

/* ─── Platforms Bar ─────────────────────────────── */
.games__platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.games__platforms-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.games__platforms-icons {
    display: flex;
    gap: 16px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
}

.platform-badge:hover,
.platform-badge--link:hover {
    border-color: var(--border-accent);
    background: rgba(167, 139, 250, 0.06);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.1);
}

.platform-badge--link {
    cursor: pointer;
    text-decoration: none;
}

.platform-badge--link svg:last-child {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.platform-badge--link:hover svg:last-child {
    color: var(--accent-primary);
    transform: translate(2px, -2px);
}

.platform-badge svg {
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__text p:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.about__link {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    transition: all var(--duration-fast);
}

.about__link:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

.about__text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-card {
    padding: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
}

.value-card:hover {
    border-color: var(--border-accent);
    background: rgba(167, 139, 250, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 32px rgba(167, 139, 250, 0.06);
}

.value-card:hover .value-card__icon {
    background: rgba(167, 139, 250, 0.25);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
    transform: scale(1.1);
}

.value-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    color: var(--accent-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   CAREERS SECTION
   ═══════════════════════════════════════════════════ */
.careers {
    padding: var(--section-padding) 0;
    position: relative;
}

.careers__inner {
    max-width: 640px;
}

.careers__roles {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 32px 0 40px;
}

.role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.role-item::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.role-item:hover {
    padding-left: 16px;
    background: rgba(167, 139, 250, 0.02);
}

.role-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.role-item:hover .role-item__title {
    color: var(--accent-primary);
}

.role-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.role-item__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    transition: color var(--duration-normal) var(--ease-out);
}

.role-item__type {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-link:hover {
    border-color: var(--border-accent);
    background: rgba(167, 139, 250, 0.03);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Social-colored icon backgrounds */
.contact-link--whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.3);
    background: rgba(37, 211, 102, 0.04);
}
.contact-link__icon--whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}
.contact-link--whatsapp:hover .contact-link__arrow {
    color: #25d366;
}

.contact-link--telegram:hover {
    border-color: rgba(0, 136, 204, 0.3);
    background: rgba(0, 136, 204, 0.04);
}
.contact-link__icon--telegram {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
}
.contact-link--telegram:hover .contact-link__arrow {
    color: #0088cc;
}

.contact-link--discord:hover {
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.04);
}
.contact-link__icon--discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
}
.contact-link--discord:hover .contact-link__arrow {
    color: #5865f2;
}

.contact-link--phone:hover {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.04);
}
.contact-link--phone:hover .contact-link__arrow {
    color: #4ade80;
}

.contact-link__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-link__text {
    flex: 1;
    min-width: 0;
}

.contact-link__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.contact-link__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-link__arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-link:hover .contact-link__arrow {
    color: var(--accent-primary);
    transform: translate(3px, -3px);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    padding: 64px 0 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 16px;
}

.footer__parent-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(167, 139, 250, 0.25);
    transition: all var(--duration-fast);
}

.footer__parent-link:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

.footer__address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer__address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer__links {
    display: flex;
    gap: 64px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.footer__col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    display: inline-block;
}

.footer__col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.footer__col a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer__col a:hover::after {
    width: 100%;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__overlay {
        display: block;
        pointer-events: none;
    }

    .nav__overlay.active {
        pointer-events: auto;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-subtle);
        transform: translateX(100%);
        transition: transform var(--duration-normal) var(--ease-out);
        gap: 4px;
        z-index: 1001;
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__toggle {
        display: flex;
    }

    .nav__link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav__link--cta {
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }

    .hero {
        padding: 100px var(--container-padding) 60px;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero__badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        gap: 6px;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__orb,
    .hero__particles,
    .hero__star {
        display: none;
    }

    .hero__glow--1 {
        width: 300px;
        height: 300px;
    }

    .hero__glow--2 {
        width: 250px;
        height: 250px;
    }

    .hero__glow--3 {
        width: 350px;
        height: 350px;
    }

    .games__grid {
        grid-template-columns: 1fr;
    }

    .game-card__info {
        padding: 20px 20px 0;
    }

    .game-card__cta {
        margin: auto 16px 16px;
    }

    .about__values {
        grid-template-columns: 1fr 1fr;
    }

    .games__platforms {
        flex-direction: column;
        gap: 16px;
    }

    .contact-link {
        padding: 16px 20px;
        gap: 12px;
    }

    .contact-link__value {
        font-size: 0.875rem;
        word-break: break-word;
    }

    .footer__inner {
        flex-direction: column;
        gap: 40px;
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
    }

    .hero__stat-divider {
        display: none;
    }

    .game-card__visual {
        height: 180px;
    }

    .game-card__icon {
        width: 90px;
        height: 90px;
    }

    .game-card__play-btn {
        width: 48px;
        height: 48px;
    }

    .game-card__play-btn svg {
        width: 20px;
        height: 20px;
    }

    .game-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .game-card__cta {
        margin: auto 12px 12px;
        padding: 11px 24px;
        font-size: 0.8rem;
    }

    .about__values {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 20px;
    }

    .contact-link {
        padding: 14px 16px;
    }

    .contact-link__icon {
        width: 40px;
        height: 40px;
    }

    .contact-link__icon svg {
        width: 18px;
        height: 18px;
    }

    .role-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__address {
        font-size: 0.75rem;
    }
}

/* ─── Accessibility ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .hero__entrance {
        opacity: 1;
        transform: none;
        filter: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ─── Touch Device Support ───────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .game-card__play-btn {
        opacity: 0.9;
        transform: scale(0.85);
    }

    .game-card__cta {
        color: var(--text-secondary);
        border-color: var(--border-light);
    }

    .game-card:hover {
        transform: none;
    }

    .game-card:active {
        transform: scale(0.98);
    }

    .game-card:active .game-card__cta {
        color: #fff;
        border-color: transparent;
    }

    .game-card:active .game-card__cta::before {
        opacity: 1;
    }

    .contact-link:hover {
        transform: none;
    }

    .contact-link:active {
        transform: scale(0.98);
        background: rgba(167, 139, 250, 0.05);
    }

    .value-card:hover {
        transform: none;
    }

    .btn--primary:hover {
        transform: none;
    }

    .btn--primary:active {
        transform: scale(0.97);
    }
}

/* ─── Focus styles ──────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
