:root {
  --bg: #050b16;
  --bg-elevated: #0b1628;
  --bg-soft: #122038;
  --ink: #e8f3ff;
  --muted: #8aa0bd;
  --line: rgba(56, 189, 248, 0.12);
  --line-strong: rgba(56, 189, 248, 0.24);
  --amber: #38bdf8;
  --amber-deep: #0ea5e9;
  --amber-soft: rgba(56, 189, 248, 0.14);
  --teal: #22d3ee;
  --teal-soft: rgba(34, 211, 238, 0.14);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --accent-grad: linear-gradient(115deg, #38bdf8 0%, #22d3ee 45%, #818cf8 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 28px 70px rgba(0, 8, 24, 0.55);
  --shadow-soft: 0 12px 30px rgba(0, 12, 28, 0.35);
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-tech: "Orbitron", "IBM Plex Mono", sans-serif;
  --font-body: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --banner-h: 0px;
  --max: 1280px;
  color-scheme: dark;
}

body.has-biz-banner {
  --banner-h: 2.65rem;
}

[data-theme="light"] {
  --bg: #eef4fb;
  --bg-elevated: #ffffff;
  --bg-soft: #dce7f5;
  --ink: #0b1728;
  --muted: #5b6f88;
  --line: rgba(14, 80, 140, 0.12);
  --line-strong: rgba(14, 80, 140, 0.2);
  --amber: #0284c7;
  --amber-deep: #0369a1;
  --amber-soft: rgba(2, 132, 199, 0.12);
  --teal: #0891b2;
  --teal-soft: rgba(8, 145, 178, 0.12);
  --cyan: #0284c7;
  --cyan-soft: rgba(2, 132, 199, 0.12);
  --accent-grad: linear-gradient(115deg, #0284c7 0%, #0891b2 45%, #6366f1 100%);
  --shadow: 0 24px 55px rgba(20, 40, 70, 0.12);
  --shadow-soft: 0 10px 24px rgba(20, 40, 70, 0.08);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--banner-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(129, 140, 248, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 35% at 70% 100%, rgba(34, 211, 238, 0.1), transparent 55%),
    linear-gradient(180deg, #030712 0%, #050b16 42%, #07101c 100%);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(2, 132, 199, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(99, 102, 241, 0.1), transparent 50%),
    linear-gradient(180deg, #e8f1fa 0%, #eef4fb 100%);
}

[data-theme="light"] .hero-visual-glow {
  background:
    radial-gradient(ellipse 55% 60% at 18% 40%, rgba(2, 132, 199, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 50% at 78% 30%, rgba(8, 145, 178, 0.1), transparent 65%);
}

[data-theme="light"] .hero-visual-grid {
  opacity: 0.22;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tech-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.tech-mesh {
  position: absolute;
  inset: -10%;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent 85%);
  animation: grid-drift 40s linear infinite;
  opacity: 0.85;
}

.tech-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
}

.tech-orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 8%;
  left: -8%;
  background: #38bdf8;
}

.tech-orb-b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  right: -6%;
  top: 30%;
  background: #818cf8;
  opacity: 0.28;
}

.tech-hex {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%234cc9ff' stroke-opacity='0.35' stroke-width='1' d='M28 0l28 16v32L28 64 0 48V16z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 70% 55% at 70% 75%, black, transparent 75%);
  animation: hex-shift 50s linear infinite;
}

.tech-beam {
  position: absolute;
  width: 140%;
  height: 1px;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(76, 201, 255, 0.35), rgba(46, 242, 196, 0.2), transparent);
  filter: blur(0.4px);
  opacity: 0.18;
  animation: beam-sweep 9s ease-in-out infinite;
}

.tech-beam-a { top: 18%; animation-delay: 0s; }
.tech-beam-b { top: 52%; opacity: 0.22; animation-delay: -3s; transform: rotate(-8deg); }
.tech-beam-c { top: 78%; opacity: 0.18; animation-delay: -6s; transform: rotate(4deg); }

[data-theme="light"] .tech-mesh {
  background-image:
    linear-gradient(rgba(17, 128, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 128, 200, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(12, 158, 122, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 158, 122, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .tech-hex {
  opacity: 0.12;
}

[data-theme="light"] .tech-beam {
  opacity: 0.2;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(120, 200, 255, 0.12) 3px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

/* Header — tech glass */
.site-header {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(5, 11, 22, 0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.04), 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(5, 11, 22, 0.82);
  border-bottom-color: var(--line-strong);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.site-header-nologo {
  grid-template-columns: 1fr auto;
}

.site-header-nologo .nav {
  justify-self: start;
}

.site-header-nologo .header-actions {
  justify-self: end;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}

.logo-mark {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.3rem;
  background: var(--accent-grad);
  box-shadow: 0 0 0 3px var(--cyan-soft);
  animation: pulse-mark 3.4s var(--ease) infinite;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark.has-image {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text.is-hidden {
  display: none;
}

.footer-brand .logo-mark.has-image {
  width: 2.4rem;
  height: 2.4rem;
}

.logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav {
  position: relative;
  display: flex;
  gap: 0.1rem;
  padding: 0.28rem;
  border-radius: 12px;
  background: rgba(11, 22, 40, 0.65);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.04);
}

.nav a {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.nav a.is-active {
  color: #031018;
  font-weight: 700;
}

.nav a.nav-external {
  color: var(--teal);
  font-weight: 600;
}

.nav a.nav-external:hover {
  background: var(--teal-soft);
  color: var(--ink);
}

.nav a.nav-accent {
  color: #031018;
  font-weight: 700;
  background: var(--accent-grad);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
}

.nav a.nav-accent:hover {
  color: #031018;
  background: var(--accent-grad);
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 0 transparent, 0 0 22px rgba(56, 189, 248, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
}

.nav-toggle {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  cursor: pointer;
  place-items: center;
  gap: 0.28rem;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle-bar {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(3, 6, 12, 0.55);
  backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.nav-backdrop[hidden] {
  display: none !important;
}

.header-cta {
  display: none;
  min-height: 2.35rem;
  padding: 0 1.15rem;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #031018;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-items: center;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.4);
}

.theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  transform: rotate(-12deg);
}

.theme-icon {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset -0.28rem -0.1rem 0 0 var(--bg);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

[data-theme="light"] .theme-icon {
  box-shadow: none;
}

/* Hero — compact dual column */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + var(--banner-h) + 1.75rem) clamp(1.25rem, 4vw, 3rem) 2.25rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-visual-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 60% at 18% 40%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 50% at 78% 30%, rgba(34, 211, 238, 0.14), transparent 65%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
}

.home-section {
  position: relative;
  z-index: 1;
  padding: 3rem 0 0.5rem;
}

.home-section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.home-svc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-section .section-head {
  margin-bottom: 1.5rem;
}

.home-section .section-head p strong,
.about-intro strong,
.about-subtitle strong,
.biz-strip-inner strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-copy {
  max-width: 34rem;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.75s var(--ease) 0.06s forwards;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-tech);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.hero-title {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-main {
  color: var(--ink);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  min-height: 0;
  max-height: 22rem;
  padding: 0.2rem;
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.85s var(--ease) 0.16s forwards;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background: radial-gradient(ellipse 70% 65% at 55% 45%, rgba(56, 189, 248, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-tile {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(11, 22, 40, 0.85);
  box-shadow: 0 14px 32px rgba(0, 8, 24, 0.28);
  transform: translateY(0);
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
  animation: hero-tile-float 5.5s ease-in-out infinite;
}

.hero-tile:nth-child(3n + 2) {
  animation-delay: -1.4s;
}

.hero-tile:nth-child(3n) {
  animation-delay: -2.8s;
}

.hero-tile:nth-child(1),
.hero-tile:nth-child(5),
.hero-tile:nth-child(9) {
  min-height: 0;
}

.hero-tile:hover {
  animation: none;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 12, 28, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.35);
  z-index: 2;
}

.hero-tile-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  contain: paint;
}

.hero-tile-media .cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tile-fallback {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #031018;
  background: var(--accent-grad);
}

[data-theme="light"] .hero-tile {
  box-shadow: 0 12px 28px rgba(15, 35, 60, 0.12);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.45rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-cta,
.btn-primary {
  background: var(--accent-grad);
  color: #031018;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.28);
}

.btn-cta:hover,
.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.4);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(11, 22, 40, 0.55);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.16);
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-glow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.05);
    opacity: 1;
  }
}

@keyframes hero-tile-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Sections */
.library,
.about {
  position: relative;
  z-index: 1;
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.toolbar {
  position: sticky;
  top: calc(var(--header-h) + var(--banner-h) + 0.4rem);
  z-index: 20;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(76, 201, 255, 0.04);
}

.search-field {
  position: relative;
  display: block;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem 0 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  outline: none;
  font-family: var(--font-tech);
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}

.search-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft), 0 0 20px rgba(56, 189, 248, 0.18);
}

.filters {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0.15rem 0.25rem;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.liquid-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--accent-grad);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: scaleY(1);
  transform-origin: center center;
  will-change: left, width, transform;
}

.liquid-pill.is-ready {
  opacity: 1;
}

[data-theme="light"] .liquid-pill {
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.22);
}

.filter-btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  transition: color 0.28s ease;
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.active {
  background: transparent;
  border-color: transparent;
  color: #031018;
  box-shadow: none;
}

.result-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.35rem;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 0;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.04), transparent 40%),
    rgba(11, 22, 40, 0.72);
  box-shadow: 0 10px 28px rgba(0, 8, 24, 0.18);
  cursor: pointer;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
  animation: rise 0.7s var(--ease) both;
}

.game-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 10, 24, 0.28), 0 0 0 1px rgba(56, 189, 248, 0.12);
  transform: translateY(-3px);
}

[data-theme="light"] .game-card {
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 60, 0.08);
}

[data-theme="light"] .game-card:hover {
  box-shadow: 0 14px 30px rgba(15, 35, 60, 0.12);
}

.game-card.is-hydrating,
.game-card.game-card-sk {
  animation: none;
}

/* Feed skeleton — shared diagonal sweep via fixed attachment */
.game-grid.is-skeleton,
.game-grid.is-skeleton-more,
.game-grid.is-revealing,
.featured-track.is-skeleton,
.featured-track.is-revealing {
  position: relative;
}

.sk-bone {
  --sk-base: color-mix(in srgb, var(--bg-soft) 78%, var(--line-strong));
  --sk-shine: color-mix(in srgb, #ffffff 18%, transparent);
  display: block;
  background-color: var(--sk-base);
  background-image: linear-gradient(
    112deg,
    transparent 0%,
    transparent 38%,
    var(--sk-shine) 48%,
    color-mix(in srgb, #ffffff 28%, transparent) 50%,
    var(--sk-shine) 52%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220vw 220vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  animation: sk-band 1.5s linear infinite;
  border-radius: 8px;
}

[data-theme="light"] .sk-bone {
  --sk-base: color-mix(in srgb, #e8eef5 55%, #c9d4e0);
  --sk-shine: rgba(255, 255, 255, 0.75);
}

.game-card-sk,
.game-card-sk-more {
  pointer-events: none;
  cursor: default;
}

.game-card.is-hydrating {
  pointer-events: none;
}

.game-card-sk .card-cover,
.sk-layer .card-cover {
  border-color: transparent;
}

.game-card-sk .card-cover::before,
.game-card-sk .card-cover::after,
.sk-layer .card-cover::before,
.sk-layer .card-cover::after {
  display: none;
  content: none;
}

.sk-cover.sk-bone,
.sk-layer .sk-cover {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  aspect-ratio: auto;
}

.sk-meta-row,
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.sk-meta-row {
  margin-bottom: 0.35rem;
}

.sk-avatar,
.card-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-avatar {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.card-cat {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sk-line {
  height: 0.72rem;
  border-radius: 999px;
}

.sk-cat {
  width: 42%;
  max-width: 5.2rem;
  height: 0.62rem;
}

.sk-title {
  width: 78%;
  height: 0.95rem;
  margin: 0.15rem 0 0.35rem;
}

.sk-proto {
  width: 88%;
  height: 0.55rem;
  margin-top: 0.35rem;
}

.sk-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.42s var(--ease);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.04), transparent 40%),
    rgba(11, 22, 40, 0.98);
  border-radius: inherit;
  overflow: hidden;
}

[data-theme="light"] .sk-layer {
  background: #fff;
}

.sk-layer .card-cover {
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
  background: transparent;
}

.sk-layer .card-body {
  flex: 0 0 auto;
}

.featured-item .sk-layer {
  background: var(--bg-elevated);
}

.featured-item .sk-layer .featured-cover {
  min-height: 8.5rem;
}

.featured-item .sk-layer .featured-cover .sk-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8.5rem;
  border-radius: 0;
}

.game-card.is-ready .sk-layer,
.featured-item.is-ready .sk-layer {
  opacity: 0;
}

/* 仅在入场过程中隐藏，避免异常时内容一直透明 */
.is-hydrating .reveal-block {
  opacity: 0;
  transform: translateY(8px);
}

.is-hydrating.is-ready .reveal-block {
  animation: reveal-up 0.45s var(--ease) forwards;
  animation-delay: calc(var(--ri, 0) * 60ms);
}

/* Featured skeleton */
.featured-item.is-hydrating,
.featured-item.featured-item-sk {
  animation: none;
  pointer-events: none;
}

.featured-item-sk {
  cursor: default;
}

.featured-sk-copy {
  display: grid;
  gap: 0.55rem;
  padding: 0.15rem 0 0;
}

.sk-index {
  width: 4.5rem;
  height: 0.6rem;
}

.sk-feat-title {
  width: 70%;
  height: 1.05rem;
}

.sk-feat-desc {
  width: 92%;
  height: 2.4rem;
  border-radius: 10px;
}

@keyframes sk-band {
  0% {
    background-position: 130vw 0;
  }
  100% {
    background-position: -130vw 0;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
  border-radius: var(--radius);
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 0;
  border-bottom: 1px solid var(--line);
  /* 固定框高，封面缩放/模糊不撑开布局 */
  contain: layout paint;
}

.card-cover::before {
  display: none;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(3, 12, 24, 0.12), rgba(3, 12, 24, 0.38));
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.cover-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px);
  background-size: 48px 48px, 36px 36px, 28px 28px;
}

.cover-ring {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.04);
}

.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.62)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 40%);
}

.cover-glyph {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.cover-photo {
  background: var(--bg-soft);
  /* 尺寸由外层 .card-cover aspect-ratio 固定，避免加载前后跳动 */
  contain: paint;
}

.cover-blur-ph {
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(20px);
  transform: scale(1.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cover-blur-ph.is-visible {
  opacity: 1;
}

.cover-blur-ph.is-gone {
  opacity: 0;
  transition-duration: 0.45s;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.02);
  transform-origin: center center;
  transition:
    opacity 0.16s ease,
    filter 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
  will-change: filter, transform, opacity;
}

.cover-img.is-on {
  z-index: 1;
}

.cover-img.is-on.is-decoded {
  opacity: 1;
}

/* 兼容未走 LQIP 的旧脚本：已带 src、未挂 data-lqip-img 时直接显示，避免上线后 opacity:0 导致「图加载不出来」 */
.cover-img.is-on[src]:not([data-lqip-img]) {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.cover-img.is-sharp {
  filter: blur(0);
  transform: scale(1);
}

.cover-img:not(.is-on) {
  opacity: 0 !important;
  z-index: 0;
}

.cover-photo::after {
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45));
  z-index: 2;
}

.cover-multi .cover-dots,
.cover-multi .cover-nav,
.cover-multi .cover-count {
  position: absolute;
  z-index: 3;
}

.cover-dots {
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}

.cover-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.cover-dot.active {
  width: 1rem;
  background: #fff;
}

.cover-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cover-multi:hover .cover-nav,
.dialog-cover .cover-nav {
  opacity: 1;
}

.cover-nav.prev { left: 0.55rem; }
.cover-nav.next { right: 0.55rem; }

.cover-count {
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dialog-cover .cover-art {
  min-height: 100%;
}

.card-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #031018;
  background: var(--accent-grad);
  box-shadow: 0 10px 24px rgba(0, 12, 28, 0.42), 0 0 0 3px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.22s var(--ease), opacity 0.22s ease, box-shadow 0.22s ease;
}

.card-play-btn svg {
  margin-left: 2px;
}

.card-play-btn:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 12, 28, 0.5), 0 0 0 4px rgba(56, 189, 248, 0.28);
}

.card-play-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.game-card:hover .card-cover::after,
.game-card:focus-within .card-cover::after {
  opacity: 0.65;
}

.card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem 0.75rem;
  flex: 1;
  align-content: start;
}

.game-card.is-hydrating:hover,
.game-card.game-card-sk:hover,
.game-card.game-card-sk-more:hover {
  transform: none;
  box-shadow: 0 10px 28px rgba(0, 8, 24, 0.18);
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

/* Infinite feed footer */
.feed-footer {
  position: relative;
  display: grid;
  place-items: center;
  /* 固定高度，loading / 没有更多 切换时不顶布局 */
  min-height: 3.75rem;
  height: 3.75rem;
  margin-top: 1.25rem;
  padding: 0.5rem 0 0.25rem;
}

.feed-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2rem;
}

.feed-loading[hidden],
.feed-end[hidden],
.feed-footer[hidden] {
  display: none !important;
}

.feed-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.35;
  animation: feed-dot-bounce 0.85s ease-in-out infinite;
  will-change: transform, opacity;
}

.feed-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.feed-dot:nth-child(3) {
  animation-delay: 0.28s;
}

.feed-end {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.feed-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.game-card.card-conveyor {
  animation: card-conveyor 0.45s var(--ease) both;
  animation-delay: calc(var(--ci, 0) * 50ms);
  will-change: transform, opacity;
  pointer-events: none;
}

.game-card.card-conveyor:hover {
  transform: none;
  box-shadow: 0 10px 28px rgba(0, 8, 24, 0.18);
}

@keyframes feed-dot-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.32;
  }
  35% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes card-conveyor {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Featured carousel */
.featured {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 4rem 0 3rem;
  max-width: none;
}

.featured .section-head {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(76, 201, 255, 0.18);
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.featured-carousel {
  position: relative;
}

.featured-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem clamp(1.25rem, 4vw, 3rem) 1.1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.featured-track:active {
  cursor: grabbing;
}

.featured-track::-webkit-scrollbar {
  display: none;
}

.featured-item {
  position: relative;
  flex: 0 0 min(78vw, 340px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
  box-shadow: var(--shadow-soft);
}

.featured-item.is-active {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 30%, transparent), var(--shadow-soft);
}

.featured-cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.featured-copy {
  padding: 1.15rem 1.2rem 1.3rem;
}

.featured-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-index {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  color: var(--amber);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.2rem 1rem 0;
}

.carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s ease;
}

.carousel-dot.active {
  width: 1.35rem;
  background: var(--amber);
}

/* Biz banner */
.biz-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 2.5rem 0 1rem;
  background: linear-gradient(90deg, rgba(8, 28, 48, 0.96), rgba(12, 40, 64, 0.96));
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.biz-banner[hidden] {
  display: none !important;
}

[data-theme="light"] .biz-banner {
  background: linear-gradient(90deg, #e8f4ff, #dff0fb);
  color: #0b1728;
}

.biz-banner-text {
  margin: 0;
  max-width: 52rem;
  text-align: center;
}

.biz-banner-text strong {
  font-weight: 700;
  color: var(--cyan);
}

.biz-banner-link {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  background: var(--accent-grad);
  color: #031018;
}

.biz-banner-close {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.biz-banner-close:hover {
  color: var(--ink);
  background: var(--cyan-soft);
}

.card-proto {
  margin: 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
  font-weight: 500;
}

/* Biz strip */
.biz-strip {
  max-width: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.2), rgba(5, 14, 28, 0.45));
}

[data-theme="light"] .biz-strip {
  background: #e8f1fa;
}

.biz-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.biz-strip-inner p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.biz-strip-inner strong {
  color: var(--ink);
  font-weight: 700;
}

/* About — 七区块商务页 */
.about {
  max-width: none;
  padding: 0;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 40, 0.35), rgba(5, 12, 24, 0.7)),
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(56, 189, 248, 0.08), transparent 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .about {
  background: #eef4fb;
  border-top-color: rgba(20, 40, 70, 0.06);
  border-bottom-color: rgba(20, 40, 70, 0.06);
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem clamp(1.25rem, 4vw, 3rem);
  display: grid;
  gap: 3.25rem;
}

.about-hero-block {
  max-width: 48rem;
}

.about-hero-block h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.about-subtitle {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 600;
}

.about-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-intro strong,
.about-subtitle strong,
.about-proto-note strong {
  color: var(--ink);
  font-weight: 700;
}

.about-block {
  display: grid;
  gap: 1.15rem;
}

.about-block-title {
  margin: 0;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.about-card-grid {
  display: grid;
  gap: 1rem;
}

.about-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-card-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.svc-card {
  padding: 1.2rem 1.15rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.06), transparent 55%),
    rgba(11, 22, 40, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 8, 24, 0.22);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, border-color 0.22s ease;
}

[data-theme="light"] .svc-card {
  background: #fff;
  border-color: rgba(20, 40, 70, 0.08);
  box-shadow: 0 8px 22px rgba(15, 35, 60, 0.06);
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 36px rgba(0, 12, 28, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.18);
}

.svc-ico {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.95rem;
}

.svc-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.svc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.tech-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-stack li {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 22, 40, 0.75);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .tech-stack li {
  background: #fff;
  border-color: rgba(20, 40, 70, 0.1);
}

.tech-stack li:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 1.55rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.process-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  padding: 0.35rem 0.25rem 0.6rem;
}

.process-timeline li span {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #031018;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(5, 11, 22, 0.85), 0 0 18px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .process-timeline li span {
  box-shadow: 0 0 0 4px #eef4fb, 0 0 14px rgba(2, 132, 199, 0.25);
}

.process-timeline li strong {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.about-proto-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-game-grid {
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  border-top: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(8, 16, 32, 0.55), rgba(5, 10, 20, 0.85)),
    color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.site-footer-minimal .footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
  text-align: center;
}

[data-theme="light"] .site-footer {
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.75), rgba(232, 238, 246, 0.92)),
    var(--bg-elevated);
}

.footer-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem clamp(1.25rem, 4vw, 3rem) 2.4rem;
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) 2fr;
  gap: 2.5rem 3rem;
}

.footer-brand-block {
  padding: 1.25rem 1.3rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, var(--amber-soft), transparent 55%),
    var(--bg-elevated);
  max-width: 280px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-brand .logo-text {
  color: var(--ink);
  font-size: 1.15rem;
}

.footer-brand .logo-mark {
  animation: none;
  box-shadow: none;
}

.footer-tagline {
  margin: 0 0 1.15rem;
  max-width: 18rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.9rem;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: var(--cyan) !important;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.footer-chip:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 0 18px rgba(76, 201, 255, 0.16);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem) 1.7rem;
  text-align: center;
}

.footer-legal p {
  margin: 0;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--muted) 92%, transparent);
}

.info-dialog {
  width: min(560px, calc(100vw - 1.5rem));
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow);
}

.info-dialog::backdrop {
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(6px);
}

.info-dialog-body {
  position: relative;
  padding: 1.7rem 1.5rem 1.5rem;
}

.info-kicker {
  margin: 0 0 0.4rem;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-dialog-body h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.info-content {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-content p {
  margin: 0 0 0.75rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.contact-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  padding: 0.7rem 0.85rem;
  resize: vertical;
  min-height: 5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.contact-error {
  margin: 0;
  color: #ff6b6b;
  font-size: 0.88rem;
}

.contact-ok {
  margin: 0;
  color: var(--teal);
  font-size: 0.88rem;
}

.contact-submit {
  width: 100%;
  margin-top: 0.2rem;
}

/* Dialog */
.game-dialog {
  width: min(900px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-dialog::backdrop {
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.05fr;
  max-height: calc(100vh - 1.5rem);
}

.dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.dialog-close:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.55);
}

.dialog-cover {
  min-height: 100%;
}

.dialog-cover .cover-art {
  min-height: 100%;
}

.dialog-info {
  padding: 2rem 1.7rem 1.7rem;
  overflow: auto;
}

.dialog-cat {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.dialog-info h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.dialog-info .btn-primary {
  margin-bottom: 1.15rem;
}

.dialog-desc {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.meta-chip {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.meta-chip strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Cover palettes */
.palette-amber { background: linear-gradient(145deg, #2a1c08 0%, #efb141 52%, #7a4a12 100%); }
.palette-teal { background: linear-gradient(160deg, #06241c 0%, #3ddbb0 48%, #0b5c48 100%); }
.palette-coral { background: linear-gradient(150deg, #2a1014 0%, #ff7a65 50%, #8a2f28 100%); }
.palette-slate { background: linear-gradient(155deg, #121820 0%, #6e849e 46%, #243041 100%); }
.palette-violet { background: linear-gradient(145deg, #18102a 0%, #8f75ff 48%, #3a2a78 100%); }
.palette-lime { background: linear-gradient(150deg, #142008 0%, #b6e84a 50%, #4d7214 100%); }
.palette-rose { background: linear-gradient(155deg, #240816 0%, #ff6ea8 48%, #8a2458 100%); }
.palette-ocean { background: linear-gradient(150deg, #061428 0%, #4db7ff 50%, #14507a 100%); }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -22px) scale(1.08); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse-mark {
  0%, 100% { box-shadow: 0 0 0 3px var(--cyan-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px, 18px 18px, 18px 18px; }
}

@keyframes hex-shift {
  from { background-position: 0 0; }
  to { background-position: 56px 100px; }
}

@keyframes beam-sweep {
  0%, 100% { opacity: 0.08; transform: translateX(-8%) scaleX(0.9); }
  50% { opacity: 0.4; transform: translateX(8%) scaleX(1.05); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (min-width: 901px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .hero-showcase {
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
  }

  .about-card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-card-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-timeline::before {
    display: none;
  }


  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand-block {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + var(--banner-h) + 0.55rem);
    right: clamp(0.85rem, 3vw, 1.25rem);
    left: auto;
    z-index: 45;
    width: min(18.5rem, calc(100vw - 1.7rem));
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px) saturate(1.15);
  }

  .nav > .liquid-pill {
    display: none;
  }

  .nav a.is-active {
    background: var(--cyan-soft);
    color: var(--ink);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .site-header.scrolled,
  .site-header.nav-open {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: var(--line);
  }
}

@media (max-width: 760px) {
  .dialog-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .dialog-cover {
    min-height: 200px;
  }

  .featured-item {
    flex-basis: min(86vw, 320px);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    padding: calc(var(--header-h) + var(--banner-h) + 1.8rem) 1.1rem 2.5rem;
    min-height: auto;
  }

  .hero-brand {
    letter-spacing: 0.2em;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .home-svc-grid,
  .about-card-grid-5 {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding-top: 3rem;
  }

  .library {
    padding: 3.5rem 1.1rem 1.5rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.95rem;
  }

  .toolbar {
    gap: 0.75rem;
  }

  .result-meta {
    white-space: normal;
  }

  .about-inner {
    padding: 3rem 1.1rem;
    gap: 2.15rem;
  }

  .about-subtitle {
    font-size: 0.98rem;
  }

  .about-intro {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .about-card-grid-4,
  .about-card-grid-5 {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-timeline li {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
    gap: 0.85rem;
    padding: 0.7rem 0;
  }

  .process-timeline li span {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
  }

  .biz-banner {
    font-size: 0.75rem;
    padding: 0 2.1rem 0 0.65rem;
    justify-content: flex-start;
  }

  .biz-banner-text {
    text-align: left;
  }

  .biz-banner-link {
    display: none;
  }

  .biz-strip-inner {
    padding: 1.35rem 1.1rem;
  }

  .featured {
    padding-top: 3rem;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .footer-main {
    padding: 2.2rem 1.1rem 1.8rem;
  }

  .footer-legal {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .info-dialog,
  .game-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: auto;
  }

  .info-dialog-body {
    padding: 1.35rem 1.1rem 1.2rem;
  }

  .contact-form {
    gap: 0.7rem;
  }

  .contact-submit {
    min-height: 2.75rem;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

body.nav-locked {
  overflow: hidden;
}
