/* ============ SHOWCASE: workspace mockup ============ */
.showcase { padding: 120px 4vw 140px; position: relative; }
.sc-head { text-align: center; max-width: 860px; margin: 0 auto 64px; }
.sc-head h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.sc-head p { font-family: var(--mono); font-size: 14.5px; line-height: 1.75; color: var(--ink-dim); max-width: 620px; margin: 20px auto 0; }

.sc-stage { perspective: 1800px; max-width: 1240px; margin: 0 auto; }
.sc-window {
  border-radius: 22px; overflow: hidden;
  background: #070d1d; border: 1px solid rgba(147, 197, 253, .14);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  transform-origin: 50% 0%; will-change: transform;
}
.sc-window svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* bar */
.sc-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 16px; border-bottom: 1px solid rgba(147, 197, 253, .1); }
.sc-logos { display: flex; gap: 8px; align-items: center; }
.logo-tile.xs { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; box-shadow: none; }
.sc-ava { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; object-position: 42% 38%; background: #066afb; transform: scale(1); }
.sc-tabs { position: relative; display: flex; height: 56px; }
.sc-tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 22px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-mute);
  transition: color .2s;
}
.sc-tabs button:hover { color: var(--ink-dim); }
.sc-tabs button[aria-selected="true"] { color: var(--blue-2); }
.sc-ink { position: absolute; bottom: -1px; height: 2px; background: var(--blue-2); border-radius: 2px; transition: left .35s var(--ease), width .35s var(--ease); }
.sc-wallet {
  justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, .16); background: rgba(8, 18, 42, .7);
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink-dim);
}
.sc-wallet svg { color: var(--blue-2); }

.sc-body { display: grid; grid-template-columns: 330px 1fr; height: 720px; }

/* chat */
.sc-chat { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-right: 1px solid rgba(147, 197, 253, .08); background: linear-gradient(180deg, #080f22, #060b19); }
.sc-context { padding: 16px; border-radius: 14px; background: rgba(147, 197, 253, .04); border: 1px solid rgba(147, 197, 253, .08); display: flex; flex-direction: column; gap: 9px; }
.sc-ctx-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.sc-ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); }
.sk { height: 7px; border-radius: 6px; background: rgba(147, 197, 253, .1); }
.sk.w70 { width: 74%; } .sk.w40 { width: 46%; }
.sc-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.sc-msg, .sc-status { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sc-msg.in, .sc-status.in { opacity: 1; transform: none; }
.sc-msg p { font-size: 13px; line-height: 1.6; }
.sc-msg.bot { display: flex; gap: 10px; align-items: flex-start; }
.sc-msg.bot > div { padding: 13px 14px; border-radius: 14px; background: rgba(147, 197, 253, .05); border: 1px solid rgba(147, 197, 253, .08); color: #c9d6ea; }
.sc-msg-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 42% 36%; background: #066afb; }
.sc-file { display: flex; justify-content: space-between; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(4, 8, 20, .6); font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.sc-file a { color: var(--blue-2); }
.sc-file a:hover { text-decoration: underline; }
.sc-msg.me { align-self: flex-end; max-width: 88%; padding: 13px 15px; border-radius: 14px 14px 4px 14px; background: #2563eb; color: #fff; }
.sc-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(147, 197, 253, .05); font-size: 13px; font-weight: 600; }
.sc-status.done { color: #86efac; }
.sc-status.done .sc-spin { border-color: #86efac; animation: none; }
.sc-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(96, 165, 250, .25); border-top-color: var(--blue-2); animation: scspin .8s linear infinite; }
.sc-spin.dark { border-color: rgba(37, 99, 235, .15); border-top-color: #2563eb; }
@keyframes scspin { to { rotate: 360deg; } }
.sc-compose { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgba(147, 197, 253, .1); font-size: 13px; color: var(--ink-mute); }
.sc-compose i { width: 14px; height: 14px; border-radius: 50%; background: rgba(147, 197, 253, .14); }

/* panel */
.sc-panel { padding: 22px; min-width: 0; background: radial-gradient(80% 60% at 70% 0%, rgba(37, 99, 235, .08), transparent 70%); }
.sc-view { height: 100%; animation: viewIn .4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* mock app (light) */
.app { height: 100%; border-radius: 12px; background: #f8fafe; color: #0b1630; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.app-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e6edf7; font-size: 13px; }
.app-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.app-brand i { width: 28px; height: 28px; border-radius: 8px; background: #2563eb; display: grid; place-items: center; color: #fff; }
.app-brand svg { width: 15px; height: 15px; fill: #fff; stroke: none; }
.app-links { display: flex; gap: 24px; color: #5b6b86; font-weight: 500; }
.app-links b { color: #2563eb; font-weight: 600; }
.app-btn { justify-self: end; padding: 9px 14px; border-radius: 8px; background: #0b1630; color: #fff; font-weight: 600; }
.app-grid { flex: 1; display: grid; grid-template-columns: 270px 1fr; grid-template-rows: auto 1fr auto; gap: 18px; padding: 24px; min-height: 0; }
.card { background: #fff; border: 1px solid #e3eaf5; border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(11, 22, 48, .04); }
.lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: #5b6b86; }
.rev .big { display: block; font-size: 34px; letter-spacing: -.03em; margin: 12px 0 10px; font-variant-numeric: tabular-nums; }
.delta { font-size: 12.5px; color: #5b6b86; }
.delta em { font-style: normal; font-weight: 600; color: #15803d; background: #dcfce7; padding: 3px 7px; border-radius: 6px; margin-right: 6px; }
.chart { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #2563eb; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #2563eb; }
.chart-body { position: relative; flex: 1; margin-top: 16px; min-height: 0; }
.chart-body svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-ghost {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12.5px; color: #4b5b76; border-radius: 10px;
  background: linear-gradient(100deg, #f3f6fb 30%, #e9eff9 50%, #f3f6fb 70%); background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite; transition: opacity .4s;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.chart-body.drawn .chart-ghost { opacity: 0; }
.chart-body .grid path { stroke: #e6edf7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-body .line { fill: none; stroke: #2563eb; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-body .area { fill: url(#scFill); stroke: none; }
.chart-body .bars rect { stroke: none; }
.chart-body .bars rect { fill: #c7dbfb; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .6s var(--ease); }
.chart-body .line, .chart-body .area { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.chart-body.drawn .line, .chart-body.drawn .area { clip-path: inset(0 0 0 0); }
.chart-body.drawn .bars rect { transform: scaleY(1); }
.chart-body .dot { fill: #fff; stroke: #2563eb; stroke-width: 3; opacity: 0; transition: opacity .3s 1.5s; }
.chart-body.drawn .dot { opacity: 1; }
.act { grid-row: 2 / 4; display: flex; flex-direction: column; }
.act ul { list-style: none; margin-top: 12px; }
.act li { display: flex; justify-content: space-between; align-items: flex-end; padding: 13px 0; border-top: 1px solid #eef2f8; font-size: 13.5px; }
.act li:first-child { border-top: 0; }
.act li div { display: flex; flex-direction: column; gap: 4px; }
.act small, .act time { color: #5b6b86; font-size: 12.5px; }
.stats { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat span { font-size: 12.5px; color: #5b6b86; font-weight: 500; }
.stat strong { display: block; font-size: 22px; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* agent log */
.log { height: 100%; padding: 26px; border-radius: 12px; background: #050b1a; border: 1px solid rgba(147, 197, 253, .1); }
.log ol { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.log li { position: relative; padding: 14px 16px 14px 46px; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-mute); }
.log li small { font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); }
.log li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(147, 197, 253, .25); }
.log li.ok { color: var(--ink); }
.log li.ok::before { background: #2563eb; border-color: #2563eb; box-shadow: inset 0 0 0 3px #050b1a; }
.log li.run { color: var(--ink); background: rgba(37, 99, 235, .1); }
.log li.run::before { border-color: rgba(96, 165, 250, .25); border-top-color: var(--blue-2); animation: scspin .8s linear infinite; }

/* code */
.code { height: 100%; margin: 0; padding: 26px; border-radius: 12px; background: #050b1a; border: 1px solid rgba(147, 197, 253, .1); overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: #cfe2ff; }
.code .c { color: #5f7396; } .code .k { color: #93c5fd; } .code .s { color: #a7f3d0; } .code .f { color: #fde68a; } .code .t { color: #f9a8d4; }
.code .add { display: inline-block; width: 100%; background: rgba(34, 197, 94, .1); box-shadow: -26px 0 0 rgba(34, 197, 94, .1), 26px 0 0 rgba(34, 197, 94, .1); color: #bbf7d0; }

/* data */
.tbl { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; background: #050b1a; font-family: var(--mono); font-size: 12.5px; }
.tbl th { text-align: left; padding: 14px 18px; color: var(--ink-mute); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; border-bottom: 1px solid rgba(147, 197, 253, .1); }
.tbl td { padding: 12px 18px; border-bottom: 1px solid rgba(147, 197, 253, .06); color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.tbl td:nth-child(2) { color: var(--ink); }
.tbl .pill { padding: 3px 8px; border-radius: 6px; font-size: 11px; background: rgba(37, 99, 235, .16); color: var(--blue-2); }

/* responsive */
@media (max-width: 1080px) {
  .sc-body { grid-template-columns: 1fr; height: auto; }
  .sc-chat { display: none; }
  .sc-panel { height: 640px; }
  .sc-tabs button { padding: 0 12px; }
}
@media (max-width: 720px) {
  .sc-bar { grid-template-columns: 1fr; height: auto; padding: 0; }
  .sc-logos, .sc-wallet { display: none; }
  .sc-tabs { justify-content: space-around; }
  .sc-tabs button svg { display: none; }
  .sc-panel { padding: 12px; height: 760px; }
  .app-links { display: none; }
  .app-nav { grid-template-columns: 1fr auto; }
  .app-grid { grid-template-columns: 1fr; grid-template-rows: none; padding: 14px; gap: 12px; overflow: auto; }
  .chart, .act, .stats { grid-column: auto; grid-row: auto; }
  .chart-body { height: 180px; flex: none; }
  .stats { gap: 10px; }
  .stat strong { font-size: 18px; }
}

/* ============ WORKFLOW: integrations grid ============ */
.workflow { padding: 40px 4vw 140px; text-align: center; }
.workflow h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.03em; }
.wf-rule { display: block; width: 56px; height: 2px; margin: 22px auto 56px; border-radius: 2px; background: var(--blue-2); }
.wf-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.wf-card {
  display: flex; align-items: center; gap: 20px; padding: 26px 28px; border-radius: 14px;
  background: #070c19; border: 1px solid rgba(147, 197, 253, .09);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease) calc(var(--i) * 60ms), transform .6s var(--ease) calc(var(--i) * 60ms), border-color .25s, background .25s;
}
.workflow.in .wf-card { opacity: 1; transform: none; }
.wf-card:hover { border-color: rgba(96, 165, 250, .45); background: #0a1124; }
a.wf-card { color: inherit; }
.wf-ico {
  flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: #04070f; border: 1px solid rgba(147, 197, 253, .1);
}
.wf-ico svg { width: 28px; height: 28px; }
.wf-txt { display: flex; flex-direction: column; gap: 7px; }
.wf-txt b { font-size: 17px; font-weight: 600; }
.wf-txt small { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); }
@media (max-width: 1000px) { .wf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .wf-grid { grid-template-columns: 1fr; gap: 12px; } .wf-card { padding: 18px 20px; } }
@media (prefers-reduced-motion: reduce) { .wf-card { opacity: 1; transform: none; } }
