:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6878;
  --line: #d8e0df;
  --paper: #ffffff;
  --mist: #f5f8f7;
  --teal: #0f766e;
  --teal-strong: #0a5f58;
  --navy: #17324d;
  --rust: #a95638;
  --amber: #d7a35f;
  --soft-teal: #e8f4f1;
  --soft-amber: #fff6e7;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--mist);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 58px);
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
}

.brand-name {
  font-size: 17px;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.language-nav a {
  min-width: 40px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.language-nav a[aria-current="page"] {
  border-color: #fff;
  background: #fff;
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: min(760px, 78vh);
  padding: 116px clamp(18px, 4vw, 58px) 72px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #122c42;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 35, 48, 0.94) 0%, rgba(13, 35, 48, 0.82) 38%, rgba(13, 35, 48, 0.22) 72%, rgba(13, 35, 48, 0.08) 100%),
    url("/assets/hanlang-home-hero.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #f3c982;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
  line-height: 1.72;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.button:hover {
  background: var(--teal-strong);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.hero-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  max-width: 980px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
}

.hero-fact {
  padding: 16px;
  background: rgba(10, 31, 45, 0.34);
}

.hero-fact strong {
  display: block;
  font-size: 18px;
  color: #fff;
}

.hero-fact span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 58px);
}

.section:nth-of-type(even) {
  background: #fff;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-copy {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.product-tile {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.product-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--soft-teal);
  color: var(--teal);
  font-weight: 900;
}

.product-tile:nth-child(2) .product-icon,
.product-tile:nth-child(5) .product-icon {
  background: var(--soft-amber);
  color: #8a5b16;
}

.product-tile h3,
.process-step h3,
.market-panel h3,
.capability h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.product-tile p,
.process-step p,
.market-panel p,
.capability p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability {
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--teal);
}

.capability:nth-child(2) {
  border-left-color: var(--amber);
}

.capability:nth-child(3) {
  border-left-color: var(--rust);
}

.quote-band {
  background: var(--navy);
  color: #fff;
}

.quote-band .section-copy {
  color: rgba(255, 255, 255, 0.78);
}

.quote-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.quote-list span {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

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

.market-panel {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  counter-reset: process;
}

.process-step {
  padding: 20px;
  border-top: 4px solid var(--teal);
  background: var(--paper);
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: var(--rust);
  font-weight: 900;
}

.final-cta {
  background: #f4efe6;
}

.product-hero {
  min-height: min(620px, 68vh);
}

.product-hero .lead {
  max-width: 760px;
}

.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.scope-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.scope-panel h3 {
  margin: 0;
  font-size: 20px;
}

.scope-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.scope-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  line-height: 1.5;
}

.scope-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 8px;
  background: var(--teal);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.category-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  background: var(--paper);
}

.category-card:nth-child(2),
.category-card:nth-child(5) {
  border-top-color: var(--amber);
}

.category-card:nth-child(3) {
  border-top-color: var(--rust);
}

.category-head {
  display: grid;
  gap: 14px;
}

.category-code {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--soft-teal);
  color: var(--teal);
  font-weight: 900;
}

.category-card:nth-child(2) .category-code,
.category-card:nth-child(5) .category-code {
  background: var(--soft-amber);
  color: #8a5b16;
}

.category-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
}

.category-use {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.category-notes {
  display: grid;
  gap: 12px;
}

.category-note strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.category-note p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.card-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  color: var(--teal);
  text-decoration: none;
  font-weight: 900;
}

.card-link:hover {
  background: var(--teal);
  color: #fff;
}

.detail-hero {
  min-height: min(680px, 72vh);
}

.detail-hero .lead {
  max-width: 760px;
}

.detail-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.detail-badges li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-panel h3,
.spec-card h3,
.application-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.detail-panel p,
.spec-card p,
.application-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

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

.detail-list li {
  padding-left: 16px;
  border-left: 4px solid var(--teal);
  color: var(--muted);
  line-height: 1.62;
}

.detail-list li:nth-child(2) {
  border-left-color: var(--amber);
}

.detail-list li:nth-child(3) {
  border-left-color: var(--rust);
}

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

.spec-card,
.application-card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.spec-card {
  border-top: 4px solid var(--teal);
}

.spec-card:nth-child(2),
.spec-card:nth-child(5) {
  border-top-color: var(--amber);
}

.spec-card:nth-child(3),
.spec-card:nth-child(6) {
  border-top-color: var(--rust);
}

.application-card {
  border-left: 4px solid var(--teal);
}

.application-card:nth-child(2) {
  border-left-color: var(--amber);
}

.application-card:nth-child(3) {
  border-left-color: var(--rust);
}

.solution-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  counter-reset: solution;
}

.solution-step {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  counter-increment: solution;
}

.solution-step::before {
  content: counter(solution, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: var(--rust);
  font-weight: 900;
}

.solution-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
}

.solution-step p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.solution-band {
  background: #eef5f3;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.content-grid-compact {
  margin-top: 22px;
}

.content-card {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  background: var(--paper);
}

.content-card:nth-child(2) {
  border-top-color: var(--amber);
}

.content-card-slot {
  border-top-color: var(--rust);
}

.content-card-template {
  border-top-color: var(--navy);
}

.content-card-meta {
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.content-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.content-path-hint {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f8faf9;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.article-detail {
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.article-meta span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.publish-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.publish-map div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.publish-map span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.publish-map strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
}

.publish-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.publish-field-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  background: #fff;
}

.publish-field-card:nth-child(2) {
  border-top-color: var(--teal);
}

.publish-field-card:nth-child(3) {
  border-top-color: var(--amber);
}

.publish-field-card:nth-child(4) {
  border-top-color: var(--rust);
}

.publish-field-card h3 {
  margin: 0;
  font-size: 18px;
}

.publish-field-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.article-blocks {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.article-block {
  border-left: 4px solid var(--teal);
  background: #fff;
  padding: 18px;
}

.article-block:nth-child(2) {
  border-left-color: var(--amber);
}

.article-block:nth-child(3) {
  border-left-color: var(--rust);
}

.article-block h3 {
  margin: 0;
  font-size: 20px;
}

.article-block p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cta-row .button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 20px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.footer-brand p {
  margin: 8px 0 0;
  max-width: 540px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.footer-links a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-record {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  text-align: center;
}

.footer-record a {
  color: var(--amber);
  font-weight: 900;
  text-decoration: none;
}

.footer-record a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(13, 35, 48, 0.94) 0%, rgba(13, 35, 48, 0.78) 56%, rgba(13, 35, 48, 0.4) 100%),
      url("/assets/hanlang-home-hero.png") center / cover no-repeat;
  }

  .hero-facts,
  .content-grid,
  .product-grid,
  .category-grid,
  .spec-grid,
  .application-grid,
  .solution-steps,
  .quote-list,
  .market-grid,
  .process,
  .product-overview,
  .detail-layout,
  .publish-field-grid,
  .publish-map,
  .footer-inner,
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    background: var(--navy);
    align-items: flex-start;
    flex-direction: column;
  }

  .language-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .content-grid,
  .product-grid,
  .category-grid,
  .spec-grid,
  .application-grid,
  .solution-steps,
  .quote-list,
  .market-grid,
  .process,
  .product-overview,
  .detail-layout,
  .publish-field-grid,
  .publish-map,
  .footer-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
