:root {
  --bg: #081120;
  --bg-2: #0d172b;
  --panel: rgba(255, 255, 255, 0.042);
  --panel-strong: rgba(12, 24, 48, 0.92);
  --text: #f8f7fb;
  --muted: rgba(248, 247, 251, 0.74);
  --line: rgba(255, 255, 255, 0.11);
  --accent: #f26f2f;
  --accent-2: #15316a;
  --accent-3: #ff8a3d;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 111, 47, 0.18), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(21, 49, 106, 0.34), transparent 22%),
    radial-gradient(circle at 52% 86%, rgba(255, 138, 61, 0.08), transparent 24%),
    linear-gradient(180deg, #081120 0%, #0b1526 48%, #081120 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

[data-i18n] {
  display: none !important;
}

html[data-lang="zh"] [data-i18n="zh"],
html[data-lang="en"] [data-i18n="en"] {
  display: inline !important;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 32, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 111, 47, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-label {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--text);
  background: rgba(242, 111, 47, 0.08);
  border-color: rgba(242, 111, 47, 0.24);
}

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

.lang-toggle,
.button,
.nav-cta {
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.lang-toggle {
  min-width: 50px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(242, 111, 47, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
}

.nav-cta,
.button.primary {
  color: #081120;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 18px 40px rgba(242, 111, 47, 0.24);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(242, 111, 47, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 74px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(242, 111, 47, 0.18), transparent 26%),
    radial-gradient(circle at 76% 30%, rgba(21, 49, 106, 0.28), transparent 24%),
    radial-gradient(circle at 58% 78%, rgba(255, 138, 61, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(12, 24, 48, 0.08), rgba(8, 17, 32, 0.94));
}

.hero-bg-lab {
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 111, 47, 0.16), transparent 26%),
    radial-gradient(circle at 82% 26%, rgba(21, 49, 106, 0.24), transparent 24%),
    radial-gradient(circle at 46% 78%, rgba(255, 138, 61, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(12, 24, 48, 0.08), rgba(8, 17, 32, 0.94));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 210px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-top: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(46px, 7vw, 102px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent-line {
  margin-top: 18px;
  color: var(--accent);
  font-size: clamp(28px, 4.5vw, 60px);
}

.hero-en {
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
}

.hero-sub {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(242, 111, 47, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(21, 49, 106, 0.2), rgba(242, 111, 47, 0.08));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.panel-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.panel-row strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.panel-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 90px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.01);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head.left {
  max-width: 640px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid,
.build-grid,
.project-grid,
.flow-grid,
.role-grid,
.insight-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.build-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.build-card,
.project-card,
.flow-card,
.role-card,
.insight-card,
.contact-panel,
.camp-banner,
.camp-banner-side {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.feature-card,
.build-card,
.flow-card,
.role-card,
.insight-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.feature-card::before,
.build-card::before,
.flow-card::before,
.role-card::before,
.insight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(242, 111, 47, 0.12), transparent 30%),
    linear-gradient(315deg, rgba(21, 49, 106, 0.08), transparent 38%);
  opacity: 0.8;
}

.feature-card > *,
.build-card > *,
.flow-card > *,
.role-card > *,
.insight-card > * {
  position: relative;
  z-index: 1;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #081120;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3,
.build-card h3,
.role-card h3,
.insight-card h3,
.flow-card h3,
.project-card h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.feature-card p,
.build-card p,
.role-card p,
.insight-card p,
.flow-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.build-card {
  min-height: 190px;
}

.project-card {
  overflow: hidden;
}

.project-card-media figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.project-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #081120;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.mini-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 111, 47, 0.12);
  flex: 0 0 auto;
}

.flow-card {
  min-height: 210px;
}

.flow-card span:first-child {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.camp-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(242, 111, 47, 0.16), transparent 40%),
    rgba(255, 255, 255, 0.035);
}

.camp-banner h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.camp-banner p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.camp-banner-side {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: rgba(21, 49, 106, 0.12);
}

.camp-banner-side strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-methods a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-methods a:hover {
  border-color: rgba(242, 111, 47, 0.38);
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(21, 49, 106, 0.2), rgba(242, 111, 47, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.contact-panel strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.18;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-note span {
  padding: 8px 11px;
  border: 1px solid rgba(242, 111, 47, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.012);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1080px) {
  .feature-grid,
  .build-grid,
  .project-grid,
  .flow-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .camp-banner,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }
}

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

  .site-header {
    padding: 10px 14px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding: 112px 0 56px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero h1 .accent-line {
    font-size: clamp(26px, 8vw, 38px);
  }

  .hero-en {
    font-size: 22px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .feature-grid,
  .build-grid,
  .project-grid,
  .flow-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .camp-banner,
  .contact-grid {
    gap: 20px;
  }

  .contact-methods a {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand {
    gap: 10px;
    padding: 7px 10px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-label {
    font-size: 13px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
