:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #101117;
  --surface-2: #151721;
  --text: #f4f2ed;
  --muted: #9b9da5;
  --gold: #f0a928;
  --blue: #415dff;
  --border: rgba(255, 255, 255, 0.13);
  --shadow: rgba(0, 0, 0, 0.5);
  font-family: Manrope, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 0%, rgba(65, 93, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 16% 18%, rgba(240, 169, 40, 0.14), transparent 24rem),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 42%, rgba(240, 169, 40, 0.05));
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 13, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(240, 169, 40, 0.6);
  background: linear-gradient(145deg, rgba(240, 169, 40, 0.2), rgba(65, 93, 255, 0.1));
  color: var(--gold);
}

nav {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.header-link {
  transition: color 180ms ease;
}

nav a:hover,
.header-link:hover {
  color: var(--text);
}

.header-link {
  justify-self: end;
  color: var(--gold);
  font-weight: 700;
}

main {
  position: relative;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overline i {
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(3.3rem, 7vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  color: var(--gold);
}

.hero-intro {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.32rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  border-color: rgba(240, 169, 40, 0.65);
  background: linear-gradient(135deg, rgba(240, 169, 40, 0.92), rgba(240, 169, 40, 0.58));
  color: #141009;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
  margin: 0;
  min-height: 31rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 2rem 5rem var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 30%, rgba(7, 8, 13, 0.38));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.metric-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: rgba(16, 17, 23, 0.72);
}

.metric-strip div {
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}

.section-lead {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-lead h2,
.delivery h2 {
  max-width: 54rem;
  font-size: clamp(2rem, 4.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.flow-grid article {
  min-height: 17rem;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  background: rgba(16, 17, 23, 0.58);
}

.flow-grid article:last-child {
  border-right: 0;
}

.flow-grid span {
  color: var(--blue);
  font-weight: 900;
}

.flow-grid h3,
.capability-card h3 {
  margin: 3rem 0 1rem;
  font-size: 1.25rem;
}

.flow-grid p,
.capability-card p,
.delivery-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.capability-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card {
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(16, 17, 23, 0.76);
}

.capability-card.large {
  grid-column: span 2;
  border-color: rgba(240, 169, 40, 0.38);
  background:
    radial-gradient(circle at 80% 10%, rgba(240, 169, 40, 0.18), transparent 16rem),
    rgba(16, 17, 23, 0.82);
}

.delivery {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.delivery-panel {
  border: 1px solid var(--border);
  background: rgba(16, 17, 23, 0.76);
  padding: clamp(1.4rem, 3vw, 2rem);
}

dl {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer .brand {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual img {
    animation: cover-drift 12s ease-in-out infinite alternate;
  }

  @keyframes cover-drift {
    from {
      transform: scale(1.02) translate3d(-0.5%, 0, 0);
    }
    to {
      transform: scale(1.06) translate3d(0.5%, -0.4%, 0);
    }
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  nav,
  .header-link {
    justify-self: start;
  }

  .hero,
  .section-lead,
  .delivery {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .capability-layout,
  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .flow-grid article:nth-child(2),
  .metric-strip div:nth-child(2) {
    border-right: 0;
  }

  .capability-card.large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 22rem;
  }

  .flow-grid,
  .capability-layout,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .flow-grid article,
  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .flow-grid article:last-child,
  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .capability-card.large {
    grid-column: span 1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
