:root {
  color-scheme: dark;
  --bg: #090b13;
  --panel: #111523;
  --panel-2: #171d31;
  --text: #f7efe8;
  --muted: #aeb7c8;
  --accent: #ff6a4a;
  --accent-2: #ffd166;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 106, 74, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(255, 209, 102, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(9, 11, 19, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 106, 74, 0.42));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff9b5f);
  color: #160b07;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(255, 106, 74, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.button.small {
  min-height: 2.4rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.button.full {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}

.checkout-status {
  min-height: 1.5rem;
  color: var(--accent-2);
}

.checkout-inline {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.checkout-inline label {
  margin-bottom: 0;
}

.checkout-inline-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--accent-2);
  font-size: 0.86rem;
  line-height: 1.35;
}

.checkout-inline button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  min-height: auto;
}

.hero-with-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.hero-video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: #05060a;
  box-shadow: var(--shadow);
}

.hero-video-card video {
  display: block;
  width: 100%;
  max-height: min(72vh, 680px);
  background: #05060a;
}

.hero-video-card figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero-video-card details {
  color: var(--muted);
}

.hero-video-card summary {
  color: var(--accent-2);
  cursor: pointer;
  font-weight: 800;
}

.hero-video-card p {
  margin: 0.7rem 0 0;
}

.docs-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.hero-text,
.section-heading p,
.docs-section p,
.cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0;
}

.domain-catalog-intro {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.domain-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.domain-block {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow);
}

.domain-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.domain-block p {
  color: var(--muted);
  line-height: 1.65;
}

.domain-block ul {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  color: var(--text);
  line-height: 1.55;
}

.domain-block li {
  margin: 0.35rem 0;
}

.domain-see {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.domain-see a {
  color: var(--accent-2);
}

.citation {
  margin-left: 0.12rem;
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}

.citation a,
.references-list a {
  color: var(--accent-2);
}

.references-list {
  max-width: 920px;
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.references-list li {
  margin: 0.65rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.proof-grid--single {
  grid-template-columns: minmax(0, min(28rem, 100%));
}
.proof-grid div,
.card,
.price-card,
.controls,
.preview-frame,
.code-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.proof-grid div {
  padding: 1rem;
  border-radius: 1.2rem;
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
}

dd {
  margin: 0.25rem 0 0;
  font-weight: 800;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #05060a;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
}

.hero-card-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(9, 11, 19, 0.78);
  backdrop-filter: blur(18px);
}

.section-heading {
  margin-bottom: 2rem;
}

.demo-shell,
.docs-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.controls {
  padding: 1.2rem;
  border-radius: 1.5rem;
}

.controls .muted-label {
  opacity: 0.88;
  font-weight: 600;
}

label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 700;
}

select,
input[type="range"],
input[type="email"],
textarea {
  width: 100%;
  accent-color: var(--accent);
}

select,
input[type="email"],
textarea {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #0c101c;
  color: var(--text);
}

textarea {
  resize: vertical;
  font: inherit;
}

.lead-form {
  display: grid;
  gap: 0.8rem;
  max-width: 560px;
  margin-top: 1.4rem;
}

.pricing .section-heading {
  margin-bottom: 1rem;
}

.checkout-form {
  margin-top: 0.9rem;
}

.checkout-form label {
  margin-bottom: 0.25rem;
}

.demo-stats {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.92rem;
}

.demo-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.preview-frame {
  overflow: hidden;
  display: grid;
  min-height: 620px;
  place-items: center;
  border-radius: 1.5rem;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.035) 75%),
    #05060a;
  background-size: 28px 28px;
}
.demo-svg-scale-wrap {
  width: 92%;
  height: 92%;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.demo-svg-host {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-svg-host svg {
  max-width: 100%;
  max-height: min(72vh, 720px);
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.model-preview {
  width: min(94%, 820px);
  display: grid;
  gap: 1.4rem;
  place-items: center;
  color: var(--muted);
  text-align: center;
  perspective: 1100px;
}

.spectre-3d-stage {
  --rx: 62deg;
  --rz: -22deg;
  width: min(76vw, 620px);
  height: min(54vw, 390px);
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  transform-style: preserve-3d;
}

.spectre-3d-stage.is-dragging {
  cursor: grabbing;
}

.spectre-3d-slab {
  position: relative;
  width: 86%;
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.spectre-3d-stage.is-dragging .spectre-3d-slab {
  transition: none;
}

.spectre-3d-slab svg {
  grid-area: 1 / 1;
  width: 100%;
  max-height: 22rem;
  pointer-events: none;
  user-select: none;
}

.spectre-3d-depth-layer {
  opacity: 0.22;
  filter: brightness(0.62) saturate(0.55);
  transform:
    translate3d(calc(var(--layer) * -0.18rem), calc(var(--layer) * 0.18rem), calc(var(--layer) * -0.085rem));
}

.spectre-3d-top {
  position: relative;
  z-index: 2;
  transform: translateZ(0.12rem);
  filter: drop-shadow(0 1.1rem 1.8rem rgba(0, 0, 0, 0.45));
}

.model-preview p {
  max-width: 38rem;
  margin: 0;
}

.demo-loading,
.demo-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.cards,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
.price-card {
  padding: 1.35rem;
  border-radius: 1.4rem;
}

.card p,
.price-card li {
  color: var(--muted);
  line-height: 1.6;
}

.card pre {
  overflow-x: auto;
  margin: 0;
  color: #f8e8d9;
  font-size: 0.85rem;
  line-height: 1.5;
}

.docs-section {
  align-items: center;
}

.code-card {
  overflow-x: auto;
  margin: 0;
  padding: 1.4rem;
  border-radius: 1.5rem;
  color: #f8e8d9;
  line-height: 1.6;
}

.markdown-preview {
  max-height: 70vh;
  white-space: pre-wrap;
}

.price-card ul {
  padding-left: 1.2rem;
}

.price {
  color: var(--accent-2);
  font-size: 2rem;
  font-weight: 900;
}

.price-quote {
  color: var(--accent-2);
  font-size: 1.75rem;
  font-weight: 800;
}

.price-unit {
  font-size: 1.05rem;
  font-weight: 650;
}

.price-note {
  margin-top: -0.35rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pricing-value-lede {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

ul.pricing-value-list {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pricing-actions .button.secondary {
  text-align: center;
}

.pricing-actions .button {
  width: 100%;
  box-sizing: border-box;
}

.pricing-ip-note {
  max-width: 52rem;
  margin: 1.85rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.pricing-ip-note strong {
  color: color-mix(in srgb, var(--text) 86%, transparent);
}


.featured {
  border-color: rgba(255, 106, 74, 0.5);
  background: linear-gradient(180deg, rgba(255, 106, 74, 0.18), rgba(255, 255, 255, 0.04));
}

.cta {
  margin-bottom: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 106, 74, 0.16), rgba(255, 209, 102, 0.08));
}

#access.cta {
  padding: clamp(2.25rem, 5vw, 4.25rem);
}

#access .hero-actions {
  padding-top: 1rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
  line-height: 1.7;
}

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

  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .hero-with-video,
  .demo-shell,
  .docs-section,
  .cards,
  .domain-catalog,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .preview-frame {
    min-height: 420px;
  }

  .footer {
    flex-direction: column;
  }
}


/* --- Bug report widget --- */
.button-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.button-link:hover { color: var(--accent-2); }

.dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  padding: 24px;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
}
.dialog::backdrop {
  background: rgba(9, 11, 19, 0.65);
  backdrop-filter: blur(4px);
}
.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog-form h3 { margin: 0; }
.dialog-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.dialog-form input,
.dialog-form textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.dialog-help { color: var(--muted); font-size: 13px; margin: 0; }
.dialog-status { color: var(--accent-2); font-size: 13px; margin: 0; min-height: 1em; }

/* --- Compact API-site visual system --- */
:root {
  --bg: #0b0d11;
  --panel: #12151c;
  --panel-2: #181c25;
  --text: #f4efe8;
  --muted: #b7bdc8;
  --accent: #f07048;
  --accent-2: #f4c86a;
  --line: rgba(244, 239, 232, 0.14);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(180deg, rgba(240, 112, 72, 0.08), transparent 18rem),
    linear-gradient(90deg, rgba(244, 200, 106, 0.035), transparent 34rem),
    var(--bg);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--accent-2);
  text-underline-offset: 3px;
}

.site-header {
  min-height: 3.45rem;
  padding: 0 clamp(1.75rem, 6vw, 8rem);
  background: #0a0b0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: none;
}

.brand {
  align-self: stretch;
  padding-right: 1.5rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand span {
  white-space: nowrap;
}

.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  filter: drop-shadow(0 0 10px rgba(240, 112, 72, 0.45));
}

.nav {
  align-self: stretch;
  gap: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 1.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.header-actions {
  align-self: stretch;
  gap: 0.5rem;
  padding-left: 1rem;
}

.section {
  width: min(980px, calc(100% - 2rem));
  padding: clamp(1.9rem, 4.5vw, 3.4rem) 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
  padding-top: clamp(2.1rem, 5vw, 3.8rem);
  padding-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.hero-copy,
.section-heading,
.docs-section > div {
  max-width: 780px;
}

.docs-hero {
  min-height: 0;
  justify-content: flex-start;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--accent-2);
  font-size: 0.74rem;
  letter-spacing: 0.055em;
  text-transform: none;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.032em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.hero-text,
.section-heading p,
.docs-section p,
.domain-catalog-intro,
.cta p {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.hero-actions {
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.button,
.button.small,
.button.full {
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.22rem;
  background: linear-gradient(180deg, #ff875e, var(--accent));
  color: #140b07;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: none;
}

.button.secondary {
  background: #151922;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.button:hover {
  filter: brightness(1.08);
}

.proof-grid div,
.card,
.price-card,
.controls,
.preview-frame,
.code-card,
.domain-block,
.cta,
.dialog {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 0.32rem;
  background: #12151c;
  box-shadow: var(--shadow);
}

.domain-block,
.card,
.price-card {
  padding: 1rem 1.05rem;
}

.card,
.price-card,
.domain-block {
  border-left: 3px solid rgba(240, 112, 72, 0.74);
}

.card p,
.price-card li,
.domain-block p,
.domain-block li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cards,
.pricing-grid {
  gap: 0.85rem;
}

.demo-shell,
.docs-section {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.controls {
  padding: 0.95rem;
}

label {
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
}

select,
input[type="email"],
textarea {
  border-radius: 0.2rem;
  background: #0d1016;
  color: var(--text);
  font: inherit;
}

.preview-frame {
  min-height: 440px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #080a0e;
  background-size: 24px 24px;
}

.demo-svg-host svg {
  max-height: min(58vh, 520px);
}

.model-preview {
  gap: 0.85rem;
}

.spectre-3d-stage {
  width: min(68vw, 520px);
  height: min(48vw, 330px);
}

.code-card,
.card pre,
code,
pre {
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
}

.code-card {
  padding: 1rem;
  color: #ffe4c7;
  font-size: 0.88rem;
  line-height: 1.55;
}

.featured {
  border-color: rgba(240, 112, 72, 0.8);
  border-left-color: var(--accent-2);
  background: #171a22;
}

.price {
  margin-bottom: 0.15rem;
  color: var(--accent-2);
  font-size: 1.7rem;
}

.price-note,
.pricing-ip-note,
.checkout-status {
  color: var(--muted);
}

.pricing-actions {
  gap: 0.45rem;
}

.pricing-ip-note {
  max-width: 760px;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
}

.lead-form {
  max-width: 460px;
}

.footer {
  justify-content: center;
  padding: 1.35rem clamp(1rem, 5vw, 7rem);
  background: #0a0b0e;
  border-top-color: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.button-link {
  color: var(--accent-2);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .brand {
    padding-right: 0;
    font-size: 1.12rem;
  }

  .header-actions {
    align-self: auto;
    padding-left: 0;
  }

  .demo-shell,
  .docs-section {
    grid-template-columns: 1fr;
  }

  .preview-frame {
    min-height: 360px;
  }
}

/* Vertical launch video layout */
.hero-with-video {
  grid-template-columns: minmax(0, 1fr) minmax(250px, min(34vw, 360px));
}

.hero-video-card {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  border-radius: 1rem;
}

.hero-video-card video {
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(74vh, 680px);
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-video-card {
    width: min(100%, 360px);
    justify-self: center;
  }

  .hero-video-card video {
    max-height: min(68vh, 620px);
  }
}

@media (max-width: 520px) {
  .hero-with-video {
    gap: 1.35rem;
  }

  .hero-video-card {
    width: min(100%, 320px);
  }

  .hero-video-card figcaption {
    padding: 0.65rem 0.75rem;
  }
}

/* Launch proof and sample downloads */
.hero-proof-list {
  display: grid;
  gap: 0.45rem;
  max-width: 760px;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero-proof-list li::marker {
  color: var(--accent-2);
}

.samples-section {
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.sample-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.65rem;
}

.sample-downloads a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px solid var(--accent);
  border-radius: 0.28rem;
  background: #12151c;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.sample-downloads a:hover {
  border-left-color: var(--accent-2);
  color: var(--accent-2);
}

.code-stack {
  display: grid;
  gap: 0.75rem;
}

.code-card-secondary {
  font-size: 0.8rem;
}

/* Free JPG/PNG generator */
.generator-hero {
  width: min(1240px, calc(100% - clamp(3rem, 8vw, 9rem)));
  display: grid;
  gap: 1.15rem;
  padding-top: clamp(1.75rem, 4vw, 3.25rem);
}

.generator-copy {
  max-width: 940px;
}

.generator-intro {
  display: flow-root;
}

.generator-copy h1 {
  max-width: 850px;
}

.generator-video-card {
  overflow: hidden;
  float: right;
  width: clamp(190px, 22vw, 235px);
  margin: 0 0 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.42rem;
  background: #05060a;
  box-shadow: var(--shadow);
}

.generator-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #05060a;
}

.hero-context {
  margin-top: 0.75rem;
}

.hero-context a {
  color: var(--accent-2);
  font-weight: 900;
}

.generator-app {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.generator-controls,
.generator-preview-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.42rem;
  background: #12151c;
  box-shadow: var(--shadow);
}

.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-left: 3px solid var(--accent);
}

.generator-control-header .eyebrow {
  margin-bottom: 0;
}

.generator-control-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.65rem;
  align-items: start;
}

.range-readout {
  color: var(--muted);
  font-size: 0.84rem;
}

.palette-editor {
  display: grid;
  gap: 0.45rem;
}

.palette-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.32rem;
}

.palette-slot {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.28rem;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.04) 75%),
    #0d1016;
  background-size: 16px 16px;
}

.palette-slot > span {
  position: absolute;
  top: 0.12rem;
  left: 0.22rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.palette-slot input[type="color"] {
  width: 100%;
  height: 2.05rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.22rem;
  background: transparent;
  cursor: pointer;
}

.palette-slot.is-transparent input[type="color"] {
  opacity: 0.03;
}

.palette-transparent {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  z-index: 4;
  display: none;
  transform: translateX(-50%);
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.24rem;
  background: #0d1016;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.palette-slot:focus-within .palette-transparent,
.palette-slot:hover .palette-transparent {
  display: flex;
}

.palette-transparent input {
  margin: 0;
  width: 0.8rem;
  height: 0.8rem;
}

.generator-actions,
.paid-format-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.paid-format-upsell {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.paid-format-upsell p {
  margin-bottom: 0.55rem;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 900;
}

.paid-format-buttons {
  grid-template-columns: repeat(3, 1fr);
}

.generator-preview-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 620px;
  background:
    radial-gradient(circle at 20% 10%, rgba(240, 112, 72, 0.18), transparent 18rem),
    #080a0e;
}

.generator-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.preview-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(244, 200, 106, 0.35);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.72rem;
}

.generator-preview-panel canvas {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: block;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.055) 75%),
    #05060a;
  background-size: 28px 28px;
  object-fit: contain;
}

button {
  cursor: pointer;
}

@media (max-width: 980px) {
  .generator-intro {
    display: grid;
    gap: 1rem;
  }

  .generator-video-card {
    float: none;
    width: min(100%, 320px);
    margin: 0;
    justify-self: center;
  }

  .generator-app {
    grid-template-columns: 1fr;
  }

  .generator-preview-panel {
    min-height: 460px;
  }

  .generator-preview-panel canvas {
    min-height: 400px;
  }
}

@media (max-width: 560px) {
  .generator-control-row {
    grid-template-columns: 1fr;
  }

  .palette-grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 0.22rem;
  }

  .palette-slot input[type="color"] {
    height: 1.75rem;
  }

  .paid-format-buttons {
    grid-template-columns: 1fr;
  }

  .generator-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
