:root {
  color-scheme: light;
  --ink: #111918;
  --ink-soft: #22302d;
  --muted: #5b6a66;
  --line: #dce4e0;
  --surface: #f6f8f7;
  --panel: #ffffff;
  --teal: #0a8f78;
  --teal-dark: #066c5c;
  --cobalt: #315bdc;
  --coral: #d35d45;
  --gold: #b78a2d;
  --shadow: 0 22px 80px rgba(17, 25, 24, 0.14);
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(17, 25, 24, 0.1);
  background: rgba(246, 248, 247, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--ink);
  background: #edf2ef;
}

.hero {
  min-height: min(720px, calc(100svh - 128px));
  display: flex;
  align-items: center;
  padding: clamp(64px, 9vw, 104px) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(10, 18, 20, 0.9) 0%, rgba(10, 18, 20, 0.74) 42%, rgba(10, 18, 20, 0.18) 72%),
    url("/assets/arcaryhub-hero.png") center / cover no-repeat;
  color: #f7fbf9;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #75e4cf;
}

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

h1 {
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.92;
  font-weight: 820;
}

h2 {
  max-width: 780px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.03;
  font-weight: 780;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 760;
}

.hero-lead {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(247, 251, 249, 0.82);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 760;
}

.button.primary {
  background: #12a88e;
  color: #fff;
}

.button.primary:hover {
  background: #0d816f;
}

.button.secondary {
  border: 1px solid rgba(247, 251, 249, 0.34);
  color: #f7fbf9;
  background: rgba(247, 251, 249, 0.08);
}

.button.secondary:hover {
  background: rgba(247, 251, 249, 0.16);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.signal-band div {
  min-height: 116px;
  padding: 28px clamp(20px, 4vw, 40px);
  border-right: 1px solid var(--line);
}

.signal-band div:last-child {
  border-right: 0;
}

.signal-band span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.signal-band strong {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.capability-grid article {
  min-height: 290px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--panel);
}

.capability-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--coral);
  font-weight: 820;
}

.capability-grid p,
.guide-copy p,
.operations-section p,
.flow-list span {
  color: var(--muted);
  line-height: 1.68;
}

.capability-grid p {
  margin-top: 16px;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  background: #eef3f5;
}

.guide-copy p:last-child {
  max-width: 590px;
  margin-top: 22px;
  font-size: 17px;
}

.code-panel {
  overflow: hidden;
  border: 1px solid rgba(17, 25, 24, 0.14);
  border-radius: 8px;
  background: #101819;
  box-shadow: var(--shadow);
}

.code-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.code-panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.code-panel-header span:nth-child(2) {
  background: var(--gold);
}

.code-panel-header span:nth-child(3) {
  background: var(--teal);
}

.code-panel-header strong {
  margin-left: auto;
  font-weight: 650;
}

pre {
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  overflow-x: auto;
  color: #dff6ee;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.78;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.flow-section {
  background: var(--surface);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.flow-list li {
  min-height: 190px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--panel);
}

.flow-list strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
}

.operations-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.operations-section p {
  max-width: 760px;
  font-size: 18px;
}

.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
}

.site-footer span {
  margin-right: auto;
}

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

@media (max-width: 1020px) {
  .capability-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .signal-band div:nth-child(2) {
    border-right: 0;
  }

  .signal-band div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 118px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 626px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(10, 18, 20, 0.22) 0%, rgba(10, 18, 20, 0.88) 57%, rgba(10, 18, 20, 0.94) 100%),
      url("/assets/arcaryhub-hero.png") center / cover no-repeat;
  }

  .section-heading,
  .guide-section,
  .operations-section {
    grid-template-columns: 1fr;
  }

  .guide-section {
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 20px;
  }

  nav a {
    padding: 0 8px;
  }

  .hero {
    padding: 44px 20px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

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

  .button {
    width: 100%;
  }

  .signal-band,
  .capability-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .signal-band div,
  .capability-grid article,
  .flow-list li {
    min-height: auto;
  }

  .signal-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-band div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 56px 20px;
  }
}
