:root {
  --bg: #ffffff;
  --soft: #f3f7fd;
  --ink: #0b1b33;
  --text: #344256;
  --muted: #6b7a90;
  --line: #e4eaf2;
  --blue: #1677ff;
  --blue-2: #22b8f5;
  --blue-soft: #e8f1ff;
  --gold: #f5a524;
  --navy: #0b1530;
  --grad: linear-gradient(120deg, #1677ff, #22b8f5);
  --font: "Be Vietnam Pro", -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 2px 6px rgba(11, 27, 51, .04), 0 18px 40px rgba(11, 27, 51, .08);
  --r: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: var(--bg) radial-gradient(circle, #dbe5f2 1px, transparent 1.2px) 0 0 / 26px 26px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.header { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.header .container {
  height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 16px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(11, 27, 51, .06);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: .2px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.logo span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: .9rem; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.active { color: var(--blue); background: var(--blue-soft); }
.nav .btn { margin-left: 8px; color: #fff; }
.menu-btn { display: none; background: var(--soft); border: 0; border-radius: 10px; cursor: pointer; padding: 10px; }
.menu-btn i { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font: 600 .92rem var(--font); cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(22, 119, 255, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22, 119, 255, .4); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Tag ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .8rem; font-weight: 700; }
.tag.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 90px; }
.hero .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -1.5px; margin: 20px 0; }
.hero p { color: var(--muted); font-size: 1.06rem; max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line); }
.trust div b { display: block; color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.trust div span { font-size: .84rem; color: var(--muted); }
.showcase { position: relative; padding: 0 0 30px 30px; }
.showcase .frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.2; position: relative; }
.showcase .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; transition: transform 1.2s ease; }
.showcase:hover .frame img { transform: scale(1.04); }
.showcase .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 21, 48, .55)); }
.showcase .char { position: absolute; left: -6px; bottom: 0; height: 58%; z-index: 2; filter: drop-shadow(0 16px 22px rgba(11, 27, 51, .35)); }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); animation: bob 6s ease-in-out infinite;
}
.chip b { display: block; color: var(--ink); font-size: .9rem; }
.chip i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); font-size: 1.05rem; }
.chip.c1 { top: 8%; right: -18px; }
.chip.c2 { bottom: 14%; right: 6%; animation-delay: -3s; }
.chip.c2 i { background: #fff1e6; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 800; color: var(--ink); letter-spacing: -1px; line-height: 1.15; margin-top: 14px; max-width: 640px; }
.head p { color: var(--muted); max-width: 420px; }
.band { background: var(--soft); }

/* ---------- Featured project ---------- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.feature-media { position: relative; min-height: 400px; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature:hover .feature-media img { transform: scale(1.04); }
.status { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 7px 14px; border-radius: 999px; background: rgba(11, 21, 48, .7); color: #fff; font-size: .76rem; font-weight: 700; backdrop-filter: blur(6px); display: flex; gap: 8px; align-items: center; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 165, 36, .3); }
.feature-body { padding: 42px 40px; display: flex; flex-direction: column; }
.feature-body h3 { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin: 12px 0 4px; }
.feature-body .genre { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.feature-body > p { color: var(--muted); margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips span { font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--soft); color: var(--text); }
.party { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.party .faces { display: flex; }
.party .faces img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--blue-soft); border: 3px solid #fff; margin-left: -12px; box-shadow: 0 4px 10px rgba(11, 27, 51, .12); }
.party .faces img:first-child { margin-left: 0; }
.party small { color: var(--muted); font-size: .84rem; flex: 1; }
.party small b { color: var(--ink); }

.sub { display: flex; align-items: center; gap: 14px; margin: 56px 0 22px; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.game:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.game .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); display: grid; place-items: center; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game:hover .thumb img { transform: scale(1.06); }
.game .thumb .num { font-size: 2.4rem; font-weight: 800; color: #fff; }
.game .meta { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game b { color: var(--ink); display: block; }
.game small { color: var(--muted); font-size: .8rem; }
.game .go { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; transition: background .2s, color .2s; }
.game:hover .go { background: var(--blue); color: #fff; }

/* ---------- Classes ---------- */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.class-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.class-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.class-art { height: 270px; display: grid; place-items: end center; padding-top: 18px; background: linear-gradient(180deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.class-art::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .7), transparent 70%); }
.class-art img { position: relative; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(11, 27, 51, .22)); transition: transform .4s; }
.class-card:hover .class-art img { transform: scale(1.05) translateY(-4px); }
.class-body { padding: 20px 22px 24px; }
.class-body small { font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--c3); }
.class-body h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 2px 0 6px; }
.class-body p { color: var(--muted); font-size: .92rem; }

.boss {
  margin-top: 20px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 20px; overflow: hidden;
  border-radius: var(--r); padding: 40px 44px; color: #d5dcea;
  background: radial-gradient(ellipse at 80% 50%, rgba(239, 68, 68, .45), transparent 60%), linear-gradient(135deg, var(--navy), #1b1030);
}
.boss .tag { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.boss h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; color: #fff; margin: 14px 0 10px; letter-spacing: -.5px; }
.boss h3 span { color: #fdba74; }
.boss p { margin-bottom: 20px; }
.boss ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.boss li { font-size: .84rem; font-weight: 600; padding: 7px 13px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.boss img { max-height: 300px; margin-inline: auto; filter: drop-shadow(0 0 36px rgba(239, 68, 68, .5)); animation: bob 6s ease-in-out infinite; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.about-media .badge {
  position: absolute; right: -18px; bottom: -22px; background: var(--grad); color: #fff; border-radius: 18px; padding: 18px 22px;
  box-shadow: 0 16px 34px rgba(22, 119, 255, .35);
}
.about-media .badge b { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.about-media .badge span { font-size: .82rem; opacity: .9; }
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 800; color: var(--ink); letter-spacing: -1px; line-height: 1.2; margin: 14px 0 16px; }
.about > div > p { color: var(--muted); margin-bottom: 26px; }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.value i { font-style: normal; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); font-size: 1.1rem; }
.value b { color: var(--ink); display: block; }
.value span { color: var(--muted); font-size: .9rem; }

/* ---------- Careers ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.job { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.job:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.job i { font-style: normal; flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); font-size: 1.3rem; }
.job div { flex: 1; }
.job b { color: var(--ink); display: block; }
.job small { color: var(--muted); }
.job span { color: var(--blue); font-weight: 700; font-size: 1.2rem; transition: transform .2s; }
.job:hover span { transform: translateX(4px); }

/* ---------- Contact ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #e6f0ff;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .22), transparent 40%), var(--grad);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.cta .tag { background: rgba(255, 255, 255, .18); color: #fff; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.2; margin: 14px 0 12px; }
.cta p { margin-bottom: 26px; max-width: 460px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta ul { list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.cta li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.cta li i { font-style: normal; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; }
.cta li small { display: block; font-size: .74rem; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.cta li b { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { margin-top: 80px; background: var(--navy); color: #93a1bd; font-size: .88rem; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer h5 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .legal b { color: #dbe3f2; }
.copy { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 10px 24px rgba(22, 119, 255, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .classes { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .class-art { height: 210px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 20px; right: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px; display: none; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
  .hero .container, .about, .cta, .boss { grid-template-columns: 1fr; }
  .showcase { max-width: 460px; margin-inline: auto; width: 100%; }
  .chip.c1 { right: 0; }
  .about-media { max-width: 520px; }
  .about-media .badge { right: 12px; }
  .classes { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .class-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
  .class-art { height: 100%; min-height: 190px; }
  .boss { padding: 32px 26px; }
  .cta { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .hero { padding: 40px 0 70px; }
  .games, .jobs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .jobs { grid-template-columns: 1fr; }
  .game .meta { padding: 10px 12px 12px; }
  .game .go { display: none; }
  .feature-body { padding: 28px 22px; }
  .class-card { grid-template-columns: 116px 1fr; }
  .class-body { padding: 16px; }
  .trust { gap: 18px; }
  .chip { font-size: .74rem; padding: 8px 10px; }
  .chip i { width: 28px; height: 28px; }
}
