:root {
    --bg: #07070d;
    --bg-2: #0d0d18;
    --card: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --text: #ececf4;
    --muted: #9a9ab0;
    --accent: #ff4d2e;
    --accent-2: #ffb020;
    --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
    --radius: 18px;
    --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; line-height: 1.1; letter-spacing: -0.02em; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
    transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 0;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #140700; box-shadow: 0 10px 30px -10px rgba(255, 77, 46, .7); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(255, 77, 46, .9); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Nav */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
    transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 7, 13, .78); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Space Grotesk'; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links > a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 70% 30%, #2a0f08 0%, var(--bg) 60%); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,13,.55) 0%, rgba(7,7,13,.35) 40%, var(--bg) 100%), linear-gradient(90deg, rgba(7,7,13,.85) 0%, transparent 70%); }
.hero-content { position: relative; padding: calc(var(--nav-h) + 40px) 0 100px; max-width: 760px; margin-left: max(20px, (100% - 1200px) / 2); }
.badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 14px; color: #d8d8e6; backdrop-filter: blur(10px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero h1 { font-size: clamp(44px, 8vw, 96px); margin: 22px 0 18px; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #c9c9d8; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Stats */
.stats-bar { position: relative; z-index: 2; margin-top: -60px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(13,13,24,.8); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); }
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(26px, 3.4vw, 38px) 'Space Grotesk'; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 20%, var(--bg-2) 80%, var(--bg) 100%); }
.section-head { margin-bottom: 56px; max-width: 700px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.section-head h2, .contact-info h2 { font-size: clamp(32px, 5vw, 56px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.service {
    position: relative; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
    transition: transform .3s, border-color .3s, background .3s; overflow: hidden;
}
.service::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,120,60,.12), transparent 40%); opacity: 0; transition: opacity .3s; }
.service:hover { transform: translateY(-4px); border-color: rgba(255,120,60,.35); }
.service:hover::before { opacity: 1; }
.service i { font-size: 22px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,77,46,.12); color: var(--accent-2); margin-bottom: 20px; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* Game archive */
.archive { position: relative; overflow: hidden; }
.archive::before { content: ''; position: absolute; inset: 10% -10% auto auto; width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,90,40,.14), transparent 60%); pointer-events: none; }
.archive-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: center; position: relative; }
.archive-info h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 18px; }
.archive-info h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: #d6d6e4; }
.checklist li::before { content: '\f00c'; font: 900 12px 'Font Awesome 6 Free'; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,77,46,.15); color: var(--accent-2); margin-top: 1px; }
.archive-shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,120,60,.15), 0 0 80px -30px rgba(255,90,40,.6); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease; }
.archive-shot:hover { transform: none; }
.archive-shot img { width: 100%; height: auto; }
.archive-badge { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: var(--grad); color: #140700; font: 700 14px 'Space Grotesk'; box-shadow: 0 8px 24px -6px rgba(255,77,46,.7); }
.archive-badge:empty { display: none; }

/* Gallery */
.gallery { columns: 3 300px; column-gap: 16px; }
.g-item {
    position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; cursor: zoom-in;
    background: var(--card); border: 1px solid var(--line);
}
.g-item img, .g-item video { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-item:hover img, .g-item:hover video { transform: scale(1.05); }
.g-item .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.g-item .play i { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: 20px; padding-left: 4px; }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 14px; opacity: 0; transition: opacity .3s; }
.g-item:hover figcaption { opacity: 1; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.review .stars { color: var(--accent-2); font-size: 14px; letter-spacing: 3px; }
.review blockquote { font-size: 17px; color: #dcdce8; flex: 1; }
.review footer { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #140700; }
.review strong { display: block; }
.review small { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: stretch; }
.info-list { list-style: none; margin: 34px 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,77,46,.12); color: var(--accent-2); }
.info-list strong { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.info-list span, .info-list a { font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .2s; }
.socials a:hover { background: rgba(255,255,255,.08); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.visits { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.visits i { color: var(--accent-2); }
.visits b { color: var(--text); font-family: 'Space Grotesk'; font-variant-numeric: tabular-nums; }

/* WhatsApp float */
.wa-float {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
    background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,4,8,.95); display: grid; place-items: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lb-stage { width: min(92vw, 1400px); height: 80svh; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; cursor: pointer; }
.lb-close { top: calc(18px + env(safe-area-inset-top)); right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-caption { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 960px) {
    .contact { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; gap: 36px; }
    .archive-shot { transform: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Phone */
@media (max-width: 820px) {
    :root { --nav-h: 64px; }
    .nav { background: rgba(7, 7, 13, .78); backdrop-filter: blur(16px); }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(7,7,13,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
        padding: 8px 20px 24px; transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
    }
    .nav-open .nav-links { transform: none; }
    .nav-links > a:not(.btn) { padding: 16px 4px; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); }
    .nav-links .btn { margin-top: 18px; padding: 14px; }
    .brand span { font-size: 15px; }
    .hero { min-height: 92svh; }
    .hero-content { padding-bottom: 110px; }
    .hero-shade { background: linear-gradient(180deg, rgba(7,7,13,.5) 0%, rgba(7,7,13,.55) 50%, var(--bg) 100%); }
    .hero-actions .btn { flex: 1 1 100%; }
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 36px; }
    .services, .reviews { grid-template-columns: 1fr; }
    .service, .review { padding: 24px; }
    .gallery { columns: 2; column-gap: 10px; }
    .g-item { margin-bottom: 10px; border-radius: 10px; }
    .g-item .play i { width: 46px; height: 46px; font-size: 16px; }
    .contact-actions .btn { flex: 1; }
    .map, .map iframe { min-height: 320px; }
    .lb-prev, .lb-next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); translate: none; }
    .lb-stage { width: 100vw; height: 72svh; }
    .lb-stage img, .lb-stage video { border-radius: 0; }
    .footer-inner { flex-direction: column; text-align: center; padding-bottom: 60px; }
}
