:root {
  --paper: #fff7e9;
  --paper-muted: #ede2d5;
  --cloud: #fffcf6;
  --ink: #251b32;
  --plum: #4a315f;
  --guava: #ff647c;
  --mint: #59d7c5;
  --marigold: #ffc857;
  --white: #ffffff;
  --line: rgba(37, 27, 50, 0.22);
  --display: Georgia, "Songti SC", "STSong", serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1228px, calc(100vw - 32px));
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(37, 27, 50, 0.84);
  box-shadow: 0 14px 48px rgba(20, 12, 29, 0.16);
  color: var(--white);
  transform: translateX(-50%);
  transition:
    top 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  top: 8px;
  background: rgba(37, 27, 50, 0.94);
  box-shadow: 0 10px 30px rgba(20, 12, 29, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:not(.nav-action) {
  color: rgba(255, 255, 255, 0.74);
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.nav-action {
  min-width: 118px;
  padding: 10px 16px;
  border-radius: 5px;
  background: var(--guava);
  color: var(--ink);
  text-align: center;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: min(860px, calc(100svh - 36px));
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-reel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  transform: scale(1.03);
}

.reel-frame {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--plum);
}

.reel-frame:nth-child(even) {
  margin-top: 54px;
  height: calc(100% - 54px);
}

.reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero:hover .reel-frame img {
  transform: scale(1.055);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 15, 35, 0.96) 0%, rgba(24, 15, 35, 0.76) 34%, rgba(24, 15, 35, 0.14) 71%),
    linear-gradient(0deg, rgba(24, 15, 35, 0.76) 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(810px, calc(100svh - 86px));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 94px;
  padding-bottom: 98px;
}

.eyebrow,
.section-label,
.feature-index,
.prompt-label {
  margin: 0;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mint);
}

.eyebrow span {
  width: 28px;
  height: 3px;
  background: currentColor;
}

.hero h1 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(62px, 8.2vw, 126px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-line {
  margin: 22px 0 0;
  color: var(--marigold);
  font-family: var(--display);
  font-size: clamp(32px, 4.1vw, 66px);
  font-weight: 700;
  line-height: 1.02;
}

.hero-copy {
  max-width: 570px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary {
  background: var(--guava);
  color: var(--ink);
}

.button-primary:hover {
  box-shadow: 4px 4px 0 var(--marigold);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  padding-block: 8px 4px;
  border-bottom: 1px solid currentColor;
  color: var(--white);
  font-weight: 800;
}

.hero-ticker {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-around;
  gap: 28px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(37, 27, 50, 0.72);
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--utility);
  font-size: 11px;
  white-space: nowrap;
  backdrop-filter: blur(9px);
}

.hero-ticker span::before {
  content: "✦";
  margin-right: 18px;
  color: var(--marigold);
}

.statement {
  padding: 110px 0 120px;
  border-bottom: 1px solid var(--line);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 72px;
  align-items: start;
}

.section-label {
  color: var(--plum);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 10px;
  background: var(--guava);
  vertical-align: middle;
}

.statement h2,
.workflow h2,
.template-gallery h2,
.privacy-band h2,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.statement-grid > div > p {
  max-width: 750px;
  margin: 30px 0 0;
  color: rgba(37, 27, 50, 0.72);
  font-size: 18px;
}

.showcase-band {
  background: var(--cloud);
}

.feature {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}

.feature-media {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--mint);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.feature:hover .feature-media img {
  transform: scale(1.025);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px max(7vw, 58px);
}

.feature-copy h3 {
  margin: 28px 0 22px;
  font-family: var(--display);
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
}

.feature-copy > p:not(.feature-index) {
  max-width: 550px;
  margin: 0;
  color: rgba(37, 27, 50, 0.7);
  font-size: 17px;
}

.feature-index {
  color: var(--guava);
}

.feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
}

.feature-video {
  background: var(--mint);
}

.motion-media {
  background: var(--marigold);
}

.motion-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(37, 27, 50, 0.66);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
  transform: translate(-50%, -50%);
}

.workflow {
  padding: 120px 0;
  background: var(--plum);
  color: var(--white);
}

.workflow-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 72px;
  align-items: start;
}

.workflow .section-label {
  color: var(--mint);
}

.studio-demo {
  display: grid;
  min-height: 620px;
  grid-template-columns: 0.85fr 1.15fr;
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--guava);
  background: var(--paper);
  color: var(--ink);
}

.demo-controls {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-muted);
}

.mode-tabs button,
.idea-chips button {
  border: 0;
  cursor: pointer;
}

.mode-tabs button {
  min-height: 44px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.mode-tabs button[aria-selected="true"] {
  background: var(--guava);
}

.prompt-preview {
  min-height: 214px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--cloud);
}

.prompt-label {
  color: var(--guava);
}

.prompt-preview p {
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.idea-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.idea-chips button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.idea-chips button.is-active {
  background: var(--marigold);
}

.demo-create {
  width: 100%;
  margin-top: auto;
}

.demo-create.is-loading span:last-child {
  animation: spin 700ms linear infinite;
}

.demo-output {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

.demo-output img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 220ms ease,
    transform 500ms ease;
}

.demo-output.is-changing img {
  opacity: 0.42;
  transform: scale(1.04);
}

.demo-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(37, 27, 50, 0.82);
  color: var(--white);
  font-family: var(--utility);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 62px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  list-style: none;
}

.steps li {
  padding: 28px 28px 0 0;
}

.steps li + li {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.steps span {
  color: var(--mint);
  font-family: var(--utility);
  font-size: 12px;
}

.steps h3 {
  margin: 28px 0 8px;
  font-size: 21px;
}

.steps p {
  max-width: 290px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.template-gallery {
  padding: 120px 0 100px;
  overflow: hidden;
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 72px;
}

.gallery-track {
  display: grid;
  width: min(1480px, calc(100vw - 32px));
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 12px;
  margin: 64px auto 0;
}

.gallery-track figure {
  position: relative;
  aspect-ratio: 0.68;
  margin: 0;
  overflow: hidden;
  background: var(--paper-muted);
}

.gallery-track figure:nth-child(even) {
  margin-top: 52px;
  margin-bottom: -52px;
}

.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 560ms ease;
}

.gallery-track figure:hover img {
  transform: scale(1.035);
}

.gallery-track figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 12px 13px;
  border-radius: 4px;
  background: rgba(37, 27, 50, 0.84);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.gallery-track figcaption span {
  display: block;
  color: var(--mint);
  font-family: var(--utility);
  font-size: 10px;
}

.privacy-band {
  padding: 100px 0;
  background: var(--mint);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 72px;
  align-items: center;
}

.privacy-mark {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--marigold);
}

.privacy-mark::before,
.privacy-mark::after,
.privacy-mark span {
  content: "";
  position: absolute;
}

.privacy-mark::before {
  top: 50%;
  left: 50%;
  width: 43%;
  height: 54%;
  border: 8px solid var(--ink);
  border-radius: 8px 8px 38% 38%;
  transform: translate(-50%, -30%);
}

.privacy-mark::after {
  top: 24%;
  left: 50%;
  width: 30%;
  height: 32%;
  border: 8px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.privacy-mark span {
  top: 58%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--guava);
  transform: translate(-50%, -50%);
}

.privacy-band h2 {
  margin-top: 24px;
  font-size: clamp(38px, 4.7vw, 68px);
}

.privacy-band p:not(.section-label) {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: 17px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 30px;
}

.legal-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-weight: 900;
}

.closing {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.closing-art {
  position: absolute;
  inset: 0 0 0 48%;
}

.closing-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 42%, rgba(37, 27, 50, 0.14) 78%);
}

.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 690px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.closing .section-label {
  color: var(--mint);
}

.closing h2 {
  max-width: 790px;
  margin: 25px 0 36px;
}

.site-footer {
  padding: 42px 0;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr auto;
  gap: 30px;
  align-items: center;
}

.footer-grid > p {
  margin: 0;
  color: rgba(37, 27, 50, 0.6);
  font-size: 13px;
}

.footer-grid nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 13px;
  font-weight: 800;
}

.copyright {
  font-family: var(--utility);
  white-space: nowrap;
}

/* Legal pages */
.legal-page {
  background: var(--cloud);
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(16px);
}

.legal-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 84px;
  padding-top: 84px;
  padding-bottom: 120px;
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: 114px;
}

.legal-kicker {
  color: var(--guava);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 700;
}

.legal-aside p {
  margin: 14px 0 0;
  color: rgba(37, 27, 50, 0.58);
  font-size: 13px;
}

.legal-aside nav {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 800;
}

.legal-aside nav a {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-article h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-lead {
  margin: 0 0 54px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  color: rgba(37, 27, 50, 0.66);
  font-size: 18px;
}

.legal-section {
  scroll-margin-top: 110px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: rgba(37, 27, 50, 0.74);
}

.legal-section p {
  margin: 12px 0;
}

.legal-section ul {
  margin: 14px 0;
  padding-left: 1.3em;
}

.legal-contact {
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1px solid var(--ink);
  font-weight: 900;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .site-header {
    top: 8px;
    width: calc(100vw - 16px);
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 82px;
    right: 8px;
    left: 8px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: var(--ink);
    box-shadow: 0 20px 50px rgba(20, 12, 29, 0.3);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
  }

  .nav-action {
    margin-top: 8px;
  }

  .hero {
    min-height: 840px;
  }

  .hero-reel {
    grid-template-columns: repeat(2, 1fr);
  }

  .reel-frame-c,
  .reel-frame-d {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(24, 15, 35, 0.94), rgba(24, 15, 35, 0.38)),
      linear-gradient(0deg, rgba(24, 15, 35, 0.84), transparent 45%);
  }

  .hero-content {
    min-height: 800px;
    justify-content: flex-end;
    padding-bottom: 104px;
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 92px);
  }

  .hero-line {
    font-size: clamp(32px, 8vw, 52px);
  }

  .statement-grid,
  .workflow-heading,
  .gallery-heading,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .feature-video .feature-copy {
    order: 2;
  }

  .feature-media {
    min-height: min(760px, 108vw);
  }

  .feature-copy {
    min-height: 520px;
    padding: 56px 32px;
  }

  .studio-demo {
    grid-template-columns: 1fr;
  }

  .demo-controls {
    min-height: 480px;
  }

  .demo-output {
    min-height: 680px;
  }

  .gallery-track {
    grid-template-columns: repeat(4, 280px);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-track figure {
    scroll-snap-align: start;
  }

  .privacy-mark {
    width: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid nav {
    justify-content: flex-start;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-aside {
    position: static;
  }

  .legal-aside nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .brand span {
    font-size: 15px;
  }

  .hero {
    min-height: min(820px, calc(100svh - 20px));
  }

  .hero-reel {
    grid-template-columns: 1fr 0.7fr;
    gap: 4px;
  }

  .hero-content {
    min-height: min(780px, calc(100svh - 60px));
    padding-top: 112px;
    padding-bottom: 90px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-ticker {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .hero-ticker span:nth-child(n + 3) {
    display: none;
  }

  .statement,
  .workflow,
  .template-gallery,
  .privacy-band {
    padding-block: 82px;
  }

  .statement h2,
  .workflow h2,
  .template-gallery h2,
  .privacy-band h2,
  .closing h2 {
    font-size: 40px;
  }

  .feature-copy {
    min-height: 0;
    padding: 48px 22px 54px;
  }

  .feature-copy h3 {
    font-size: 38px;
  }

  .feature-media {
    min-height: 124vw;
  }

  .studio-demo {
    margin-top: 46px;
    box-shadow: 5px 5px 0 var(--guava);
  }

  .demo-controls {
    min-height: 510px;
    padding: 17px;
  }

  .prompt-preview {
    min-height: 230px;
  }

  .demo-output {
    min-height: 122vw;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li + li {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .steps h3 {
    margin-top: 14px;
  }

  .gallery-track {
    width: calc(100vw - 14px);
    grid-template-columns: repeat(4, minmax(252px, 78vw));
    padding-right: 14px;
  }

  .gallery-track figure:nth-child(even) {
    margin-block: 0;
  }

  .privacy-mark {
    width: 150px;
  }

  .legal-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing,
  .closing-content {
    min-height: 720px;
  }

  .closing-art {
    inset: 0;
  }

  .closing::after {
    background: linear-gradient(0deg, rgba(37, 27, 50, 0.98) 0%, rgba(37, 27, 50, 0.73) 58%, rgba(37, 27, 50, 0.2) 100%);
  }

  .closing-content {
    justify-content: flex-end;
    padding-bottom: 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-grid nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .legal-header-inner {
    min-height: 70px;
  }

  .legal-header .brand span {
    display: none;
  }

  .legal-layout {
    padding-top: 54px;
    padding-bottom: 80px;
  }

  .legal-article h1 {
    font-size: 50px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
