.agent-showcase {
  --demo-drawer-width: 280px;
  --demo-page-min-width: 440px;
  --demo-frame-min-width: 720px;
  display: grid;
  grid-template-columns: minmax(var(--demo-frame-min-width), 1fr) minmax(240px, 336px);
  align-items: start;
  gap: 36px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 92px 32px 76px;
}

.agent-showcase .live-demo-section {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.agent-showcase .expert-hero,
.agent-showcase .hero {
  width: 100%;
  max-width: 336px;
  margin: 0;
  padding: 22px 0 0;
  text-align: left;
}

.agent-showcase .expert-hero h1,
.agent-showcase .hero h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
}

.agent-showcase .expert-hero p,
.agent-showcase .hero p {
  max-width: 100%;
  margin: 0 0 30px;
}

.agent-showcase .hero-btns {
  justify-content: flex-start;
}

.agent-showcase .hero-note {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.55;
}

.showcase-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.live-demo-section {
  padding: 0 48px 72px;
  max-width: 1180px;
  margin: 0 auto;
}

.live-demo-frame {
  display: grid;
  grid-template-columns: minmax(var(--demo-page-min-width, 560px), 1fr) var(--demo-drawer-width, 280px);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  height: 637px;
  overflow: hidden;
  background: #eef3f5;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 34px rgba(17, 24, 39, .09);
}

.demo-browser {
  position: relative;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  background: #fff;
  border-right: 1px solid var(--border);
}

.demo-browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #f4f7f8;
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c4d0d5;
}

.demo-address {
  min-width: 0;
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  color: var(--dim);
  background: #fff;
  border: 1px solid #e0e9ec;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.demo-page {
  position: relative;
  height: calc(100% - 38px);
  padding: 30px 32px 38px 26px;
  overflow: hidden;
}

.demo-page::after {
  content: "";
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 82%);
}

.demo-site-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.demo-page h3.demo-paper-title {
  position: absolute;
  top: 30px;
  right: 32px;
  max-width: 210px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  text-align: right;
  overflow-wrap: break-word;
}

.demo-page p {
  max-width: 620px;
  color: var(--muted);
  font-size: 13.2px;
  line-height: 1.48;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.demo-page h4 {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  margin: 16px 0 7px;
}

.demo-page--shop {
  padding: 0;
  color: #161616;
  background: #fff;
}

.shop-nav {
  height: 58px;
  display: grid;
  grid-template-columns: 150px 1fr 96px;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid #eef1f2;
  font-size: 12px;
}

.shop-logo {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .04em;
}

.shop-logo::before {
  content: "◒";
  margin-right: 7px;
  font-size: 25px;
}

.shop-menu {
  overflow: hidden;
  color: #222;
  font-weight: 700;
  white-space: nowrap;
}

.shop-icons {
  color: #111;
  font-size: 20px;
  letter-spacing: .22em;
  white-space: nowrap;
}

.shop-layout {
  display: grid;
  grid-template-columns: 56px minmax(250px, 1fr) minmax(230px, 300px);
  gap: 22px;
  padding: 26px 24px 20px;
}

.shop-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-thumbs span {
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #e1e1e1;
  border-radius: 5px;
  background: #fafafa;
}

.shop-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.shop-thumbs .is-active {
  border-color: #ff7a1a;
}

.shop-photo {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f8f8;
}

.shop-photo img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: contain;
  padding: 22px;
}

.shop-info h2 {
  margin: 10px 0 20px;
  color: #101010;
  font-size: 28px;
  line-height: 1;
}

.shop-info p {
  max-width: none;
  margin-bottom: 16px;
  color: #262626;
  font-size: 14px;
  line-height: 1.34;
}

.shop-stars {
  color: #ffb000;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.shop-stars span {
  color: #333;
  font-weight: 500;
}

.shop-price {
  color: #ff7418;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 16px;
}

.shop-price s {
  color: #777;
  font-size: 16px;
}

.shop-coupon {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: #211d19;
  border-radius: 3px;
  margin-bottom: 14px;
}

.shop-coupon strong {
  font-size: 28px;
}

.shop-coupon span,
.shop-coupon b {
  font-size: 11px;
  font-weight: 600;
}

.shop-coupon em {
  padding: 8px 14px;
  color: #211d19;
  background: #ffe1a4;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.shop-countdown {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffd9a7;
  border-radius: 8px;
  color: #cf2245;
  margin-bottom: 14px;
}

.shop-countdown b {
  font-size: 15px;
}

.shop-countdown span {
  padding: 7px 8px;
  background: #fff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.shop-shipping {
  color: #ff7418;
  font-size: 13px;
  margin: 10px 0 16px;
}

.shop-swatches {
  color: #333;
  font-size: 13px;
}

.shop-swatches i {
  display: inline-block;
  width: 27px;
  height: 27px;
  margin-left: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 0 1px #ccc;
  vertical-align: middle;
}

.shop-swatches i:nth-child(3) { background: #000; }
.shop-swatches i:nth-child(4) { background: #19d4d2; }

.shop-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 24px 22px 102px;
  padding: 22px;
  border-radius: 14px;
  background: #f7f7f7;
}

.shop-specs div {
  display: grid;
  gap: 4px;
}

.shop-specs b {
  color: #333;
  font-size: 12px;
}

.shop-specs strong {
  color: #ff7418;
  font-size: 16px;
}

.demo-page--paper,
.demo-page--science {
  padding: 0 34px 40px;
  background: #fff;
}

.pub-masthead {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -34px 22px;
  padding: 0 34px;
  color: #fff8f3;
  background: #9a5148;
  border-bottom: 3px solid #d4b2a8;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .01em;
}

.demo-page--science .pub-masthead {
  background: #904943;
  border-bottom-color: #cfa9a0;
}

.pub-masthead span {
  color: #f4ded8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-page--paper h3.demo-paper-title,
.demo-page--science h3.demo-paper-title {
  position: static;
  max-width: 100%;
  margin: 0 0 18px;
  text-align: left;
  font-size: 20px;
}

.demo-page--resume {
  padding: 30px 34px 44px;
  background: #fbfcfd;
}

.resume-head {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 2px solid #111827;
}

.resume-head h2 {
  font-size: 30px;
  line-height: 1;
  margin: 0 0 6px;
}

.resume-head span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.resume-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
}

.resume-grid aside {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.resume-grid aside b {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.resume-grid aside span {
  padding: 5px 7px;
  border: 1px solid #dbe5e9;
  border-radius: 999px;
  background: #fff;
}

.resume-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ecef;
}

.demo-page--legal {
  padding: 0;
  background: #f7f8fa;
}

.legal-top {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  color: #fff;
  background: #151922;
}

.legal-top b {
  font-size: 22px;
  letter-spacing: .08em;
}

.legal-top span {
  color: #b8c3cc;
  font-size: 12px;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px 28px 42px;
}

.legal-layout aside {
  display: grid;
  align-content: start;
  gap: 9px;
  color: #667680;
  font-size: 12px;
}

.legal-layout aside b {
  color: #111827;
  text-transform: uppercase;
}

.legal-layout main {
  padding: 22px;
  background: #fff;
  border: 1px solid #dfe7eb;
}

.legal-layout h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.legal-layout section {
  padding-top: 5px;
  border-top: 1px solid #edf2f4;
}

.demo-page--news {
  padding: 0 34px 44px;
  background: #fff;
}

.news-masthead {
  padding: 20px 0 18px;
  border-bottom: 1px solid #111;
  color: #111;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 800;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 28px;
  padding-top: 24px;
}

.news-grid article h2 {
  margin: 0 0 10px;
  color: #111;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.12;
}

.news-byline {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 18px;
}

.news-grid aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid #d6d6d6;
  color: #4b5563;
  font-size: 12px;
}

.news-grid aside b {
  color: #111;
  font-size: 12px;
  text-transform: uppercase;
}

.demo-selectable {
  position: relative;
  border-radius: 6px;
  transition: background-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.demo-selectable.is-hovered {
  background: rgba(196, 224, 255, .56);
  box-shadow: 0 0 0 3px rgba(196, 224, 255, .56);
}

.demo-selectable.is-selected {
  background: rgba(164, 208, 255, .78);
  box-shadow: 0 0 0 3px rgba(164, 208, 255, .78);
}

.demo-cursor {
  position: absolute;
  z-index: 3;
  left: var(--cursor-x, 54%);
  top: var(--cursor-y, 58%);
  width: 16px;
  height: 22px;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(17,24,39,.18));
  transform: translate(-4px, -3px);
  transition: left .48s cubic-bezier(.22,.8,.32,1), top .48s cubic-bezier(.22,.8,.32,1), opacity .18s ease, transform .12s ease;
  pointer-events: none;
}

.demo-cursor::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid #111827;
  border-top: 12px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(-12deg);
}

.demo-cursor::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  width: 8px;
  height: 9px;
  border-radius: 2px;
  background: #111827;
  transform: rotate(-22deg);
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor.is-clicking {
  transform: translate(-4px, -3px) scale(.86);
}

.demo-drawer {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  background: #f8fbfc;
}

.demo-drawer-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.demo-drawer-title {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.demo-drawer-title span {
  display: block;
  overflow: hidden;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-d);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.demo-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: status-pulse 1.2s ease infinite;
}

.demo-chat {
  grid-row: 2;
  min-height: 0;
  padding: 16px;
  overflow-y: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
}

.demo-chat::-webkit-scrollbar {
  display: none;
}

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

.demo-msg {
  max-width: 92%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.48;
  box-shadow: 0 1px 2px rgba(17,24,39,.04);
}

.demo-msg.user {
  align-self: flex-end;
  color: var(--text);
  background: #eef2f4;
  border: 1px solid #d7e0e4;
  border-bottom-right-radius: 4px;
}

.demo-msg-selected {
  display: block;
  margin-bottom: 8px;
  padding: 7px 8px;
  color: #42515a;
  background: #f7f9fa;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.demo-msg-question {
  display: block;
}

.demo-msg.assistant {
  align-self: flex-start;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.demo-msg-label {
  display: block;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.demo-analysis {
  display: grid;
  gap: 8px;
}

.demo-analysis section {
  padding: 8px;
  background: #f7fafb;
  border: 1px solid #e0e8ec;
  border-radius: 9px;
}

.demo-analysis h5 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.demo-analysis ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-analysis li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.38;
}

.demo-analysis li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8a98a2;
}

.demo-input {
  grid-row: 3;
  position: relative;
  z-index: 2;
  width: auto;
  max-height: 146px;
  min-height: 52px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 9px 10px 9px 13px;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.35;
}

.demo-input-text {
  flex: 1 1 120px;
  min-width: 0;
  max-height: 58px;
  overflow: hidden;
  color: var(--text);
}

.demo-input-selection {
  display: none;
  max-width: 100%;
  color: #0867b7;
  background: #e7f2ff;
  border: 1px solid #b9dbff;
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.demo-input-selection.is-visible {
  display: inline-flex;
}

.demo-send {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #8a98a2;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.typing-caret-demo {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -.14em;
  animation: caret-blink .8s steps(1) infinite;
}

@keyframes status-pulse {
  50% { opacity: .38; transform: scale(.72); }
}

@media (max-width: 1280px) {
  .agent-showcase {
    grid-template-columns: minmax(var(--demo-frame-min-width), 1fr) minmax(220px, 300px);
    gap: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .agent-showcase .expert-hero,
  .agent-showcase .hero {
    max-width: 300px;
    padding-top: 12px;
  }

  .agent-showcase .expert-hero h1,
  .agent-showcase .hero h1 {
    font-size: clamp(28px, 3vw, 40px);
  }

  .agent-showcase .expert-hero p,
  .agent-showcase .hero p {
    font-size: 16px;
  }

  .agent-showcase .hero-note {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .agent-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 84px 24px 64px;
  }

  .agent-showcase .expert-hero,
  .agent-showcase .hero {
    order: -1;
    max-width: 680px;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .live-demo-frame {
    grid-template-columns: 1fr;
    grid-template-rows: 546px minmax(0, 390px);
    height: 936px;
  }

  .demo-browser {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .demo-page {
    height: calc(100% - 38px);
    padding: 26px 24px 34px;
  }

  .demo-drawer {
    height: 390px;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .expert-hero,
  .hero,
  .agent-showcase .expert-hero,
  .agent-showcase .hero {
    max-width: 100%;
    overflow: hidden;
  }

  .expert-hero h1,
  .hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: min(100%, 260px);
  }

  .live-demo-section {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .agent-showcase {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
  }

  .live-demo-frame {
    max-width: 100%;
    height: 936px;
  }

  .demo-page {
    height: calc(100% - 38px);
    padding: 22px 16px 28px;
  }

  .demo-site-kicker {
    margin-bottom: 8px;
  }

  .demo-page h3.demo-paper-title {
    position: static;
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 13px;
    text-align: left;
  }

  .demo-page p {
    max-width: 100%;
    font-size: 12.6px;
    line-height: 1.48;
    overflow-wrap: anywhere;
  }

  .demo-page h4 {
    font-size: 13px;
    margin: 14px 0 6px;
  }

  .demo-input {
    margin: 0 10px 12px;
    font-size: 11.5px;
  }

}
