:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-secondary: #eef2f5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(15, 23, 42, 0.08);
  --text: #101828;
  --text-secondary: #5b6472;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --glow-a: rgba(132, 198, 255, 0.26);
  --glow-b: rgba(182, 219, 202, 0.2);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    "Manrope",
    "Noto Sans SC",
    "Noto Sans TC",
    "PingFang SC",
    "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--glow-a), transparent 32%),
    radial-gradient(circle at 85% 12%, var(--glow-b), transparent 28%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 55%, #eef1f4 100%);
}

html[lang="zh-CN"] body {
  font-family:
    "Noto Sans SC",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

html[lang="zh-Hant"] body {
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "PingFang HK",
    "Heiti TC",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 78%);
  opacity: 0.4;
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(154, 211, 185, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.brand-copy strong,
.site-footer strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0), rgba(10, 132, 255, 0.9), rgba(10, 132, 255, 0));
  opacity: 0;
  transform: translateY(4px);
  transition: all 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
}

.lang-button {
  border: 0;
  min-width: 52px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-button.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid,
.split-grid,
.contact-panel {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.section-copy h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 10.8ch;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
}

.hero h1 span {
  color: #334155;
}

.hero-lead,
.section-heading p,
.section-copy p,
.capability-card p,
.workflow-step p,
.philosophy-card p,
.contact-copy p,
.contact-note,
.panel-card p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.hero-lead {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #0a84ff, #409cff);
  box-shadow: 0 18px 40px rgba(10, 132, 255, 0.22);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric-card,
.visual-card,
.panel-card,
.capability-card,
.workflow-step,
.philosophy-card,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.metric-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.metric-card span,
.card-label,
.floating-label,
.contact-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-card strong,
.visual-card strong,
.contact-email,
.contact-site {
  display: block;
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.visual-card {
  position: absolute;
  border-radius: var(--radius-xl);
}

.visual-card-primary {
  inset: 54px 34px 68px 10px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.86)),
    linear-gradient(140deg, rgba(10, 132, 255, 0.08), rgba(154, 211, 185, 0.04));
  box-shadow: var(--shadow-lg);
}

.stack-lines {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.stack-lines > div {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.7);
}

.stack-lines span {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
}

.stack-lines p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.visual-card-float {
  width: min(320px, 74%);
  padding: 20px 22px;
}

.visual-card-top {
  top: 0;
  right: 0;
}

.visual-card-bottom {
  right: 26px;
  bottom: 0;
}

.section {
  padding: 84px 0;
}

.section-overview {
  padding-top: 56px;
}

.split-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.section-copy p,
.section-heading p {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.03rem;
}

.overview-panel {
  display: grid;
  gap: 18px;
}

.panel-card,
.capability-card,
.workflow-step,
.philosophy-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.panel-index,
.capability-number,
.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.panel-card h3,
.capability-card h3,
.workflow-step h3,
.philosophy-card h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.capability-grid,
.workflow-grid,
.philosophy-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

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

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

.section-workflow {
  position: relative;
}

.section-workflow::before {
  content: "";
  position: absolute;
  inset: 42px 0 42px;
  width: var(--container);
  margin: 0 auto;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: -1;
}

.section-philosophy {
  padding-top: 44px;
}

.section-contact {
  padding-top: 54px;
  padding-bottom: 100px;
}

.contact-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.88));
}

.contact-email {
  margin-top: 14px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  word-break: break-word;
}

.contact-label-website {
  margin-top: 20px;
}

.contact-site {
  color: var(--text);
  word-break: break-word;
}

.contact-note {
  margin: 16px 0 26px;
  font-size: 0.96rem;
}

.site-footer {
  padding: 0 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.site-footer p,
.site-footer a {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.reveal {
  opacity: 1;
  transform: none;
}

html[lang|="zh"] body,
html[lang|="zh"] p,
html[lang|="zh"] h1,
html[lang|="zh"] h2,
html[lang|="zh"] h3,
html[lang|="zh"] a,
html[lang|="zh"] button,
html[lang|="zh"] span,
html[lang|="zh"] strong,
html[lang|="zh"] small {
  line-break: strict;
}

html[lang|="zh"] .brand-copy strong,
html[lang|="zh"] .site-footer strong {
  letter-spacing: 0;
  font-weight: 800;
}

html[lang|="zh"] .brand-copy small,
html[lang|="zh"] .site-footer p {
  letter-spacing: 0;
  line-height: 1.7;
}

html[lang|="zh"] .site-nav {
  font-size: 0.97rem;
}

html[lang|="zh"] .site-nav a {
  font-weight: 600;
}

html[lang|="zh"] .section-kicker,
html[lang|="zh"] .metric-card span,
html[lang|="zh"] .card-label,
html[lang|="zh"] .floating-label,
html[lang|="zh"] .contact-label {
  letter-spacing: 0.08em;
  text-transform: none;
}

html[lang|="zh"] .hero h1,
html[lang|="zh"] .section-heading h2,
html[lang|="zh"] .section-copy h2,
html[lang|="zh"] .contact-copy h2 {
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

html[lang|="zh"] .hero h1 {
  max-width: 8.8ch;
  font-size: clamp(3.05rem, 6.4vw, 5.45rem);
}

html[lang|="zh"] .hero h1 span {
  display: inline-block;
}

html[lang|="zh"] .hero-lead,
html[lang|="zh"] .section-heading p,
html[lang|="zh"] .section-copy p,
html[lang|="zh"] .capability-card p,
html[lang|="zh"] .workflow-step p,
html[lang|="zh"] .philosophy-card p,
html[lang|="zh"] .contact-copy p,
html[lang|="zh"] .contact-note,
html[lang|="zh"] .panel-card p,
html[lang|="zh"] .stack-lines p {
  font-size: 1rem;
  line-height: 1.9;
  text-wrap: pretty;
}

html[lang|="zh"] .metric-card strong,
html[lang|="zh"] .visual-card strong,
html[lang|="zh"] .contact-email,
html[lang|="zh"] .contact-site {
  letter-spacing: -0.01em;
}

html[lang|="zh"] .panel-card h3,
html[lang|="zh"] .capability-card h3,
html[lang|="zh"] .workflow-step h3,
html[lang|="zh"] .philosophy-card h3,
html[lang|="zh"] .stack-lines span {
  letter-spacing: -0.01em;
  line-height: 1.4;
}

html[lang|="zh"] .button {
  letter-spacing: 0.01em;
}

@media (max-width: 1180px) {
  .hero-grid,
  .split-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: 520px;
  }

  .visual-card-primary {
    inset: 64px 18px 48px 0;
  }

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

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

@media (max-width: 960px) {
  .site-header {
    position: static;
    padding-top: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-metrics,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  html[lang|="zh"] .site-nav {
    gap: 18px;
    row-gap: 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 24px, 100%);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .section,
  .section-overview {
    padding: 62px 0;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
    min-height: auto;
  }

  .visual-card,
  .visual-card-top,
  .visual-card-bottom {
    position: static;
    width: 100%;
  }

  .visual-card-primary {
    inset: auto;
    padding: 24px;
  }

  .visual-card-float {
    padding: 18px 20px;
  }

  .capability-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  html[lang|="zh"] .hero h1 {
    max-width: 7.2ch;
    font-size: clamp(2.8rem, 11.4vw, 4.35rem);
    line-height: 1.02;
  }

  html[lang|="zh"] .section-heading h2,
  html[lang|="zh"] .section-copy h2,
  html[lang|="zh"] .contact-copy h2 {
    font-size: clamp(2.05rem, 10.8vw, 3.5rem);
    line-height: 1.08;
  }

  html[lang|="zh"] .hero-lead,
  html[lang|="zh"] .section-heading p,
  html[lang|="zh"] .section-copy p,
  html[lang|="zh"] .capability-card p,
  html[lang|="zh"] .workflow-step p,
  html[lang|="zh"] .philosophy-card p,
  html[lang|="zh"] .contact-copy p,
  html[lang|="zh"] .contact-note,
  html[lang|="zh"] .panel-card p,
  html[lang|="zh"] .stack-lines p {
    font-size: 0.98rem;
    line-height: 1.88;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}
