/* Home foundation only. Shared navigation and responsive rules are maintained separately. */
:root {
  --carbon: #1d2427;
  --steel: #4b565a;
  --slate: #687276;
  --paper: #f4f3ef;
  --white: #fff;
  --orange: #F7B427;
  --orange-dark: #F7B427;
  --line: #d9dedb;
  --max: 1800px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  color: var(--carbon);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; }

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

section { scroll-margin-top: 84px; }
#top { scroll-margin-top: 82px; }

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

.hero {
  position: relative;
  min-height: 684px;
  overflow: hidden;
  color: #fff;
  background: #14191b;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 40%;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.62) contrast(1.08) brightness(0.76);
}

.hero-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #14191b 0%,
    rgba(20, 25, 27, 0.9) 9%,
    rgba(20, 25, 27, 0.14) 60%
  );
}

.hero-photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.28;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 67px,
    rgba(255, 255, 255, 0.28) 67px 68px
  );
  mix-blend-mode: soft-light;
}

.hero .shell {
  position: relative;
  z-index: 3;
  min-height: 684px;
  padding: 106px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-code {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--orange);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-code::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 21px;
  font-size: 4.25rem;
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 500px;
  margin: 0;
  color: #d1d8d8;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  height: 48px;
  padding: 0 20px;
  color: #fff;
  border: 1px solid var(--orange);
  background: var(--orange);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #dee3e3;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-index::before {
  content: "";
  width: 100px;
  height: 1px;
  background: var(--orange);
}

.hero-rail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 19, 20, 0.64);
}

.hero-rail a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 0 28px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.hero-rail a:last-child { border-right: 0; }
.hero-rail a:hover { background: rgba(238, 109, 32, 0.18); }

.hero-rail svg {
  width: 23px;
  height: 23px;
  color: #ff9b5b;
  stroke-width: 1.5;
  flex: 0 0 auto;
}

.hero-side {
  position: absolute;
  right: 17px;
  top: 214px;
  z-index: 4;
  color: #d6dcdc;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero {
  height: min(900px, max(calc(100vh - 162px), calc(42.92vw + 86px)));
  min-height: 540px;
}

.hero-photo { inset: 0 0 86px; }

.hero-photo img {
  filter: saturate(0.78) contrast(1.04);
  object-position: center center;
}

.hero-photo::before {
  background: linear-gradient(
    90deg,
    rgba(13, 17, 18, 0.88) 0%,
    rgba(13, 17, 18, 0.70) 28%,
    rgba(13, 17, 18, 0.12) 62%,
    rgba(13, 17, 18, 0.03)
  );
}

.hero-photo::after { display: none; }

.hero .shell {
  min-height: 0;
  height: 100%;
  padding: 30px 0 110px;
}

.hero h1 {
  margin: 16px 0 9px;
  font-size: 7rem;
  line-height: 0.98;
  font-weight: 800;
}

.hero h1::after {
  content: ".";
  color: var(--orange);
}

.hero-tagline {
  white-space: pre-line;
  margin: 10px 0 19px;
  max-width: 570px;
  font-size: 2.6875rem;
  line-height: 1.2;
  font-weight: 600;
}

.hero p {
  max-width: 460px;
  font-size: .9375rem;
  line-height: 1.65;
}

.hero .section-code { color: #ffad73; }

.hero-actions {
  margin-top: 26px;
  gap: 25px;
}

.button {
  gap: 20px;
  font-size: .75rem;
  height: 48px;
}

.button svg {
  width: 17px;
  height: 17px;
}

.hero-index {
  bottom: 106px;
  color: #fff;
}

.hero-side { top: 85px; }

html[lang="zh"] .hero h1 { font-size: 5.125rem; }
html[lang="zh"] .hero p { white-space: pre-line; }

html[lang="zh"] .hero-tagline {
  max-width: 560px;
  line-height: 1.35;
  font-size: 2.375rem;
}

@media (max-width: 1320px) {
  .shell { width: min(var(--max), calc(100% - 72px)); }
  .nav { gap: 24px; }
  .brand { min-width: 230px; }
  .hero h1 { font-size: 5.6875rem; }
  .hero-tagline {
    max-width: 530px;
    font-size: 2.25rem;
  }
  .hero-rail a { padding: 0 20px; }
}

body.contact-open { overflow: hidden; }
