:root {
  --bg: #08090c;
  --panel: #111319;
  --panel-2: #171a22;
  --ink: #f7f8fa;
  --muted: #9297a4;
  --line: #292d37;
  --blue: #087ff5;
  --green: #49c989;
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 26px rgba(8, 127, 245, .25);
}
.brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta {
  height: 42px;
  padding: 0 16px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #343944;
  border-radius: 999px;
  background: #111319;
  font-size: 12px;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.nav-cta:hover { border-color: #555c69; background: #181b22; transform: translateY(-1px); }
.nav-cta svg, .hero-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-cta:focus-visible, .hero-cta:focus-visible { outline: 3px solid rgba(8, 127, 245, .45); outline-offset: 3px; }

.hero {
  position: relative;
  min-height: 940px;
  padding: 116px 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,.04);
}
.hero-copy { z-index: 3; text-align: center; animation: rise .65s cubic-bezier(.2,.7,.2,1) both; }
.eyebrow {
  width: max-content;
  margin: 0 auto 18px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #30343e;
  border-radius: 999px;
  background: #111319;
  color: #b8bbc3;
  font-size: 9px;
  font-weight: 600;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73, 201, 137, .1); }
.hero h1 {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}
.lede { max-width: 600px; margin: 18px auto 23px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-cta {
  height: 52px;
  padding: 0 7px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #2792ff;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(8, 127, 245, .28);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.hero-cta > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0870d6; }
.hero-cta:hover { transform: translateY(-2px); background: #168eff; box-shadow: 0 14px 34px rgba(8, 127, 245, .34); }

.studio {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(100%, 1120px);
  height: 520px;
  margin-top: 42px;
  perspective: 1400px;
}
.studio::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  bottom: -16px;
  height: 120px;
  background: rgba(8, 127, 245, .13);
  filter: blur(60px);
}
.workspace {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #353a46;
  border-radius: 8px 8px 5px 5px;
  background: var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  animation: reveal .75s .12s cubic-bezier(.2,.7,.2,1) both;
}
.workspace-bar {
  position: relative;
  z-index: 5;
  height: 64px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 170px 1fr 100px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #0f1116;
}
.workspace-brand { display: flex; align-items: center; gap: 9px; color: #d9dce3; font-size: 10px; }
.workspace-brand > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--blue); color: #fff; font-size: 10px; }
.workspace-brand strong { font-weight: 700; }
.stage-nav { position: relative; width: min(100%, 560px); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.stage-nav::before { content: ""; position: absolute; top: 10px; left: 10%; right: 10%; height: 1px; background: #333844; }
.stage-nav::after { content: ""; position: absolute; top: 10px; left: 10%; width: 40%; height: 1px; background: var(--blue); }
.stage-nav li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; color: #6f7581; font-size: 7px; font-weight: 600; }
.stage-nav i { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #343a46; border-radius: 50%; background: #12151b; font-style: normal; font-size: 7px; }
.stage-nav .complete { color: #9ba2ae; }
.stage-nav .complete i { border-color: #2c6ba5; background: #13314a; color: #6bb5ff; }
.stage-nav .active { color: #fff; }
.stage-nav .active i { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(8, 127, 245, .1); }
.run-state { justify-self: end; display: flex; align-items: center; gap: 7px; color: #79d8a4; font-size: 8px; font-weight: 600; }
.run-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73, 201, 137, .1); animation: pulse 1.8s ease-out infinite; }

.artifact { position: relative; height: calc(100% - 64px); overflow: hidden; background: #e9edf4; }
.artifact > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(.98); }
.artifact::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.artifact-title {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 236px;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 6px;
  background: rgba(255,255,255,.88);
  color: #161a23;
  box-shadow: 0 8px 26px rgba(19, 38, 70, .12);
  backdrop-filter: blur(12px);
}
.artifact-title span { display: block; margin-bottom: 2px; color: #79808d; font-size: 6px; font-weight: 600; }
.artifact-title strong { font-size: 9px; }

.workflow-panel {
  position: absolute;
  z-index: 4;
  top: 17px;
  bottom: 17px;
  left: 17px;
  width: 202px;
  padding: 16px 15px;
  border: 1px solid #323743;
  border-radius: 7px;
  background: rgba(15, 17, 22, .96);
  color: #f2f4f7;
  box-shadow: 0 18px 44px rgba(5, 8, 14, .38);
  backdrop-filter: blur(16px);
}
.workflow-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.workflow-heading span { display: block; margin-bottom: 4px; color: #838a97; font-size: 7px; }
.workflow-heading strong { font-size: 18px; line-height: 1; }
.workflow-heading > i { color: #7e8795; font-size: 7px; font-style: normal; }
.progress { height: 3px; margin: 12px 0 15px; overflow: hidden; border-radius: 999px; background: #292d36; }
.progress span { position: relative; display: block; width: 71%; height: 100%; border-radius: inherit; background: var(--blue); }
.progress span::after { content: ""; position: absolute; inset: 0; width: 40%; background: rgba(255,255,255,.55); filter: blur(3px); animation: scan 2.8s ease-in-out infinite; }
.workflow-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.workflow-list li { position: relative; min-height: 18px; padding-left: 22px; display: flex; align-items: center; justify-content: space-between; color: #777e8a; font-size: 7px; }
.workflow-list li::before { content: ""; position: absolute; top: 15px; bottom: -10px; left: 7px; width: 1px; background: #303540; }
.workflow-list li:last-child::before { display: none; }
.workflow-list li > i { position: absolute; left: 0; width: 15px; height: 15px; border: 1px solid #3b414e; border-radius: 50%; background: #181b22; }
.workflow-list .done { color: #c7cbd2; }
.workflow-list .done > i { border-color: #256c51; background: #17372a; }
.workflow-list .done > i::after { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 3px; border: solid #63d69b; border-width: 0 0 1px 1px; transform: rotate(-45deg); }
.workflow-list .working { color: #fff; }
.workflow-list .working > i { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(8,127,245,.12); }
.workflow-list small { color: #656d79; font-size: 6px; }
.workflow-list .working small { color: #63adf5; }

.completion-stats {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 17px;
  padding: 9px 12px;
  display: flex;
  gap: 15px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  color: #1a1e27;
  box-shadow: 0 8px 26px rgba(19, 38, 70, .12);
  backdrop-filter: blur(12px);
}
.completion-stats div { display: grid; gap: 2px; }
.completion-stats div + div { padding-left: 15px; border-left: 1px solid #dce1e9; }
.completion-stats span { color: #838995; font-size: 6px; }
.completion-stats strong { font-size: 10px; }

.agent-dock {
  position: absolute;
  z-index: 4;
  right: 17px;
  bottom: 17px;
  min-width: 230px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #353b46;
  border-radius: 7px;
  background: rgba(15, 17, 22, .95);
  color: #f1f3f6;
  box-shadow: 0 16px 38px rgba(5, 8, 14, .36);
  backdrop-filter: blur(14px);
}
.agent-pulse { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #102e4b; }
.agent-pulse i { width: 7px; height: 7px; border-radius: 50%; background: #55adff; box-shadow: 0 0 0 5px rgba(85,173,255,.12); animation: pulse 1.8s ease-out infinite; }
.agent-dock strong { display: block; margin-bottom: 2px; font-size: 8px; }
.agent-dock small { display: block; color: #7d8490; font-size: 6px; }
.agent-tag { padding: 3px 5px; border-radius: 4px; background: #153a2a; color: #68d89d; font-size: 5px; font-weight: 700; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(73,201,137,.28); } 70%, 100% { box-shadow: 0 0 0 8px rgba(73,201,137,0); } }
@keyframes scan { 0% { transform: translateX(-130%); } 60%, 100% { transform: translateX(250%); } }

@media (max-width: 900px) {
  .hero { min-height: 980px; }
  .hero h1 { font-size: 58px; }
  .studio { height: 500px; }
  .workspace-bar { grid-template-columns: 120px 1fr 72px; padding-inline: 13px; }
  .workspace-brand strong { display: none; }
  .workflow-panel { width: 188px; }
  .artifact-title { left: 220px; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .site-header { height: 70px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; }
  .nav-cta { height: 40px; padding-inline: 15px; }
  .nav-cta svg { display: none; }
  .hero { min-height: 860px; padding: 108px 0 32px; }
  .hero::before { display: none; }
  .hero h1 { font-size: 43px; }
  .lede { max-width: 360px; font-size: 13px; }
  .studio { height: 430px; margin-top: 36px; }
  .workspace { border-radius: 8px 8px 5px 5px; }
  .workspace-bar { height: 58px; padding: 0 10px; grid-template-columns: 35px 1fr 50px; }
  .workspace-brand > span { width: 24px; height: 24px; }
  .stage-nav { width: 100%; }
  .stage-nav::before, .stage-nav::after { top: 9px; }
  .stage-nav i { width: 19px; height: 19px; }
  .stage-nav li { gap: 3px; font-size: 6px; }
  .run-state { gap: 5px; font-size: 6px; }
  .artifact { height: calc(100% - 58px); }
  .artifact > img { object-position: 42% top; }
  .artifact-title { top: 12px; left: 12px; min-width: 150px; }
  .completion-stats { top: 12px; right: 12px; padding: 8px 9px; gap: 9px; }
  .completion-stats div + div { padding-left: 9px; }
  .workflow-panel { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: 118px; padding: 12px 13px; }
  .workflow-heading { align-items: center; }
  .workflow-heading > div { display: flex; align-items: baseline; gap: 8px; }
  .workflow-heading span { margin: 0; }
  .workflow-heading strong { font-size: 14px; }
  .progress { margin: 8px 0 11px; }
  .workflow-list { grid-template-columns: repeat(7, 1fr); gap: 0; }
  .workflow-list li { min-height: 26px; padding: 19px 0 0; display: block; text-align: center; font-size: 5px; white-space: nowrap; }
  .workflow-list li::before { top: 7px; left: 50%; right: -50%; bottom: auto; width: auto; height: 1px; }
  .workflow-list li > i { top: 0; left: 50%; width: 15px; height: 15px; transform: translateX(-50%); }
  .workflow-list small { display: none; }
  .agent-dock { display: none; }
  .studio::before { left: 5%; right: 5%; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 39px; }
  .eyebrow { font-size: 8px; }
  .artifact-title { min-width: 0; }
  .artifact-title strong { font-size: 8px; }
  .completion-stats span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
