/* Foundation, navigation, hero, and shared primitives. */
:root {
  --ink: #07141c;
  --ink-soft: #0d202b;
  --teal: #58d6bd;
  --teal-dark: #1ea891;
  --white: #ffffff;
  --paper: #f5f7f7;
  --text: #0a1821;
  --muted: #63717a;
  --line: #d8dfe1;
  --dark-line: rgba(201, 225, 229, 0.18);
  --shell: min(1380px, calc(100vw - 96px));
  --header-height: 92px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--teal);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 240ms ease, height 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  height: 76px;
  background: rgba(7, 20, 28, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 40px;
  color: var(--teal);
  fill: currentColor;
}

.brand-mark-cut {
  fill: var(--ink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.primary-nav {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 54px);
  font-size: 15px;
}

.primary-nav a {
  position: relative;
  padding-block: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-contact {
  padding: 11px 18px;
  border: 1px solid rgba(88, 214, 189, 0.56);
  color: var(--teal);
}

.primary-nav .nav-contact::after {
  display: none;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 8px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

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

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(7, 20, 28, 0.98) 17%, rgba(7, 20, 28, 0.62) 42%, rgba(7, 20, 28, 0.05) 78%),
    linear-gradient(0deg, rgba(7, 20, 28, 0.92) 0%, rgba(7, 20, 28, 0) 34%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 8vw;
  min-height: 820px;
  padding-top: var(--header-height);
}

.hero-copy {
  padding-top: 24px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(52px, 5.2vw, 82px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero-copy > p {
  max-width: 570px;
  margin: 36px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

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

.button-primary {
  color: var(--ink);
  background: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #75e3cd;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: rgba(7, 20, 28, 0.28);
}

.agent-preview {
  align-self: end;
  justify-self: end;
  width: min(420px, 100%);
  margin-bottom: 148px;
  border: 1px solid rgba(184, 226, 221, 0.28);
  background: rgba(8, 24, 33, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--dark-line);
}

.agent-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--teal);
  color: var(--teal);
}

.agent-symbol svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.agent-status {
  margin-left: auto;
  color: var(--teal);
  font-size: 12px;
}

.agent-steps {
  margin: 0;
  padding: 8px 22px 16px;
  list-style: none;
}

.agent-steps li {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--dark-line);
}

.agent-steps li:last-child {
  border-bottom: 0;
}

.agent-steps li > span {
  color: var(--teal);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.agent-steps div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.agent-steps strong {
  font-size: 14px;
}

.agent-steps small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.process-strip {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.process-strip i {
  width: clamp(24px, 4vw, 68px);
  height: 1px;
  margin-inline: 16px;
  background: var(--teal);
}

.section-light {
  background: var(--white);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}
