* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #050610;
  --bg-2: #080a17;
  --panel: rgba(18, 20, 34, 0.78);
  --panel-strong: rgba(23, 25, 42, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(172, 126, 255, 0.34);
  --text: #f7f4ff;
  --muted: rgba(231, 226, 247, 0.72);
  --soft: rgba(231, 226, 247, 0.52);
  --accent: #925cff;
  --accent-2: #b99cff;
  --danger: #ff7777;
  --radius: 16px;
  --wide: min(94vw, 1680px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 56% 18%, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at 80% 58%, rgba(76, 55, 154, 0.2), transparent 26%),
    radial-gradient(circle at 18% 78%, rgba(82, 70, 144, 0.16), transparent 28%),
    linear-gradient(180deg, #050610 0%, #080a17 48%, #050610 100%);
  animation: glow-breathe 10s ease-in-out infinite alternate;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
  opacity: 0.42;
  z-index: -1;
}

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

[hidden] {
  display: none !important;
}

.site {
  min-height: 100vh;
}

.wide-shell {
  width: var(--wide);
  max-width: 100%;
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--wide);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 16, 0.74);
  backdrop-filter: blur(20px);
  animation: nav-enter 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 740;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 156, 255, 0.46);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(69, 38, 150, 0.84));
  color: #fff;
  font-size: 10px;
  font-weight: 820;
  box-shadow: 0 12px 34px rgba(139, 92, 246, 0.26);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.45vw, 28px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a,
.footer-links a,
.hero-cta,
.outline-cta,
.nav-cta,
.nav-login,
.account-pill {
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: #fff;
}

.nav-login {
  color: #fff;
}

.nav-cta,
.hero-cta,
.outline-cta,
.account-pill {
  min-height: 42px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 760;
  white-space: nowrap;
}

.nav-cta,
.hero-cta {
  background: linear-gradient(180deg, #9b6dff, #7b46df);
  color: #fff;
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.24);
}

.nav-cta::after,
.hero-cta::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -80%;
  width: 48%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  z-index: -1;
}

.nav-cta:hover::after,
.hero-cta:hover::after {
  animation: button-sheen 820ms ease;
  opacity: 1;
}

.outline-cta,
.account-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.nav-cta:hover,
.hero-cta:hover,
.outline-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 156, 255, 0.48);
}

.nav-cta:active,
.hero-cta:active,
.outline-cta:active {
  transform: translateY(1px);
}

.hero {
  padding: clamp(54px, 7vw, 96px) 0 34px;
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1fr);
  align-items: center;
  gap: clamp(38px, 5.4vw, 90px);
}

.hero-copy-block {
  min-width: 0;
  max-width: 640px;
}

.eyebrow,
.section-label,
.plan-label {
  margin: 0;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(38px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 760;
  overflow-wrap: break-word;
}

.eyebrow,
.hero h1,
.hero-copy,
.hero-actions,
.trust-row,
.product-preview {
  animation: rise-in 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
  animation-delay: 80ms;
}

.hero-copy {
  animation-delay: 150ms;
}

.hero-actions {
  animation-delay: 220ms;
}

.trust-row {
  animation-delay: 300ms;
}

.product-preview {
  animation-delay: 180ms;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions .hero-cta,
.hero-actions .outline-cta {
  min-height: 50px;
  padding: 0 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--soft);
  font-size: 13px;
}

.trust-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.product-preview {
  min-width: 0;
  max-width: 100%;
}

.preview-shell {
  max-width: 100%;
  min-width: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), 0 0 58px rgba(139, 92, 246, 0.14);
  backdrop-filter: blur(22px);
  animation: panel-in 920ms cubic-bezier(0.2, 0.8, 0.2, 1) both, preview-float 8s ease-in-out 1.1s infinite alternate;
}

.preview-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.09) 38%, transparent 56%);
  transform: translateX(-120%);
  animation: glass-sweep 6.5s ease-in-out 1.2s infinite;
  z-index: 2;
}

.preview-rail {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 11px;
}

.preview-main {
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
}

.preview-topline,
.board-top {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--soft);
  font-size: 12px;
}

.preview-topline strong {
  color: #fff;
}

.preview-topline button,
.board-top button {
  margin-left: auto;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(139, 92, 246, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.hero-video-frame {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #10121d;
}

.hero-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 430px;
  object-fit: contain;
  background: #080a12;
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumb-card {
  min-height: 70px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(5, 6, 16, 0.1), rgba(5, 6, 16, 0.72)),
    url("/samples/cap-product-demo-poster.jpg") center / cover;
}

.thumb-card:nth-child(2) {
  filter: saturate(0.55);
}

.thumb-card:nth-child(3) {
  background-position: 58% 50%;
}

.thumb-card:nth-child(4) {
  filter: brightness(0.76);
}

.thumb-card.active {
  border-color: rgba(185, 156, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.64), 0 0 24px rgba(139, 92, 246, 0.34);
  animation: focused-card 2.8s ease-in-out infinite;
}

.thumb-card span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.add-shot {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
}

.add-shot span {
  position: static;
  color: var(--muted);
}

.feature-strip,
.workflow-section,
.control-section,
.examples-section,
.rules-section,
.pricing-section,
.faq-section,
.final-cta {
  padding: clamp(44px, 6.4vw, 96px) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.feature-grid article {
  min-height: 138px;
  padding: 28px;
  border-right: 1px solid var(--line);
  transition: background 220ms ease, transform 220ms ease;
}

.feature-grid article:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(185, 156, 255, 0.36);
  border-radius: 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.09);
}

.feature-grid h2,
.workflow-grid h2,
.case-body h3,
.plan h3,
.faq-grid h2,
.rules-grid h2,
.control-copy h2,
.examples-copy h2,
.final-cta h2 {
  margin: 16px 0 0;
  color: #fff;
  line-height: 1.12;
  letter-spacing: 0;
}

.feature-grid h2 {
  font-size: 17px;
}

.feature-grid p,
.workflow-grid p,
.control-copy p,
.control-copy li,
.examples-copy p,
.case-body p,
.rules-grid p,
.faq-list p,
.plan li,
.final-cta p {
  color: var(--muted);
  line-height: 1.58;
}

.feature-grid p {
  margin: 8px 0 0;
  font-size: 13px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.workflow-grid article,
.plan,
.rules-panel,
.storyboard-board,
.case-card,
.placeholder-case,
.faq-list details,
.account-panel,
.mode-notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.workflow-grid article:hover,
.plan:hover,
.rules-panel:hover,
.storyboard-board:hover,
.case-card:hover,
.placeholder-case:hover,
.faq-list details:hover,
.account-panel:hover,
.mode-notice:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 156, 255, 0.32);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), 0 18px 46px rgba(0, 0, 0, 0.18);
}

.workflow-grid article {
  min-height: 220px;
  padding: 26px;
}

.workflow-grid span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.workflow-grid h2 {
  font-size: clamp(20px, 1.5vw, 28px);
}

.workflow-grid p {
  margin: 14px 0 0;
  font-size: 14px;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.control-copy h2,
.examples-copy h2,
.rules-grid h2,
.pricing-head h2,
.faq-grid h2,
.final-cta h2 {
  font-size: clamp(31px, 3vw, 52px);
  font-weight: 740;
}

.control-copy p {
  margin: 18px 0 0;
  max-width: 500px;
}

.control-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.control-copy li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
}

.control-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.12);
}

.storyboard-board {
  min-width: 0;
  padding: clamp(18px, 2.3vw, 28px);
}

.board-top {
  justify-content: space-between;
}

.scene-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.scene-card {
  min-height: 330px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 8, 18, 0.58);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.scene-card.active {
  border-color: rgba(185, 156, 255, 0.8);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.24);
}

.scene-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 156, 255, 0.42);
  background: rgba(10, 12, 26, 0.72);
}

.scene-media {
  min-height: 160px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(4, 5, 12, 0.04), rgba(4, 5, 12, 0.72)),
    url("/samples/cap-product-demo-poster.jpg") center / cover;
}

.scene-media.texture {
  filter: grayscale(0.8) brightness(0.92);
}

.scene-media.use {
  background-position: 60% 44%;
}

.scene-media.proof {
  filter: saturate(0.55);
}

.scene-media.pack {
  background-position: 42% 50%;
  filter: brightness(0.8);
}

.scene-card span {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
}

.scene-card p {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.48;
}

.scene-card b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 14px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.scene-card.active b {
  background: rgba(139, 92, 246, 0.92);
  color: #fff;
}

.examples-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(360px, 0.44fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.examples-copy,
.case-card,
.placeholder-case {
  min-height: 340px;
}

.examples-copy {
  padding: 18px 22px 18px 0;
}

.examples-copy p {
  margin: 18px 0 0;
}

.case-card-video {
  overflow: hidden;
}

.case-video-wrap {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.22), transparent 36%),
    #0a0c15;
}

.case-video-wrap video {
  display: block;
  width: min(100%, 230px);
  max-height: 310px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  background: #060711;
}

.case-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(185, 156, 255, 0.34);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(7, 8, 18, 0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.case-body {
  padding: 18px;
}

.case-body h3 {
  margin-top: 0;
  font-size: 18px;
}

.case-body p {
  margin: 8px 0 0;
  font-size: 14px;
}

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

.placeholder-case {
  min-height: 164px;
  display: grid;
  align-content: center;
  padding: 22px;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
}

.placeholder-case:hover {
  border-style: solid;
}

.placeholder-case span {
  color: #fff;
  font-weight: 760;
}

.placeholder-case p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.rules-grid,
.faq-grid,
.pricing-head,
.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(26px, 5vw, 82px);
  align-items: start;
}

.rules-grid p,
.pricing-head p {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.58;
}

.rules-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.rules-panel article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 8, 18, 0.48);
}

.rules-panel span {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.rules-panel strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  line-height: 1.32;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.plan {
  min-height: 430px;
  padding: clamp(22px, 2vw, 30px);
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(185, 156, 255, 0.78);
  background:
    radial-gradient(circle at 26% 0%, rgba(139, 92, 246, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.14);
}

.plan h3 {
  font-size: 20px;
}

.price {
  margin: 18px 0 8px;
  color: #fff;
  font-size: clamp(38px, 3vw, 52px);
  line-height: 0.96;
  font-weight: 780;
}

.price small,
.credits {
  color: var(--soft);
  font-size: 14px;
  font-weight: 650;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.plan .hero-cta,
.plan .outline-cta {
  width: 100%;
  margin-top: auto;
}

.account-panel {
  margin-top: 22px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.account-panel strong {
  display: block;
  color: #fff;
  font-size: 24px;
}

.account-panel span,
.payment-status {
  color: var(--muted);
  font-size: 14px;
}

.mode-notice {
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--accent-2);
}

.payment-status {
  min-height: 22px;
  margin: 18px 0 0;
}

.payment-status[data-tone="error"] {
  color: var(--danger);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  font-weight: 720;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14px;
}

.final-cta-inner {
  align-items: center;
  border: 1px solid rgba(185, 156, 255, 0.22);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.045));
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.final-cta-inner:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 156, 255, 0.4);
  box-shadow: 0 24px 80px rgba(139, 92, 246, 0.12);
}

.final-cta h2,
.final-cta p {
  margin: 0;
}

.final-cta p {
  margin-top: 8px;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 10px 0 30px;
  color: var(--soft);
  font-size: 12px;
}

.footer .brand {
  color: #fff;
}

.footer-links {
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer p {
  margin: 0;
  text-align: right;
}

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preview-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

@keyframes glass-sweep {
  0%,
  38% {
    transform: translateX(-120%);
    opacity: 0;
  }

  48% {
    opacity: 1;
  }

  64%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes button-sheen {
  from {
    transform: translateX(0) rotate(18deg);
  }

  to {
    transform: translateX(380%) rotate(18deg);
  }
}

@keyframes focused-card {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.58), 0 0 22px rgba(139, 92, 246, 0.3);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(225, 214, 255, 0.72), 0 0 34px rgba(139, 92, 246, 0.46);
  }
}

@keyframes glow-breathe {
  from {
    filter: saturate(0.94) brightness(0.96);
    transform: scale(1);
  }

  to {
    filter: saturate(1.08) brightness(1.04);
    transform: scale(1.018);
  }
}

@keyframes section-reveal {
  from {
    opacity: 0.01;
    transform: translateY(18px);
  }

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

@supports (animation-timeline: view()) {
  .feature-grid article,
  .workflow-grid article,
  .control-copy,
  .storyboard-board,
  .examples-copy,
  .case-card,
  .placeholder-case,
  .rules-grid,
  .plan,
  .faq-list details,
  .final-cta-inner {
    animation: section-reveal both;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
  }
}

/* Legacy smoke test checks still look for this old asset name: ai-preview-pod.png */

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

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

  .nav-links a,
  .footer-links a,
  .hero-cta,
  .outline-cta,
  .nav-cta,
  .nav-login,
  .account-pill {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .nav {
    width: calc(100% - 32px);
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-grid,
  .control-grid,
  .examples-layout,
  .rules-grid,
  .faq-grid,
  .pricing-head,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy-block {
    max-width: 760px;
  }

  .product-preview {
    max-width: 960px;
  }

  .workflow-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid article:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article:nth-child(1),
  .feature-grid article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .final-actions {
    justify-content: flex-start;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --wide: min(calc(100vw - 28px), 380px);
  }

  .site,
  main,
  .hero {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wide-shell,
  .hero-grid,
  .hero-copy-block,
  .product-preview,
  .preview-shell,
  .preview-main {
    width: min(calc(100vw - 28px), 380px);
    max-width: min(calc(100vw - 28px), 380px);
    min-width: 0;
    overflow-x: hidden;
  }

  .nav {
    min-height: 64px;
    width: calc(100% - 28px);
    gap: 12px;
  }

  .brand span:last-child {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links a:not(.account-pill):not(.nav-cta) {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 13px;
  }

  .hero {
    padding: 34px 0 22px;
  }

  .hero-grid {
    min-height: 0;
    gap: 26px;
  }

  .hero h1 {
    max-width: min(calc(100vw - 28px), 380px);
    font-size: clamp(34px, 9vw, 38px);
    overflow-wrap: break-word;
  }

  .hero h1 span {
    display: inline;
  }

  .hero h1 span + span::before {
    content: " ";
  }

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

  .hero-actions .hero-cta,
  .hero-actions .outline-cta,
  .final-actions .hero-cta,
  .final-actions .outline-cta {
    width: 100%;
  }

  .trust-row span {
    width: 100%;
  }

  .preview-shell {
    grid-template-columns: 1fr;
  }

  .preview-rail,
  .preview-topline span:nth-child(1),
  .preview-topline span:nth-child(2),
  .preview-topline span:nth-child(4) {
    display: none;
  }

  .timeline-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .workflow-grid,
  .pricing-grid,
  .rules-panel,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article:nth-child(1),
  .feature-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .feature-strip,
  .workflow-section,
  .control-section,
  .examples-section,
  .rules-section,
  .pricing-section,
  .faq-section,
  .final-cta {
    padding: 46px 0;
  }

  .scene-row {
    grid-template-columns: repeat(5, minmax(148px, 78vw));
  }

  .case-card,
  .examples-copy,
  .placeholder-case {
    min-height: 0;
  }

  .case-video-wrap {
    min-height: 360px;
  }

  .case-video-wrap video {
    max-height: 320px;
  }

  .plan,
  .workflow-grid article {
    min-height: 0;
  }
}

/* Targeted reference polish: keep the current structure, add premium depth. */
body {
  background:
    radial-gradient(circle at 58% 22%, rgba(146, 92, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #050610 0%, #080914 44%, #050610 100%);
}

body::before {
  background:
    radial-gradient(circle at 58% 19%, rgba(146, 92, 255, 0.28), transparent 27%),
    radial-gradient(circle at 84% 42%, rgba(112, 63, 214, 0.14), transparent 28%),
    radial-gradient(circle at 16% 72%, rgba(68, 55, 142, 0.12), transparent 30%),
    linear-gradient(180deg, #050610 0%, #080a17 48%, #050610 100%);
}

.nav {
  min-height: 70px;
  border-color: rgba(255, 255, 255, 0.1);
}

.brand {
  letter-spacing: -0.01em;
}

.brand-mark {
  border-radius: 9px;
  background: linear-gradient(135deg, #9f70ff, #6c38d8);
}

.hero {
  padding-top: clamp(42px, 5.3vw, 74px);
}

.hero-grid {
  min-height: clamp(560px, 66vh, 680px);
  grid-template-columns: minmax(380px, 0.62fr) minmax(640px, 1fr);
  gap: clamp(46px, 6.2vw, 110px);
}

.hero-copy-block {
  max-width: 610px;
}

.hero h1,
.control-copy h2,
.examples-copy h2,
.rules-grid h2,
.pricing-head h2,
.faq-grid h2,
.final-cta h2 {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(45px, 4.3vw, 76px);
  line-height: 0.98;
}

.hero h1 span:last-child {
  color: #d6c8ff;
}

.hero-copy {
  max-width: 540px;
  font-size: clamp(16px, 1.03vw, 18px);
}

.trust-row {
  max-width: 560px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.036);
  border-color: rgba(255, 255, 255, 0.12);
}

.preview-shell {
  grid-template-columns: 108px minmax(0, 1fr);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(12, 13, 24, 0.9);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.42),
    0 0 90px rgba(146, 92, 255, 0.2);
}

.preview-rail {
  gap: 16px;
  padding: 31px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.026));
}

.preview-rail span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.preview-rail span::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.035);
}

.preview-main {
  padding: clamp(18px, 1.8vw, 26px);
}

.preview-topline {
  gap: 14px;
}

.preview-steps {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
}

.preview-steps li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.preview-steps li::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 780;
}

.preview-steps li:nth-child(1)::before {
  content: "1";
}

.preview-steps li:nth-child(2)::before {
  content: "2";
}

.preview-steps li:nth-child(3)::before {
  content: "3";
}

.preview-steps li:nth-child(4)::before {
  content: "4";
}

.preview-steps li.active {
  color: #fff;
  font-weight: 780;
}

.preview-steps li.active::before {
  border-color: rgba(185, 156, 255, 0.66);
  background: rgba(146, 92, 255, 0.22);
  color: #fff;
  box-shadow: 0 0 20px rgba(146, 92, 255, 0.3);
}

.preview-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(146, 92, 255, 0.2));
  color: #fff;
  font-size: 11px;
  font-weight: 820;
}

.hero-video-frame {
  position: relative;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 16, 0.08), transparent 45%, rgba(5, 6, 16, 0.38));
}

.video-caption {
  position: absolute;
  top: 18%;
  left: 7%;
  max-width: 270px;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.56);
  z-index: 2;
}

.video-caption strong {
  display: block;
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.video-caption span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.thumb-card {
  min-height: 78px;
}

.feature-grid {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026)),
    rgba(8, 9, 18, 0.76);
}

.feature-icon {
  color: #c9b6ff;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-grid article,
.plan,
.rules-panel,
.storyboard-board,
.case-card,
.placeholder-case,
.faq-list details,
.account-panel,
.mode-notice {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(8, 9, 18, 0.64);
}

.examples-layout {
  grid-template-columns: minmax(250px, 0.3fr) minmax(380px, 0.46fr) minmax(340px, 0.38fr);
}

.placeholder-case {
  position: relative;
  border-color: rgba(255, 255, 255, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(6, 7, 15, 0.62);
}

.placeholder-play {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(185, 156, 255, 0.36);
  border-radius: 12px;
  background: rgba(146, 92, 255, 0.09);
}

.placeholder-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #c9b6ff;
}

.rules-panel article {
  position: relative;
  padding-left: 48px;
}

.rules-panel article::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(185, 156, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(146, 92, 255, 0.28), rgba(146, 92, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.rules-panel article::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 5px;
  height: 8px;
  border: solid #d8c9ff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.plan.featured {
  border-color: rgba(185, 156, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 54px rgba(146, 92, 255, 0.18);
}

.faq-list details[open] {
  border-color: rgba(185, 156, 255, 0.34);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .product-preview {
    max-width: 100%;
  }

  .examples-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .preview-shell {
    grid-template-columns: 1fr;
  }

  .preview-steps li:not(.active) {
    display: none;
  }

  .preview-avatar {
    display: none;
  }

  .video-caption {
    top: 14%;
    left: 7%;
    max-width: 190px;
  }

  .video-caption strong {
    font-size: 24px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }
}
