/* ------------------------------------------------------------
   AWR · Agent Work Runtime 独立官网
   深空黑金、克制专业；零构建纯静态，变量口径与主站一致
   ------------------------------------------------------------ */

:root {
  --void: #05070d;
  --abyss: #04060c;
  --surface: #0a101c;
  --raised: #0c1729;
  --elevate: #101a2c;
  --ink: #f2f5fa;
  --muted: #c5d0e3;
  --faint: #9aa8c2;
  --gold: #d8b45a;
  --gold-bright: #eed48f;
  --cyan: #57e6d9;
  --blue: #4f8cff;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  --sans: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav__logo-chip {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f4f6fb;
}

.nav__logo-chip img {
  display: block;
  height: 22px;
  width: auto;
}

.nav__version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav__links a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease),
    background 0.15s var(--ease), color 0.15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: linear-gradient(135deg, #eed48f 0%, #d8b45a 55%, #b8933d 100%);
  color: #05070d;
}

.btn--gold:hover {
  color: #05070d;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13.5px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(79, 140, 255, 0.12), transparent 65%),
    radial-gradient(720px 380px at 10% 110%, rgba(87, 230, 217, 0.07), transparent 65%),
    var(--void);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.hero__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 90, 0.35);
  background: rgba(216, 180, 90, 0.08);
  font-size: 13.5px;
  color: var(--muted);
}

.hero__badge strong {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold-bright);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__brand-logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 10px;
  background: #f4f6fb;
}

.hero__demo {
  min-width: 0;
}

/* ---------------- Badges ---------------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.badge {
  display: inline-flex;
  align-items: baseline;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.badge--gold {
  border-color: rgba(216, 180, 90, 0.35);
  background: rgba(216, 180, 90, 0.08);
}

.badge--gold strong {
  font-size: 14px;
  color: var(--gold-bright);
}

/* ---------------- Terminal demo ---------------- */

.terminal {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--abyss);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}

.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }

.terminal__title {
  margin-inline: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.terminal__body {
  margin: 0;
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.t-prompt { color: var(--gold-bright); font-weight: 700; }
.t-key { color: var(--cyan); }
.t-ok { color: #28c840; }
.t-num { color: var(--gold-bright); font-weight: 700; }
.t-str { color: #9ecbff; }

/* ---------------- Install / code blocks ---------------- */

.install {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.codeblock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--abyss);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}

.codeblock code {
  flex: 1;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.codeblock .copy {
  flex: none;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.codeblock .copy:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.codeblock .copy.is-ok {
  color: var(--cyan);
  border-color: var(--cyan);
}

.codeblock--multiline {
  align-items: flex-start;
}

/* ---------------- Sections ---------------- */

.section {
  position: relative;
  padding: 88px 0;
}

.section--raised {
  background:
    radial-gradient(720px 340px at 88% 0%, rgba(139, 124, 246, 0.05), transparent 65%),
    var(--raised);
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--shell);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.section__head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section__head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------- Cards ---------------- */

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  padding: 26px 24px;
  border-radius: 14px;
  background: rgba(16, 26, 44, 0.55);
  border: 1px solid var(--line);
}

.card__index {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17.5px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------- Flow ---------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: flow;
}

.flow__step {
  position: relative;
  padding: 24px 20px;
  border-radius: 14px;
  background: rgba(16, 26, 44, 0.55);
  border: 1px solid var(--line);
}

.flow__step::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.flow__step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.flow__step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.flow__loop {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--faint);
}

.flow__loop::before,
.flow__loop::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------------- Benchmark ---------------- */

.bench__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.bench__stat {
  padding: 22px 20px;
  border-radius: 14px;
  background: rgba(16, 26, 44, 0.55);
  border: 1px solid var(--line);
}

.bench__stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.bench__stat span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.bench__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 14px;
}

.bench__table th,
.bench__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.bench__table th {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-weight: 600;
}

.bench__table td {
  color: var(--muted);
}

.bench__table td:first-child {
  color: var(--ink);
}

.bench__table .mono {
  font-family: var(--mono);
  font-size: 13px;
}

.bench__chart {
  padding: 28px;
  border-radius: 16px;
  background: #f4f6fb;
  margin-bottom: 24px;
}

.bench__chart img {
  display: block;
  width: 100%;
}

.bench__chart figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: #4c5a75;
  font-family: var(--mono);
}

.note {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(216, 180, 90, 0.3);
  background: rgba(216, 180, 90, 0.06);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.note strong {
  color: var(--gold-bright);
}

/* ---------------- Steps ---------------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
}

.step__no {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--gold-bright);
  line-height: 1.4;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
}

.step p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------- Compare table ---------------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}

.compare th {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.compare td {
  color: var(--muted);
}

.compare td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------- Roadmap ---------------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.roadmap__phase {
  position: relative;
  padding: 26px 24px;
  border-radius: 14px;
  background: rgba(16, 26, 44, 0.55);
  border: 1px solid var(--line);
}

.roadmap__phase--now {
  border-color: rgba(216, 180, 90, 0.4);
}

.roadmap__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(87, 230, 217, 0.35);
}

.roadmap__phase--now .roadmap__tag {
  color: var(--gold-bright);
  border-color: rgba(216, 180, 90, 0.4);
}

.roadmap__phase h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.roadmap__phase p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------- FAQ ---------------- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 4px 22px;
  max-width: 820px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

.faq code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
}

/* ---------------- Footer ---------------- */

.footer {
  padding: 56px 0 40px;
  background: var(--abyss);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__brand p {
  margin: 14px 0 0;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--faint);
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 600;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--muted);
}

.footer__col a:hover {
  color: var(--gold-bright);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

.footer__logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f4f6fb;
}

.footer__logo-chip img {
  display: block;
  height: 26px;
  width: auto;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__brand-logo {
    height: 36px;
  }

  .grid--3,
  .roadmap,
  .bench__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav__links {
    display: none;
  }
}

@media (max-width: 600px) {
  .grid--3,
  .grid--2,
  .roadmap,
  .bench__grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

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

  .codeblock .copy {
    align-self: flex-end;
  }

  .nav__version {
    display: none;
  }
}

/* ------------------------------------------------------------
   2026-09-11 视觉增强：去纯黑、极光背景、入场与滚动动效
   （追加在末尾，靠层叠覆盖上文同名规则）
   ------------------------------------------------------------ */

/* 底色不再是纯黑：深空蓝渐变打底 */
body {
  background:
    linear-gradient(180deg, #070b17 0%, #05070d 60%, #04060c 100%);
}

/* 全站极光：蓝/紫/青三团光晕缓慢漂移 */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 12% -4%, rgba(79, 140, 255, 0.16), transparent 62%),
    radial-gradient(760px 500px at 88% 10%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(620px 440px at 50% 108%, rgba(87, 230, 217, 0.08), transparent 62%);
  animation: aurora 22s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   { transform: translate3d(-1.5%, 0, 0) scale(1); }
  50%  { transform: translate3d(1.5%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(0, 1.5%, 0) scale(1.02); }
}

/* 首屏网格，向中心聚拢后淡出 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 36%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 36%, #000 25%, transparent 75%);
}

.hero .shell {
  position: relative;
  z-index: 1;
}

/* 标题关键词渐变 */
.grad {
  background: linear-gradient(94deg, #9ecbff 0%, var(--cyan) 48%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 首屏入场：元素依次上浮淡入 */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.hero__intro > * {
  animation: rise 0.75s var(--ease) both;
}

.hero__intro > *:nth-child(1) { animation-delay: 0.05s; }
.hero__intro > *:nth-child(2) { animation-delay: 0.16s; }
.hero__intro > *:nth-child(3) { animation-delay: 0.28s; }
.hero__intro > *:nth-child(4) { animation-delay: 0.40s; }
.hero__intro > *:nth-child(5) { animation-delay: 0.50s; }

.hero__demo {
  animation: rise 0.85s var(--ease) 0.35s both;
}

/* 终端窗口：淡淡的金色呼吸光晕 + 光标闪烁 */
.terminal {
  animation: terminalGlow 5s ease-in-out infinite;
}

@keyframes terminalGlow {
  0%, 100% { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 rgba(216, 180, 90, 0); }
  50%      { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 42px rgba(216, 180, 90, 0.10); }
}

.t-cursor {
  color: var(--gold-bright);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* 徽章悬浮微浮起 */
.badge {
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.badge:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 180, 90, 0.45);
}

/* 卡片 / 流程 / 数据 / 路线图悬浮抬升 + 描边点亮 */
.card,
.flow__step,
.bench__stat,
.roadmap__phase {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.card:hover,
.flow__step:hover,
.bench__stat:hover,
.roadmap__phase:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 180, 90, 0.32);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}

/* 滚动浮现（JS 加 .reveal，进入视口加 .in） */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 按钮悬浮光感 */
.btn--gold {
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--gold:hover {
  box-shadow: 0 8px 28px rgba(216, 180, 90, 0.30);
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
