/* PhotoMux landing page. Plain CSS, no build step. */

:root {
  --bg: #07090b;
  --bg-raised: #0b0f12;
  --panel: #0f1418;
  --panel-2: #141b20;
  --line: rgba(214, 236, 240, 0.08);
  --line-strong: rgba(214, 236, 240, 0.15);
  --text: #eef3f4;
  --muted: #9aa8ad;
  --dim: #66747a;
  --teal: #4fd1c9;
  --teal-mid: #2aa7a5;
  --teal-deep: #228283;
  --slate: #33435f;
  --cream: #f3dfb3;
  --radius: 20px;
  --container: 1160px;
  --gutter: 24px;
  --font-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain over everything, very faint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 em,
h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: rgba(79, 209, 201, 0.3);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: calc(1240px + var(--gutter) * 2);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s;
}

.btn .i {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .i {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--text);
  color: #061012;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 30px -10px rgba(79, 209, 201, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 14px 40px -10px rgba(79, 209, 201, 0.7);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(214, 236, 240, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

/* ───────────── Nav ───────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.nav.is-scrolled {
  background: rgba(7, 9, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: radial-gradient(at left top, #2fa3a3, var(--slate));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 18px -6px rgba(34, 130, 131, 0.8);
}

.brand-mark svg {
  width: 17px;
  height: 17px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-signin {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-signin:hover {
  color: var(--text);
}

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  padding: 56px 0 40px;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -68px 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 38% at 50% 8%, rgba(79, 209, 201, 0.16), transparent 70%),
    radial-gradient(30% 30% at 22% 30%, rgba(51, 67, 95, 0.55), transparent 70%),
    radial-gradient(28% 26% at 80% 34%, rgba(243, 223, 179, 0.07), transparent 70%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(79, 209, 201, 0.45);
}

.pill .i {
  width: 14px;
  height: 14px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(79, 209, 201, 0.16);
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(3rem, 8.4vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-title em {
  display: inline-block;
  padding: 0 0.06em 0.08em 0;
  font-size: 1.06em;
  background: linear-gradient(100deg, #9cf0e8 0%, var(--teal) 38%, var(--cream) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--dim);
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes .i {
  color: var(--teal);
  width: 14px;
  height: 14px;
}

/* ───────────── Canvas window (hero visual) ───────────── */

.canvas-window {
  position: relative;
  margin: 60px 0 0;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-raised);
  background-image: radial-gradient(rgba(214, 236, 240, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 50px 120px -40px rgba(42, 167, 165, 0.32),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform-origin: 50% 0%;
}

/* Light catching the top edge. */
.canvas-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(156, 240, 232, 0.55), transparent);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .canvas-window {
      animation: tilt-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }

    @keyframes tilt-in {
      from {
        transform: perspective(1800px) rotateX(14deg) scale(0.94);
      }
      to {
        transform: none;
      }
    }
  }
}

.cw-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 18, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.cw-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
}

.cw-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  background: radial-gradient(at left top, #2fa3a3, var(--slate));
}

.cw-mark svg {
  width: 13px;
  height: 13px;
}

.cw-dim,
.cw-sep {
  color: var(--dim);
}

.cw-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.cw-replay:hover {
  color: var(--text);
  border-color: rgba(214, 236, 240, 0.3);
}

.cw-replay[hidden] {
  display: none;
}

.cw-zoom {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.cw-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.cw-viewport::-webkit-scrollbar {
  display: none;
}

.cw-sizer {
  position: relative;
  width: 1200px;
  height: 640px;
  margin: 0 auto;
}

.cw-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 640px;
  transform-origin: 0 0;
}

.cw-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.edge {
  fill: none;
  stroke: rgba(170, 214, 220, 0.28);
  stroke-width: 2;
  transition:
    stroke 0.3s,
    opacity 0.3s;
}

.edge-flow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.3s;
  animation: edge-flow 0.9s linear infinite;
}

.edge-flow.is-active {
  opacity: 1;
}

@keyframes edge-flow {
  to {
    stroke-dashoffset: -12;
  }
}

/* Lineage highlight on hover. */
.cw-stage.is-tracing .edge {
  opacity: 0.25;
}

.cw-stage.is-tracing .edge.is-lit {
  opacity: 1;
  stroke: var(--teal);
}

.cw-stage.is-tracing .node {
  opacity: 0.35;
}

.cw-stage.is-tracing .node.is-lit {
  opacity: 1;
}

.node {
  position: absolute;
  width: 168px;
  height: 192px;
  padding: 6px;
  border-radius: 14px;
  background: #121a1e;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.55s var(--ease-out),
    box-shadow 0.3s,
    border-color 0.3s;
}

.node[data-state="hidden"] {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
}

.node.is-selected {
  border-color: rgba(79, 209, 201, 0.9);
  box-shadow:
    0 0 0 3px rgba(79, 209, 201, 0.22),
    0 18px 40px -18px rgba(0, 0, 0, 0.9);
}

/* Connection handles, like the real canvas. */
.node::before,
.node::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #0b0f12;
  border: 1.5px solid rgba(170, 214, 220, 0.45);
}

.node::before {
  top: -5px;
}

.node::after {
  bottom: -5px;
}

.node-thumb {
  position: relative;
  width: 154px;
  height: 154px;
  border-radius: 9px;
  overflow: hidden;
  background: #0a0e10;
}

.node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(14px) saturate(1.3);
  transform: scale(1.08);
  transition:
    opacity 0.6s var(--ease-out),
    filter 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.node[data-state="done"] .node-thumb img {
  opacity: 1;
  filter: none;
  transform: none;
}

.node-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(7, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #dfe9eb;
  font-size: 10.5px;
  font-weight: 500;
}

.node-tag .i {
  width: 10px;
  height: 10px;
  color: var(--teal);
}

/* Generating shimmer. */
.node-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s;
  background:
    linear-gradient(110deg, transparent 30%, rgba(79, 209, 201, 0.12) 50%, transparent 70%) 0 0 / 250% 100%,
    linear-gradient(160deg, #11191d, #0c1215);
  animation: shimmer 1.4s linear infinite;
}

.node[data-state="generating"] .node-loading {
  opacity: 1;
}

.node-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(79, 209, 201, 0.2);
  border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
}

@keyframes shimmer {
  from {
    background-position:
      150% 0,
      0 0;
  }
  to {
    background-position:
      -100% 0,
      0 0;
  }
}

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

.node-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 6px 3px 0;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.node-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prompt bar overlaid at the bottom of the canvas. */
.promptbar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(580px, calc(100% - 24px));
  height: 54px;
  padding: 0 8px 0 10px;
  transform: translateX(-50%);
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 22, 26, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 14px;
}

.pb-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.pb-field {
  position: relative;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pb-typed {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-caret {
  display: inline-block;
  width: 1.5px;
  height: 17px;
  margin-left: 1px;
  background: var(--teal);
  animation: blink 1s steps(1) infinite;
}

.pb-placeholder {
  position: absolute;
  left: 4px;
  color: var(--dim);
  transition: opacity 0.2s;
}

/* Vanish at the first keystroke; only fade when coming back. */
.pb-placeholder.is-hidden {
  opacity: 0;
  transition: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.pb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.pb-chip .i {
  width: 12px;
  height: 12px;
  color: var(--teal);
}

.pb-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--text);
  color: #061012;
  transition:
    transform 0.15s,
    background-color 0.2s;
}

.pb-send.is-pressed {
  transform: scale(0.88);
  background: var(--teal);
}

/* ───────────── Models strip ───────────── */

.models {
  padding: 64px 0 24px;
}

.models-title {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
}

.models-title strong {
  color: var(--muted);
  font-weight: 500;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee-text {
  margin-top: 22px;
}

.marquee-text span {
  padding: 0 28px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(214, 236, 240, 0.42);
  white-space: nowrap;
}

/* ───────────── Sections ───────────── */

.section {
  padding: 128px 0 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
  text-align: left;
}

.section-head-row .section-lede {
  max-width: 400px;
  margin: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section h2,
.final h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.section h2 em,
.final h2 em {
  color: #c9ece8;
}

.section-lede {
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

/* Scroll reveal: only hidden once JS is known to be running. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ───────────── Steps ───────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  overflow: hidden;
}

.step:nth-child(2) {
  transition-delay: 0.08s;
}

.step:nth-child(3) {
  transition-delay: 0.16s;
}

.step-visual {
  position: relative;
  height: 210px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-raised);
  background-image: radial-gradient(rgba(214, 236, 240, 0.08) 1px, transparent 1.2px);
  background-size: 18px 18px;
  overflow: hidden;
}

.step-copy {
  padding: 24px 26px 28px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

.step h3 {
  margin-top: 10px;
  font-size: 21px;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.step-describe {
  display: grid;
  place-items: center;
  padding: 0 22px;
}

.mini-prompt {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 22, 26, 0.92);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}

.mini-prompt-text {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  min-height: 2.9em;
}

.mini-prompt-text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--teal);
  animation: blink 1s steps(1) infinite;
}

.mini-prompt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px 0 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.mini-chip img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.mini-chip-muted {
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.mini-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 9px;
  background: var(--text);
  color: #061012;
  font-size: 15px;
}

.mini-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini-edges path {
  fill: none;
  stroke: rgba(170, 214, 220, 0.35);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mini-node {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid #121a1e;
  outline: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, 0);
}

/* Positions are percentages of the 240×150 mini-edge viewBox. */
.mn-root {
  left: 50%;
  top: 8%;
  width: 72px;
  height: 72px;
  outline-color: rgba(79, 209, 201, 0.8);
}

.mn-a {
  left: 16.6%;
  top: 60%;
}

.mn-b {
  left: 50%;
  top: 60%;
}

.mn-c {
  left: 83.3%;
  top: 60%;
}

.mn-ghost {
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(79, 209, 201, 0.55);
  outline: none;
  background: rgba(79, 209, 201, 0.06);
  color: var(--teal);
  font-size: 20px;
}

.mn-l {
  left: 27.5%;
  top: 8%;
}

.mn-r {
  left: 72.5%;
  top: 8%;
}

.mn-mid {
  left: 50%;
  top: 60%;
  width: 72px;
  height: 72px;
  outline-color: rgba(79, 209, 201, 0.8);
}

/* ───────────── Showcase ───────────── */

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 72px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 34px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.tabs button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}

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

.tabs button[aria-selected="true"] {
  background: var(--text);
  color: #061012;
}

.showcase-visual {
  position: relative;
}

.showcase-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  background: var(--panel);
}

.showcase-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.8s var(--ease-out),
    transform 1.6s var(--ease-out);
}

.showcase-frame img.is-active {
  opacity: 1;
  transform: none;
}

.showcase-prompt {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 9, 11, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.4;
}

.showcase-prompt-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(79, 209, 201, 0.14);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lineage {
  position: absolute;
  right: -28px;
  top: 32px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 20, 24, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
}

.lineage-node {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 0;
  outline: 1.5px solid var(--line-strong);
  outline-offset: 1px;
  background: none;
  cursor: pointer;
  transition: outline-color 0.25s;
}

.lineage-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineage-node.is-active {
  outline-color: var(--teal);
}

.lineage-fork svg {
  display: block;
  width: 28px;
  height: 108px;
}

.lineage-fork path {
  fill: none;
  stroke: rgba(170, 214, 220, 0.4);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.lineage-children {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ───────────── Toolkit bento ───────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
}

.card-7 {
  grid-column: span 7;
}

.card-5 {
  grid-column: span 5;
}

.card-4 {
  grid-column: span 4;
}

.card-visual {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.card-copy {
  padding: 22px 26px 26px;
}

.card h3 {
  font-size: 19px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Remove background: a wipe from white to transparency checkerboard. */
.v-cutout {
  isolation: isolate;
}

.cutout-checker,
.cutout-white {
  position: absolute;
  inset: 0;
}

.cutout-checker {
  background: repeating-conic-gradient(#e4e9eb 0 25%, #ffffff 0 50%) 0 0 / 22px 22px;
}

.cutout-white {
  background: #fff;
  animation: wipe 7s var(--ease-out) infinite;
}

.v-cutout img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 112%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.cutout-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--teal);
  box-shadow: 0 0 18px 2px rgba(79, 209, 201, 0.7);
  animation: scan 7s var(--ease-out) infinite;
}

@keyframes wipe {
  0%,
  12% {
    clip-path: inset(0 0 0 0);
  }
  48%,
  86% {
    clip-path: inset(0 0 0 100%);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes scan {
  0%,
  12% {
    left: 0%;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  46% {
    opacity: 1;
  }
  48%,
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Inpaint: brush strokes paint a mask, then the edit appears. The photo sits
   in a square so the mask lines up at any card width; the card is filled with
   the photo's own studio grey and the square's sides feather into it. */
.v-inpaint {
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #cccccc, #d6d6d6);
}

.inpaint-square {
  position: relative;
  height: 100%;
  aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.v-inpaint img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inpaint-after {
  animation: inpaint-after 8s ease-in-out infinite;
}

.inpaint-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.inpaint-mask path {
  fill: none;
  stroke: rgba(79, 209, 201, 0.5);
  stroke-width: 44;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: inpaint-mask 8s ease-in-out infinite;
}

.inpaint-chip {
  position: absolute;
  left: 50%;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(7, 9, 11, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: inpaint-chip 8s ease-in-out infinite;
}

@keyframes inpaint-mask {
  0%,
  6% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  34% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  52% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes inpaint-chip {
  0%,
  30% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  38%,
  56% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  64%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
}

@keyframes inpaint-after {
  0%,
  52% {
    opacity: 0;
  }
  62%,
  90% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* Upscale: pixelated vs sharp, split by a moving divider. */
.upscale-layer {
  position: absolute;
  inset: 0;
  background-size: 210%;
  background-position: 62% 30%;
  background-repeat: no-repeat;
}

.upscale-sharp {
  background-image: url("/img/chameleon.webp");
  background-color: #fff;
}

.upscale-low {
  background-image: url("/img/chameleon-lowres.png");
  background-color: #fff;
  image-rendering: pixelated;
  clip-path: inset(0 50% 0 0);
  animation: upscale-clip 6s ease-in-out infinite;
}

.upscale-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  animation: upscale-divider 6s ease-in-out infinite;
}

.upscale-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.upscale-label {
  position: absolute;
  top: 14px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(7, 9, 11, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
}

.upscale-label-l {
  left: 14px;
}

.upscale-label-r {
  right: 14px;
  color: var(--teal);
}

@keyframes upscale-clip {
  0%,
  100% {
    clip-path: inset(0 70% 0 0);
  }
  50% {
    clip-path: inset(0 30% 0 0);
  }
}

@keyframes upscale-divider {
  0%,
  100% {
    left: 30%;
  }
  50% {
    left: 70%;
  }
}

/* Vectorize: the logo traces itself, then fills. */
.v-vector {
  display: grid;
  place-items: center;
  background-color: var(--bg-raised);
  background-image:
    linear-gradient(rgba(214, 236, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 236, 240, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

.vector-logo {
  width: 150px;
  height: 150px;
  overflow: visible;
}

.vector-logo path {
  fill: var(--teal);
  fill-opacity: 0;
  stroke: var(--teal);
  stroke-width: 0.08;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: vector-draw 7s ease-in-out infinite;
}

.vector-anchors rect {
  fill: var(--bg-raised);
  stroke: #fff;
  stroke-width: 0.06;
  opacity: 0;
  animation: vector-anchors 7s ease-in-out infinite;
}

.vector-tag {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(79, 209, 201, 0.14);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
}

@keyframes vector-draw {
  0% {
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }
  45% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  62%,
  88% {
    stroke-dashoffset: 0;
    fill-opacity: 0.9;
  }
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
}

@keyframes vector-anchors {
  0%,
  20% {
    opacity: 0;
  }
  32%,
  58% {
    opacity: 1;
  }
  68%,
  100% {
    opacity: 0;
  }
}

/* 3D: a rotating wireframe mesh drawn on canvas. */
.v-3d {
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, rgba(79, 209, 201, 0.12), transparent 70%), var(--bg-raised);
}

.mesh {
  width: 100%;
  height: 100%;
  max-width: 320px;
  max-height: 240px;
}

.mesh-floor {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 140px;
  height: 18px;
  margin-left: -70px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 209, 201, 0.25), transparent);
}

/* Video: slow push-in with player chrome. */
.v-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  animation: ken-burns 8s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.14) translate(-2%, -1%);
  }
}

.video-ui {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: rgba(7, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #061012;
  font-size: 13px;
}

.video-play .i {
  fill: currentColor;
  margin-left: 2px;
}

.video-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.video-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), #f19bd9);
  transform-origin: 0 50%;
  animation: progress 8s linear infinite;
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.video-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.video-tags {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.video-tags span {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(7, 9, 11, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* Outpaint: a square grows to 16:9, the new area shimmering in. */
.v-outpaint {
  display: grid;
  place-items: center;
}

.outpaint-frame {
  position: relative;
  height: 180px;
  width: 180px;
  border-radius: 10px;
  overflow: hidden;
  animation: outpaint-grow 7s var(--ease-out) infinite;
}

.outpaint-fill {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.2) brightness(0.9);
  opacity: 0.85;
}

.outpaint-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%) 0 0 / 250% 100%;
  animation: shimmer 1.6s linear infinite;
}

.outpaint-frame img {
  position: absolute;
  left: 50%;
  top: 0;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  object-fit: cover;
  outline: 1.5px dashed rgba(255, 255, 255, 0.75);
  outline-offset: -1px;
}

.outpaint-ratio {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

@keyframes outpaint-grow {
  0%,
  14% {
    width: 180px;
  }
  52%,
  86% {
    width: 320px;
  }
  100% {
    width: 180px;
  }
}

/* ───────────── Styles marquee ───────────── */

.styles-section .section-head {
  margin-bottom: 48px;
}

.marquee-tiles + .marquee-tiles {
  margin-top: 16px;
}

.marquee-tiles .marquee-track {
  gap: 16px;
  padding-right: 16px;
  animation-duration: 90s;
}

.style-tile {
  position: relative;
  flex: none;
  width: 168px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.style-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.style-tile:hover img {
  transform: scale(1.06);
}

.style-tile span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(7, 9, 11, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 500;
}

/* ───────────── API ───────────── */

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 72px;
}

.api-points {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.api-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.api-points strong {
  color: var(--text);
  font-weight: 500;
}

.api-points .i {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(79, 209, 201, 0.1);
  color: var(--teal);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--teal);
  font-weight: 500;
}

.link-arrow .i {
  transition: transform 0.25s var(--ease-out);
}

.link-arrow:hover .i {
  transform: translateX(4px);
}

.code-window {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #0a0e11;
  box-shadow:
    0 50px 100px -40px rgba(42, 167, 165, 0.25),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}

.code-method {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(79, 209, 201, 0.14);
  color: var(--teal);
  font-weight: 500;
  font-size: 11.5px;
}

.code-path {
  color: var(--muted);
}

.code-copy {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.code-copy:hover {
  color: var(--text);
  border-color: rgba(214, 236, 240, 0.3);
}

.code {
  margin: 0;
  padding: 22px 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #a9b6ba;
  tab-size: 2;
}

.t-cmd {
  color: #5ee6d6;
}

.t-flag {
  color: #f59acb;
}

.t-str {
  color: #e8c27e;
}

.t-key {
  color: #82b1ff;
}

.t-val {
  color: #e8c27e;
}

.t-num {
  color: #ff9e64;
}

.code-response {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(79, 209, 201, 0.04);
  font-size: 13px;
  color: var(--muted);
}

.code-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
}

.code-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.code-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

/* ───────────── Pricing + FAQ ───────────── */

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

.price-card {
  position: relative;
  padding: 44px 40px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 70% at 0% 0%, rgba(79, 209, 201, 0.14), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(51, 67, 95, 0.6), transparent 70%),
    var(--panel);
  overflow: hidden;
}

.price-card > p:not(.kicker) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.price-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

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

.faq details {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.25s,
    background-color 0.25s;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  margin: -0.75px 0 0 -4.5px;
  background: var(--muted);
  transition: transform 0.3s var(--ease-out);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq details[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ───────────── Final CTA ───────────── */

.final {
  position: relative;
  margin-top: 140px;
  padding: 150px 0 160px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 60% at 50% 50%, rgba(79, 209, 201, 0.12), transparent 70%);
}

.final-images {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.final-images img {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 18px;
  object-fit: cover;
  opacity: 0.32;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.final-images img:nth-child(1) {
  left: 6%;
  top: 14%;
  transform: rotate(-8deg);
}

.final-images img:nth-child(2) {
  right: 7%;
  top: 10%;
  transform: rotate(7deg);
}

.final-images img:nth-child(3) {
  left: 14%;
  bottom: -6%;
  width: 160px;
  height: 160px;
  transform: rotate(5deg);
}

.final-images img:nth-child(4) {
  right: 15%;
  bottom: -8%;
  width: 170px;
  height: 170px;
  transform: rotate(-6deg);
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final h2 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.final p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.final .btn {
  margin-top: 36px;
}

/* ───────────── Footer ───────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 260px;
  color: var(--dim);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto));
  gap: 48px;
}

.footer-cols h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-base {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  color: var(--dim);
  font-size: 13px;
}

/* Rule spans the content width, not the gutters. */
.footer-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.footer-base a:hover {
  color: var(--text);
}

/* ───────────── Responsive ───────────── */

@media (max-width: 1080px) {
  .lineage {
    right: 16px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .step:nth-child(n) {
    transition-delay: 0s;
  }

  .showcase-grid,
  .api-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .card-7,
  .card-5 {
    grid-column: span 12;
  }

  .card-4 {
    grid-column: span 6;
  }

  .card-3d {
    grid-column: span 12;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .section-head-row .section-lede {
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .nav-signin {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-ctas {
    width: 100%;
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .canvas-window {
    margin-top: 48px;
    border-radius: 18px;
  }

  .cw-zoom {
    display: none;
  }

  .promptbar {
    bottom: 10px;
    height: 46px;
    gap: 8px;
    font-size: 13px;
    border-radius: 13px;
  }

  .pb-plus,
  .pb-chip {
    display: none;
  }

  .pb-field {
    padding-left: 6px;
  }

  .pb-placeholder {
    left: 6px;
  }

  .pb-send {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .section {
    padding-top: 96px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .section-lede {
    font-size: 16px;
  }

  .card-4 {
    grid-column: span 12;
  }

  .card-visual {
    height: 240px;
  }

  .tabs {
    display: flex;
    width: 100%;
  }

  .tabs button {
    flex: 1;
    padding: 0 8px;
  }

  .lineage {
    top: 14px;
    right: 14px;
    padding: 7px;
    border-radius: 13px;
  }

  .lineage-node {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .lineage-fork svg {
    width: 20px;
    height: 84px;
  }

  .lineage-children {
    gap: 16px;
  }

  .showcase-prompt {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 13px;
  }

  .style-tile {
    width: 132px;
    height: 132px;
  }

  .price-card {
    padding: 34px 24px;
  }

  .final {
    margin-top: 110px;
    padding: 110px 0 120px;
  }

  .final-images img {
    width: 120px;
    height: 120px;
    opacity: 0.22;
  }

  .final-images img:nth-child(3),
  .final-images img:nth-child(4) {
    width: 110px;
    height: 110px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-base {
    flex-direction: column;
  }
}

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

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

  .marquee-track {
    animation: none !important;
  }

  .marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* Freeze the looping demos on their most informative frame. */
  .cutout-white {
    clip-path: inset(0 0 0 100%);
  }

  .inpaint-after {
    opacity: 1;
  }

  .inpaint-mask path,
  .inpaint-chip {
    opacity: 0;
  }

  .vector-logo path {
    stroke-dashoffset: 0;
    fill-opacity: 0.9;
  }

  .cutout-scan {
    display: none;
  }

  .outpaint-frame {
    width: 320px;
  }
}
