:root {
  color-scheme: dark;
  --base: #090d16;
  --surface: #111825;
  --text: #f2f5ff;
  --muted: #a5b2c5;
  --dim: #8d9eb3;
  --mint: #83f1d4;
  --line: #26354a;
  --shell: min(1180px, calc(100% - 64px));
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--text); background: var(--base); line-height: 1.55; }
a { color: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: .5rem; left: .5rem; padding: .6rem 1rem; transform: translateY(-200%); color: var(--base); background: var(--mint); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 2; background: #090d16ed; border-bottom: 1px solid #91b7e024; }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 680; font-size: 1.56rem; letter-spacing: -.075em; line-height: 1; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand span { color: var(--mint); margin-inline-start: -7px; }
.header-inner nav { display: flex; gap: clamp(14px, 2.25vw, 30px); }
.header-inner nav a, .footer-links a { color: var(--muted); font-size: .92rem; font-weight: 520; text-decoration: none; }
.header-inner nav a[aria-current="page"], .header-inner nav a:hover, .footer-links a[aria-current="page"], .footer-links a:hover { color: var(--mint); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .95rem; line-height: 1.2; font-weight: 660; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .65; cursor: wait; }
.button.small { min-height: 38px; padding-inline: 13px; font-size: .875rem; }
.primary { background: var(--mint); color: #062019; border-color: #adffe9; }
.primary:hover { background: #b6ffe9; }
.secondary { background: #131e2d; color: var(--text); border-color: #39495c; }
.secondary:hover { background: #1c2b3d; border-color: #6f8da7; }
.hero { position: relative; isolation: isolate; }
.hero-grid { position: absolute; pointer-events: none; z-index: -1; inset: 0 0 -330px; background: radial-gradient(ellipse 59% 68% at 50% 73%, #19364c, transparent 76%), radial-gradient(ellipse 36% 41% at 50% 71%, #16445290, transparent 91%), linear-gradient(180deg, #090d16, #0c1625 88%, #090d1600); }
.hero-grid::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#7abbd917 1px, transparent 1px), linear-gradient(90deg, #7abbd917 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(ellipse at 50% 73%, #000, transparent 72%); }
.hero-intro { text-align: center; padding: clamp(57px, 8vh, 96px) 0 42px; }
.eyebrow { font: 650 .82rem/1.35 "IBM Plex Mono", Consolas, monospace; letter-spacing: .12em; color: var(--mint); }
.signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px #81f4d9a6; margin-right: .45rem; vertical-align: .12em; }
.hero h1 { font-size: clamp(3.05rem, 7vw, 6.15rem); letter-spacing: -.079em; line-height: .99; font-weight: 750; margin: 19px auto 22px; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-description { max-width: 600px; margin-inline: auto; font-size: clamp(1rem, 2vw, 1.17rem); color: #bdc9dc; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.play-icon { display: inline-block; width: 14px; height: 14px; background: currentColor; clip-path: polygon(23% 12%, 89% 50%, 23% 88%); }
.walkthrough { position: relative; margin-bottom: 44px; scroll-margin-top: 26px; }
.walkthrough.shell { width: min(1240px, calc(100% - 32px)); }
.product-frame { overflow: hidden; background: #101827; border: 1px solid #476780; border-radius: 12px; box-shadow: inset 0 1px 0 #b3e6fa10, 0 0 34px #33c5f014, 0 28px 85px #020811bd; }
@media (prefers-reduced-motion: no-preference) {
  .product-frame {
    --fold-angle: 34deg;
    --fold-lift: 24px;
    --fold-scale: .955;
    transform: perspective(1450px) translateY(var(--fold-lift)) rotateX(var(--fold-angle)) scale(var(--fold-scale));
    transform-origin: 50% 91%;
  }
}
/* Keep the page’s layout steady while the player occupies the fullscreen layer. */
.walkthrough:has(.product-frame:is(:fullscreen, .is-expanded))::before {
  content: "";
  display: block;
  height: var(--inline-player-height);
}
.product-frame:is(:fullscreen, .is-expanded) {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #101827;
  transform: none;
}
.product-frame.is-expanded { position: fixed; inset: 0; z-index: 10; height: 100dvh; }
.product-frame:is(:fullscreen, .is-expanded) .frame-bar { display: none; }
.product-frame:is(:fullscreen, .is-expanded) .frame-controls {
  flex-shrink: 0;
  background: #090e18;
  padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  padding-bottom: max(2px, env(safe-area-inset-bottom));
}
.product-frame:is(:fullscreen, .is-expanded) .product-screen {
  flex: 1;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  background: #090e18;
}
.frame-bar { display: flex; align-items: center; justify-content: space-between; min-height: 43px; gap: 12px; padding: 0 15px; background: #131e2e; border-bottom: 1px solid #385169; }
.frame-title { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 570; min-width: 0; }
.frame-title span:last-child { overflow: hidden; color: #b7c6da; white-space: nowrap; text-overflow: ellipsis; }
.frame-divider { height: 16px; width: 1px; background: #43536b; }
.frame-caption { font: 600 .75rem/1 Consolas, monospace; letter-spacing: .08em; color: #b1c0d5; white-space: nowrap; }
.product-screen { position: relative; display: grid; background: #111926; aspect-ratio: 2 / 1; width: 100%; }
.product-screen > :is(img, video) { grid-area: 1 / 1; display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-screen video { opacity: 0; }
.product-screen.has-video video { opacity: 1; }
.overlay-play {
  grid-area: 1 / 1;
  place-self: center;
  display: grid;
  place-items: center;
  z-index: 1;
  width: clamp(66px, 10vw, 106px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #91ffdfb8;
  border-radius: 50%;
  color: var(--mint);
  background: #112b3bef;
  box-shadow: 0 0 0 8px #101d2a8c, 0 10px 32px #050a11c4;
}
.overlay-play:hover { color: #112b3b; background: var(--mint); }
.overlay-play .play-icon { width: 43%; height: 43%; margin-inline-start: 5%; }

.frame-controls { display: flex; align-items: center; min-height: 43px; padding: 2px 13px; gap: 14px; color: var(--muted); }
.play-control { background: transparent; min-width: 40px; min-height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--mint); }
.play-control:hover { background: #243d4a; }
.fullscreen-control {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--mint);
  background: transparent;
}
.fullscreen-control span { font-size: 1.55rem; line-height: 1; }
.fullscreen-control:hover { background: #243d4a; }
.play-control[aria-pressed="true"] .play-icon { clip-path: polygon(15% 7%, 38% 7%, 38% 93%, 15% 93%, 15% 7%, 62% 7%, 85% 7%, 85% 93%, 62% 93%, 62% 7%); }
.play-progress {
  --progress: 0%;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 38px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.play-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--mint) var(--progress), #405167 var(--progress));
}
.play-progress::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--mint);
}
.play-progress::-moz-range-track { height: 4px; border-radius: 4px; background: #405167; }
.play-progress::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
.play-progress::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--mint); }
.play-progress:focus-visible { outline-offset: -1px; }
.play-progress:disabled { cursor: default; opacity: .55; }
.scroll-hint { white-space: nowrap; font-size: .78rem; }
.sound-control { flex: none; padding: 5px 8px; color: #bbcde0; background: transparent; border: 1px solid #385169; border-radius: 5px; font: inherit; font-size: .75rem; white-space: nowrap; }
.sound-control:hover { border-color: #72a8ab; color: var(--text); }
.chapter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 13px; }
.chapter-row button { min-width: 0; padding: 8px 13px; background: #0e1624; border: 1px solid #28394b; border-radius: 7px; color: var(--text); text-align: left; }
.chapter-row button[aria-current], .chapter-row button:hover { border-color: #4b8b89; background: #142a35; }
.chapter-row button span, .chapter-row button small { display: block; }
.chapter-row button span { font-size: .9rem; font-weight: 650; }
.chapter-row button small { color: var(--muted); font-size: .79rem; }
.chapter-row button[aria-current] span { color: var(--mint); }
.transcript { margin-top: 9px; font-size: .82rem; color: var(--muted); }
.transcript summary { display: list-item; cursor: pointer; width: fit-content; }
.transcript p { max-width: 760px; padding: 8px 0 0; }
.demo-band { border-block: 1px solid #355164; background: linear-gradient(110deg, #142436, #102734 65%, #12243d); }
.demo-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(38px, 6vw, 68px); }
.demo-inner h2, .section-header h2 { font-size: clamp(2.25rem, 4.75vw, 4.25rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 690; margin: 12px 0; }
.demo-inner h2 { font-size: clamp(1.95rem, 4vw, 3.25rem); }
.demo-inner p:last-child, .section-header p:last-child { color: var(--muted); }
.demo-inner .button { flex: none; }
.section-pad { padding-block: clamp(65px, 8vw, 113px); }
.section-header { max-width: 740px; }
.section-header h2 { margin-bottom: 14px; }

.use-cases > .section-header { margin-bottom: 26px; }
.video-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(7px, 1.5vw, 18px);
}
.video-gallery {
  --videos-per-page: 3;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(var(--videos-per-page), minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.video-carousel:has(.carousel-previous[hidden]) .video-gallery { grid-column: 1 / -1; }
.video-gallery > li:not([hidden]) { animation: reveal-thumbnail .2s ease-out; }
@keyframes reveal-thumbnail { from { opacity: .45; transform: translateY(3px); } }
.carousel-arrow {
  display: grid;
  place-items: center;
  width: clamp(30px, 3.5vw, 44px);
  aspect-ratio: 1;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid #385169;
  border-radius: 50%;
}
.carousel-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateX(-2px) rotate(-45deg);
}
.carousel-previous::before { transform: translateX(2px) rotate(135deg); }
.carousel-arrow[aria-disabled="true"] { cursor: default; opacity: .45; }
.carousel-arrow:not([aria-disabled="true"]):hover { border-color: var(--mint); color: var(--mint); }
.carousel-footer {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.carousel-pages { display: flex; }
.carousel-pages button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 28px;
  padding: 0;
  color: #71879d;
  border: 0;
  background: transparent;
  border-radius: 5px;
}
.carousel-pages button::before { content: ""; width: 7px; height: 7px; border-radius: 10px; background: currentColor; }
.carousel-pages button:hover, .carousel-pages button[aria-current] { color: var(--mint); }
.carousel-pages button[aria-current]::before { width: 14px; }
.video-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.video-trigger { display: flex; flex-direction: column; transition: border-color .2s, background-color .2s; }
.video-trigger .video-art { width: 100%; }
.video-trigger:hover { border-color: #61b9ad; background: #152332; }
.video-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #101e30;
  border-bottom: 1px solid var(--line);
}
.video-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbnail-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--mint);
  background: #0a1928ed;
  border: 1px solid #72ddc48c;
  border-radius: 50%;
}
.video-trigger:hover .thumbnail-play { color: #102332; background: var(--mint); }
.video-duration {
  position: absolute;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .75rem;
  line-height: 1.4;
}
.video-duration { right: 7px; color: #edf5ff; background: #070f19e8; font-variant-numeric: tabular-nums; }
.video-copy { display: block; padding: 10px 12px 12px; line-height: 1.3; }
.video-copy strong, .video-copy small { display: block; }
.video-copy strong { font-size: .95rem; font-weight: 650; }
.video-copy small { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.video-art::before { content: ""; z-index: -1; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 24px, #b5d4ff12 24px 25px), repeating-linear-gradient(90deg, transparent 0 24px, #b5d4ff12 24px 25px); mask-image: radial-gradient(ellipse, #000, #0000 85%); }
@media (max-width: 680px) {
  .video-gallery { --videos-per-page: 2; gap: 9px; }
  .video-copy { padding-inline: 8px; }
}
.site-footer { padding-block: 22px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-inline-start: auto; }
.footer-copyright { flex-basis: 100%; color: var(--muted); font-size: .87rem; }
.policy-page { width: min(720px, var(--shell)); margin-inline: auto; padding-block: clamp(40px, 8vw, 88px); color: var(--muted); }
.policy-page h1 { margin-bottom: 8px; color: var(--text); font-size: clamp(2.15rem, 6vw, 3.4rem); line-height: 1.12; letter-spacing: -.04em; }
.policy-page h2 { margin: 27px 0 7px; color: var(--text); font-size: 1.2rem; }
.policy-page p + p { margin-top: 12px; }
.policy-page a, .form-note a { color: var(--mint); text-underline-offset: .16em; }
.policy-page .policy-date { display: block; margin-bottom: 22px; font-size: .88rem; }

.company-page {
  min-height: calc(100svh - 145px);
  padding-block: clamp(44px, 7vw, 96px);
  background: radial-gradient(ellipse 70% 48% at 36% 0, #162b41, transparent 100%);
}
.company-intro { padding-bottom: clamp(25px, 4vw, 48px); }
.company-page h1 {
  color: var(--text);
  max-width: 16ch;
  font-size: clamp(2.55rem, 6vw, 4.65rem);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1.04;
  text-wrap: balance;
}
.company-intro > p, .company-article .company-deck {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}
.company-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.company-entry, .company-contact {
  padding: clamp(20px, 3.5vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.company-entry h2, .company-contact h2, .company-article h2 {
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.company-entry h2 { margin-block: 10px; }
.company-entry h2 a { color: var(--text); text-decoration: underline; text-decoration-color: #637d96; text-underline-offset: .19em; }
.company-entry h2 a:hover { color: var(--mint); }
.company-entry p:not(.eyebrow), .company-article p, .company-contact p { color: var(--muted); }
.company-inline-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.company-inline-links a, .company-back { color: var(--mint); text-underline-offset: .2em; }
.company-article.shell { width: min(740px, var(--shell)); }
.company-back { display: inline-block; margin-bottom: 20px; }
.company-article h2 { margin-top: 26px; margin-bottom: 8px; }
.company-article > .button, .company-contact > .button { margin-top: 20px; }
.company-investor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 64px); align-items: start; }
.company-investor .company-article h2:first-child { margin-top: 0; }
.company-contact p { margin-top: 8px; }
@media (max-width: 900px) {
  .header-inner .company-link { display: none; }
}
@media (max-width: 700px) {
  .company-list, .company-investor { grid-template-columns: minmax(0, 1fr); }
}

dialog { width: min(535px, calc(100% - 30px)); max-height: calc(100% - 30px); color: var(--text); background: #121c2b; border: 1px solid #507785; border-radius: 14px; padding: 0; box-shadow: 0 24px 100px #010409cc; }
dialog::backdrop { background: #04090ed9; backdrop-filter: blur(7px); }
dialog[open] { animation: arrive .34s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(.99); } }
#case-dialog { width: min(960px, calc(100% - 26px)); border-color: #385169; }
.case-dialog-header { min-height: 61px; position: relative; display: flex; align-items: center; padding: 12px 62px 12px 20px; }
.case-dialog-header h2 { font-size: clamp(1.12rem, 3vw, 1.48rem); font-weight: 660; letter-spacing: -.022em; }
.case-dialog-header .close { top: 50%; transform: translateY(-50%); }
#case-video { display: block; width: 100%; height: auto; max-height: 65svh; background: #070f19; }
.case-caption { padding: 15px 20px 20px; color: var(--muted); }
.case-status { margin-top: 6px; color: #ffa5a9; }
.case-status:empty { display: none; }
.dialog-inner { position: relative; padding: clamp(22px, 5vw, 34px); }
.close { position: absolute; right: 12px; top: 11px; background: #1f2d41; color: var(--text); border: 1px solid #415772; border-radius: 7px; width: 36px; height: 36px; font-size: 1.35rem; }
.dialog-inner h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.054em; line-height: 1.06; margin: 10px 20px 7px 0; }
.form-intro { color: var(--muted); margin-bottom: 15px; }
form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
form label { display: grid; gap: 5px; font-size: .89rem; color: #dce7f7; }
form label span { font-weight: 400; color: var(--muted); }
form :is(input, select, textarea) { width: 100%; min-height: 39px; padding: 7px 10px; border-radius: 6px; border: 1px solid #425774; background-color: #0a1421; color: var(--text); }
form select { appearance: none; padding-inline-end: 33px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
form select:invalid, #demo-form textarea::placeholder { color: var(--muted); opacity: 1; }
.inquiry-message { display: grid; gap: 5px; }
form textarea { resize: vertical; }
form .button { justify-self: start; }
.form-status:empty { display: none; }
.form-status { color: var(--mint); font-size: .88rem; }
.form-status.error { color: #ffa5a9; }
.form-note { color: var(--muted); font-size: .86rem; }
form .form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:has(dialog[open]), body:has(.product-frame.is-expanded) { overflow: hidden; }
@media (max-width: 760px) {
  :root { --shell: calc(100% - 36px); }
  .header-inner { height: 62px; }
  .header-inner { gap: 9px; }
  .header-inner nav a:not(.haven-link, .pricing-link) { display: none; }
  .hero-intro { padding-top: 52px; padding-bottom: 30px; }
  .demo-inner { align-items: flex-start; flex-direction: column; }
  .chapter-row { gap: 5px; }
  .chapter-row button { padding: 7px 6px; text-align: center; }
  .chapter-row button span { font-size: .78rem; }
  .chapter-row button small { display: none; }
  .footer-links { flex-basis: 100%; margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .frame-controls { flex-wrap: wrap; row-gap: 0; }
  .play-progress { flex-basis: 100%; order: -1; height: 34px; }
  .scroll-hint { margin-inline-start: auto; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.61rem; }
  .scroll-hint { display: none; }
  .frame-caption { font-size: .68rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* Enterprise homepage */
.walkthrough-title {
  margin: 0 0 1.05rem;
  color: var(--text);
  font-size: clamp(1.22rem, 2.5vw, 1.75rem);
  font-weight: 660;
  text-align: center;
}
.helpdesk-reply, .helpdesk-context, .helpdesk-receipt dd { color: var(--muted); }
.helpdesk-receipt dt { color: var(--mint); font-weight: 620; }
.helpdesk-example {
  overflow: hidden;
  border: 1px solid #3a5267;
  border-radius: 14px;
  background: var(--surface);
}
.helpdesk-example figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1rem;
  padding: 1rem clamp(1.1rem, 3vw, 1.9rem);
  border-bottom: 1px solid var(--line);
}
.helpdesk-example figcaption span { color: var(--muted); font-size: .92rem; }
.helpdesk-workspaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.helpdesk-pane { min-width: 0; padding: clamp(1.1rem, 3vw, 1.9rem); }
.helpdesk-pane + .helpdesk-pane { border-inline-start: 1px solid var(--line); }
.helpdesk-pane h3 { font-size: 1.12rem; font-weight: 650; }
.helpdesk-context, .helpdesk-state { margin-top: .35rem; }
.helpdesk-state { color: var(--mint); min-height: 1.55em; }
.helpdesk-message, .helpdesk-reply {
  max-width: 28rem;
  margin-top: .85rem;
  padding: .75rem 1rem;
  border: 1px solid #395572;
  border-radius: .8rem .8rem .8rem .22rem;
  background: #1a293d;
}
.helpdesk-reply {
  border-color: #30594f;
  border-radius: .8rem .8rem .22rem .8rem;
  background: #102922;
  color: #def5ec;
}
.helpdesk-pane .button { margin-top: 1rem; }
.helpdesk-receipt { display: grid; gap: .55rem; margin: .75rem 0 0; }
.helpdesk-receipt > div { display: grid; grid-template-columns: 8.2rem 1fr; gap: .2rem .65rem; }
.helpdesk-receipt dd { margin: 0; }
@media (max-width: 1020px) {
  .enterprise-home .header-inner nav .company-link { display: none; }
}
@media (max-width: 650px) {
  .helpdesk-workspaces { grid-template-columns: 1fr; }
  .helpdesk-pane + .helpdesk-pane { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 440px) {
  .helpdesk-receipt > div { grid-template-columns: 1fr; }
}

.helpdesk-pane-heading { display: flex; align-items: center; gap: 9px; }
.helpdesk-avatar { display: grid; place-items: center; width: 29px; aspect-ratio: 1; border-radius: 50%; color: #cde9ff; background: #273e58; font-size: .85rem; font-weight: 650; }
.helpdesk-avatar-engineering { color: #91ebd6; background: #1b443c; }
.helpdesk-journey { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.helpdesk-journey li { padding: 5px 8px; border: 1px solid #41586f; border-radius: 5px; color: #c5d5e2; font-size: .87rem; }
.helpdesk-example[data-reported] .helpdesk-journey li:last-child { border-color: #e09768; background: #4d3027; color: #ffd0ac; }

.home-below-tour {
  --feature-canvas: var(--base);
  --feature-panel: #101925;
  --feature-media: radial-gradient(ellipse at 76% 15%, #326e79a8 0, transparent 65%), linear-gradient(130deg, #1c3c4f, #122134 75%);
  --feature-media-reversed: radial-gradient(ellipse at 14% 20%, #4c6394a8 0, transparent 64%), linear-gradient(230deg, #1c3655, #181f36 75%);
  --feature-dots: #b2e8fa31;
  --feature-shadow: #060b1570;
  display: grid;
  width: min(1360px, calc(100% - clamp(28px, 6vw, 104px)));
  gap: clamp(40px, 5vw, 80px);
  padding-block: clamp(30px, 5vw, 82px);
  background: var(--feature-canvas);
  box-shadow: 0 0 0 100vmax var(--feature-canvas);
  clip-path: inset(0 -100vmax);
}
.home-feature-list, #haven-directives-and-score {
  display: grid;
  gap: clamp(24px, 4.5vw, 72px);
}
.home-feature {
  display: grid;
  grid-template-areas: "media copy";
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  padding: clamp(9px, .9vw, 14px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--feature-panel);
}
.home-feature-reversed {
  grid-template-areas: "copy media";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}
.home-feature-copy {
  grid-area: copy;
  min-width: 0;
  padding: clamp(24px, 4vw, 64px);
}
.home-feature h2, .home-feature h3, .home-gallery .section-header h2 {
  color: var(--text);
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.05em;
  font-weight: 680;
  text-wrap: balance;
}
.home-feature-copy p {
  max-width: 39ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}
.home-feature-media {
  grid-area: media;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(265px, 33vw, 520px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 64px);
  border-radius: 11px;
  background: var(--feature-media);
}
.home-feature-reversed .home-feature-media {
  background: var(--feature-media-reversed);
}
.home-feature-media::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(ellipse at 50% 100%, var(--feature-dots) .9px, transparent 1.3px);
  background-size: 10px 10px;
  mask-image: linear-gradient(transparent 12%, #000 86%);
}
.feature-video {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100%, 620px);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 18px 44px var(--feature-shadow);
}
.feature-video .thumbnail-play { width: 40px; height: 40px; }
.feature-video-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  line-height: 1.3;
}
.feature-video-copy strong { font-size: .92rem; font-weight: 660; }
.feature-video-copy small { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--mint);
  font-weight: 620;
  text-underline-offset: .2em;
}
.helpdesk-demo { grid-column: 1 / -1; width: 100%; padding: 12px 8px 4px; }
.helpdesk-demo > summary { width: fit-content; cursor: pointer; color: var(--mint); font-weight: 620; }
.helpdesk-demo .helpdesk-example { margin-top: 14px; color: var(--text); }

.home-gallery {
  padding: clamp(16px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--feature-panel);
}
.home-gallery .section-header { margin-bottom: 20px; }
.home-gallery .section-header h2 { margin: 0; }
.home-gallery .section-header p,
.home-gallery .video-pagination,
.home-gallery .carousel-arrow { color: var(--muted); }
.home-gallery .section-header p { margin-top: 8px; }
.home-gallery .carousel-arrow {
  border-color: var(--line);
  background: var(--surface);
}
.home-gallery .video-gallery { gap: 10px; }
.home-gallery .video-copy strong { font-size: .9rem; }
.home-gallery .thumbnail-play { width: 32px; height: 32px; }

@media (min-width: 1080px) {
  .home-gallery .video-gallery { --videos-per-page: 5; }
}
@media (min-width: 761px) and (max-width: 1079px) {
  .home-gallery .video-gallery { --videos-per-page: 4; }
}
@media (max-width: 700px) {
  .home-feature, .home-feature-reversed {
    grid-template-areas: "copy" "media";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .home-feature .home-feature-copy { padding: 18px 12px 20px; }
  .home-feature-media { min-height: 0; padding: clamp(12px, 4vw, 26px); }
  .feature-video { width: min(100%, 430px); }
}

/* The homepage palette changes around the videos, which keep their original colors. */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-size: 1.25rem;
  line-height: 1;
}
.theme-toggle:hover { color: var(--mint); border-color: var(--mint); }
.theme-moon, :root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: inline; }

:root[data-theme="light"] {
  color-scheme: light;
  --base: #f6f8fa;
  --surface: #fff;
  --text: #111d2a;
  --muted: #45586a;
  --dim: #556b7d;
  --mint: #075e54;
  --line: #cdd9e2;
}
[data-theme="light"] .site-header { background: #f6f8faf5; border-color: var(--line); }
[data-theme="light"] .hero-grid {
  background: radial-gradient(ellipse 58% 66% at 50% 72%, #d9e9f5, transparent 80%), linear-gradient(#f6f8fa, #eef7f5 65%, #f6f8fa00);
}
[data-theme="light"] .hero-grid::after {
  background-image: linear-gradient(#416c861a 1px, transparent 1px), linear-gradient(90deg, #416c861a 1px, transparent 1px);
}
[data-theme="light"] .hero-description { color: var(--muted); }
[data-theme="light"] .primary { color: #062019; background: #9ae9d3; border-color: #76cdb6; }
[data-theme="light"] .primary:hover { background: #b8f4e2; }
[data-theme="light"] .secondary,
[data-theme="light"] .chapter-row button { background: var(--surface); border-color: var(--line); }
[data-theme="light"] .secondary:hover,
[data-theme="light"] .chapter-row button:is(:hover, [aria-current]),
[data-theme="light"] .video-trigger:hover { background: #e3f3ef; border-color: #75b2a9; }
[data-theme="light"] .product-frame {
  --text: #f2f5ff;
  --muted: #a5b2c5;
  --mint: #83f1d4;
  color: var(--text);
  color-scheme: dark;
  box-shadow: 0 24px 64px #183b4c42;
}
[data-theme="light"] .home-below-tour {
  --feature-panel: #edf2f5;
  --feature-media: radial-gradient(ellipse at 12% 100%, #e9f9f1 0, transparent 59%), linear-gradient(145deg, #a1c5e8, #c3eadf 68%, #deedf5);
  --feature-media-reversed: radial-gradient(ellipse at 88% 8%, #e5edf8 0, transparent 53%), linear-gradient(225deg, #adbfe5, #dcd8ef 62%, #bbdbe3);
  --feature-dots: #1e637a3a;
  --feature-shadow: #183b4c40;
}
[data-theme="light"] .thumbnail-play { color: #83f1d4; }
[data-theme="light"] .video-trigger:hover .thumbnail-play { color: #102332; background: #83f1d4; }
[data-theme="light"] .helpdesk-message { border-color: var(--line); background: #eef4fb; }
[data-theme="light"] .helpdesk-reply { color: #15453c; border-color: #b6d7cb; background: #e8f5ef; }
[data-theme="light"] .helpdesk-journey li { color: var(--muted); border-color: var(--line); }
[data-theme="light"] .helpdesk-example[data-reported] .helpdesk-journey li:last-child { border-color: #c69478; background: #f9efea; color: #7e3e23; }
[data-theme="light"] .demo-band { background: #e7f3f0; border-color: var(--line); }
[data-theme="light"] dialog { background: var(--surface); border-color: var(--line); box-shadow: 0 24px 100px #0c213a66; }
[data-theme="light"] dialog::backdrop { background: #1b2d48a3; }
[data-theme="light"] .close,
[data-theme="light"] form :is(input, select, textarea) { background-color: var(--base); border-color: var(--line); }
[data-theme="light"] form label { color: var(--text); }
[data-theme="light"] :is(.case-status, .form-status.error) { color: #9b2539; }
[data-theme="light"] .skip { color: #fff; }
@media (max-width: 440px) {
  .header-actions { gap: 5px; }
  .header-actions .button.small { padding-inline: 8px; font-size: .78rem; }
  .enterprise-home .header-inner nav { gap: 8px; }
  .enterprise-home .header-inner .brand { font-size: 1.25rem; }
  .enterprise-home .header-inner .brand img { width: 29px; height: 29px; }
}
@media (max-width: 360px) {
  .enterprise-home .header-inner { width: calc(100% - 24px); }
  .enterprise-home .header-inner .brand { font-size: 0; gap: 0; }
  .enterprise-home .header-inner .brand span { display: none; }
}
