:root {
  color-scheme: light;
  --wm-page: #ffffff;
  --wm-panel: #f6f8fc;
  --wm-text: #0a0e17;
  --wm-muted: #626b7c;
  --wm-muted-strong: #354052;
  --wm-line: #dfe5ef;
  --wm-blue: #0a6cff;
  --wm-blue-dark: #0758d5;
  --wm-blue-soft: #edf4ff;
  --wm-cyan: #23a9c4;
}

html {
  background: var(--wm-page);
}

body.wm-body {
  background: var(--wm-page);
  color: var(--wm-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.wm-site,
.wm-changelog-site {
  overflow: clip;
  background: var(--wm-page);
}

.wm-section-wrap,
.wm-header {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header — the same compact, translucent product bar used by Caption Mate. */
.wm-header {
  position: relative;
  z-index: 50;
  width: min(1380px, calc(100% - 64px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
}

.wm-header::after {
  position: absolute;
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  left: calc((100vw - 100%) / -2);
  height: 1px;
  background: rgba(10, 14, 23, 0.08);
  content: "";
}

.wm-brand {
  gap: 11px;
  color: var(--wm-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wm-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  clip-path: inset(9% round 24%);
  transform: scale(1.12);
  box-shadow: none;
}

.wm-nav a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: #596274;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
}

.wm-nav a:hover,
.wm-nav a[aria-current="page"] {
  background: var(--wm-blue-soft);
  color: var(--wm-blue);
}

.wm-language-picker::after {
  top: 14px;
  border-color: #788397;
}

.wm-language-picker select {
  width: 150px;
  height: 40px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--wm-line);
  border-radius: 10px;
  background: #fff;
  color: #4e5868;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(12, 35, 72, 0.04);
}

.wm-language-picker select:hover {
  border-color: #b8c6da;
  background: #fff;
}

.wm-language-picker option {
  background: #fff;
  color: var(--wm-text);
}

/* Hero — split message and product visual on desktop, stacked on smaller screens. */
.wm-hero.wm-section-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 640px;
  padding: 48px 32px 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8faff 70%, #edf3ff 100%);
}

.wm-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 74, 178, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 74, 178, 0.042) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27%, transparent 91%);
  mask-image: linear-gradient(to bottom, transparent, #000 27%, transparent 91%);
}

.wm-hero::after {
  position: absolute;
  top: 40px;
  left: 50%;
  width: min(1000px, 94vw);
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 131, 255, 0.13), transparent 68%);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.wm-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 5vw, 88px);
  width: min(1380px, 100%);
  min-height: 536px;
  margin: 0 auto;
}

.wm-hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.wm-eyebrow,
.wm-section-kicker,
.wm-showcase-label {
  color: var(--wm-blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wm-eyebrow {
  gap: 9px;
}

.wm-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32b984;
  box-shadow: 0 0 0 5px rgba(50, 185, 132, 0.1);
}

.wm-hero h1 {
  max-width: 610px;
  margin: 0;
  background: linear-gradient(100deg, #0a0e17 12%, #0a0e17 34%, #086bff 66%, #23a9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(64px, 5.8vw, 92px);
  font-weight: 730;
  letter-spacing: -0.067em;
  line-height: 0.98;
}

.wm-hero-intro {
  max-width: 560px;
  margin: 28px 0 0;
  color: #596274;
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.62;
  letter-spacing: -0.015em;
}

.wm-download-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 34px;
}

.wm-button {
  height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 680;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wm-button:hover {
  transform: translateY(-2px);
}

.wm-body .wm-button-primary {
  border-color: var(--wm-blue);
  background: linear-gradient(135deg, var(--wm-blue), var(--wm-blue-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 108, 255, 0.24);
}

.wm-body .wm-button-primary:hover {
  border-color: var(--wm-blue-dark);
  background: linear-gradient(135deg, #1979ff, #0758d5);
  box-shadow: 0 16px 36px rgba(10, 108, 255, 0.3);
}

.wm-body .wm-button-secondary {
  border-color: var(--wm-line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--wm-muted-strong);
  box-shadow: 0 7px 18px rgba(12, 35, 72, 0.05);
}

.wm-body .wm-button-secondary:hover {
  border-color: #b8c6da;
  background: #fff;
  color: var(--wm-text);
}

.wm-system-note {
  margin-top: 17px;
  color: #7b8596;
  font-size: 12px;
}

.wm-hero-visual {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  perspective: 1800px;
}

.wm-hero-frame {
  transform: rotateX(1.5deg);
  transform-origin: center bottom;
}

.wm-hero-frame::before,
.wm-hero-frame::after {
  display: none;
}

.wm-hero-frame img {
  width: 100%;
  height: auto;
  border: 0;
  filter: drop-shadow(0 34px 50px rgba(4, 19, 49, 0.22));
  -webkit-mask-image: none;
  mask-image: none;
}

/* Product chapters — quiet white space, crisp screenshots, alternating rhythm. */
.wm-workflow.wm-section-wrap {
  width: 100%;
  max-width: none;
  padding: 88px 24px 132px;
  background: linear-gradient(180deg, #edf3ff 0, #f8faff 84px, #fff 220px, #fff 100%);
}

.wm-showcase-list {
  display: grid;
  gap: 0;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.wm-showcase,
.wm-showcase.wm-reverse {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  min-height: 0;
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
  padding: 88px 0;
  border-top: 1px solid var(--wm-line);
}

.wm-showcase.wm-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
}

.wm-showcase:first-child {
  border-top: 0;
}

.wm-showcase::before {
  display: none;
}

.wm-showcase-copy {
  max-width: 360px;
  padding: 0;
}

.wm-showcase.wm-reverse .wm-showcase-copy {
  order: 2;
}

.wm-showcase.wm-reverse .wm-screenshot-frame {
  order: 1;
}

.wm-showcase-label {
  margin: 0;
  color: var(--wm-blue);
  font-size: 11px;
}

.wm-showcase-copy h3 {
  margin: 20px 0 0;
  color: var(--wm-text);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.1;
}

.wm-showcase-summary {
  margin: 17px 0 0;
  color: var(--wm-muted);
  font-size: 15px;
  line-height: 1.65;
}

.wm-showcase-copy .wm-numbered-points {
  gap: 13px;
  margin-top: 29px;
}

.wm-numbered-points li {
  align-items: center;
  gap: 10px;
}

.wm-numbered-points li > span {
  display: grid;
  flex: 0 0 19px;
  min-width: 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wm-blue);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(10, 108, 255, 0.2);
}

.wm-numbered-points p {
  margin: 0;
  color: var(--wm-muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.wm-showcase .wm-screenshot-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 37, 73, 0.14);
  border-radius: 18px;
  background: #171b22;
  box-shadow: 0 30px 70px rgba(11, 31, 61, 0.16), 0 3px 10px rgba(11, 31, 61, 0.09);
}

.wm-showcase .wm-screenshot-frame::before,
.wm-showcase .wm-screenshot-frame::after {
  display: none;
}

.wm-showcase .wm-screenshot-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Video library — light media cards with the same borders and shadows. */
.wm-video-library {
  width: min(1220px, calc(100% - 48px));
  padding: 118px 0 138px;
  background: #fff;
}

.wm-video-library-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.wm-section-kicker {
  margin: 0 0 18px;
  background: none;
  color: var(--wm-blue);
}

.wm-video-library-heading h2 {
  margin: 0;
  color: var(--wm-text);
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.wm-video-library-heading > p:last-child {
  margin: 22px auto 0;
  color: var(--wm-muted);
  font-size: 17px;
  line-height: 1.65;
}

.wm-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 28px;
}

.wm-video-card:first-child {
  grid-column: auto;
}

.wm-video-embed,
.wm-video-card:first-child .wm-video-embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(13, 37, 73, 0.14);
  border-radius: 16px;
  background: #11151c;
  box-shadow: 0 22px 55px rgba(11, 31, 61, 0.12), 0 2px 8px rgba(11, 31, 61, 0.06);
}

.wm-video-card-copy {
  gap: 11px;
  margin-top: 15px;
}

.wm-video-card-copy span {
  color: #8a97aa;
  font-size: 10px;
}

.wm-video-card-copy h3 {
  color: var(--wm-muted-strong);
  font-size: 14px;
}

.wm-footer {
  width: min(1220px, calc(100% - 48px));
  padding: 30px 0 38px;
  border-top: 1px solid var(--wm-line);
  color: #7b8596;
  background: #fff;
  font-size: 11px;
}

/* Changelog follows the same light product system. */
.wm-changelog-main {
  min-height: calc(100vh - 156px);
  padding: 106px 0 132px;
}

.wm-changelog-hero {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 28px 78px;
  overflow: hidden;
  border: 1px solid var(--wm-line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(8, 74, 178, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 74, 178, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fff, #f1f6ff);
  background-size: 54px 54px, 54px 54px, auto;
  text-align: center;
  box-shadow: 0 24px 70px rgba(11, 31, 61, 0.09);
}

.wm-changelog-hero h1 {
  margin: 20px 0 0;
  background: linear-gradient(100deg, #0a0e17 10%, #086bff 66%, #23a9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 730;
  letter-spacing: -0.06em;
  line-height: 1;
}

.wm-changelog-hero > p:last-child {
  max-width: 620px;
  margin: 25px auto 0;
  color: var(--wm-muted);
  font-size: 18px;
  line-height: 1.65;
}

.wm-release-notes {
  max-width: 900px;
  margin: 86px auto 0;
  color: var(--wm-muted);
  font-size: 15px;
  line-height: 1.75;
}

.wm-release-notes h2 {
  margin: 76px 0 24px;
  padding-top: 60px;
  border-top: 1px solid var(--wm-line);
  color: var(--wm-text);
  font-size: clamp(32px, 4vw, 46px);
}

.wm-release-notes h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.wm-release-notes li::marker {
  color: var(--wm-blue);
}

.wm-release-notes a {
  color: var(--wm-blue-dark);
  text-decoration-color: rgba(10, 108, 255, 0.28);
}

.wm-release-notes img {
  border: 1px solid rgba(13, 37, 73, 0.14);
  border-radius: 16px;
  background: #171b22;
  box-shadow: 0 22px 55px rgba(11, 31, 61, 0.12);
}

.wm-body :focus-visible {
  outline: 2px solid var(--wm-blue);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .wm-hero.wm-section-wrap {
    min-height: 790px;
    padding-top: 82px;
  }

  .wm-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    width: min(1120px, 100%);
    min-height: auto;
  }

  .wm-hero-copy {
    display: block;
    text-align: center;
  }

  .wm-hero h1 {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
  }

  .wm-hero-intro {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .wm-download-actions {
    justify-content: center;
  }

  .wm-system-note {
    text-align: center;
  }

  .wm-hero-visual {
    width: min(940px, 105vw);
    margin: 0 auto -56px;
  }

  .wm-showcase,
  .wm-showcase.wm-reverse {
    grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
    gap: 42px;
    padding: 72px 0;
  }

  .wm-showcase.wm-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  }
}

@media (max-width: 820px) {
  .wm-showcase,
  .wm-showcase.wm-reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .wm-showcase.wm-reverse .wm-showcase-copy,
  .wm-showcase.wm-reverse .wm-screenshot-frame {
    order: initial;
  }

  .wm-showcase-copy {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .wm-section-wrap,
  .wm-header,
  .wm-video-library,
  .wm-footer {
    width: min(100% - 32px, 1220px);
  }

  .wm-header {
    min-height: 66px;
  }

  .wm-brand {
    font-size: 16px;
  }

  .wm-brand img {
    width: 30px;
    height: 30px;
  }

  .wm-nav a {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .wm-language-picker select {
    width: 42px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .wm-language-picker::after {
    display: none;
  }

  .wm-hero.wm-section-wrap {
    min-height: 680px;
    padding: 68px 18px 0;
  }

  .wm-hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .wm-hero-intro {
    font-size: 16px;
  }

  .wm-download-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(360px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .wm-button {
    width: 100%;
  }

  .wm-hero-visual {
    width: 116%;
    margin-right: -8%;
    margin-left: -8%;
  }

  .wm-workflow.wm-section-wrap {
    padding: 52px 16px 94px;
  }

  .wm-showcase,
  .wm-showcase.wm-reverse {
    gap: 28px;
    padding: 54px 0;
  }

  .wm-showcase-copy h3 {
    font-size: 32px;
  }

  .wm-showcase .wm-screenshot-frame {
    border-radius: 12px;
  }

  .wm-video-library {
    padding: 92px 0 100px;
  }

  .wm-video-library-heading {
    margin-bottom: 38px;
    text-align: left;
  }

  .wm-video-library-heading h2 {
    font-size: 40px;
  }

  .wm-video-library-heading > p:last-child {
    font-size: 15px;
  }

  .wm-video-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .wm-video-embed,
  .wm-video-card:first-child .wm-video-embed {
    border-radius: 11px;
  }

  .wm-changelog-main {
    padding: 70px 0 100px;
  }

  .wm-changelog-hero {
    padding: 54px 20px 60px;
    border-radius: 16px;
    text-align: left;
  }

  .wm-changelog-hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .wm-changelog-hero > p:last-child {
    font-size: 16px;
  }

  .wm-release-notes {
    margin-top: 64px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
