/* Halos Labs — dark casual game studio */
:root {
  --bg-deep: #07080f;
  --bg-elevated: #0e1018;
  --bg-card: #141824;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-cyan: #22d3ee;
  --accent-teal: #5eead4;
  --accent-violet: #a78bfa;
  --gradient-brand: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan), var(--accent-violet));
  --header-h: 72px;
  --radius: 14px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent-teal);
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 92vw);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  width: min(1200px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-mark-sm {
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-name {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

.brand-labs {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92em;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent-cyan) !important;
}

.nav-cta:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-teal) !important;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: rgba(14, 16, 24, 0.72);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 5vw 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav a {
  padding: 0.75rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .lang-toggle {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }
}

/* —— Hero banner —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 5vw 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(94, 234, 212, 0.1), transparent 45%),
    var(--bg-deep);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
}

.hero-orbs::before,
.hero-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.hero-orbs::before {
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  background: rgba(34, 211, 238, 0.35);
  top: 10%;
  right: -10%;
}

.hero-orbs::after {
  width: min(320px, 40vw);
  height: min(320px, 40vw);
  background: rgba(167, 139, 250, 0.3);
  bottom: 15%;
  left: -5%;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 20px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #042028;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 16px 48px rgba(34, 211, 238, 0.35);
  color: #042028;
}

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

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent-teal);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head.align-left {
  text-align: left;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
}

.section-head.align-left p {
  margin-inline: 0;
}

.games {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.game-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.game-card-link:hover .game-body h3 {
  color: var(--accent-teal);
}

.game-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.game-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.game-thumb-a {
  background-image:
    linear-gradient(145deg, rgba(7, 8, 15, 0.28), rgba(7, 8, 15, 0.45)),
    url("shuangren.png");
}

.lang-en .game-thumb-a {
  background-image:
    linear-gradient(145deg, rgba(7, 8, 15, 0.28), rgba(7, 8, 15, 0.45)),
    url("shuangen.png");
}

.game-thumb-b {
  background-image:
    linear-gradient(145deg, rgba(7, 8, 15, 0.28), rgba(7, 8, 15, 0.45)),
    url("zhao.jpg");
}

.lang-en .game-thumb-b {
  background-image:
    linear-gradient(145deg, rgba(7, 8, 15, 0.28), rgba(7, 8, 15, 0.45)),
    url("shudu.png");
}

.game-thumb-c {
  background-image:
    linear-gradient(145deg, rgba(7, 8, 15, 0.28), rgba(7, 8, 15, 0.45)),
    url("shui.jpg");
}

.lang-en .game-thumb-c {
  background-image:
    linear-gradient(145deg, rgba(7, 8, 15, 0.28), rgba(7, 8, 15, 0.45)),
    url("zhancheng.jpg");
}

.game-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.game-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.game-body p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-teal);
}

.studio {
  border-top: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats strong {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.studio-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.studio-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.studio-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent-cyan);
}

.studio-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.careers {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.job-list em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  background: #05060a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.brand-footer .brand-text {
  font-size: 1rem;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
