:root {
  --demos-ink: #020617;
  --demos-muted: #475569;
  --demos-line: #dbe4ee;
  --demos-soft: #f6fafc;
  --demos-accent: #00687a;
  --demos-bright: #06b6d4;
}

.website-demos-page,
.website-demos-page * { box-sizing: border-box; }

.website-demos-page {
  margin: 0;
  background: var(--theme-bg, #ffffff);
  color: var(--theme-text, var(--demos-ink));
  font-family: "IBM Plex Sans", sans-serif;
}

.website-demos-page main { overflow: hidden; }

.demos-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.demos-eyebrow {
  margin: 0 0 15px;
  color: var(--demos-accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.demos-hero {
  position: relative;
  padding: 170px 0 92px;
  border-bottom: 1px solid var(--demos-line);
  background:
    radial-gradient(circle at 70% 42%, rgba(6, 182, 212, .15), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f2fbfd 58%, #eef8fa 100%);
}

.demos-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(6, 131, 158, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 131, 158, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .8) 45%, transparent);
  pointer-events: none;
}

.demos-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(52px, 7vw, 110px);
}

.demos-hero-copy { max-width: 640px; }

.demos-hero h1,
.demos-section-heading h2,
.demos-process h2,
.demos-faq-layout h2,
.demos-cta h2 {
  margin: 0;
  color: var(--demos-ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
}

.demos-hero h1 { font-size: clamp(3rem, 5.15vw, 5rem); line-height: .99; }

.demos-lead {
  max-width: 630px;
  margin: 27px 0 0;
  color: var(--demos-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
}

.demos-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 33px; }

.demos-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--demos-accent);
  border-radius: 7px;
  background: var(--demos-accent);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.demos-button:hover,
.demos-button:focus-visible { border-color: #020617; background: #020617; color: #ffffff; transform: translateY(-2px); }

.demos-button-secondary { border-color: var(--demos-line); background: rgba(255, 255, 255, .72); color: var(--demos-ink); }
.demos-button-secondary:hover,
.demos-button-secondary:focus-visible { border-color: var(--demos-accent); background: #ffffff; color: var(--demos-accent); }

.demos-disclosure {
  max-width: 620px;
  margin: 23px 0 0;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.58;
}

.demos-disclosure strong { color: var(--demos-accent); }

.demos-hero-preview {
  position: relative;
  min-height: 456px;
  padding: 24px 0 18px;
}

.demos-browser-frame {
  width: min(100%, 650px);
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, .16);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 66px -30px rgba(2, 6, 23, .38);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}

.demos-browser-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.demos-browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.demos-browser-bar span:first-child { background: #fca5a5; }
.demos-browser-bar span:nth-child(2) { background: #fcd34d; }
.demos-browser-bar span:nth-child(3) { background: #86efac; }
.demos-browser-frame img { display: block; width: 100%; height: 370px; object-fit: cover; object-position: top; }

.demos-phone-frame {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 156px;
  overflow: hidden;
  padding: 10px 7px;
  border: 5px solid #0f172a;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 46px -20px rgba(2, 6, 23, .48);
}

.demos-phone-speaker { width: 48px; height: 5px; display: block; margin: 0 auto 7px; border-radius: 999px; background: #334155; }
.demos-phone-frame img { display: block; width: 100%; height: 278px; border-radius: 12px; object-fit: cover; object-position: top; }

.demos-proof-strip { border-bottom: 1px solid var(--demos-line); background: var(--theme-surface, #ffffff); }
.demos-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.demos-proof-grid article { min-height: 152px; display: flex; align-items: center; gap: 17px; padding: 32px clamp(20px, 3vw, 42px); border-left: 1px solid var(--demos-line); }
.demos-proof-grid article:last-child { border-right: 1px solid var(--demos-line); }
.demos-proof-grid .material-symbols-outlined { color: var(--demos-bright); font-size: 31px; }
.demos-proof-grid strong { display: block; color: var(--demos-ink); font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.demos-proof-grid p { margin: 5px 0 0; color: var(--demos-muted); font-size: .89rem; font-weight: 500; line-height: 1.5; }

.demos-gallery-section { padding: clamp(76px, 10vw, 130px) 0; background: var(--theme-bg-soft, #f8fafc); }
.demos-section-heading { display: grid; grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr); gap: 65px; align-items: end; }
.demos-section-heading h2 { max-width: 730px; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.05; }
.demos-section-heading > p { margin: 0 0 5px; color: var(--demos-muted); font-size: 1.04rem; font-weight: 500; line-height: 1.65; }

.demos-filters { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; margin: 51px 0 34px; padding: 22px 0; border-top: 1px solid var(--demos-line); border-bottom: 1px solid var(--demos-line); }
.demos-filter-copy { display: grid; gap: 6px; color: var(--demos-muted); font-size: .82rem; }
.demos-filter-copy span { font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.demos-filter-copy strong { color: var(--demos-accent); font-size: .87rem; }
.demos-filter-options { display: flex; flex-wrap: wrap; gap: 9px; }
.demos-filter-options button { min-height: 35px; padding: 0 13px; border: 1px solid var(--demos-line); border-radius: 999px; background: var(--theme-surface, #ffffff); color: var(--demos-muted); cursor: pointer; font-family: "IBM Plex Sans", sans-serif; font-size: .8rem; font-weight: 700; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.demos-filter-options button:hover,
.demos-filter-options button:focus-visible,
.demos-filter-options button.is-active { border-color: var(--demos-accent); background: var(--demos-accent); color: #ffffff; }

.demos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.demo-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--demos-line); border-radius: 17px; background: var(--theme-surface, #ffffff); box-shadow: 0 18px 38px -31px rgba(15, 23, 42, .35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.demo-card:hover { border-color: rgba(0, 104, 122, .4); box-shadow: 0 28px 54px -32px rgba(15, 23, 42, .4); transform: translateY(-5px); }
.demo-card[hidden] { display: none; }

.demo-card-preview { position: relative; min-height: 243px; overflow: hidden; border-bottom: 1px solid var(--demos-line); background: #edf4f6; }
.demo-card-preview > img { display: block; width: 100%; height: 264px; object-fit: cover; object-position: top; transition: transform .5s ease; }
.demo-card:hover .demo-card-preview > img { transform: scale(1.025); }
.demo-card-preview.has-mobile > img { width: calc(100% - 68px); }
.demo-card-phone { position: absolute; right: 13px; bottom: 12px; width: 73px; padding: 5px; border: 3px solid #0f172a; border-radius: 13px; background: #0f172a; box-shadow: 0 12px 25px -13px rgba(15, 23, 42, .65); }
.demo-card-phone img { display: block; width: 100%; height: 139px; border-radius: 7px; object-fit: cover; object-position: top; }

.demo-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 22px 20px; }
.demo-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.demo-card-meta span { padding: 5px 8px; border-radius: 999px; background: rgba(0, 104, 122, .08); color: var(--demos-accent); font-size: .64rem; font-weight: 700; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.demo-card-meta .is-live { background: rgba(16, 185, 129, .12); color: #047857; }
.demo-card h3 { margin: 0; color: var(--demos-ink); font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; letter-spacing: -.025em; }
.demo-card p { margin: 9px 0 21px; color: var(--demos-muted); font-size: .94rem; font-weight: 500; line-height: 1.6; }
.demo-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.demo-card-actions button,
.demo-card-actions a { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 6px; color: var(--demos-accent); font-family: "IBM Plex Sans", sans-serif; font-size: .79rem; font-weight: 700; text-decoration: none; }
.demo-card-actions button { border: 1px solid var(--demos-line); background: transparent; cursor: pointer; }
.demo-card-actions a { border: 1px solid transparent; background: rgba(6, 182, 212, .12); gap: 7px; }
.demo-card-actions button:hover,
.demo-card-actions button:focus-visible { border-color: var(--demos-accent); color: var(--demos-accent); }
.demo-card-actions a:hover,
.demo-card-actions a:focus-visible { background: var(--demos-accent); color: #ffffff; }

.demos-process { padding: clamp(78px, 11vw, 140px) 0; background: #06111f; color: #ffffff; }
.demos-process-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(390px, 1fr); gap: clamp(50px, 9vw, 130px); align-items: start; }
.demos-process .demos-eyebrow { color: #67e8f9; }
.demos-process h2 { color: #ffffff; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.04; }
.demos-process p { max-width: 600px; margin: 24px 0 0; color: #cbd5e1; font-size: 1.06rem; font-weight: 500; line-height: 1.7; }
.demos-process ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: process; }
.demos-process li { position: relative; min-height: 132px; padding: 0 0 30px 83px; border-left: 1px solid rgba(103, 232, 249, .35); counter-increment: process; }
.demos-process li:last-child { padding-bottom: 0; }
.demos-process li::before { position: absolute; top: -4px; left: -19px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #22d3ee; border-radius: 999px; background: #06111f; color: #67e8f9; content: "0" counter(process); font-family: "Space Grotesk", sans-serif; font-size: .75rem; font-weight: 700; }
.demos-process li strong { display: block; color: #ffffff; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; }
.demos-process li span { display: block; max-width: 455px; margin-top: 8px; color: #cbd5e1; font-size: .96rem; line-height: 1.6; }

.demos-faq-section { padding: clamp(78px, 10vw, 125px) 0; background: var(--theme-bg, #ffffff); }
.demos-faq-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1fr); gap: clamp(44px, 9vw, 130px); }
.demos-faq-layout h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.06; }
.demos-faq-layout > div > p:not(.demos-eyebrow) { color: var(--demos-muted); font-size: 1.04rem; font-weight: 500; line-height: 1.65; }
.demos-faqs { display: grid; gap: 13px; }
.demos-faqs details { overflow: hidden; border: 1px solid var(--demos-line); border-radius: 13px; background: var(--theme-surface, #ffffff); }
.demos-faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 23px; color: var(--demos-ink); cursor: pointer; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 700; list-style: none; }
.demos-faqs summary::-webkit-details-marker { display: none; }
.demos-faqs summary::after { flex: 0 0 auto; color: var(--demos-accent); content: "+"; font-family: "IBM Plex Sans", sans-serif; font-size: 1.55rem; font-weight: 400; }
.demos-faqs details[open] summary::after { content: "−"; }
.demos-faqs p { margin: 0 23px 23px; padding-top: 16px; border-top: 1px solid var(--demos-line); color: var(--demos-muted); font-size: .97rem; font-weight: 500; line-height: 1.7; }

.demos-cta { padding: 65px 0; background: linear-gradient(110deg, #00687a, #0b869f 58%, #052f48); color: #ffffff; }
.demos-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.demos-cta .demos-eyebrow { color: #cffafe; }
.demos-cta h2 { max-width: 750px; color: #ffffff; font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.05; }
.demos-cta p:not(.demos-eyebrow) { margin: 14px 0 0; color: #e0f2fe; font-size: 1.05rem; font-weight: 500; }
.demos-cta .demos-button { flex: 0 0 auto; border-color: #ffffff; background: #ffffff; color: #005d71; }
.demos-cta .demos-button:hover,
.demos-cta .demos-button:focus-visible { border-color: #020617; background: #020617; color: #ffffff; }

.demos-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.demos-modal.is-open { opacity: 1; pointer-events: auto; }
.demos-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .82); }
.demos-modal-panel { position: relative; width: min(1050px, 100%); max-height: min(88vh, 1000px); overflow: auto; padding: 26px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: #ffffff; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.demos-modal-panel h2 { margin: 0; color: #020617; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.demos-modal-panel .demos-eyebrow { margin-bottom: 8px; }
.demos-modal-panel img { display: block; width: 100%; height: auto; margin-top: 24px; border: 1px solid #e2e8f0; border-radius: 8px; }
.demos-modal-close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #dbe4ee; border-radius: 7px; background: #ffffff; color: #020617; cursor: pointer; }
.demos-modal-close:hover,
.demos-modal-close:focus-visible { border-color: var(--demos-accent); color: var(--demos-accent); }
.demos-modal-open { overflow: hidden; }

html[data-theme="dark"] .website-demos-page { --demos-ink: var(--theme-text); --demos-muted: var(--theme-muted); --demos-line: var(--theme-line); --demos-soft: var(--theme-bg-soft); --demos-accent: var(--theme-accent); --demos-bright: var(--theme-accent-bright); }
html[data-theme="dark"] .demos-hero { background: radial-gradient(circle at 72% 44%, rgba(34, 211, 238, .13), transparent 28%), linear-gradient(145deg, #020617 0%, #07111f 65%, #0a1a29 100%); }
html[data-theme="dark"] .demos-hero::before { opacity: .45; }
html[data-theme="dark"] .demos-browser-frame { border-color: #334155; }
html[data-theme="dark"] .demos-browser-bar { border-color: #334155; background: #0f172a; }
html[data-theme="dark"] .demos-button-secondary { background: var(--theme-surface); color: var(--theme-text); }
html[data-theme="dark"] .demos-button-secondary:hover,
html[data-theme="dark"] .demos-button-secondary:focus-visible { background: #164e63; color: #ffffff; }
html[data-theme="dark"] .demo-card-meta .is-live { color: #5eead4; }
html[data-theme="dark"] .demos-modal-panel { border-color: #334155; background: #0f172a; }
html[data-theme="dark"] .demos-modal-panel h2,
html[data-theme="dark"] .demos-modal-close { color: #f8fafc; }
html[data-theme="dark"] .demos-modal-close { border-color: #334155; background: #0f172a; }
html[data-theme="dark"] .demos-modal-panel img { border-color: #334155; }
html[data-theme="dark"] .demo-card-meta .is-live { background: rgba(45, 212, 191, .12); color: #5eead4; }

@media (max-width: 1020px) {
  .demos-hero-grid,
  .demos-process-grid,
  .demos-faq-layout { grid-template-columns: 1fr; }
  .demos-hero-copy { max-width: 760px; }
  .demos-hero-preview { width: min(720px, 100%); min-height: 430px; margin: 0 auto; }
  .demos-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .demos-section-heading > p { max-width: 720px; }
  .demos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demos-process-grid { gap: 52px; }
}

@media (max-width: 720px) {
  .demos-shell { width: min(100% - 28px, 1240px); }
  .demos-hero { padding: 132px 0 67px; }
  .demos-hero h1 { font-size: clamp(2.7rem, 12.2vw, 4rem); }
  .demos-hero-preview { min-height: 316px; padding-top: 8px; }
  .demos-browser-frame img { height: 260px; }
  .demos-phone-frame { right: 0; width: 120px; }
  .demos-phone-frame img { height: 203px; }
  .demos-proof-grid { grid-template-columns: 1fr; }
  .demos-proof-grid article,
  .demos-proof-grid article:last-child { min-height: 0; border-right: 1px solid var(--demos-line); border-bottom: 1px solid var(--demos-line); }
  .demos-proof-grid article:last-child { border-bottom: 0; }
  .demos-filters { grid-template-columns: 1fr; gap: 16px; }
  .demos-filter-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .demos-filter-options button { flex: 0 0 auto; }
  .demos-grid { grid-template-columns: 1fr; }
  .demo-card-preview { min-height: 274px; }
  .demo-card-preview > img { height: 290px; }
  .demos-process { padding: 78px 0; }
  .demos-process li { padding-left: 61px; }
  .demos-cta-inner { align-items: flex-start; flex-direction: column; }
  .demos-modal { padding: 14px; }
  .demos-modal-panel { padding: 19px; }
  .demos-modal-close { top: 14px; right: 14px; }
  .demos-modal-heading { padding-right: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  .demos-button,
  .demo-card,
  .demo-card-preview > img,
  .demos-modal { transition: none; }
}
