:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(14, 25, 42, 0.78);
  --panel-strong: #0f1d33;
  --line: rgba(203, 219, 255, 0.12);
  --text: #f2f6fb;
  --muted: #a9b6cb;
  --accent: #d7b46a;
  --accent-2: #69d0ff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(105, 208, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(215, 180, 106, 0.16), transparent 24%),
    linear-gradient(180deg, #081221 0%, #091523 45%, #070d18 100%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.08) 70%, transparent);
  opacity: 0.22;
}

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

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

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 27, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  padding: 4px 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.button:hover,
.button:focus-visible,
.lang-toggle:hover,
.lang-toggle:focus-visible,
.contact-item:hover,
.contact-item:focus-visible,
.page-link:hover,
.page-link:focus-visible {
  outline: none;
  color: var(--text);
  border-color: rgba(215, 180, 106, 0.34);
  box-shadow: 0 0 0 3px rgba(215, 180, 106, 0.12);
}

.nav a.is-active {
  color: var(--text);
  border-color: rgba(105, 208, 255, 0.35);
  background: rgba(105, 208, 255, 0.08);
}

.actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.lang-toggle[data-lang="en"] .lang-label:first-child,
.lang-toggle[data-lang="zh"] .lang-label:last-child {
  opacity: 1;
}

.lang-toggle[data-lang="en"] .lang-label:last-child,
.lang-toggle[data-lang="zh"] .lang-label:first-child {
  opacity: 0.55;
}

.lang-label,
.lang-divider {
  transition: opacity 160ms ease;
}

.button:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #f0d59c);
  color: #121212;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.subscribe-button[hidden] {
  display: none !important;
}

.subscribe-button {
  background: rgba(105, 208, 255, 0.08);
  border-color: rgba(105, 208, 255, 0.24);
}

.section {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 22, 37, 0.88), rgba(10, 18, 31, 0.82));
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 42px 30px 30px;
  overflow: hidden;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.page-hero h1 {
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.hero-text,
.page-intro,
.section-note,
.contact-note,
.card-note,
.page-note {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-text,
.page-intro {
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
}

.highlight-card,
.panel-card,
.content-card,
.service-card,
.fact-card,
.contact-item,
.page-link {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.highlight-card {
  border-radius: 18px;
  padding: 16px 18px;
}

.highlight-value {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.highlight-label {
  color: var(--muted);
  font-size: 0.83rem;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.panel-card {
  border-radius: 22px;
  padding: 18px;
}

.brand-seal {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 208, 255, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.brand-seal img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.93);
}

.brand-seal strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 1.06rem;
}

.brand-seal p {
  margin-bottom: 0;
  color: var(--muted);
}

.panel-kicker,
.card-kicker {
  margin-bottom: 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.snapshot-list li {
  display: grid;
  gap: 4px;
}

.snapshot-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.snapshot-list strong {
  font-size: 0.98rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.mini-grid {
  display: grid;
  gap: 16px;
}

.content-card {
  border-radius: 22px;
  padding: 20px;
}

.content-card.large {
  min-height: 100%;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  border-radius: 22px;
  padding: 22px;
  min-height: 100%;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #0d1727;
  background: linear-gradient(135deg, var(--accent), #f0d59c);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-card p:last-child,
.fact-card p:last-child {
  margin-bottom: 0;
}

.facts-layout {
  display: grid;
  gap: 18px;
}

.service-rail {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(105, 208, 255, 0.06);
  border: 1px solid rgba(105, 208, 255, 0.14);
}

.service-rail p {
  margin-bottom: 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 6px;
}

.fact-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.fact-card strong {
  font-size: 1rem;
}

.facts-placeholder {
  margin-top: 2px;
  border-radius: 24px;
  padding: 18px;
  border: 1px dashed rgba(105, 208, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(105, 208, 255, 0.06), rgba(215, 180, 106, 0.03)),
    rgba(255, 255, 255, 0.015);
}

.placeholder-frame {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at top, rgba(105, 208, 255, 0.08), transparent 48%),
    rgba(8, 15, 27, 0.28);
}

.placeholder-frame strong {
  color: var(--text);
  font-size: 1rem;
}

.placeholder-frame p {
  max-width: 48ch;
  margin-bottom: 0;
}

.placeholder-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-item {
  display: grid;
  gap: 6px;
  border-radius: 22px;
  padding: 20px;
  min-height: 100%;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-item strong {
  font-size: 1rem;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.page-link {
  display: grid;
  gap: 8px;
  border-radius: 22px;
  padding: 20px;
  min-height: 100%;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.page-link:hover,
.page-link:focus-visible {
  transform: translateY(-2px);
}

.page-link span {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.page-link p {
  color: var(--muted);
  margin-bottom: 0;
}

.page-link strong {
  font-size: 1.02rem;
}

.footer {
  padding: 22px 4px 6px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.subscribe-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 17, 0.72);
  backdrop-filter: blur(16px);
}

.subscribe-overlay[hidden] {
  display: none;
}

.subscribe-modal {
  position: relative;
  width: min(100%, 620px);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(105, 208, 255, 0.16);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(8, 15, 27, 0.98));
  box-shadow: var(--shadow);
}

.subscribe-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.subscribe-form {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.field-input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
}

.field-input::placeholder {
  color: var(--muted);
}

.field-input:focus-visible {
  outline: none;
  border-color: rgba(105, 208, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(105, 208, 255, 0.14);
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.subscribe-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--muted);
}

.subscribe-status[data-state="error"] {
  color: #ffb3b3;
}

.subscribe-status[data-state="success"] {
  color: #9dffcb;
}

.subscribe-result-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: var(--accent-2);
  font-weight: 700;
}

.subscribe-result-link[hidden] {
  display: none;
}

.hero-note,
.page-note {
  margin-top: 10px;
  color: var(--muted);
}

.hero-note {
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .page-hero,
  .content-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .page-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscribe-modal {
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--content));
    padding-top: 10px;
  }

  .topbar {
    top: 10px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 48px;
    height: 32px;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .section,
  .hero,
  .page-hero {
    padding: 22px;
  }

  .subscribe-modal {
    padding: 20px;
  }

  .hero-highlights,
  .services-grid,
  .facts-grid,
  .contact-grid,
  .page-links {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .brand-seal {
    grid-template-columns: 1fr;
  }

  .brand-seal img {
    width: 88px;
    height: 88px;
  }
}
