/* Demos page visual system */
.page-hero {
  min-height: 500px;
  padding: 108px 72px 56px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 20%, rgba(25,199,212,.18), transparent 28%),
    linear-gradient(135deg,#003744 0%,#005160 58%,#003a48 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(25,199,212,.16) 1px,transparent 1px);
  background-size: 18px 18px;
  opacity: .22;
  pointer-events: none;
}
.page-hero::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(0,38,48,.97) 0%,rgba(0,38,48,.82) 42%,rgba(0,38,48,.32) 72%,rgba(0,38,48,.16) 100%); pointer-events:none; }
.demos-hero-art {
  position: absolute;
  right: -2%;
  top: 50%;
  width: 76%;
  height: 100%;
  display: block;
  z-index: 0;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.25));
  transform: translateY(-50%);
  opacity: .34;
  pointer-events: none;
}
.page-hero-inner { width: min(1500px,100%); max-width: 1500px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-inner .eyebrow { width: max-content; color: #5cd4dc; border: 1px solid rgba(92,212,220,.28); background: rgba(92,212,220,.07); border-radius: 999px; padding: 7px 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.page-hero h1 { max-width: 520px; margin: 14px 0 17px; color: #fff; font-size: clamp(42px,5vw,68px); font-weight: 800; line-height: .98; letter-spacing: -2.4px; }
.page-hero h1 .accent-blue { color: #19c7d4; }
.page-hero p { max-width: 520px; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.65; }

.section-light#demos { padding: 80px 72px 90px; background: #f7f9fc; }
#demos .section-header { width: min(1500px,100%); max-width: 1500px; margin: 0 auto 22px; text-align: left; }
#demos .section-eyebrow { color: #f58220; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
#demos .section-header h2 { margin: 8px 0 10px; color: #071d36; font-size: clamp(32px,3.5vw,46px); font-weight: 800; line-height: 1.08; letter-spacing: -1.4px; }
#demos .section-sub { max-width: 790px; color: #5b6d7a; font-size: 15px; line-height: 1.65; }
.demo-note { width: min(1500px,100%); margin: 0 auto 30px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; color: #526471; background: #fff; border: 1px solid #dfe9ec; border-radius: 10px; box-shadow: 0 6px 18px rgba(5,46,60,.06); font-size: 12.5px; line-height: 1.55; }
.demo-note-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; color: #087f88; background: #e7f7f7; font-size: 0; }
.demo-note-icon::before { content: "▣"; font-size: 14px; }
.demos-grid { width: min(1500px,100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.demo-card { min-width: 0; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #dfe7ea; border-radius: 14px; box-shadow: 0 9px 25px rgba(5,46,60,.08); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.demo-card:hover { transform: translateY(-5px); border-color: rgba(25,199,212,.42); box-shadow: 0 16px 34px rgba(5,46,60,.13); }
.demo-thumb { height:245px; flex:0 0 245px; position:relative; overflow:hidden; background:#fff; background-position:center; background-repeat:no-repeat; background-size:cover; }
.demo-thumb-link { position:absolute; inset:0; display:block; overflow:hidden; z-index:1; }
.demo-thumb-link img { position:absolute; inset:12px; width:calc(100% - 24px); height:calc(100% - 24px); display:block; object-fit:contain; object-position:center; border-radius:8px; transition:transform .28s ease; transform-origin:center; }
.demo-thumb-link:hover img,.demo-thumb-link:focus-visible img { transform:scale(1.045); }
.demo-thumb-link:focus-visible { outline:3px solid #19c7d4; outline-offset:-4px; border-radius:8px; }
.demo-thumb::after { content: "▶"; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%,-50%); display: grid; place-items: center; padding-left: 3px; color: #fff; background: rgba(3,58,70,.82); border: 2px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 9px 25px rgba(0,0,0,.22); font-size: 17px; }
.demo-thumb-icon { display: none; }
.demo-thumb::after { z-index:2; pointer-events:none; }
.demo-body { flex: 1; display: flex; flex-direction: column; padding: 21px 22px 23px; }
.demo-num { width: max-content; margin-bottom: 9px; padding: 5px 9px; border-radius: 999px; color: #0788a6; background: #e8f6fb; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.demo-card:nth-child(3n+2) .demo-num { color: #d16a09; background: #fff1e5; }
.demo-card:nth-child(3n) .demo-num { color: #15885f; background: #e8f8f1; }
.demo-body h3 { margin: 0 0 9px; color: #0b263f; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.25px; }
.demo-body p { flex: 1; margin: 0 0 18px; color: #62727f; font-size: 14px; line-height: 1.62; }
.demo-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #b9dfe8; border-radius: 999px; color: #0788a6; background: #f8fdff; text-decoration: none; font-size: 12px; font-weight: 700; transition: color .2s ease,background .2s ease,border-color .2s ease; }
.demo-card:nth-child(3n+2) .demo-link { color: #dd720d; border-color: #f4d0ad; background: #fffaf5; }
.demo-card:nth-child(3n) .demo-link { color: #168961; border-color: #bfe4d4; background: #f7fdf9; }
.demo-link:hover { color: #fff !important; background: #087f88 !important; border-color: #087f88 !important; }

.cta-section { margin: 0; padding: 94px 24px 100px; position: relative; overflow: hidden; text-align: center; background: radial-gradient(circle at 88% 24%,rgba(25,199,212,.11),transparent 22%),linear-gradient(135deg,#effbfa,#e8f7f7); border-top: 1px solid #d9eeee; }
.cta-section::before { content: ""; position: absolute; left: 3%; bottom: 7%; width: 150px; height: 100px; background-image: radial-gradient(#83d7da 1.5px,transparent 1.5px); background-size: 12px 12px; opacity: .35; }
.cta-section h2 { position: relative; color: #071d36; font-size: clamp(36px,4.4vw,58px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; }
.cta-section p { position: relative; max-width: 660px; margin: 20px auto 26px; color: #506674; font-size: 16px; line-height: 1.65; }
.cta-btns { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (min-width: 761px) {
  .demos-hero-art {
    top: 90px;
    right: 2%;
    width: 68%;
    height: calc(100% - 130px);
    transform: none;
    object-position: right center;
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .page-hero { min-height: 470px; padding-left: 48px; padding-right: 48px; }
  .demos-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .page-hero { min-height: 520px; padding: 104px 24px 70px; align-items: center; text-align: left; }
  .page-hero-inner .eyebrow { margin-left: 0; margin-right: 0; }
  .page-hero h1,.page-hero p { margin-left: 0; margin-right: 0; }
  .demos-hero-art { top:50%; right:-18%; bottom:auto; width:125%; height:112%; opacity:.21; transform:translateY(-50%); object-position:center; }
  .section-light#demos { padding: 58px 24px 68px; }
  .demos-grid { grid-template-columns: 1fr; }
  .demo-card { min-height: 0; }
  .demo-thumb { height: 220px; flex-basis: 220px; }
  .cta-section { padding: 68px 24px 74px; }
}
@media (max-width: 480px) {
  .page-hero { min-height: 500px; padding-bottom: 64px; }
  .demos-hero-art { height:108%; }
  .page-hero h1 { font-size: 42px; }
  .demo-thumb { height: 190px; flex-basis: 190px; }
  .cta-btns a { width: 100%; justify-content: center; }
}
