:root {
  --bg: #06070b;
  --bg-soft: #0d1119;
  --panel: rgba(15, 19, 30, 0.68);
  --panel-strong: rgba(18, 22, 35, 0.9);
  --text: #f4efe6;
  --muted: rgba(244, 239, 230, 0.72);
  --gold: #f0c77c;
  --gold-soft: rgba(240, 199, 124, 0.18);
  --ink: #101826;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(214, 161, 79, 0.16), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(83, 103, 144, 0.16), transparent 32%),
    radial-gradient(circle at 50% 85%, rgba(117, 90, 48, 0.12), transparent 25%),
    linear-gradient(180deg, #020306 0%, #070a10 30%, #090c14 60%, #05070b 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.025) 48%, transparent 52%),
    radial-gradient(circle at 10% 30%, rgba(240, 199, 124, 0.04), transparent 30%);
  mix-blend-mode: screen;
}

body::after {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0),
    radial-gradient(circle at 70% 30%, rgba(240, 199, 124, 0.07), transparent 32%);
  background-size: 48px 48px, auto;
  opacity: 0.22;
}

#ink-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 48px 0 36px;
  position: relative;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  width: 100%;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-heading__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--gold);
  letter-spacing: 0.26em;
  font-size: 12px;
  text-transform: uppercase;
}

.eyebrow::before,
.section-heading__label::before {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 199, 124, 0.85));
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.hero__title-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(4.6rem, 10vw, 8.5rem);
  line-height: 0.96;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 22px rgba(240, 199, 124, 0.18),
    0 0 70px rgba(240, 199, 124, 0.08);
}

.hero__title-en {
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  letter-spacing: 0.7em;
  text-transform: uppercase;
  padding-left: 8px;
}

.hero__subtitle {
  margin: 24px 0 14px;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 600;
}

.hero__description {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__tags span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 199, 124, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 245, 229, 0.9);
  backdrop-filter: blur(12px);
}

.hero__tags--actions {
  margin-top: 16px;
}

.hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(240, 199, 124, 0.28);
  background: linear-gradient(135deg, rgba(240, 199, 124, 0.96), rgba(195, 143, 53, 0.96));
  color: #171108;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(240, 199, 124, 0.16);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.hero__action:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(240, 199, 124, 0.22);
  filter: saturate(1.04);
}

.hero__visual {
  position: relative;
  min-height: 700px;
  padding: 36px;
  overflow: hidden;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
}

.calligraphy-mark {
  position: absolute;
  top: 26px;
  right: 32px;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(4rem, 12vw, 7rem);
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.gesture-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.gesture-path path {
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation: draw-path 6.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(240, 199, 124, 0.24));
}

.gesture-path circle {
  animation: pulse-dot 2.8s ease-in-out infinite;
}

.flow-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 100%;
  z-index: 2;
}

.flow-item,
.info-card,
.feature-card,
.user-card,
.value-card,
.arch-node {
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.flow-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(9, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: float-card 6s ease-in-out infinite;
}

.flow-item:nth-of-type(1) {
  animation-delay: 0s;
}

.flow-item:nth-of-type(3) {
  animation-delay: 0.7s;
}

.flow-item:nth-of-type(5) {
  animation-delay: 1.4s;
}

.flow-item:nth-of-type(7) {
  animation-delay: 2.1s;
}

.flow-item:hover,
.info-card:hover,
.feature-card:hover,
.user-card:hover,
.value-card:hover,
.arch-node:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(240, 199, 124, 0.28);
  box-shadow:
    0 30px 55px rgba(0, 0, 0, 0.42),
    0 0 35px rgba(240, 199, 124, 0.12);
}

.flow-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--gold);
  border: 1px solid rgba(240, 199, 124, 0.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(240, 199, 124, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.flow-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.flow-text span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.flow-link {
  width: 2px;
  height: 36px;
  margin-left: 35px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 199, 124, 0.1), rgba(240, 199, 124, 0.85), rgba(240, 199, 124, 0.1));
  box-shadow: 0 0 18px rgba(240, 199, 124, 0.22);
  position: relative;
}

.flow-link::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, 0);
  animation: slide-dot 2.2s linear infinite;
}

.hero__texture {
  position: absolute;
  filter: blur(24px);
  opacity: 0.32;
  pointer-events: none;
}

.hero__texture--left {
  left: -60px;
  top: 12%;
  width: 200px;
  height: 440px;
  background:
    radial-gradient(circle at 50% 12%, rgba(240, 199, 124, 0.3), transparent 46%),
    linear-gradient(180deg, rgba(240, 199, 124, 0.18), transparent 75%);
  transform: rotate(-18deg);
}

.hero__texture--right {
  right: -40px;
  bottom: 12%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(87, 115, 168, 0.32), transparent 62%);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  max-width: 740px;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}

.card-grid--three,
.user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.feature-card,
.user-card,
.value-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.info-card::before,
.feature-card::before,
.user-card::before,
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(240, 199, 124, 0.12), transparent 40%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(240, 199, 124, 0.25);
  color: var(--gold);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.info-card h3,
.feature-card h3,
.user-card h3,
.value-card h3 {
  position: relative;
  margin: 0 0 14px;
  font-size: 1.28rem;
}

.info-card p,
.feature-card p,
.user-card p,
.value-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.feature-card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.25rem;
  background: rgba(240, 199, 124, 0.08);
  border: 1px solid rgba(240, 199, 124, 0.18);
}

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

.user-card {
  min-height: 240px;
}

.user-pain {
  font-size: 0.98rem;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  overflow: hidden;
}

.arch-node {
  min-width: 150px;
  min-height: 150px;
  padding: 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(240, 199, 124, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(7, 10, 16, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-node i {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.arch-node span {
  line-height: 1.65;
  color: rgba(255, 248, 237, 0.92);
}

.arch-arrow {
  width: 100%;
  min-width: 52px;
  height: 2px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(90deg, rgba(240, 199, 124, 0.15), rgba(240, 199, 124, 0.95));
  box-shadow: 0 0 24px rgba(240, 199, 124, 0.18);
}

.arch-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.value-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

.value-card--large {
  grid-row: span 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 32px auto 0;
  padding: 24px 0 48px;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes draw-path {
  0%,
  16% {
    stroke-dashoffset: 820;
    opacity: 0.25;
  }

  38%,
  75% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -80;
    opacity: 0.35;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

@keyframes slide-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 28px);
    opacity: 0;
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1120px) {
  .hero__content,
  .value-layout {
    grid-template-columns: 1fr;
  }

  .card-grid--three,
  .feature-grid,
  .user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__visual {
    min-height: 620px;
  }

  .architecture {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .arch-arrow {
    width: 2px;
    height: 34px;
    min-width: 2px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(240, 199, 124, 0.15), rgba(240, 199, 124, 0.95));
  }

  .arch-arrow::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 768px) {
  .section,
  .footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero__visual {
    min-height: 580px;
    padding: 22px;
  }

  .card-grid--three,
  .feature-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .flow-item {
    grid-template-columns: 58px 1fr;
    padding: 18px;
  }

  .flow-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .flow-link {
    margin-left: 28px;
  }

  .hero__title-en,
  .footer {
    letter-spacing: 0.22em;
  }
}

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

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
