:root {
  color-scheme: dark;
  --ink: #f7f4ec;
  --muted: #b9c0bb;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(18, 25, 30, 0.9);
  --panel-soft: #172027;
  --green: #7ac7a8;
  --amber: #f2b94f;
  --coral: #f4754d;
  --paper: #f8f4ea;
  --dark: #101820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 24, 32, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: inline-flex;
  width: 58px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 170px clamp(20px, 7vw, 112px) 70px;
  align-items: end;
  isolation: isolate;
}

.hero-visual,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual {
  z-index: -2;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.72) 42%, rgba(16, 24, 32, 0.28) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.18) 54%, rgba(16, 24, 32, 0.65) 100%);
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 152px);
  line-height: 0.88;
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 22px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--amber);
  color: #121820;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  margin-top: 72px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-metrics div {
  min-height: 118px;
  padding: 24px;
  background: rgba(14, 20, 25, 0.74);
  backdrop-filter: blur(16px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--paper);
  font-size: 22px;
}

.hero-metrics span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 7vw, 112px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  background: var(--paper);
  color: #172027;
}

.intro-copy h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
}

.intro-copy p,
.section-heading p {
  margin: 0;
  color: #4a5657;
  font-size: 18px;
  line-height: 1.85;
}

.intro-copy p {
  margin-top: 26px;
}

.intro-visual {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: #111820;
}

.intro-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 58% 45%;
}

.products,
.cases {
  background: #101820;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-heading p {
  max-width: 440px;
  color: var(--muted);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel-soft);
  padding: 28px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(242, 185, 79, 0.42);
  background:
    linear-gradient(180deg, rgba(122, 199, 168, 0.08), rgba(255, 255, 255, 0.015)),
    #18222a;
  transform: translateY(-3px);
}

.product-card-static:hover {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(242, 185, 79, 0.08), rgba(255, 255, 255, 0.012)),
    #1a242b;
  transform: none;
}

.product-card:nth-child(2),
.product-card-featured {
  background:
    linear-gradient(180deg, rgba(242, 185, 79, 0.08), rgba(255, 255, 255, 0.012)),
    #1a242b;
}

.card-index {
  color: var(--amber);
  font-weight: 900;
}

.product-card h3,
.workflow h3,
.case-list h3 {
  margin: 96px 0 14px;
  font-size: 24px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.product-meta {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.product-card p,
.workflow p,
.case-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.product-card p {
  margin-top: 22px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--amber);
  font-weight: 900;
}

.product-link::after {
  content: "↗";
  font-size: 14px;
}

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

.capability-grid article {
  min-height: 124px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.capability-grid span {
  display: block;
  color: var(--green);
  font-weight: 900;
}

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

.studio {
  background: #24342b;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.workflow span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--green);
  color: #10201a;
  font-weight: 900;
}

.workflow h3 {
  margin-top: 70px;
}

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

.case-list article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #172027 0%, #11191f 100%);
}

.case-list h3 {
  margin-top: 92px;
}

.contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  background: var(--paper);
  color: #172027;
}

.contact .section-kicker {
  color: #496d5e;
}

.contact-note {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 22px;
  background: #172027;
  color: var(--paper);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 7vw, 112px);
  border-top: 1px solid var(--line);
  background: #0d1419;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--ink);
}

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

  .hero {
    min-height: 88vh;
    padding-top: 140px;
  }

  .hero-metrics,
  .intro,
  .section-heading,
  .workflow,
  .capability-grid,
  .case-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact {
    display: grid;
    align-items: start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

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

  .hero-metrics div {
    min-height: 96px;
  }

  .product-card,
  .workflow li,
  .case-list article {
    min-height: 240px;
  }

  .intro-visual,
  .intro-visual img {
    min-height: 260px;
  }

  .site-footer {
    display: grid;
  }
}
