/* Northmere Interactive — studio site.
   Night-sky palette, Rajdhani for display, Inter for text (local copies, fonts.css). */

:root {
  --bg: #070b16;
  --bg-alt: #0b1222;
  --surface: #0f182c;
  --surface-2: #142039;
  --line: rgba(160, 190, 255, 0.12);
  --line-strong: rgba(160, 190, 255, 0.24);
  --text: #e9eefb;
  --text-dim: #a3afc8;
  --text-faint: #6c7894;
  --ice: #7fe7ff;
  --sky: #6aa8ff;
  --violet: #a98bff;
  --grad: linear-gradient(120deg, var(--ice), var(--sky) 55%, var(--violet));

  --display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: clamp(18px, 5vw, 56px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html.i18n-pending [data-i18n] { visibility: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 26px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1160px; margin: 0 auto; }
.section { padding: clamp(72px, 10vw, 120px) var(--pad-x); position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 18%, var(--bg-alt) 82%, var(--bg) 100%); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-lead { color: var(--text-dim); font-size: 18px; margin-top: 18px; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--grad); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #06101f; box-shadow: 0 8px 30px -10px rgba(106, 168, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(127, 231, 255, .8); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* ---------- top bar ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background: rgba(7, 11, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar-in { max-width: 1160px; margin: 0 auto; padding: 14px var(--pad-x); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; display: flex; flex-direction: column; }
.brand-sub { font-size: 11px; letter-spacing: .42em; color: var(--text-dim); margin-top: 3px; font-weight: 600; }
.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { color: var(--text-dim); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--grad); transition: right .25s ease; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--text-faint); font: 600 13px var(--display); letter-spacing: .12em; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang button.is-on { background: rgba(127, 231, 255, .14); color: var(--ice); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px var(--pad-x) 220px;
  background: radial-gradient(120% 80% at 50% 0%, #101c3a 0%, #0a1226 45%, var(--bg) 100%);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; inset: -10% -10% 30% -10%; filter: blur(60px); opacity: .9; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60%; height: 42%; left: 4%; top: 18%; background: radial-gradient(closest-side, rgba(127, 231, 255, .55), transparent); }
.aurora i:nth-child(2) { width: 52%; height: 38%; left: 38%; top: 6%; background: radial-gradient(closest-side, rgba(106, 168, 255, .5), transparent); animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 46%; height: 36%; left: 56%; top: 26%; background: radial-gradient(closest-side, rgba(169, 139, 255, .45), transparent); animation-duration: 32s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(6%, 4%, 0) scale(1.15) rotate(8deg); }
  100% { transform: translate3d(-5%, -3%, 0) scale(.95) rotate(-6deg); }
}
.hero-emblem {
  position: absolute; z-index: 1; right: max(var(--pad-x), calc((100vw - 1160px) / 2)); top: 50%;
  width: clamp(240px, 24vw, 360px); height: auto; transform: translateY(-62%);
  filter: drop-shadow(0 0 60px rgba(106, 168, 255, .35)); opacity: .92;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hero-in { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; width: 100%; }
.hero-title { font-size: clamp(60px, 12vw, 140px); text-transform: uppercase; letter-spacing: .02em; line-height: .86; margin: 6px 0 28px; }
.hero-line { display: block; }
.hero-line-2 {
  font-size: .42em;
  letter-spacing: .5em;
  margin-top: .3em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lead { font-size: clamp(17px, 2vw, 21px); color: var(--text-dim); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 22vw, 260px); z-index: 1; }
.ripples line { stroke-width: 2; animation: ripple 7s ease-in-out infinite; }
.ripples line:nth-child(2n) { animation-delay: -3s; }
@keyframes ripple { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }

.hero-404 { padding-bottom: 120px; }
.hero-404 .hero-title { font-size: clamp(48px, 8vw, 96px); }

/* entrance */
.hero-in > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-in > :nth-child(2) { animation-delay: .1s; }
.hero-in > :nth-child(3) { animation-delay: .25s; }
.hero-in > :nth-child(4) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- games ---------- */

.game {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(160deg, rgba(20, 32, 57, .7), rgba(11, 18, 34, .6));
  position: relative;
}
.game + .game { margin-top: 32px; }
.game::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(127, 231, 255, .35), transparent 35%, transparent 65%, rgba(169, 139, 255, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.game-media { min-width: 0; }
.game-shot { width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transition: opacity .25s ease; }
.game-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.game-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .2s ease, border-color .2s ease; }
.game-thumbs button:hover { opacity: .85; }
.game-thumbs button.is-on { opacity: 1; border-color: var(--ice); }
.game-thumbs img { width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: cover; }
.game-body p { color: var(--text-dim); }
.game-logo { width: min(280px, 80%); height: auto; margin: 0 0 18px -6px; }
.tags { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 600 13px var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-dim); }
.game-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* classified project */
.game-secret { grid-template-columns: 1fr 1.25fr; }
.secret-art {
  position: relative;
  aspect-ratio: 20 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(80% 90% at 30% 30%, #18264a, #080d1a);
  display: grid; place-items: center;
}
.secret-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127, 231, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 231, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask: radial-gradient(closest-side, #000, transparent);
  mask: radial-gradient(closest-side, #000, transparent);
  animation: gridpan 18s linear infinite;
}
@keyframes gridpan { to { background-position: 32px 32px, 32px 32px; } }
.secret-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(169, 139, 255, .45), transparent); filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
.secret-mark {
  position: relative;
  font: 700 clamp(110px, 14vw, 170px)/1 var(--display);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(127, 231, 255, .35));
}
.secret-stamp {
  position: absolute; right: 18px; bottom: 16px;
  font: 700 13px var(--display); letter-spacing: .3em; text-transform: uppercase;
  color: #ff8fa3; border: 1px solid rgba(255, 143, 163, .5); padding: 4px 10px; border-radius: 4px;
  transform: rotate(-4deg);
}
.codename { font: 600 15px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.game-secret h3 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 20px; }
.redacted { display: grid; gap: 9px; margin-bottom: 20px; }
.redacted i {
  display: block; height: 12px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(160, 190, 255, .14), rgba(160, 190, 255, .26), rgba(160, 190, 255, .14));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
.redacted .r1 { width: 92%; } .redacted .r2 { width: 78%; } .redacted .r3 { width: 58%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.game-secret .btn { margin-top: 10px; }

/* ---------- studio ---------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 24, 44, .6); transition: border-color .25s ease, transform .25s ease; }
.value:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.value-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(127, 231, 255, .08); border: 1px solid rgba(127, 231, 255, .2); margin-bottom: 20px; }
.value-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 24px; margin-bottom: 10px; }
.value p { color: var(--text-dim); margin: 0; }

/* ---------- contact ---------- */

.contact {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(127, 231, 255, .12), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(169, 139, 255, .12), transparent 60%),
    var(--surface);
}
.mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  font: 700 clamp(17px, 2.6vw, 30px) var(--display); letter-spacing: .02em; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: color .2s ease, border-color .2s ease;
  overflow-wrap: anywhere;
}
.mail svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linejoin: round; }
.mail:hover { color: var(--ice); border-color: var(--ice); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.social {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 11, 22, .5); color: var(--text);
  font-weight: 500; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.social svg { width: 22px; height: 22px; flex: none; fill: currentColor; color: var(--ice); }
.social small { margin-left: auto; font: 600 11px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
a.social:hover { border-color: var(--ice); transform: translateY(-2px); background: rgba(127, 231, 255, .06); }
span.social { opacity: .6; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 32px var(--pad-x); color: var(--text-faint); font-size: 14px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--ice); }

/* ---------- legal page ---------- */

.legal { padding: 140px var(--pad-x) 90px; }
.legal .wrap { max-width: 780px; }
.legal-back { margin-top: 48px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 10px; }
.legal .updated { color: var(--text-faint); margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 20px; }
.legal [data-lang-block] { display: none; }
html[lang="en"] .legal [data-lang-block="en"], html[lang="ru"] .legal [data-lang-block="ru"] { display: block; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero-emblem { display: none; }
}
@media (max-width: 900px) {
  .game, .game-secret { grid-template-columns: 1fr; }
  .game-secret .secret-art { order: -1; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-bottom: 170px; }
  .hero-line-2 { letter-spacing: .3em; }
  .contact { padding: 24px 20px; }
  .mail { font-size: 16px; letter-spacing: 0; gap: 8px; }
  .mail svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in > *, .reveal { opacity: 1; transform: none; }
}
