:root {
  --background: #020203;
  --card: #07070a;
  --foreground: #f6f3eb;
  --muted: #b9b2a8;
  --border: rgba(246, 243, 235, 0.16);
  --secondary: rgba(246, 243, 235, 0.08);
  --glow-red: rgba(221, 93, 67, 0.46);
  --glow-blue: rgba(72, 88, 255, 0.42);
  --glow-gold: rgba(239, 174, 86, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 14%, var(--glow-blue), transparent 23vw),
    radial-gradient(circle at 70% 28%, var(--glow-red), transparent 18vw),
    radial-gradient(circle at 86% 40%, var(--glow-gold), transparent 15vw),
    #020203;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 12.5vw 100%, 100% 120px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent);
  opacity: 0.38;
}

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

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 40px;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-nav.is-scrolled {
  background: rgba(2, 2, 3, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-inner {
  width: min(1280px, 100%);
  height: 56px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand,
.eyebrow,
.nav-links a,
.nav-cta,
.menu-toggle,
.chips em,
.scroll-hint,
.footer a,
.footer p,
.service-list b,
.contact-list span,
.case-steps strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--muted);
}

.nav-links a,
.footer a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--foreground);
}

.nav-cta,
.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 0 0 rgba(221, 93, 67, 0);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-cta {
  padding: 10px 20px;
}

.button-dark {
  padding: 15px 28px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.nav-cta:hover,
.button-dark:hover {
  opacity: 1;
  transform: scale(1.07);
  box-shadow: 0 0 28px rgba(221, 93, 67, 0.3), 0 0 54px rgba(72, 88, 255, 0.2);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--foreground);
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  transform: translateY(-7px);
}

.menu-icon::after {
  transform: translateY(7px);
}

.menu-toggle.is-open .menu-icon {
  background: transparent;
}

.menu-toggle.is-open .menu-icon::before {
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-icon::after {
  transform: rotate(-45deg);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 130px;
  background:
    radial-gradient(circle at 78% 16%, rgba(72, 88, 255, 0.44), transparent 26%),
    radial-gradient(circle at 68% 38%, rgba(221, 93, 67, 0.42), transparent 24%),
    radial-gradient(circle at 84% 46%, rgba(239, 174, 86, 0.2), transparent 20%),
    #020203;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.display-xl,
.display-md,
.display-lg {
  margin: 0;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.display-xl {
  font-size: clamp(54px, 8vw, 110px);
}

.display-md {
  font-size: clamp(44px, 6vw, 82px);
}

.display-lg,
.stats strong {
  font-size: clamp(64px, 8vw, 120px);
}

.display-xl span,
.stats strong,
.gradient-line {
  background: linear-gradient(120deg, #f6f3eb 0%, #c8c2ba 36%, #e2654a 66%, #6669ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bottom,
.section-head,
.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-bottom {
  margin-top: 36px;
  align-items: flex-start;
}

.hero-bottom p,
.head-copy,
.body-copy,
.intro-cards p,
.service-list p,
.case-item p,
.coop-grid p,
.contact-bottom p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero-bottom p {
  width: min(720px, 100%);
  color: #e7dfd5;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.65;
}

.text-link {
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.rule {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 28px;
  color: var(--muted);
}

.section {
  padding: 112px 0;
  background: transparent;
}

.section.alt {
  background: rgba(255, 255, 255, 0.025);
}

.section-head {
  margin-bottom: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
}

.head-copy {
  width: min(390px, 100%);
  margin: 0;
}

.head-note {
  font-family: inherit;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #e7dfd5;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.intro-cards {
  margin: 0 0 74px;
}

.intro-cards article,
.coop-grid article,
.advantage-grid article {
  padding: 40px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.intro-cards article:hover,
.coop-grid article:hover,
.advantage-grid article:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.intro-cards article + article {
  border-left: 1px solid var(--border);
}

.intro-cards b {
  display: block;
  margin-bottom: 18px;
  color: rgba(246, 243, 235, 0.11);
  font-size: 68px;
  line-height: 1;
}

.intro-cards h3,
.service-list h3,
.advantage-grid h3,
.coop-grid h3,
.case-item h3 {
  margin: 0 0 12px;
}

.wide-gap {
  margin-bottom: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 76px;
}

.body-copy {
  max-width: 520px;
  margin: 28px 0 42px;
}

.bar-list p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.bar-list span {
  display: inline-block;
  width: 54px;
  color: rgba(116, 115, 111, 0.5);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.bar-list strong {
  color: var(--foreground);
  margin-right: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats article {
  padding: 34px 34px 38px;
  border-bottom: 0;
}

.stats article + article {
  border-left: 1px solid var(--border);
}

.stats strong,
.stats span {
  display: block;
}

.stats span {
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.service-list article {
  display: grid;
  grid-template-columns: 52px 170px minmax(190px, 1fr) minmax(260px, 1fr) minmax(250px, 1fr);
  align-items: start;
  gap: 18px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.service-list article:hover {
  background: rgba(255, 255, 255, 0.045);
}

.service-list span,
.case-item header > span,
.coop-grid span {
  color: rgba(116, 115, 111, 0.45);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}

.service-list b,
.coop-grid b {
  color: var(--muted);
}

.service-list p {
  margin: 0;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips em {
  display: inline-flex;
  padding: 7px 10px;
  background: var(--secondary);
  color: rgba(246, 243, 235, 0.7);
  font-style: normal;
  font-size: 10px;
}

.advantage-grid,
.coop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.advantage-grid article,
.coop-grid article {
  position: relative;
  min-height: 280px;
  border-bottom: 1px solid var(--border);
}

.advantage-grid article:nth-child(odd),
.coop-grid article:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.advantage-grid article > span {
  position: absolute;
  top: 22px;
  right: 32px;
  color: rgba(246, 243, 235, 0.05);
  font-size: 112px;
  line-height: 1;
  font-weight: 900;
}

.advantage-grid ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.advantage-grid li {
  display: flex;
  gap: 12px;
  line-height: 1.7;
}

.advantage-grid li::before {
  content: "";
  width: 12px;
  height: 1px;
  margin-top: 13px;
  background: rgba(246, 243, 235, 0.36);
  flex: 0 0 auto;
}

.case-item {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.case-item header {
  display: grid;
  grid-template-columns: 48px minmax(260px, 1fr) minmax(220px, 0.8fr) auto;
  align-items: start;
  gap: 22px;
  margin-bottom: 30px;
}

.case-item header p {
  margin: 4px 0 0;
  font-size: 14px;
}

.case-item header b {
  justify-self: end;
  padding: 8px 12px;
  background: var(--foreground);
  color: var(--background);
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
}

.case-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-left: 48px;
  background: var(--border);
}

.case-steps p {
  margin: 0;
  padding: 24px;
  background: var(--background);
  color: rgba(246, 243, 235, 0.72);
  font-size: 14px;
}

.case-steps strong {
  display: block;
  margin-bottom: 12px;
  color: rgba(246, 243, 235, 0.58);
}

.coop-grid article > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.coop-grid p {
  margin: 0 0 24px;
  font-size: 14px;
}

.contact .display-xl {
  margin: 60px 0 80px;
  max-width: 980px;
}

.contact-list {
  margin-bottom: 64px;
}

.contact-list a {
  display: grid;
  grid-template-columns: 140px 1fr 24px;
  align-items: center;
  gap: 20px;
  margin: 0 -40px;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-list a:hover {
  background: var(--foreground);
  color: var(--background);
}

.contact-list span {
  color: var(--muted);
}

.contact-list a:hover span {
  color: rgba(2, 2, 3, 0.62);
}

.contact-list b {
  font-size: 18px;
}

.gradient-line {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
}

.contact-bottom {
  align-items: center;
}

.contact-bottom p:last-child {
  margin: 0;
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

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

@media (max-width: 980px) {
  .container,
  .nav-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 10px;
    right: 18px;
    z-index: 30;
    background: var(--foreground);
    color: var(--background);
  }

  .site-nav.menu-open .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: grid;
    gap: 20px;
    padding: 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }

  .hero-bottom,
  .section-head,
  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .display-xl {
    font-size: clamp(48px, 10vw, 76px);
  }

  .three-col,
  .about-grid,
  .advantage-grid,
  .coop-grid,
  .case-steps {
    grid-template-columns: 1fr;
  }

  .intro-cards article + article,
  .advantage-grid article:nth-child(odd),
  .coop-grid article:nth-child(odd) {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--border);
  }

  .stats {
    padding-left: 0;
  }

  .service-list article {
    grid-template-columns: 48px 1fr;
  }

  .service-list h3,
  .service-list p,
  .service-list .chips {
    grid-column: 1 / -1;
  }

  .case-item header {
    grid-template-columns: 34px 1fr;
  }

  .case-item header .chips,
  .case-item header b {
    grid-column: 2;
    justify-self: start;
  }

  .case-steps {
    margin-left: 34px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 84px 0;
  }

  .display-xl {
    font-size: clamp(42px, 11vw, 52px);
  }

  .container,
  .nav-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .display-md {
    font-size: 42px;
  }

  .intro-cards article,
  .coop-grid article,
  .advantage-grid article {
    padding: 34px 0;
  }

  .contact-list a {
    grid-template-columns: 1fr 20px;
    margin: 0 -18px;
    padding: 22px 18px;
  }

  .contact-list a span:first-child {
    grid-column: 1 / -1;
  }

  .contact-list b {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}
