@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

:root {
  --primary: #ff6b00;
  --primary-dark: #cc5500;
  --primary-soft: rgba(255,107,0,.10);
  --secondary: #ffd700;
  --ink: #171717;
  --ink-2: #242424;
  --muted: #666;
  --line: rgba(17,17,17,.10);
  --soft: #f6f6f4;
  --soft-2: #efefec;
  --white: #fff;
  --dark: #111;
  --darker: #090909;
  --success: #00a862;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(0,0,0,.10);
  --transition: .28s cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { border: 0; }
a { color: inherit; }
img { max-width: 100%; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* NAV */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(16px);
  transition: box-shadow var(--transition), background var(--transition);
}
#navbar.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); background: rgba(255,255,255,.985); }
.nav-logo {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.nav-logo-img { height: 44px; width: auto; max-width: 145px; object-fit: contain; }
.nav-logo-label { display: flex; flex-direction: column; }
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; color: var(--primary); font-size: 1.55rem; letter-spacing: 1.5px; line-height: 1; }
.nav-logo-sub { margin-top: 2px; font-size: .57rem; letter-spacing: 1.7px; font-weight: 800; color: #8a8a8a; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-link {
  background: transparent;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .76rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: #fff; background: var(--primary); }
.nav-link-join:not(.active) { border: 1px solid rgba(255,107,0,.28); color: var(--primary); }
.nav-hamburger { display: none; width: 38px; height: 38px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-hamburger span { width: 24px; height: 2px; border-radius: 3px; background: var(--ink); transition: var(--transition); }
.nav-mobile-menu { position: fixed; top: 70px; left: 0; right: 0; z-index: 999; padding: 14px 18px 20px; background: rgba(255,255,255,.99); border-bottom: 1px solid var(--line); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: var(--transition); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
.nav-mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile-link { width: 100%; padding: 14px 12px; background: transparent; text-align: left; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .88rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.nav-mobile-link.active { color: var(--primary); }
.nav-mobile-link-join { color: var(--primary); }

/* PAGE */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }
.page-enter { animation: pageEnter .35s ease both; }
@keyframes pageEnter { from { opacity: .5; } to { opacity: 1; } }

/* HERO */
.hero { position: relative; margin-top: 70px; overflow: hidden; background: var(--dark); color: white; isolation: isolate; }
.hero-home { min-height: 650px; display: flex; align-items: center; }
.hero-inner { min-height: 430px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -5; background: radial-gradient(circle at 75% 25%, #2a1710 0%, #141414 35%, #090909 78%); }
.hero-grid { position: absolute; inset: 0; z-index: -4; opacity: .45; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .22; z-index: -3; }
.hero-glow-a { width: 420px; height: 420px; background: var(--primary); right: -100px; top: 40px; }
.hero-glow-b { width: 320px; height: 320px; background: #7b2100; left: 8%; bottom: -180px; }
.hero-content { position: relative; width: min(900px, calc(100% - 64px)); margin: 0 auto; padding: 90px 0 80px; text-align: center; }
.hero-content-wide { width: min(1120px, calc(100% - 64px)); }
.eyebrow { display: inline-block; margin-bottom: 18px; color: #ffb27c; font-size: .72rem; font-weight: 900; letter-spacing: 2.8px; text-transform: uppercase; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.3rem, 8vw, 6.8rem); letter-spacing: 2px; line-height: .92; text-wrap: balance; }
.hero-title span { color: var(--primary); }
.hero-lead { max-width: 820px; margin: 24px auto 0; color: rgba(255,255,255,.70); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-proof { max-width: 720px; margin: 52px auto 0; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px); }
.hero-proof div { padding: 20px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.10); }
.hero-proof div:last-child { border-right: 0; }
.hero-proof strong { display: block; font-family: 'Bebas Neue'; color: var(--primary); font-size: 2.2rem; letter-spacing: 1px; }
.hero-proof span { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* GLOBAL SECTION */
.section { padding: 86px 48px; }
.section-tight { padding-top: 74px; padding-bottom: 74px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--darker); color: white; }
.section-heading { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.section-kicker { display: inline-block; color: var(--primary); font-size: .69rem; font-weight: 900; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 12px; }
.section-kicker-light { color: #ffad73; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 900; line-height: 1; letter-spacing: -.5px; }
.section-title.left { text-align: left; }
.section-title.light { color: white; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.section-sub.light-muted { color: rgba(255,255,255,.58); }
/* Scroll reveal system. Content remains visible when JavaScript is unavailable. */
.reveal { opacity: 1; transform: none; filter: none; }
.js .reveal {
  --reveal-y: 42px;
  --reveal-x: 0px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(.985);
  filter: blur(4px);
  transition:
    opacity .72s cubic-bezier(.16,.84,.24,1),
    transform .78s cubic-bezier(.16,.84,.24,1),
    filter .62s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.js .reveal.reveal-from-top { --reveal-y: -42px; }
.js .reveal.reveal-from-bottom { --reveal-y: 42px; }
.js .reveal.reveal-side-left { --reveal-x: -26px; }
.js .reveal.reveal-side-right { --reveal-x: 26px; }
.js .reveal.visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 12px 23px; border-radius: 999px; cursor: pointer; text-decoration: none; font-size: .84rem; font-weight: 800; letter-spacing: .3px; transition: var(--transition); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,0,.28); }
.btn-light { color: #111; background: #fff; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.20); }
.btn-outline { color: var(--ink); background: transparent; border: 1px solid rgba(17,17,17,.18); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-steam { background: #1b2838; color: #d6e7f4; }
.btn-steam:hover { background: #2a475e; transform: translateY(-2px); }

/* HOME */
.split-intro { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.split-copy p { color: var(--muted); line-height: 1.85; font-size: 1.04rem; margin-bottom: 16px; }
.process-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.process-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; min-height: 250px; transition: var(--transition); }
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255,107,0,.20); }
.process-number { font-family: 'Bebas Neue'; color: rgba(255,107,0,.23); font-size: 3rem; line-height: 1; }
.process-card h3 { margin-top: 30px; font-size: 1.12rem; }
.process-card p { margin-top: 10px; color: var(--muted); line-height: 1.65; font-size: .92rem; }
.feature-banner { max-width: 1120px; margin: 0 auto; padding: 42px 46px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #151515, #252525); color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: var(--shadow); }
.feature-banner h2 { margin-top: 3px; font-family: 'Barlow Condensed'; font-size: clamp(2rem,3.8vw,3rem); line-height: 1; }
.feature-banner p { margin-top: 10px; color: rgba(255,255,255,.60); line-height: 1.6; max-width: 690px; }
.legacy-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.legacy-card { border: 1px solid rgba(255,255,255,.09); background: #141414; border-radius: var(--radius); overflow: hidden; }
.legacy-card img { width: 100%; height: 280px; object-fit: cover; display: block; opacity: .88; transition: transform .5s ease; }
.legacy-card:hover img { transform: scale(1.025); }
.legacy-card-body { padding: 24px; }
.legacy-card-body > span { color: var(--primary); text-transform: uppercase; font-weight: 900; font-size: .66rem; letter-spacing: 1.6px; }
.legacy-card-body h3 { margin: 8px 0 14px; font-family: 'Barlow Condensed'; font-size: 1.8rem; }
.text-link { color: rgba(255,255,255,.72); background: transparent; cursor: pointer; font-weight: 700; }
.text-link:hover { color: var(--primary); }

/* SERVICES */
.services-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.service-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); border-color: rgba(255,107,0,.26); box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.service-icon { display: inline-flex; height: 42px; min-width: 42px; padding: 0 10px; align-items: center; justify-content: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); font-family: 'Barlow Condensed'; font-weight: 900; font-size: .88rem; letter-spacing: .8px; }
.service-card h3 { margin-top: 24px; font-family: 'Barlow Condensed'; font-size: 1.55rem; }
.service-card p { margin: 9px 0 20px; color: var(--muted); line-height: 1.6; }
.service-cta { padding: 0; background: transparent; color: var(--primary); cursor: pointer; font-weight: 800; font-size: .84rem; }
.service-flow { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.service-flow-copy h2 { font-family: 'Barlow Condensed'; font-size: clamp(2rem,4vw,3.2rem); line-height: 1; }
.service-flow-copy p { margin: 18px 0 26px; color: var(--muted); line-height: 1.75; }
.service-flow-list { display: grid; gap: 10px; }
.service-flow-list > div { position: relative; padding: 20px 20px 20px 70px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.service-flow-list span { position: absolute; left: 20px; top: 20px; font-family: 'Bebas Neue'; font-size: 1.5rem; color: var(--primary); }
.service-flow-list strong { display: block; }
.service-flow-list p { margin-top: 4px; color: var(--muted); font-size: .9rem; }

/* GAMES */
.games-section { max-width: 1280px; margin: 0 auto; }
.game-card { display: flex; min-height: 390px; margin-bottom: 42px; background: var(--soft); border-radius: 22px; overflow: hidden; border: 1px solid rgba(0,0,0,.04); transition: box-shadow var(--transition), transform var(--transition); }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card.reverse { flex-direction: row-reverse; }
.game-card-visual { flex: 0 0 56%; min-height: 390px; }
.game-card-visual-inner, .slideshow { width: 100%; height: 100%; position: relative; overflow: hidden; background: #111; }
.slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .65s ease; }
.slideshow .slide.active { opacity: 1; }
.slide-dots { position: absolute; z-index: 10; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.6); cursor: pointer; transition: var(--transition); }
.dot.active { transform: scale(1.35); background: var(--primary); border-color: var(--primary); }
.game-card-info { flex: 1; padding: 52px 42px; display: flex; justify-content: center; flex-direction: column; align-items: flex-start; }
.game-card-badge { display: inline-flex; padding: 5px 11px; border-radius: 999px; font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1.2px; }
.badge-released { background: rgba(0,168,98,.10); color: var(--success); }
.badge-soon { background: var(--primary-soft); color: var(--primary); }
.game-card-title { margin-top: 15px; font-family: 'Barlow Condensed'; font-size: clamp(2rem,3.8vw,3.2rem); line-height: .98; }
.game-card-desc { margin-top: 16px; color: var(--muted); line-height: 1.7; }
.game-card-buttons { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* NETWORK */
.network-intro { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; }
.network-intro h2 { font-family: 'Barlow Condensed'; font-size: clamp(2.1rem,4vw,3.4rem); line-height: 1; }
.network-intro p { color: var(--muted); line-height: 1.8; margin-bottom: 15px; }
.commission-strip { max-width: 1000px; margin: 48px auto 0; padding: 22px 28px; border: 1px solid rgba(255,107,0,.18); background: #fff8f2; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; gap: 24px; }
.commission-strip > div:not(.commission-arrow):not(.commission-plus) { text-align: center; }
.commission-strip span { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.commission-strip strong { display: block; margin-top: 3px; font-family: 'Bebas Neue'; color: var(--primary); font-size: 2.2rem; }
.commission-arrow, .commission-plus { color: #aaa; font-size: 1.4rem; font-weight: 900; }
.roles-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.role-card { position: relative; padding: 26px 26px 24px 78px; background: white; border: 1px solid var(--line); border-radius: var(--radius); min-height: 180px; transition: var(--transition); }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 16px 45px rgba(0,0,0,.07); border-color: rgba(255,107,0,.24); }
.role-card > span { position: absolute; left: 24px; top: 25px; font-family: 'Bebas Neue'; font-size: 2rem; color: rgba(255,107,0,.35); }
.role-card h3 { font-family: 'Barlow Condensed'; font-size: 1.35rem; }
.role-card p { margin-top: 8px; color: var(--muted); line-height: 1.55; font-size: .9rem; }
.role-card button { margin-top: 18px; padding: 0; background: transparent; color: var(--primary); font-size: .82rem; font-weight: 900; cursor: pointer; }
.application-section { background: white; }
.application-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .78fr 1.22fr; gap: 50px; align-items: start; }
.application-sidebar { position: sticky; top: 100px; }
.application-sidebar h2 { font-family: 'Barlow Condensed'; font-size: clamp(2.2rem,4vw,3.4rem); line-height: .98; }
.application-sidebar > p { margin-top: 16px; color: var(--muted); line-height: 1.7; }
.application-steps { margin-top: 30px; display: grid; gap: 13px; }
.application-steps > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.application-steps span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 900; font-size: .78rem; }
.application-steps p { color: var(--muted); line-height: 1.5; font-size: .9rem; }
.application-steps strong { color: var(--ink); }
.application-note { margin-top: 28px; padding: 17px 18px; border-radius: 12px; background: #fff8f2; border: 1px solid rgba(255,107,0,.16); color: #6b4a32; font-size: .82rem; line-height: 1.55; }
.application-form-card, .contact-form-card { background: var(--soft); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 55px rgba(0,0,0,.06); }
.form-card-header { padding: 26px 30px 22px; border-bottom: 1px solid var(--line); background: white; }
.form-card-header span { display: block; font-family: 'Barlow Condensed'; font-weight: 900; font-size: 1.5rem; }
.form-card-header p { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.application-form-card form, .contact-form-card form { padding: 30px; }
.form-section-block { border: 0; padding: 0 0 26px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.form-section-block legend { width: 100%; margin-bottom: 18px; font-size: .75rem; font-weight: 900; color: var(--ink); letter-spacing: 1.2px; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 7px; color: #4c4c4c; font-size: .76rem; font-weight: 800; letter-spacing: .4px; }
.form-group label span { color: var(--primary); }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(0,0,0,.11); border-radius: 10px; background: white; color: var(--ink); outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,.08); }
.form-control::placeholder { color: #aaa; }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.55; }
.file-control { position: relative; min-height: 76px; border: 1.5px dashed rgba(0,0,0,.17); border-radius: 12px; background: white; display: flex; align-items: center; padding: 14px 16px; overflow: hidden; transition: var(--transition); }
.file-control:hover { border-color: var(--primary); background: #fffaf6; }
.file-control input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-control strong { display: block; font-size: .86rem; }
.file-control small { display: block; margin-top: 4px; color: #888; line-height: 1.4; }
.file-control.has-file { border-style: solid; border-color: rgba(0,168,98,.45); background: #f5fff9; }
.file-control.has-file strong { color: #087b4c; }
.consent-row { display: flex; gap: 11px; align-items: flex-start; margin: 14px 0; color: #5d5d5d; font-size: .8rem; line-height: 1.5; cursor: pointer; }
.consent-row input { margin-top: 3px; accent-color: var(--primary); }
.consent-row strong { color: var(--primary); }
.field-error { display: none; margin-top: 7px; color: #b42318; font-size: .78rem; font-weight: 700; }
.field-error.show { display: block; }
.form-status { display: none; margin: 16px 0; padding: 12px 14px; border-radius: 10px; font-size: .82rem; line-height: 1.45; }
.form-status.show { display: block; }
.form-status.error { color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; }
.form-status.success { color: #0f5132; background: #d1e7dd; border: 1px solid #badbcc; }
.btn-submit { width: 100%; min-height: 50px; justify-content: space-between; border-radius: 11px; padding-left: 18px; padding-right: 18px; }
.btn-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.form-helper { margin-top: 12px; text-align: center; color: #888; font-size: .75rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* CONTACT */
.contact-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .75fr 1.25fr; gap: 52px; align-items: start; }
.contact-panel h2 { font-family: 'Barlow Condensed'; font-size: clamp(2.2rem,4vw,3.3rem); line-height: 1; }
.contact-panel > p { margin-top: 16px; color: var(--muted); line-height: 1.75; }
.contact-lines { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-lines a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-lines span { display: block; color: #999; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 800; }
.contact-lines strong { display: block; margin-top: 3px; font-size: .92rem; }
.contact-lines a:hover strong { color: var(--primary); }

/* POPUP */
.popup-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: var(--transition); }
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup-box { width: min(720px,100%); max-height: 88vh; overflow: auto; border-radius: 18px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.40); transform: translateY(20px) scale(.98); transition: var(--transition); }
.popup-overlay.open .popup-box { transform: translateY(0) scale(1); }
.popup-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 24px; background: #141414; color: white; }
.popup-title { font-family: 'Barlow Condensed'; font-size: 1.8rem; }
.popup-close { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.10); color: white; cursor: pointer; }
.popup-close:hover { background: rgba(255,255,255,.20); }
.popup-body { padding: 26px; }
.popup-body p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.popup-screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; border-radius: 12px; overflow: hidden; }
.popup-screenshots img { width: 100%; height: 145px; object-fit: cover; }
.popup-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.popup-tag { padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .67rem; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.popup-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* FOOTER */
.site-footer { padding: 50px 48px 24px; background: #090909; color: white; }
.footer-main { max-width: 1180px; margin: 0 auto 42px; display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 60px; align-items: start; }
.footer-brand img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 300px; margin-top: 14px; color: rgba(255,255,255,.48); line-height: 1.6; font-size: .86rem; }
.footer-nav-grid, .footer-social { display: grid; gap: 10px; }
.footer-nav-grid button, .footer-social a { width: fit-content; padding: 0; background: transparent; color: rgba(255,255,255,.68); text-decoration: none; cursor: pointer; font-size: .84rem; }
.footer-nav-grid button:hover, .footer-social a:hover { color: var(--primary); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.42); font-size: .76rem; }
.footer-bottom a, .footer-bottom button { color: rgba(255,255,255,.58); background: transparent; text-decoration: none; cursor: pointer; }
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--primary); }
.compact-footer { padding-top: 22px; }

@media (max-width: 1020px) {
  #navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding-left: 26px; padding-right: 26px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .service-flow, .split-intro, .network-intro, .application-layout, .contact-layout { gap: 38px; }
  .application-layout { grid-template-columns: 1fr; }
  .application-sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; grid-template-columns: repeat(4, max-content); }
}

@media (max-width: 820px) {
  .hero-home { min-height: 610px; }
  .hero-content { width: min(100% - 36px, 900px); padding: 70px 0; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-proof { grid-template-columns: 1fr; max-width: 340px; }
  .hero-proof div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .hero-proof div:last-child { border-bottom: 0; }
  .split-intro, .service-flow, .network-intro, .contact-layout { grid-template-columns: 1fr; }
  .services-grid, .roles-grid { grid-template-columns: 1fr; }
  .legacy-grid { grid-template-columns: 1fr; }
  .feature-banner { align-items: flex-start; flex-direction: column; padding: 34px 30px; }
  .game-card, .game-card.reverse { flex-direction: column; }
  .game-card-visual { flex-basis: auto; min-height: 310px; height: 310px; }
  .game-card-info { padding: 34px 28px; }
  .commission-strip { flex-wrap: wrap; }
  .commission-arrow { transform: rotate(90deg); }
}

@media (max-width: 580px) {
  #navbar { height: 64px; padding: 0 16px; }
  .nav-mobile-menu { top: 64px; }
  .nav-logo-img { height: 38px; }
  .nav-logo-text { font-size: 1.3rem; }
  .nav-logo-sub { font-size: .49rem; letter-spacing: 1.2px; }
  .hero { margin-top: 64px; }
  .hero-inner { min-height: 370px; }
  .section { padding: 62px 18px; }
  .section-tight { padding-top: 56px; padding-bottom: 56px; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .application-form-card form, .contact-form-card form { padding: 22px 18px; }
  .form-card-header { padding: 22px 18px 18px; }
  .role-card { padding-left: 66px; }
  .role-card > span { left: 20px; }
  .commission-strip { padding: 20px 16px; gap: 15px; }
  .commission-strip > div:not(.commission-arrow):not(.commission-plus) { width: 100%; }
  .commission-arrow { transform: rotate(90deg); width: 100%; text-align: center; }
  .commission-plus { display: none; }
  .game-card-visual { min-height: 235px; height: 235px; }
  .game-card-info { padding: 28px 20px; }
  .game-card-buttons { width: 100%; flex-direction: column; }
  .game-card-buttons .btn { width: 100%; }
  .popup-screenshots { grid-template-columns: 1fr; }
  .popup-screenshots img { height: 165px; }
  .site-footer { padding: 40px 20px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-social { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}



/* HOME — PROJECT MARQUEE / PLATFORM PROOF / REVIEWS */
.showcase-section {
  overflow: hidden;
  background: #fff;
  padding-left: 0;
  padding-right: 0;
}
.showcase-section > .section-heading {
  padding-left: 48px;
  padding-right: 48px;
}
.showcase-marquee {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  padding: 14px 0 28px;
  contain: paint;
}
.showcase-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: max-content !important;
  min-width: max-content !important;
  transform: translate3d(0,0,0);
  animation: showcaseInfiniteScroll 52s linear infinite !important;
  animation-play-state: running !important;
  will-change: transform;
  backface-visibility: hidden;
}
.showcase-set {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: max-content !important;
  gap: 24px;
  padding-right: 24px;
}
@keyframes showcaseInfiniteScroll {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}
.showcase-card {
  position: relative;
  flex: 0 0 560px !important;
  width: 560px;
  min-width: 560px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 55px rgba(0,0,0,.16);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.03) 22%, rgba(0,0,0,.12) 52%, rgba(0,0,0,.90) 100%);
  pointer-events: none;
}
.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
  pointer-events: none;
}
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.showcase-card:hover {
  transform: translate3d(0,-9px,0) scale(1.012);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
}
.showcase-card:hover img { transform: scale(1.055); filter: saturate(1.08) contrast(1.02); }
.showcase-overlay {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  bottom: 26px;
  color: white;
}
.showcase-overlay span {
  display: block;
  margin-bottom: 8px;
  color: #ffb27c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.showcase-overlay h3 {
  font-family: 'Barlow Condensed';
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  line-height: .98;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.showcase-fade { position: absolute; top: 0; bottom: 0; width: min(9vw, 120px); z-index: 5; pointer-events: none; }
.showcase-fade-left { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.88) 18%, rgba(255,255,255,0) 100%); }
.showcase-fade-right { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.88) 18%, rgba(255,255,255,0) 100%); }

.platform-section { background: #fff; }
.platform-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform-card { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; min-height: 92px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; text-decoration: none; background: #fff; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.platform-card::before { content: ''; position: absolute; inset: auto -30% -80% 20%; height: 160%; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,0,.12), transparent 68%); opacity: 0; transform: scale(.7); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.platform-card:hover { transform: translateY(-6px); box-shadow: 0 18px 46px rgba(0,0,0,.09); border-color: rgba(255,107,0,.24); }
.platform-card:hover::before { opacity: 1; transform: scale(1); }
.platform-mark { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #141414; color: #fff; font-family: 'Barlow Condensed'; font-weight: 900; font-size: 1.2rem; }
.platform-card strong { display: block; font-size: .95rem; }
.platform-card small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.platform-arrow { color: var(--primary); font-size: 1.15rem; transition: transform var(--transition); }
.platform-card:hover .platform-arrow { transform: translate(2px,-2px); }
.platform-bionluk .platform-mark { background: #7439c6; }
.platform-upwork .platform-mark { background: #14a800; }
.platform-fiverr .platform-mark { background: #1dbf73; }
.platform-freelancer .platform-mark { background: #28a9ea; }

.reviews-section { background: linear-gradient(180deg, #f7f7f4, #f2f2ee); }
.reviews-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: stretch; }
.review-card { grid-column: span 2; position: relative; min-height: 245px; padding: 22px; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 18px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.04); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.review-card:nth-child(4) { grid-column: 2 / span 2; }
.review-card:nth-child(5) { grid-column: 4 / span 2; }
.review-card:hover { transform: translateY(-6px); border-color: rgba(255,107,0,.25); box-shadow: 0 20px 48px rgba(0,0,0,.09); }
.review-head { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; }
.review-head img { width: 46px; height: 46px; border-radius: 50%; display: block; }
.review-head strong { display: block; font-size: .88rem; letter-spacing: .3px; }
.review-rating { display: block; margin-top: 2px; color: #f3a600; font-weight: 900; font-size: .78rem; }
.review-head small { align-self: start; color: #8a8a8a; font-size: .68rem; }
.review-card p { margin-top: 20px; color: #555; line-height: 1.72; font-size: .9rem; }
.review-source { position: absolute; left: 22px; right: 22px; bottom: 20px; color: var(--primary); font-size: .72rem; font-weight: 800; opacity: .78; }

.application-lock { margin: 24px 30px 0; padding: 20px; display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start; border: 1px solid rgba(0,168,98,.23); border-radius: 14px; background: rgba(0,168,98,.07); }
.application-lock[hidden] { display: none; }
.application-lock-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; font-weight: 900; font-size: 1.2rem; box-shadow: 0 8px 22px rgba(0,168,98,.2); }
.application-lock strong { color: #0b593a; }
.application-lock p { margin-top: 5px; color: #527064; line-height: 1.55; font-size: .82rem; }
.application-form-card.is-locked form { display: none; }

/* lightweight motion: only transform / opacity are animated */
.hero-glow-a { animation: heroDriftA 9s ease-in-out infinite alternate; will-change: transform; }
.hero-glow-b { animation: heroDriftB 11s ease-in-out infinite alternate; will-change: transform; }
.hero-proof > div { transition: background var(--transition), transform var(--transition); }
.hero-proof > div:hover { background: rgba(255,107,0,.08); transform: translateY(-2px); }
@keyframes heroDriftA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-36px,22px,0) scale(1.08); } }
@keyframes heroDriftB { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(28px,-18px,0) scale(.94); } }

@media (max-width: 1020px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card, .review-card:nth-child(4), .review-card:nth-child(5) { grid-column: auto; }
  .review-card:last-child { grid-column: 1 / -1; max-width: 580px; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
  .showcase-section > .section-heading { padding-left: 24px; padding-right: 24px; }
  .showcase-card { flex: 0 0 430px !important; width: 430px; min-width: 430px; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; }
  .showcase-track { gap: 13px; }
  .showcase-fade { width: 42px; }
  .platform-grid, .reviews-grid { grid-template-columns: 1fr; }
  .review-card, .review-card:last-child { grid-column: auto; max-width: none; }
  .review-card { min-height: 225px; }
}
@media (max-width: 480px) {
  .showcase-section > .section-heading { padding-left: 18px; padding-right: 18px; }
  .showcase-card { flex: 0 0 320px !important; width: 320px; min-width: 320px; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; }
  .showcase-overlay { left: 20px; right: 20px; bottom: 18px; }
  .showcase-overlay h3 { font-size: 1.55rem; }
  .platform-card { min-height: 82px; }
  .application-lock { margin: 18px 18px 0; grid-template-columns: 38px 1fr; }
  .application-lock-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hero-glow-a, .hero-glow-b, .hero-content, .hero-proof > div { animation: none !important; }
  /* The project rail still moves, but much more slowly than the default motion. */
  .showcase-track { animation-duration: 90s; }
}


/* ===== MOTION SYSTEM v4 ===== */
.scroll-progress {
  position: fixed;
  z-index: 1100;
  left: 0;
  right: 0;
  top: 69px;
  height: 2px;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary), #ffb06f);
  box-shadow: 0 0 12px rgba(255,107,0,.35);
  will-change: transform;
}

.hero-content { animation: heroContentIn .82s cubic-bezier(.16,.84,.24,1) both; }
.hero-grid { animation: heroGridDrift 24s linear infinite; }
.hero-proof > div { animation: proofRise .58s cubic-bezier(.16,.84,.24,1) both; }
.hero-proof > div:nth-child(1) { animation-delay: .24s; }
.hero-proof > div:nth-child(2) { animation-delay: .34s; }
.hero-proof > div:nth-child(3) { animation-delay: .44s; }

@keyframes heroContentIn {
  from { opacity: 0; transform: translate3d(0,30px,0) scale(.99); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes heroGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 52px, 52px 0; }
}
@keyframes proofRise {
  from { opacity: 0; transform: translate3d(0,16px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

/* Slight living motion on interactive blocks without expensive layout animation. */
.platform-card, .review-card, .process-card, .service-card, .role-card, .game-card, .feature-banner {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.section-heading .section-kicker { transition: letter-spacing .45s ease; }
.section-heading.visible .section-kicker { letter-spacing: 2.8px; }

@media (max-width: 720px) {
  .showcase-track { animation-duration: 42s; }
  .showcase-set { gap: 13px; padding-right: 13px; }
}
@media (max-width: 480px) {
  .showcase-track { animation-duration: 38s; }
}

/* Extra micro-motion: inexpensive transform/opacity-only details. */
.section-heading { position: relative; }
.section-heading::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #ffb06f);
  transform: scaleX(0);
  opacity: 0;
  transform-origin: center;
  transition: transform .68s cubic-bezier(.16,.84,.24,1), opacity .45s ease;
}
.section-heading.visible::after { transform: scaleX(1); opacity: 1; }
.process-number, .platform-mark { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.process-card:hover .process-number { transform: translate3d(0,-5px,0) scale(1.05); }
.platform-card:hover .platform-mark { transform: translate3d(0,-3px,0) rotate(-3deg); }
.review-head img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.review-card:hover .review-head img { transform: scale(1.08); }

/* MOTION HOTFIX v5 — stronger directional scroll motion */
.js .reveal {
  transition-duration: .82s, .9s, .62s;
  transition-timing-function: cubic-bezier(.16,.84,.24,1), cubic-bezier(.16,.84,.24,1), ease;
}
.js .reveal.reveal-from-bottom { --reveal-y: 58px; }
.js .reveal.reveal-from-top { --reveal-y: -58px; }
.js .reveal.reveal-side-left { --reveal-x: -34px; }
.js .reveal.reveal-side-right { --reveal-x: 34px; }
.page.page-enter { animation: pageEnterV5 .52s cubic-bezier(.16,.84,.24,1) both; }
@keyframes pageEnterV5 { from { opacity:.55; transform: translate3d(0,16px,0); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-track { animation: showcaseInfiniteScroll 90s linear infinite !important; }
}

/* V5 extra life: subtle staggered card lift after reveal */
.js .reveal.visible.platform-card:hover,
.js .reveal.visible.review-card:hover,
.js .reveal.visible.process-card:hover,
.js .reveal.visible.service-card:hover,
.js .reveal.visible.role-card:hover {
  transform: translate3d(0,-6px,0) scale(1.008);
}
.showcase-marquee:hover .showcase-track { animation-play-state: running !important; }
