:root {
  --bg: #f7f9fb;
  --ink: #121a21;
  --muted: #5e6b76;
  --line: rgba(18, 26, 33, 0.12);
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --dark: #081118;
  --dark-2: #101c24;
  --dark-text: #f3f8fa;
  --dark-muted: rgba(243, 248, 250, 0.74);
  --accent-blue: #1677d2;
  --accent-green: #30b87b;
  --accent-cyan: #29b7c7;
  --shadow: 0 22px 60px rgba(8, 17, 24, 0.18);
  --radius: 8px;
  --max: 1180px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 64px);
  color: #ffffff;
  background: rgba(8, 17, 24, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(8, 17, 24, 0.1);
}

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

.brand img {
  width: 176px;
  max-height: 48px;
  object-fit: contain;
}

.site-header:not(.is-scrolled) .brand img {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 36px);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 64px);
}

.section-dark {
  color: var(--dark-text);
  background: var(--dark);
}

.section-heading {
  width: min(100%, var(--max));
  margin: 0 auto clamp(36px, 5vw, 64px);
}

.section-heading h2,
.contact-copy h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:last-child,
.contact-copy > p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.section-dark .section-heading p:last-child,
.section-dark .contact-copy > p {
  color: var(--dark-muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 132px clamp(20px, 5vw, 64px) 40px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03);
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: opacity;
}

.hero-media .is-active {
  opacity: 1;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 24, 0.9) 0%, rgba(8, 17, 24, 0.58) 46%, rgba(8, 17, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 17, 24, 0.56) 0%, rgba(8, 17, 24, 0.04) 44%, rgba(8, 17, 24, 0.88) 100%);
}

.hero-content {
  width: min(700px, 100%);
  margin-bottom: clamp(44px, 8vw, 92px);
}

.hero h1 {
  max-width: none;
  margin: 0 0 24px;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-lede {
  max-width: 640px;
  margin: 0 0 32px;
  color: rgba(243, 248, 250, 0.84);
  font-size: 14px;
  line-height: 1.68;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  box-shadow: 0 14px 34px rgba(22, 119, 210, 0.26);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.about-grid,
.capability-band,
.proof-band,
.production-strip,
.ip-showcase,
.case-grid,
.contact-layout,
.site-footer {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.feature-panel {
  position: relative;
  min-height: 320px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(8, 17, 24, 0.06);
}

.feature-panel h3,
.production-strip h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-panel p,
.feature-panel li,
.production-strip p {
  color: var(--muted);
}

.proof-band {
  margin-top: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-grid article {
  min-height: 166px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-grid strong {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-blue);
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.check-list li {
  padding-left: 0;
}

.check-list li::before {
  display: none;
  content: none;
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-band article {
  min-height: 250px;
  padding: 28px;
  color: var(--dark-text);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.capability-band article:last-child {
  border-right: 0;
}

.capability-band h3 {
  min-height: 58px;
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.3;
}

.capability-band p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 15px;
}

.production-strip {
  margin-top: 18px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.universe {
  background:
    radial-gradient(circle at 18% 8%, rgba(41, 183, 199, 0.18), transparent 28%),
    linear-gradient(180deg, #081118 0%, #10151b 100%);
}

.ip-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  margin-bottom: 28px;
}

.ip-showcase-large {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.ip-copy,
.ip-visual {
  min-width: 0;
  border-radius: var(--radius);
}

.ip-copy {
  padding: clamp(28px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ip-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.ip-copy p {
  color: var(--dark-muted);
}

.ip-visual {
  position: relative;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  background: #121a21;
  box-shadow: var(--shadow);
}

.ip-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ip-showcase-large .ip-visual img {
  object-position: center;
}

.ip-visual-focus-right img {
  object-position: right center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-list span,
.contact-directions span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.82;
}

.cases {
  background: #ffffff;
}

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

.case-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(8, 17, 24, 0.08);
}

.case-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.case-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  background: #dbe6ea;
}

.case-card-featured img {
  height: 100%;
  min-height: 430px;
}

.case-copy {
  padding: clamp(24px, 4vw, 42px);
}

.case-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
}

.case-copy p {
  margin: 0;
  color: var(--muted);
}

.contact {
  background:
    linear-gradient(135deg, rgba(8, 17, 24, 0.96), rgba(12, 36, 45, 0.96)),
    url("assets/hero-bg-heiri-web.jpg") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.contact-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.contact-note {
  margin-top: 34px;
  color: var(--dark-text);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.form-helper {
  margin: 0 0 6px;
  color: var(--dark-muted);
  font-size: 14px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--dark-muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-form.has-warning .form-status {
  color: #ffd172;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--dark-text);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(8, 17, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 146px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.icp-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.icp-link:hover {
  color: var(--accent-blue);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    visibility: hidden;
    max-height: calc(100svh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 860px;
  }

  .about-grid,
  .proof-band,
  .ip-showcase,
  .case-card-featured,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

  .capability-band article:nth-child(2n) {
    border-right: 0;
  }

  .ip-showcase .ip-visual {
    order: -1;
  }

  .ip-visual,
  .case-card-featured img {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 142px;
  }

  .site-nav {
    top: 68px;
  }

  .section {
    padding: 64px 18px;
  }

  .hero {
    min-height: 840px;
    padding: 112px 18px 24px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 17, 24, 0.93) 0%, rgba(8, 17, 24, 0.66) 70%, rgba(8, 17, 24, 0.3) 100%),
      linear-gradient(180deg, rgba(8, 17, 24, 0.5) 0%, rgba(8, 17, 24, 0.18) 40%, rgba(8, 17, 24, 0.9) 100%);
  }

  .hero-content {
    margin-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 50px);
  }

  .hero-actions {
    display: grid;
  }

  .capability-band,
  .proof-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .capability-band article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .capability-band article:last-child {
    border-bottom: 0;
  }

  .capability-band h3 {
    min-height: auto;
  }

  .ip-copy,
  .case-copy,
  .feature-panel,
  .proof-grid article,
  .production-strip,
  .contact-form {
    padding: 22px;
  }

  .ip-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ip-visual img {
    height: 100%;
  }

  .case-card img,
  .case-card-featured img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .tag-list span,
  .contact-directions span {
    max-width: 100%;
  }

  .site-footer {
    display: grid;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
  }

  .footer-meta {
    align-items: center;
  }
}
