:root {
  color-scheme: dark;
  --bg: #0c1017;
  --bg-soft: #101826;
  --card: #141c2b;
  --card-strong: #182234;
  --text: #ecf1f7;
  --muted: #a8b3c6;
  --accent: #2bd4c7;
  --accent-soft: rgba(43, 212, 199, 0.2);
  --accent-2: #f5b851;
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(43, 212, 199, 0.15), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(245, 184, 81, 0.2), transparent 45%),
    linear-gradient(180deg, #0b0f16 0%, #0d1420 55%, #0a0f16 100%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 70%, rgba(43, 212, 199, 0.12), transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(245, 184, 81, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body[data-lang="en"] {
  /* English specific fonts if needed */
}

body[data-lang="zh"] {
  /* Chinese specific fonts if needed */
}

.tech-bg {
  position: fixed;
  inset: 0;
  background-image: url("assets/tech-bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 212, 199, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(12, 16, 23, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-toggle {
  display: none;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.hamburger-box {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 23, 0.95);
  backdrop-filter: blur(20px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu.is-active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-link:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-link:nth-child(6) {
  transition-delay: 0.35s;
}

.lang-toggle {
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: rgba(43, 212, 199, 0.6);
  color: var(--accent);
}

.hero {
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-size: clamp(32px, 4vw, 56px);
  margin: 0 0 18px;
}

.hero-sub {
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #071015;
  box-shadow: 0 16px 40px rgba(43, 212, 199, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(43, 212, 199, 0.45);
}

.btn.ghost {
  border-color: var(--stroke);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.link {
  border: none;
  background: none;
  color: var(--accent-2);
  padding: 0;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.badge {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(20, 28, 43, 0.55);
  backdrop-filter: blur(6px);
}

.badge-value {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.badge-label {
  color: var(--muted);
  font-size: 12px;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portrait-card img {
  width: min(420px, 80vw);
  height: auto;
}

.portrait-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0) 0%, rgba(10, 14, 20, 0.75) 100%);
}

.portrait-name {
  margin: 0 0 6px;
  font-weight: 600;
}

.portrait-role {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.portrait-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-signal {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 212, 199, 0.35), transparent 65%);
  filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

.section {
  padding: 90px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-title {
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  margin: 0 0 12px;
}

.section-sub {
  margin: 0;
  color: var(--muted);
}

.highlight {
  padding: 80px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 1fr);
  gap: 32px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(20, 28, 43, 0.8), rgba(16, 24, 38, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 40px;
}

.metric-grid {
  display: grid;
  gap: 18px;
}

.metric {
  padding: 16px 18px;
  background: rgba(12, 16, 23, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card-icon {
  margin-bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-soft));
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
}

.card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 20px 50px rgba(43, 212, 199, 0.15);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service h3 {
  margin-top: 0;
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}

.service li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(12, 16, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-meta {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.about-highlights {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.process-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.process {
  background: rgba(20, 28, 43, 0.7);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.process ol {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 16px;
}

.process li {
  display: grid;
  gap: 6px;
}

.step {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
  align-items: start;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 23, 0.8);
  color: var(--text);
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.contact-card {
  background: var(--card-strong);
  border-radius: var(--radius-md);
  padding: 26px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-link {
  font-size: 16px;
  color: var(--accent);
}

.contact-text {
  margin: 0;
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(12px);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .highlight-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 100px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .portrait-card img {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Floating Contact Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #0c1017;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(43, 212, 199, 0.3);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 16px rgba(43, 212, 199, 0.5);
  color: #000;
}

/* Game Entry Button (Desktop/Mobile) */
.game-entry-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: rgba(20, 28, 43, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-entry-btn:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* Game Modal Overlay */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-modal.is-open .game-container {
  transform: translateY(0);
}

.game-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  z-index: 10;
}

/* Game Sections */
.game-intro,
.game-question,
.game-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.4s ease;
}

.game-intro.active,
.game-question.active,
.game-result.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--text);
  margin: 0;
}

.game-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Question Styles */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.q-text {
  font-size: 18px;
  margin: 0;
}

.options-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.game-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.game-option:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateX(4px);
}

/* Result Styles */
.result-icon-container {
  width: 80px;
  height: 80px;
  background: rgba(43, 212, 199, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  margin-bottom: 10px;
}

.result-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.show-result-title {
  color: var(--accent);
  margin: 0;
}

.result-desc {
  color: var(--muted);
  font-size: 14px;
}

.result-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}