:root {
  color-scheme: light;
  --page: #fbfcff;
  --surface: #ffffff;
  --surface-muted: #f5f7fc;
  --ink: #111a35;
  --muted: #52607d;
  --line: #dbe1ef;
  --accent: #3653e9;
  --accent-deep: #263fd0;
  --accent-soft: #eef1ff;
  --radius-card: 12px;
  --radius-control: 8px;
  --shadow: 0 24px 62px rgba(43, 64, 129, 0.13);
  --font: Poppins;
  --font-tit: Playfair Display;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 66% 14%, rgba(69, 111, 239, 0.055), transparent 24rem),
    linear-gradient(180deg, var(--page), #ffffff 72%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(54, 83, 233, 0.28);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(1408px, calc(100% - 64px));
  height: 80px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 160px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4.2vw, 76px);
  font-weight: 650;
}

.site-nav a {
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-cta {
  min-width: 134px;
  padding: 16px 24px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-control);
  color: var(--accent);
  text-align: center;
}

.menu-toggle {
  display: none;
}

.hero {
  width: min(1420px, calc(100% - 72px));
  min-height: calc(100dvh - 300px);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(500px, 0.82fr) minmax(660px, 1.18fr);
  gap: clamp(34px, 4vw, 76px);
  align-items: start;
}

.hero-copy {
  padding-top: 50px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 0 48px 4px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.benefits {
  display: grid;
  gap: 24px;
}

.benefit {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.benefit-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
  font-size: .75rem;
  margin-top: 8px;
}

.benefit h1,
.benefit p {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.55rem, 2.05vw, 2.2rem);
  line-height: 1.32;
  letter-spacing: -0.035em; 
  font-family: var(--font-tit);
  font-weight: 400;
}

#demo-title,.demo-card-copy h3 {
  font-family: var(--font-tit);
  font-weight: 400;
}

.benefit-accent p {
  color: var(--accent);
  font-size: clamp(1.75rem, 2.3vw, 2.5rem); 
}

.hero-description {
  max-width: 610px;
  margin: 36px 0 0 4px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.compatibility {
  margin: 38px 0 0 4px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.compatibility-label {
  white-space: nowrap;
  font-size: 0.95rem;
}

.platforms {
  display: flex;
  align-items: center;
  gap: 13px;
}

.platform {
  width: 32px;
  height: 32px;
  border: 1px solid #d9deea;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 14px rgba(54, 69, 122, 0.06);
  color: #212a43;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.06em;
  overflow: hidden;
}

.platform-woo { color: #7f4cbc; font-size: 0.72rem; padding: 5px; }
.platform-elementor { color: #a90d54; background: #a90d54; color: #fff; }
.platform-wordpress { color: #19719f; font-family: Georgia, serif; font-size: 1.35rem; }
.platform-bricks { color: #252523; background: #f0c952; font-size: 1.35rem; }
.platform-beaver { font-size: 0.68rem; }
.platform-block { background: #f3f4f8; }

.platform img {
  width: 100%;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin: 42px 0 0 4px;
}

.button {
  min-width: 220px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, background 180ms ease;
}

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

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: linear-gradient(135deg, #345be9, #3d50df);
  color: #f9fbff;
  box-shadow: 0 16px 32px rgba(54, 83, 233, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(54, 83, 233, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--accent);
  color: var(--accent);
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 38px 0 0 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.rating strong {
  color: var(--ink);
}

.rating-separator {
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: #8390aa;
}

.hero-visual {
  padding-top: 60px;
  min-width: 0;
}

.visual-stage {
  width: 100%;
  max-width: 824px;
  aspect-ratio: 0.97;
  margin-left: auto;
  position: relative;
}

.product-window,
.upload-shot,
.preview-card {
  position: absolute;
  border: 1px solid rgba(190, 199, 218, 0.66);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-window {
  top: 0;
  right: 0;
  width: 98%;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(47, 66, 126, 0.11);
}

.window-bar {
  height: 38px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d7486;
  font-size: clamp(0.45rem, 0.55vw, 0.66rem);
  white-space: nowrap;
  overflow: hidden;
}

.window-bar span::after {
  content: ">";
  margin-left: 8px;
  color: #a8afbf;
}

.window-bar strong {
  font-weight: 600;
  color: #5c6374;
}

.product-window img {
  display: block;
  width: 100%;
  height: auto;
}

.upload-shot {
  top: 48%;
  left: 4%;
  width: 38%;
  overflow: hidden;
  z-index: 2;
  transform: translateY(0);
}

.upload-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.upload-hit-area {
  position: absolute;
  inset: 23% 7% 46%;
  cursor: pointer;
  border-radius: var(--radius-control);
}

.upload-hit-area input {
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.generating-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.generating-state span::after {
  content: "";
  display: block;
  width: 116px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
}

.preview-card {
  top: 41%;
  right: 0;
  width: 36%;
  padding: 14px;
  z-index: 3;
}

.preview-heading {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(0.58rem, 0.8vw, 0.82rem);
  color: #202841;
}

.preview-spark {
  color: var(--accent);
  font-size: 1rem;
}

.preview-media {
  position: relative;
  aspect-ratio: 0.79;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--surface-muted);
}

.preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.preview-loading {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(105deg, rgba(233, 237, 247, 0.96) 25%, rgba(250, 251, 255, 0.95) 42%, rgba(233, 237, 247, 0.96) 58%);
  background-size: 220% 100%;
  pointer-events: none;
}

.flow-line {
  position: absolute;
  border-color: var(--accent);
  border-style: dashed;
  opacity: 0.9;
}

.flow-line::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--accent);
}

.flow-line-one {
  z-index: 9;
  top: 34%;
  right: 12.5%;
  width: 6%;
  height: 15%;
  border-width: 0 3px 0 0;
}

.flow-line-one::after {
  right: -7px;
  bottom: -7px;
}

.flow-line-two {
  top: 60%;
  left: 9%;
  width: 51%;
  height: 13%;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 18px;
}

.flow-line-two::after {
  right: -8px;
  bottom: -6px;
  transform: rotate(-90deg);
}

.visual-stage.is-loading .generating-state,
.visual-stage.is-loading .preview-loading {
  opacity: 1;
}

.visual-stage.is-loading .generating-state span::after,
.visual-stage.is-loading .preview-loading {
  animation: shimmer 1s linear infinite;
}

.visual-stage.is-complete .preview-card {
  animation: preview-confirm 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-catalog {
  width: min(1400px, calc(100% - 64px)); 
  margin: 22px auto 60px;
  padding: 34px 0 24px;
  scroll-margin-top: 24px;
}

.demo-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: clamp(48px, 8vw, 150px);
  align-items: center;
}

.demo-heading {
  padding-left: 10px;
}

.demo-eyebrow {
  display: inline-flex;
  min-height: 32px;
  margin: 0 0 14px;
  padding: 0 16px;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.demo-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.1rem, 5.4vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.demo-heading h2 span {
  color: var(--accent);
}

.demo-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.demo-intro {
  min-height: 154px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(43, 64, 129, 0.075);
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.demo-intro-mark {
  position: relative;
  width: 68px;
  height: 68px;
  padding-top: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-indent: -3px;
}

.demo-intro-mark span {
  position: absolute;
  font-size: .9rem;
  right: 18px;
  top: 11px;
}

.demo-intro strong {
  display: block;
  font-size: 1.03rem;
}

.demo-intro p {
  max-width: 46ch;
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.demo-intro button,
.demo-empty button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease;
}

.demo-intro button:hover,
.demo-empty button:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.demo-toolbar {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(430px, 0.78fr);
  gap: 24px;
  align-items: center;
}

.demo-tabs {
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.74);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.demo-tabs::-webkit-scrollbar {
  display: none;
}

.demo-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.demo-tabs button:hover {
  color: var(--accent);
}

.demo-tabs button:active {
  transform: scale(0.98);
}

.demo-tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.demo-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 194px;
  gap: 16px;
}

.demo-search,
.demo-sort {
  min-width: 0;
}

.demo-search input,
.demo-sort select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background-color: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.demo-search input {
  padding: 0 16px;
}

.demo-search input::placeholder {
  color: #6b7894;
  opacity: 1;
}

.demo-sort select {
  padding: 0 38px 0 16px;
  cursor: pointer;
}

.demo-search input:hover,
.demo-sort select:hover {
  border-color: #aebae0;
}

.demo-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.demo-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e4e8f2;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(43, 64, 129, 0.065);
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.demo-card[hidden] {
  display: none !important;
}

.demo-card:hover,
.demo-card.is-selected {
  border-color: #aebae4;
  box-shadow: 0 16px 34px rgba(43, 64, 129, 0.11);
  transform: translateY(-3px);
}

.demo-card.is-selected {
  outline: 2px solid rgba(54, 83, 233, 0.2);
  outline-offset: -2px;
}

.demo-card-image {
  display: block;
  border-radius: var(--radius-control);
  overflow: hidden;
}

.demo-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.27;
  background: var(--surface-muted);
  object-fit: cover;
  transition: transform 240ms ease;
}

.demo-card-image:hover img {
  transform: scale(1.025);
}

.demo-card-copy {
  min-height: 64px;
  padding: 10px 6px 8px;
}

.demo-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
}

.demo-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-card-action {
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  border: 0;
  border-top: 1px solid #e8ebf3;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.demo-card-action:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.demo-card-action:active {
  transform: scale(0.98);
}

.demo-card-action span {
  margin-left: 5px;
}

.demo-empty {
  min-height: 260px;
  margin-top: 18px;
  padding: 50px 24px;
  border: 1px dashed #bfc8df;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  text-align: center;
}

.demo-empty[hidden] {
  display: none;
}

.demo-empty strong {
  display: block;
  font-size: 1.2rem;
}

.demo-empty p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.demo-upload-cta {
  min-height: 90px;
  margin-top: 20px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(100deg, rgba(241, 244, 255, 0.72), rgba(255, 255, 255, 0.94));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.demo-upload-cta strong {
  display: block;
  font-size: 1.08rem;
}

.demo-upload-cta p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.demo-upload-cta .button {
  min-width: 218px;
  min-height: 48px;
}

.below-fold { 
  min-height: 420px;
  margin:  0px auto;
  padding: 84px 6vw;
  border-radius: 16px;
  background: #f1f4ff;
  text-align: center;
}

.below-fold p {
  margin: 0 0 18px;
  color: var(--muted);
}

.below-fold h2 {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.045em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  min-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.lightbox-open {
  overflow: hidden;
}

.video-lightbox {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: #101528;
  color: #f7f8ff;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(15, 25, 67, 0.34);
}

.video-lightbox::backdrop {
  background: rgba(8, 12, 30, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-lightbox[open] {
  animation: video-lightbox-enter 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.video-lightbox[open]::backdrop {
  animation: video-lightbox-backdrop 180ms ease-out both;
}

.video-lightbox-panel {
  position: relative;
  display: grid;
  background: #101528;
}

.video-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(16, 21, 40, 0.72);
  color: #f7f8ff;
  cursor: pointer;
  font: 400 1.7rem/1 var(--font);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.video-lightbox-close:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.video-lightbox-close:active {
  transform: scale(0.96);
}

.video-lightbox-close:focus-visible {
  outline: 3px solid rgba(126, 112, 255, 0.72);
  outline-offset: 3px;
}

.video-lightbox video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 32px);
  background: #080b15;
  object-fit: contain;
}

@keyframes video-lightbox-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes video-lightbox-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes preview-confirm {
  0% { transform: translateY(12px) scale(0.985); opacity: 0.74; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    transform: translateY(16px);
    animation: enter 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 150ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-copy > :nth-child(5) { animation-delay: 270ms; }
  .hero-copy > :nth-child(6) { animation-delay: 330ms; }
  .hero-visual { animation: enter-visual 760ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .demo-card.is-revealed { animation: demo-card-enter 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }

  @keyframes enter {
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes enter-visual {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes demo-card-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1260px) {
  .site-nav { gap: 28px; }
  .hero {
    width: min(1180px, calc(100% - 48px));
    grid-template-columns: minmax(440px, 0.9fr) minmax(540px, 1.1fr);
    gap: 24px;
  }
  .hero-copy { padding-top: 34px; }
  .eyebrow { margin-bottom: 34px; }
  .benefits { gap: 18px; }
  .hero-description { margin-top: 28px; }
  .compatibility { margin-top: 28px; }
  .hero-actions { margin-top: 30px; }
  .rating { margin-top: 28px; }
  .demo-catalog { width: min(1180px, calc(100% - 48px)); }
  .demo-heading-row { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr); gap: 48px; }
  .demo-toolbar { grid-template-columns: 1fr; }
  .demo-controls { max-width: 590px; margin-left: auto; }
  .demo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .site-header {
    width: min(920px, calc(100% - 40px));
    height: 68px;
    margin-top: 10px;
  }

  .brand img { width: 100px; }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 21px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 0;
    width: min(300px, calc(100vw - 40px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }

  .hero {
    width: 100%;
    min-height: 100dvh;
    padding: 32px 24px 64px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    order: 3;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 10px;
  }

  .hero-visual {
    padding-top: 0 0 30px 0; 
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
  }

  .demo-catalog {
    width: 100%; 
    margin-top: 40px;
    padding: 58px 24px;
  }

  .demo-heading-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .demo-heading { padding-left: 0; }
  .demo-intro { max-width: 680px; }
  .demo-toolbar { margin-top: 26px; }
  .demo-tabs { width: 100%; }
  .demo-controls { width: 100%; max-width: none; margin-left: 0; }
  .demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 32px); }
  .brand img { width: 146px; }

  .hero {
    padding: 22px 16px 56px;
    gap: 38px;
  }

  .eyebrow {
    min-height: 34px;
    margin: 0 0 28px;
    padding: 0 14px;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .benefit {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .benefit-number { width: 32px; height: 32px; font-size: 0.92rem; }
  .benefit h1, .benefit p { font-size: 1.43rem; }
  .benefit-accent p { font-size: 1.62rem; }
  .hero-description { margin: 28px 0 0; font-size: 1rem; }

  .compatibility {
    margin: 28px 0 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .platforms { width: 100%; justify-content: space-between; gap: 6px; }
  .platform { width: 38px; height: 38px; }

  .hero-actions {
    margin: 30px 0 0;
    display: grid;
    gap: 12px;
  }

  .button { width: 100%; min-width: 0; min-height: 54px; }
  .rating { margin: 26px 0 0; flex-wrap: wrap; }
  .rating-separator { display: none; }
  .rating > :last-child { width: 100%; margin-top: 4px; }

  .visual-stage {
    aspect-ratio: 0.74;
  }

  .product-window { width: 100%; }
  .window-bar { height: 30px; padding: 0 10px; }
  .upload-shot { top: 39%; width: 60%; }
  .preview-card { top: 52%; width: 47%; padding: 8px; }
  .preview-heading { min-height: 26px; font-size: 0.52rem; gap: 5px; }
  .preview-spark { font-size: 0.72rem; }
  .flow-line-one { top: 29%; }
  .flow-line-two { display: none; }

  .demo-catalog {
    margin-top: 20px;
    padding: 44px 16px;
  }

  .demo-eyebrow {
    min-height: 30px;
    font-size: 0.64rem;
  }

  .demo-heading h2 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .demo-heading > p:last-child { font-size: 0.96rem; line-height: 1.55; }

  .demo-intro {
    min-height: 0;
    padding: 20px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .demo-intro-mark { width: 52px; height: 52px; }
  .demo-intro strong { font-size: 0.94rem; }

  .demo-tabs { padding: 6px; }
  .demo-tabs button { min-height: 36px; padding: 0 14px; }

  .demo-controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .demo-card { padding: 7px; }
  .demo-card-image img { aspect-ratio: 1.12; }
  .demo-card-copy { min-height: 62px; padding-inline: 4px; }
  .demo-card h3 { font-size: 0.88rem; }
  .demo-upload-cta { padding: 20px; align-items: stretch; flex-direction: column; }
  .demo-upload-cta .button { width: 100%; min-width: 0; }
  .below-fold { margin-top: 30px; padding: 64px 22px; }
}

@media (max-width: 430px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card-image img { aspect-ratio: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
