body { background: #fff; }
header.referenceHero {
  padding: 16px max(28px, calc((100% - 1240px) / 2)) 12px;
  min-height: 324px;
  background: #070d18 url("hero-reference.png") center 48% / cover no-repeat;
  overflow: hidden;
}
.referenceTopbar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 24px; }
.referenceIdentity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.referenceIdentity .brandMark { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #727888; border-radius: 5px; background: #252936; color: white; font-size: 19px; font-weight: 900; }
.referenceIdentity .brandMark::before { display: none; }
.referenceIdentity .brandKicker { margin: 0 0 2px; font-size: 10px; font-weight: 700; color: #f7f7f9; text-transform: none; line-height: 1.3; }
.brandSubline { color: #9196a2; font-size: 9px; line-height: 1.3; }
.referenceTopbar .userToolbar { margin: 0; padding: 0; gap: 9px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; font-size: 10px; }
.referenceTopbar .testerBadge { flex: initial; max-width: 235px; font-size: 10px; border: 1px solid #524b47; background: #252123cc; color: #f7f5f4; border-radius: 5px; padding: 6px 9px; }
.referenceTopbar .userToolbar > button, .referenceTopbar #logoutBtn { min-height: 27px; padding: 5px 11px; border: 1px solid #554b45; border-radius: 5px; background: #342a27cc; color: #f5f1ef; font-size: 10px; text-decoration: none; white-space: nowrap; }
.referenceTopbar .userToolbar > button:hover, .referenceTopbar #logoutBtn:hover { background: #514036; }
.referenceTopbar .languageSwitcher { flex-shrink: 0; background: #242023b3; border-color: #554b45; border-radius: 5px; }
.referenceTopbar .userToolbar .languageSwitcher button { min-height: 22px; font-size: 9px; padding: 3px 6px; }
.referenceTopbar .userToolbar .languageSwitcher button.active { color: #fff; background: #5c4334; }
.heroInner { position: relative; padding-top: 24px; }
.heroCopy { width: 54%; max-width: 690px; }
header.referenceHero h1 { font-size: 48px; line-height: 1.22; font-weight: 750; margin: 0 0 14px; color: #f6f7fa; }
header.referenceHero .heroIntro { margin: 0; color: #e0e2e7; font-size: 13px; line-height: 1.85; font-weight: 400; }
header.referenceHero .brandMeta { margin-top: 16px; display: block; }
header.referenceHero .signature { display: inline-flex; margin: 0; padding: 5px 10px; font-size: 11px; font-weight: 500; border: 1px solid #4d5565; border-radius: 999px; color: #f0f0f4; background: #101a2bb3; }
header.referenceHero .lastUpdated { margin: 8px 0 0; color: #bac0cc; font-size: 10px; line-height: 1.4; }
main.grid { width: calc(100% - 100px); max-width: 1240px; padding: 20px 28px 40px; margin: 0 auto; }
main > #overviewSection { padding-bottom: 22px; margin-bottom: 26px; }
#overviewSection > h2 { font-size: 20px; line-height: 1.35; color: #121621; margin: 0 0 8px; }
#overviewSection > .hint { margin: 0; color: #7b7d84; font-size: 10.5px; line-height: 1.6; }
.capabilityGrid { margin-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.capability { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 3px 8px; align-content: start; border: 1px solid #e7e9ef; border-radius: 6px; padding: 7px; background: #fdfefe; }
.capability::before { width: 25px; height: 25px; grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 4px 0 0; background: #41699c; }
.capability strong { grid-column: 2; font-size: 12px; color: #131a2a; margin: 0; line-height: 1.4; }
.capability p { grid-column: 2; font-size: 9px; line-height: 1.4; color: #717983; margin: 0; }
.capability:nth-child(2)::before { background: #be8050; mask-image: url("icons/box.svg"); -webkit-mask-image: url("icons/box.svg"); }
.capability:nth-child(3)::before { background: #3c896c; mask-image: url("icons/scale.svg"); -webkit-mask-image: url("icons/scale.svg"); }
.capability:nth-child(4)::before { background: #7965a8; mask-image: url("icons/code-xml.svg"); -webkit-mask-image: url("icons/code-xml.svg"); }
.capability:nth-child(5)::before { background: #5f65aa; mask-image: url("icons/user-round.svg"); -webkit-mask-image: url("icons/user-round.svg"); }
.capability:nth-child(6)::before { background: #bf8750; }
.capability:nth-child(7)::before { background: #358566; }
.capability:nth-child(8)::before { background: #8270a7; mask-image: url("icons/bot.svg"); -webkit-mask-image: url("icons/bot.svg"); }
.techDeck { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; }
.techPanel h3 { margin: 0 0 4px; color: #171c29; font-size: 14px; line-height: 1.4; }
.techPanel p { margin: 0 0 8px; color: #747b84; font-size: 10.5px; line-height: 1.55; }
.featurePanel { border-top: 1px solid #e8eaf0; padding-top: 10px; }
.featureTitleGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px 10px; margin-top: 5px; }
.featureChip:last-child { grid-column: 1 / -1; }
.featureChip { min-height: 29px; padding: 4px 8px; background: #fbfcfd; border-color: #e3e6ef; border-radius: 5px; gap: 7px; }
.featureChip span { width: 19px; height: 19px; flex: 0 0 19px; font-size: 10px; background: #0c153f; color: #fff; border-radius: 999px; }
.featureChip b { font-size: 10.5px; color: #253045; line-height: 1.4; }
.modelStack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.modelPill { background: #0d1235; color: #fff; border-radius: 5px; padding: 5px 6px; font-size: 9.5px; line-height: 1.4; }
.sampleStats { margin-top: 6px; gap: 16px; }
.sampleStat b { font-size: 17px; color: #53442c; line-height: 1.25; }
.sampleStat span { font-size: 9px; color: #7a7f88; }
.metricGrid { margin: 16px 0 0; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { background: linear-gradient(120deg, #11182e, #1c2942); border: 1px solid #273049; border-radius: 6px; padding: 8px 10px; color: #fff; min-height: 88px; }
.metric:nth-child(2) { background: linear-gradient(120deg, #101633, #3b2d33); border-color: #3f3948; }
.metric:nth-child(3) { background: linear-gradient(120deg, #101f24, #263b36); border-color: #34483e; }
.metric:nth-child(4) { background: linear-gradient(120deg, #202137, #39323c); border-color: #494353; }
.metric .num { font-size: 30px; line-height: 1.05; color: #fff; font-weight: 750; }
.metric .label { margin-top: 4px; font-size: 9px; line-height: 1.3; color: #e2e4eb; }
.productShowcase { margin-top: 12px; padding-top: 12px; border-color: #e6e8ed; }
.productShowcaseHeader h3 { color: #131827; font-size: 19px; line-height: 1.4; margin: 0 0 5px; }
.productShowcaseHeader p { max-width: none; font-size: 10.5px; line-height: 1.65; color: #767d86; }
.productShowcaseGrid { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.productShot { border-color: #e3e6ed; }
.productShot img { object-fit: contain; aspect-ratio: auto; width: 100%; height: auto; display: block; }
.productShotBody { padding: 12px; }
.productShotBody h4 { font-size: 13px; margin: 0 0 5px; }
.productShotBody p { font-size: 10.5px; line-height: 1.7; margin: 0; }
.researchReference { margin: 20px 0 0; padding: 18px 0 0; border-bottom: 0; }
.researchReference h3 { font-size: 15px; }
.researchReferenceBody { font-size: 11px; }
@media (max-width: 1150px) {
  header.referenceHero { padding-left: 50px; padding-right: 50px; }
  header.referenceHero h1 { font-size: 44px; }
  header.referenceHero .heroIntro { font-size: 12px; line-height: 1.8; }
  .heroCopy { width: 55%; }
  .referenceTopbar { gap: 12px; }
  .referenceTopbar .userToolbar { gap: 6px; }
  .referenceTopbar .testerBadge { max-width: 185px; }
}
@media (max-width: 850px) {
  header.referenceHero { padding-left: 28px; padding-right: 28px; }
  .referenceTopbar { align-items: start; }
  .referenceTopbar .userToolbar { flex-wrap: wrap; }
  .heroCopy { width: 60%; }
  header.referenceHero h1 { font-size: 30px; }
  main.grid { width: calc(100% - 32px); padding-left: 20px; padding-right: 20px; }
  .capabilityGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability p { font-size: 11px; }
  .featureTitleGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modelStack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metricGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  header.referenceHero { min-height: 0; padding: 15px 16px 18px; background-position: right bottom; background-size: auto 176px; }
  .referenceTopbar { display: block; }
  .referenceIdentity { gap: 8px; }
  .referenceIdentity .brandKicker { font-size: 10px; }
  .referenceIdentity .brandMark { width: 30px; height: 30px; flex-basis: 30px; font-size: 17px; }
  .referenceTopbar .userToolbar { margin-top: 13px; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .referenceTopbar .testerBadge { max-width: none; padding: 4px 6px; flex: 1 0 calc(100% - 100px); font-size: 9px; min-width: 0; }
  .referenceTopbar .userToolbar > button, .referenceTopbar #logoutBtn { min-height: 25px; font-size: 9px; padding: 4px 7px; }
  .referenceTopbar .languageSwitcher { padding: 1px; }
  .referenceTopbar .userToolbar .languageSwitcher button { min-height: 20px; font-size: 9px; }
  .heroInner { padding-top: 27px; padding-bottom: 148px; }
  .heroCopy { width: 100%; max-width: none; }
  header.referenceHero h1 { font-size: 26px; line-height: 1.25; margin-bottom: 12px; }
  header.referenceHero .heroIntro { font-size: 11px; line-height: 1.8; }
  header.referenceHero .brandMeta { margin-top: 14px; }
  header.referenceHero .signature { font-size: 10px; padding: 4px 9px; }
  header.referenceHero .lastUpdated { font-size: 9px; margin-top: 7px; }
  main.grid { width: 100%; padding: 20px 16px 32px; }
  #overviewSection > h2 { font-size: 19px; }
  #overviewSection > .hint { font-size: 10.5px; }
  .capabilityGrid { gap: 8px; }
  .capability { grid-template-columns: 20px minmax(0, 1fr); gap: 3px 7px; padding: 9px; }
  .capability::before { width: 20px; height: 20px; }
  .capability strong { font-size: 11px; }
  .capability p { font-size: 10px; line-height: 1.65; }
  .featureTitleGrid { grid-template-columns: minmax(0, 1fr); }
  .techDeck { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .modelStack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric .num { font-size: 25px; }
  .metric .label { font-size: 10px; }
  .metric { padding: 10px; }
  .productShowcaseGrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  header.referenceHero .heroIntro { font-size: 10.5px; }
  .heroInner { padding-bottom: 112px; }
  header.referenceHero { background-size: auto 150px; }
}
.singleModeRow > label { display: block; }
#analysisMode, #analysisMode:focus-visible { position: static; width: 100%; height: 38px; opacity: 1; overflow: visible; clip-path: none; margin: 0; }
