/* Hero windows: AI agent workflow, IDE, live API. Plus realistic About layers. Loaded last. */
.hv-stage {
  width: 580px;
  height: 540px;
}
.w-net {
  left: 0;
  top: 0;
  width: 300px;
  transform: translateZ(-30px);
}
.w-code {
  left: 212px;
  top: 92px;
  width: 368px;
  transform: translateZ(20px);
}
.w-api {
  left: 36px;
  top: 346px;
  width: 372px;
  transform: translateZ(70px);
}
.hv:hover .w-net {
  transform: translateZ(-10px);
}
.hv:hover .w-api {
  transform: translateZ(100px);
}
.win * {
  box-sizing: border-box;
}
/* AI agent workflow */
.ag-body {
  padding: 12px 14px 12px;
  display: grid;
  gap: 9px;
}
.ag-trig {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1c1f22;
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.ag-trig u {
  text-decoration: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f2cc7a, #c8913a);
  color: #1c1f22;
  font: 700 9px var(--f-ui);
  display: grid;
  place-items: center;
  flex: none;
}
.ag-trig span {
  flex: 1;
}
.ag-trig b {
  display: block;
  font: 600 11.5px var(--f-ui);
}
.ag-trig small {
  font-size: 10px;
  color: #f2cc7a;
}
.ag-trig em {
  font: 400 10px var(--f-mono);
  font-style: normal;
  color: #98a1b3;
}
.ag-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 11px;
  position: relative;
  display: grid;
  gap: 7px;
}
.ag-steps::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: repeating-linear-gradient(#d9d2c3 0 4px, transparent 4px 8px);
}
.ag-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e8e2d4;
  border-radius: 9px;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.ag-steps li i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d3ccbc;
  background: #fff;
  flex: none;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.ag-steps li span {
  flex: 1;
  min-width: 0;
}
.ag-steps b {
  display: block;
  font: 600 11.5px var(--f-ui);
  color: #1c1f22;
}
.ag-steps small {
  font-size: 10px;
  color: #6b6f73;
}
.ag-steps em {
  font: 400 10px var(--f-mono);
  font-style: normal;
  color: #a0a4a8;
  opacity: 0;
  transition: opacity 0.3s;
}
.ag-steps li.run {
  border-color: #c8913a;
  background: #fff8e8;
}
.ag-steps li.run i {
  border-color: #e7d3a8;
  border-top-color: #c8913a;
  animation: spin 0.8s linear infinite;
}
.ag-steps li.done i {
  background: #1e8e5a;
  border-color: #1e8e5a;
}
.ag-steps li.done i::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4.5px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.ag-steps li.done em {
  opacity: 1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ag-foot {
  display: flex;
  justify-content: space-between;
  font: 400 10.5px var(--f-mono);
  color: #6b6f73;
  padding-top: 2px;
}
.ag-foot em {
  font-style: normal;
  color: #a8680a;
}
.ag-foot em.ok {
  color: #1e8e5a;
  font-weight: 600;
}
/* IDE */
.ide {
  display: grid;
  grid-template-columns: 94px 1fr;
  min-height: 222px;
}
.ide-ex {
  background: #181b1e;
  border-right: 1px solid #2c3135;
  padding: 8px 0;
  font-size: 10.5px;
  color: #b8bcc2;
}
.ide-ex small {
  display: block;
  padding: 0 10px 6px;
  font: 500 8.5px var(--f-mono);
  letter-spacing: 0.08em;
  color: #7d8389;
}
.ide-ex p {
  margin: 0;
  padding: 3px 10px;
  white-space: nowrap;
}
.ide-ex .dir {
  color: #e8e6e0;
  font-weight: 500;
}
.ide-ex .ifl {
  padding-left: 18px;
}
.ide-ex .ifl.on {
  background: rgba(242, 204, 122, 0.14);
  color: #f2cc7a;
}
.ide-ed {
  min-width: 0;
}
.itb {
  display: flex;
  background: #181b1e;
  border-bottom: 1px solid #2c3135;
}
.itb span {
  padding: 6px 12px;
  font: 400 10.5px var(--f-mono);
  color: #8a8f94;
  border-right: 1px solid #2c3135;
}
.itb .on {
  background: #1c1f22;
  color: #fff;
  box-shadow: inset 0 -2px 0 #c8913a;
}
.ide-st {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 4px 12px;
  background: #c8913a;
  color: #1c1f22;
  font: 500 9.5px var(--f-ui);
}
.ide-st .r {
  margin-left: auto;
}

/* IDE editor: VS Code (Dark+) look: numbered rows, 4-space indentation with guides, syntax colours */
#code {
  margin: 0;
  padding: 8px 0 24px;
  font: 400 10.5px/1.7 var(--f-mono);
  color: #d4d4d4;
  tab-size: 4;
  min-height: 188px;
  overflow: hidden;
}
#code .cl {
  display: flex;
  min-height: 1.7em;
  padding-right: 10px;
}
#code .cl.cur {
  background: rgba(255, 255, 255, 0.05);
}
#code .gn {
  flex: none;
  width: 30px;
  padding-right: 12px;
  text-align: right;
  color: #858585;
  user-select: none;
}
#code .cl.cur .gn {
  color: #c6c6c6;
}
#code .tx {
  flex: 1;
  min-width: 0;
  white-space: pre;
}
#code .ig {
  display: inline-block;
  width: 4ch;
  height: 1.7em;
  vertical-align: top;
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.14);
}
#code .caret {
  display: inline-block;
  width: 1.5px;
  height: 1.25em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: #aeafad;
  animation: blink 1s steps(2) infinite;
}
#code .t-kc {
  color: #c586c0;
}
#code .t-kd {
  color: #569cd6;
}
#code .t-f,
#code .t-d {
  color: #dcdcaa;
}
#code .t-c {
  color: #4ec9b0;
}
#code .t-v {
  color: #9cdcfe;
}
#code .t-s {
  color: #ce9178;
}
#code .t-n {
  color: #b5cea8;
}
#code .t-cm {
  color: #6a9955;
}
/* API */
.api-sum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.api-sum div {
  padding: 7px 14px;
  border-right: 1px solid rgba(128, 128, 128, 0.15);
}
.api-sum div:last-child {
  border-right: 0;
}
.api-sum small {
  display: block;
  font-size: 9px;
  color: #8a8f94;
}
.api-sum b {
  font: 600 14px var(--f-display);
  color: #fff;
}
.api {
  padding: 6px 12px 8px !important;
  min-height: 118px !important;
  font-size: 11px !important;
  line-height: 1.9 !important;
}
.api p {
  gap: 9px !important;
}
.api time {
  color: #6b7076;
  font-size: 10px;
  width: 52px;
  flex: none;
}
.api .m {
  width: 40px !important;
  flex: none;
}
.api span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api .st {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  border-radius: 99px;
  padding: 0 7px;
  background: rgba(111, 227, 162, 0.14);
  line-height: 1.5;
  font-size: 10px;
  margin-left: 0 !important;
}
.api .st.pend {
  background: rgba(242, 204, 122, 0.16);
  color: #f2cc7a;
  animation: blink 1s steps(2) infinite;
}
.api .st.bad {
  background: rgba(255, 138, 128, 0.16);
  color: #ff8a80;
}
.api small {
  width: 52px !important;
}
/* About: realistic layers */
.plate {
  grid-template-columns: 1fr !important;
  padding: 12px 16px !important;
  gap: 6px !important;
}
.plate::after {
  display: none !important;
}
.pl-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pl-h b {
  font: 600 14px var(--f-display);
}
.pl-h em {
  font: 500 10px var(--f-mono);
  font-style: normal;
  color: var(--bronze);
  background: #fbf0da;
  padding: 2px 8px;
  border-radius: 99px;
}
.plate:first-child .pl-h em,
.plate:first-child .pl-h b {
  color: #fff;
}
.plate:first-child .pl-h em.ok2 {
  background: rgba(111, 227, 162, 0.16);
  color: #6fe3a2;
}
.pl-b {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #464b50;
  flex-wrap: wrap;
}
.plate:first-child .pl-b {
  color: #d9d6cf;
}
.pl-b small {
  margin-left: auto;
  font: 400 10px var(--f-mono) !important;
  color: #8a8f94 !important;
}
.plate:first-child .pl-b small {
  color: #98a1b3 !important;
}
.pl-b i.g {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fbf71;
  margin-right: 5px;
  animation: pulse 2s infinite;
}
.pl-b .pr {
  font-weight: 500;
  color: #1c1f22;
}
.pl-b u {
  text-decoration: none;
  font-weight: 600;
}
.pl-b u.a {
  color: #1e8e5a;
}
.pl-b u.r {
  color: #c0392b;
}
.sw {
  display: flex;
  gap: 5px;
}
.sw i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.gantt {
  position: relative;
  flex: 1;
  height: 22px;
}
.gantt i {
  position: absolute;
  top: 0;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f2cc7a, #c8913a);
  color: #1c1f22;
  font: 600 10px/22px var(--f-ui);
  text-align: center;
}
.gantt i:nth-child(2) {
  background: #e9d8b8;
}
.gantt i:nth-child(3) {
  background: #1c1f22;
  color: #f2cc7a;
}
@media (prefers-reduced-motion: reduce) {
  .ag-steps li.run i,
  .api .st.pend,
  #code .caret {
    animation: none !important;
  }
}
.w-net {
  width: 288px;
}
.w-code {
  left: 240px;
  top: 84px;
  width: 340px;
}
.ide {
  grid-template-columns: 74px 1fr;
}
.ide-ex {
  font-size: 10px;
}
.ide-ex p {
  padding: 3px 8px;
}
.ide-ex .ifl {
  padding-left: 14px;
}
.ag-trig small {
  font-size: 9.5px;
}
.ag-steps small {
  font-size: 9.5px;
}
.w-api {
  top: 362px;
}
.hv-stage {
  height: 548px;
}
