/* Makejam — marketing site */

:root {
  color-scheme: dark;
  --fg-rgb: 255 255 255;
  --header-bg: rgba(18, 18, 24, 0.72);
  --header-bg-dense: rgba(12, 12, 16, 0.88);
  --hero-fade: rgba(7, 7, 10, 0.92);
  --footer-bg: #09090c;
  --header-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --menu-bg: rgba(12, 12, 16, 0.96);
  --void: #07070a;
  --ink-bg: #0c0c10;
  --panel: #121218;
  --panel-2: #18181f;
  --line: rgb(var(--fg-rgb) / 0.08);
  --line-strong: rgb(var(--fg-rgb) / 0.14);
  --text: #f2f2f4;
  --text-2: #a7a7b0;
  --text-3: #6e6e78;
  --accent: #5d8fe9;
  --accent-soft: #7eb3f5;
  --accent-glow: rgba(93, 143, 233, 0.28);
  --cyan: #22d3ee;
  --success: #3ddc97;
  --warn: #f0b429;
  --media-image: #3b6fe0;
  --media-video: #7b4fe0;
  --media-music: #c43b6e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Geist", "Satoshi", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--font);
}

/* Light theme. data-theme is set before paint by the inline head script
   (stored choice, else prefers-color-scheme). The media query covers no-JS. */
:root[data-theme="light"] {
  color-scheme: light;
  --fg-rgb: 10 10 20;
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-bg-dense: rgba(255, 255, 255, 0.9);
  --hero-fade: rgba(247, 247, 249, 0.92);
  --footer-bg: #efeff2;
  --header-shadow: 0 10px 32px rgba(20, 20, 40, 0.08);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --void: #f7f7f9;
  --ink-bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0f0f3;
  --line: rgba(10, 10, 20, 0.09);
  --line-strong: rgba(10, 10, 20, 0.16);
  --text: #111116;
  --text-2: #55555f;
  --text-3: #85858f;
  --accent: #3f74d8;
  --accent-soft: #2f63c4;
  --accent-glow: rgba(63, 116, 216, 0.18);
  --shadow: 0 20px 50px rgba(20, 20, 40, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
  color-scheme: light;
  --fg-rgb: 10 10 20;
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-bg-dense: rgba(255, 255, 255, 0.9);
  --hero-fade: rgba(247, 247, 249, 0.92);
  --footer-bg: #efeff2;
  --header-shadow: 0 10px 32px rgba(20, 20, 40, 0.08);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --void: #f7f7f9;
  --ink-bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0f0f3;
  --line: rgba(10, 10, 20, 0.09);
  --line-strong: rgba(10, 10, 20, 0.16);
  --text: #111116;
  --text-2: #55555f;
  --text-3: #85858f;
  --accent: #3f74d8;
  --accent-soft: #2f63c4;
  --accent-glow: rgba(63, 116, 216, 0.18);
  --shadow: 0 20px 50px rgba(20, 20, 40, 0.12);
  }
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.theme-toggle:hover { color: var(--text); background: rgb(var(--fg-rgb) / 0.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
textarea,
select,
input {
  font: inherit;
  color: inherit;
}

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

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

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

/* —— Nav —— */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 28px));
  min-height: 48px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header.is-dense {
  background: var(--header-bg-dense);
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 280ms var(--ease), background 280ms var(--ease);
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  background: rgb(var(--fg-rgb) / 0.06);
}

.soon-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(240, 180, 41, 0.16);
  color: var(--warn);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text);
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle:focus-visible,
.site-header nav a:focus-visible,
.nav-action:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 280ms var(--ease), transform 200ms var(--ease);
}

.nav-action:hover {
  background: var(--accent-soft);
}

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

/* —— Shared —— */
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(1000px, calc(100% - 36px));
  margin: 0 auto;
  padding: 68px 0;
}

.section-heading {
  width: min(560px, 100%);
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.download-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p,
.download-card p {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 48ch;
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 280ms var(--ease), border-color 280ms var(--ease);
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.08), 0 12px 40px var(--accent-glow);
}

.button-primary:hover {
  background: var(--accent-soft);
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.04);
  color: var(--text);
}

.button-secondary:hover {
  background: rgb(var(--fg-rgb) / 0.08);
}

/* Product frame chrome */
.product-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.frame-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgb(var(--fg-rgb) / 0.02);
}

.frame-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.12);
}

.frame-chrome .dot:nth-child(1) {
  background: #ff5f57;
}

.frame-chrome .dot:nth-child(2) {
  background: #febc2e;
}

.frame-chrome .dot:nth-child(3) {
  background: #28c840;
}

.frame-chrome strong {
  margin-left: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.chrome-meta,
.chrome-status {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-mono);
}

.chrome-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-3);
}

.status-dot.is-online,
.status-dot.is-local {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15);
}

.status-dot.is-network {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.status-dot.is-cloud {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* —— Hero (A layout + B orbs) —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 100px 20px 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 50% 28%, rgba(79, 140, 255, 0.09), transparent 60%),
    var(--void);
}

.orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  will-change: transform;
}

.orb-a {
  left: 18%;
  top: 18%;
  background: rgba(79, 140, 255, 0.48);
}

.orb-b {
  right: 12%;
  bottom: 18%;
  width: 190px;
  height: 190px;
  background: rgba(34, 211, 238, 0.22);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, var(--hero-fade), transparent 55%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin-bottom: 28px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-tagline {
  width: min(460px, 100%);
  margin: 0 auto 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  animation: stage-in 800ms var(--ease) both;
}

.hero-stage-body {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0e;
}

.hero-stage-body img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

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

/* —— Playground (viewport-fit for 16:9, +20% room) —— */
.demo-section {
  padding-top: 34px;
  padding-bottom: 48px;
}

.demo-section .section-heading {
  margin-bottom: 20px;
}

.demo-section .section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.demo-section .section-heading p {
  font-size: 14px;
}

/* Side mode selector layout (A home-portals pattern) */
.demo-alive {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  max-height: min(600px, calc(100dvh - 130px));
}

.playground {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.playground > .frame-chrome {
  flex-shrink: 0;
  min-height: 34px;
}

.playground-body {
  display: grid;
  grid-template-columns: 40px 1fr;
  min-height: 0;
  flex: 1;
}

.playground-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: #0a0a0e;
}

.rail-mark {
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #3b6fe0);
  opacity: 0.85;
}

.rail-item {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgb(var(--fg-rgb) / 0.06);
}

.rail-item.is-active {
  background: rgba(93, 143, 233, 0.45);
}

.rail-item.short {
  width: 60%;
}

.rail-gap {
  flex: 1;
  min-height: 12px;
}

.playground-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 12px 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.mode-portals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.mode-portal {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.02);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 280ms var(--ease),
    background 280ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 280ms var(--ease);
}

.mode-portal:hover {
  border-color: var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.04);
  transform: translateX(2px);
}

.mode-portal.is-active {
  border-color: rgba(93, 143, 233, 0.42);
  background: rgba(93, 143, 233, 0.08);
  box-shadow: 0 10px 28px rgba(93, 143, 233, 0.12);
}

.mode-portal:active {
  transform: scale(0.99);
}

.mode-swatch {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.mode-t2i {
  background: linear-gradient(145deg, #1a3a7a, var(--media-image));
}

.mode-i2i {
  background:
    linear-gradient(90deg, #1a3a7a 0 48%, transparent 48%),
    linear-gradient(145deg, #2a5080, #7eb3f5);
}

.mode-t2v {
  background: linear-gradient(145deg, #3a1a6a, var(--media-video));
}

.mode-i2v {
  background:
    linear-gradient(90deg, #3a1a6a 0 48%, transparent 48%),
    linear-gradient(145deg, #4a2a80, #b08cff);
}

.mode-t2m {
  background: linear-gradient(145deg, #6a1a40, var(--media-music));
}

.mode-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mode-copy strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mode-copy span {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.3;
}

.result-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 132px;
  max-height: 200px;
  height: clamp(132px, 20vh, 200px);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.source-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(circle at 30% 30%, rgb(var(--fg-rgb) / 0.18), transparent 45%),
    linear-gradient(145deg, #3a3f4a, #8a909c);
}

.source-thumb[hidden] {
  display: none !important;
}

.source-thumb.is-portrait {
  background:
    radial-gradient(ellipse 40% 55% at 48% 42%, rgba(220, 180, 150, 0.55), transparent 50%),
    linear-gradient(180deg, #1a1816 0%, #3d342c 55%, #6a5848 100%);
}

.source-thumb.is-neon {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 40, 120, 0.45), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(40, 180, 255, 0.4), transparent 40%),
    linear-gradient(180deg, #0a0a12 0%, #12182a 50%, #1a1020 100%);
}

.result-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  transition: opacity 400ms var(--ease);
  padding: 10px;
  text-align: center;
}

.result-empty.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.empty-orb {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgb(var(--fg-rgb) / 0.12), transparent 45%),
    rgb(var(--fg-rgb) / 0.04);
  border: 1px solid var(--line);
}

.result-grid {
  display: grid;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 8px;
}

.result-grid[data-cols="1"] {
  grid-template-columns: 1fr;
}

.result-grid[data-cols="2"] {
  grid-template-columns: 1fr 1fr;
}

.result-grid[data-cols="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.result-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  min-height: 0;
  height: 100%;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: result-in 500ms var(--ease) forwards;
}

.result-card.is-skeleton {
  background: linear-gradient(
    110deg,
    rgb(var(--fg-rgb) / 0.03) 25%,
    rgb(var(--fg-rgb) / 0.08) 37%,
    rgb(var(--fg-rgb) / 0.03) 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}

.result-card .result-fill {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.result-card .result-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: rgb(var(--fg-rgb) / 0.85);
  font-size: 9px;
  font-family: var(--font-mono);
}

.result-video {
  position: relative;
  height: 100%;
  min-height: 0;
}

.video-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55)),
    radial-gradient(ellipse at 50% 40%, #5a3a8a, #0e0e14 70%);
  transition: opacity 400ms var(--ease);
}

.video-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: rgb(var(--fg-rgb) / 0.85);
  font-size: 9px;
  font-family: var(--font-mono);
}

.result-music {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 12px;
}

.music-card {
  width: min(380px, 100%);
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.03);
}

.music-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  grid-row: span 2;
  background:
    radial-gradient(circle at 30% 30%, rgb(var(--fg-rgb) / 0.2), transparent 40%),
    linear-gradient(145deg, #c43b6e, #3b1a4a 55%, #121218);
}

.music-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.music-meta strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.music-meta span {
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-mono);
}

.music-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}

.music-wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--media-music), rgba(196, 59, 110, 0.35));
  animation: wave 1.1s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes result-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Result looks */
.look-soft-cup {
  background:
    radial-gradient(ellipse 50% 40% at 45% 55%, rgba(255, 236, 210, 0.55), transparent 55%),
    linear-gradient(160deg, #2a241c 0%, #6b5344 40%, #c4a484 70%, #f0e6d8 100%);
}

.look-neon-alley {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 40, 120, 0.45), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(40, 180, 255, 0.4), transparent 40%),
    linear-gradient(180deg, #0a0a12 0%, #12182a 50%, #1a1020 100%);
}

.look-sneakers {
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgb(var(--fg-rgb) / 0.2), transparent 50%),
    linear-gradient(145deg, #1c1e24 0%, #3a3f4a 45%, #8a909c 100%);
}

.look-portrait {
  background:
    radial-gradient(ellipse 40% 55% at 48% 42%, rgba(220, 180, 150, 0.55), transparent 50%),
    linear-gradient(180deg, #1a1816 0%, #3d342c 55%, #6a5848 100%);
}

.look-macro {
  background:
    repeating-linear-gradient(
      125deg,
      rgba(255, 140, 40, 0.15) 0 8px,
      transparent 8px 16px
    ),
    radial-gradient(circle at 30% 40%, #e87830, #8b3a12 50%, #1a0c06 100%);
}

.look-cinematic {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.35)),
    radial-gradient(ellipse at 40% 50%, #4a6a8a, #121820 70%);
}

.look-product {
  background:
    radial-gradient(circle at 50% 55%, #e8e4dc, #9a958c 40%, #2a2a2e 100%);
}

.look-graphic {
  background:
    conic-gradient(from 210deg at 50% 50%, #5d8fe9, #1a1a22 30%, #e85d4c 55%, #1a1a22 75%, #5d8fe9);
}

.look-video {
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6)),
    radial-gradient(ellipse at 50% 40%, #5a3a8a, #0e0e14 70%);
}

.look-rain {
  background:
    radial-gradient(circle at 70% 20%, rgba(120, 180, 255, 0.25), transparent 40%),
    linear-gradient(180deg, #0c1018 0%, #1a2438 55%, #0a0c12 100%);
}

.look-vinyl {
  background:
    radial-gradient(circle at 40% 45%, #c9a66b 0 8%, #2a1e14 9% 55%, #0e0a08 100%);
}

.look-ambient {
  background:
    radial-gradient(ellipse at 50% 50%, #4a6a9a, #12141c 65%);
}

.look-electronic {
  background:
    conic-gradient(from 120deg, #c43b6e, #3b6fe0, #12c2a8, #c43b6e);
}

.example-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 8px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.example-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.03);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 240ms var(--ease), color 240ms var(--ease), background 240ms var(--ease);
}

.chip:hover,
.chip.is-active {
  border-color: rgba(93, 143, 233, 0.45);
  color: var(--text);
  background: rgba(93, 143, 233, 0.1);
}

/* Prompt island */
.prompt-island {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(24, 24, 31, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgb(var(--fg-rgb) / 0.06);
  flex-shrink: 0;
}

.prompt-island textarea {
  width: 100%;
  min-height: 28px;
  max-height: 48px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.prompt-island textarea::placeholder {
  color: var(--text-3);
}

.island-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.pill-select {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.04);
  color: var(--text-2);
  font-size: 11px;
  cursor: pointer;
}

.pill-select[hidden] {
  display: none !important;
}

.pill-select select {
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 11px;
  cursor: pointer;
  max-width: 110px;
}

.pill-select option {
  background: #18181f;
  color: var(--text);
}

.pill-icon {
  display: inline-flex;
  opacity: 0.7;
}

.generate-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.1), 0 6px 20px var(--accent-glow);
  transition: background 240ms var(--ease), transform 180ms var(--ease), opacity 240ms var(--ease);
}

.generate-btn:hover:not(:disabled) {
  background: var(--accent-soft);
}

.generate-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.generate-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.generate-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.demo-note {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 10px;
  font-family: var(--font-mono);
  text-align: center;
  flex-shrink: 0;
}

.demo-note.is-limit {
  color: var(--warn);
}

/* —— How it works —— */
.how-section {
  padding-top: 40px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.route-tabs {
  display: grid;
  gap: 8px;
}

.route-tab {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.02);
  text-align: left;
  cursor: pointer;
  transition: border-color 280ms var(--ease), background 280ms var(--ease);
}

.route-tab:hover,
.route-tab.is-active {
  border-color: rgba(93, 143, 233, 0.35);
  background: rgba(93, 143, 233, 0.06);
}

.route-kicker {
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.route-tab strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.route-tab span:last-child {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}

.route-panel {
  position: sticky;
  top: 84px;
}

.route-body {
  padding: 18px;
}

.route-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-mono);
}

.route-body h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.route-body > p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

.mini-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.mini-model {
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-mono);
}

.mini-send {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
  position: relative;
}

.mini-send::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, #fff 35% 65%, transparent 65%);
  width: 2px;
  height: 10px;
  margin: auto;
  opacity: 0.9;
}

.mini-send::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateX(-50%) rotate(-45deg);
  opacity: 0.9;
}

.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.provider-grid[hidden] {
  display: none !important;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.03);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.provider-chip img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: contain;
  background: rgb(var(--fg-rgb) / 0.06);
  flex-shrink: 0;
}

/* —— Why Makejam —— */
.why-section {
  padding-top: 48px;
}

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

.why-card {
  padding: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.02);
  transition:
    transform 320ms var(--ease),
    border-color 280ms var(--ease),
    background 280ms var(--ease),
    box-shadow 320ms var(--ease);
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.035);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.why-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.why-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

/* —— Models catalog —— */
.models-section {
  padding-top: 36px;
}

.models-alive {
  display: grid;
  gap: 12px;
}

.model-provider-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.03);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease);
}

.model-tab img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  background: rgb(var(--fg-rgb) / 0.06);
}

.model-tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15);
}

.model-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.model-tab.is-active {
  color: var(--text);
  border-color: rgba(93, 143, 233, 0.45);
  background: rgba(93, 143, 233, 0.1);
}

.models-panel {
  overflow: hidden;
}

.models-body {
  padding: 14px 16px 16px;
}

.models-blurb {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow: auto;
  scrollbar-width: thin;
}

.model-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: result-in 420ms var(--ease) forwards;
}

.model-tag img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  background: rgb(var(--fg-rgb) / 0.08);
  flex-shrink: 0;
}

.model-tag i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.model-tag[data-kind="video"] i {
  background: var(--media-video);
}

.model-tag[data-kind="audio"] i {
  background: var(--media-music);
}

.model-tag[data-kind="upscale"] i,
.model-tag[data-kind="tool"] i {
  background: var(--success);
}

/* —— Tools —— */
.tools-section {
  padding-top: 36px;
}

.tools-alive {
  display: grid;
  gap: 12px;
}

.tools-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tools-strip::-webkit-scrollbar {
  display: none;
}

.tool-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.03);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease);
}

.tool-chip:hover {
  color: var(--text);
}

.tool-chip.is-active {
  border-color: rgba(93, 143, 233, 0.45);
  background: rgba(93, 143, 233, 0.12);
  color: var(--text);
}

.tool-focus {
  overflow: hidden;
}

.tool-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 192px;
}

.tool-compare figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.compare-panel {
  flex: 1;
  min-height: 168px;
  transition: filter 500ms var(--ease), background 500ms var(--ease), opacity 400ms var(--ease);
}

.tool-compare figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-mono);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.tool-desc {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}

.tool-upscale .before {
  background: linear-gradient(135deg, #3a3540, #6a6570);
  image-rendering: pixelated;
  filter: contrast(0.9) blur(0.4px);
}

.tool-upscale .after {
  background:
    radial-gradient(circle at 40% 40%, #d0ccd8, transparent 40%),
    linear-gradient(135deg, #2a2830, #8a8490);
}

.tool-relight .before {
  background: linear-gradient(160deg, #1a1a1e 0%, #3a3830 100%);
}

.tool-relight .after {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 220, 160, 0.55), transparent 45%),
    linear-gradient(160deg, #1a1a1e 0%, #4a4030 100%);
}

.tool-bg-remove .before {
  background:
    linear-gradient(45deg, #2a2a30 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(-45deg, #2a2a30 25%, transparent 25%) -8px 0 / 16px 16px,
    radial-gradient(circle at 50% 55%, #c4a484, #6b5344 40%, #1a1816 70%);
}

.tool-bg-remove .after {
  background:
    linear-gradient(45deg, #333 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(-45deg, #333 25%, transparent 25%) 0 0 / 12px 12px,
    radial-gradient(circle at 50% 55%, #e8d4b8, transparent 42%);
}

.tool-erase .before {
  background:
    radial-gradient(circle at 62% 48%, #e85d4c 0 8%, transparent 9%),
    linear-gradient(160deg, #1c2430, #3a4a5a);
}

.tool-erase .after {
  background: linear-gradient(160deg, #1c2430, #3a4a5a);
}

.tool-style .before {
  background: radial-gradient(ellipse at 50% 50%, #8a909c, #1c1e24 70%);
}

.tool-style .after {
  background: conic-gradient(from 200deg, #5d8fe9, #e85d4c, #1a1a22, #5d8fe9);
}

.tool-face .before {
  background:
    radial-gradient(ellipse 35% 40% at 50% 42%, rgba(180, 140, 120, 0.35), transparent 50%),
    linear-gradient(180deg, #2a241c, #4a3a30);
  filter: contrast(0.85) saturate(0.7);
}

.tool-face .after {
  background:
    radial-gradient(ellipse 35% 40% at 50% 42%, rgba(220, 180, 150, 0.65), transparent 50%),
    linear-gradient(180deg, #1a1816, #6a5848);
}

.tool-restore .before {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgb(var(--fg-rgb) / 0.04) 3px, rgb(var(--fg-rgb) / 0.04) 4px),
    linear-gradient(145deg, #4a4038, #2a221c);
  filter: grayscale(0.6) contrast(0.8);
}

.tool-restore .after {
  background: linear-gradient(145deg, #f0e6d8, #c4a484 50%, #6b5344);
}

.tool-outpaint .before {
  background:
    linear-gradient(90deg, #0a0a0e 0 28%, transparent 28% 72%, #0a0a0e 72%),
    radial-gradient(ellipse at 50% 50%, #4a6a8a, #121820 70%);
}

.tool-outpaint .after {
  background: radial-gradient(ellipse at 50% 50%, #4a6a8a, #121820 70%);
}

/* —— Projects (zoom on sidebar project list) —— */
.projects-section {
  padding-top: 48px;
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.projects-copy .section-lead {
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 42ch;
}

.projects-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.projects-points li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.02);
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease);
}

.projects-points li:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.04);
}

.projects-points strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
}

.projects-points span {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}

.projects-stage {
  position: relative;
}

.projects-stage-body {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0a0e;
}

/* Crop + zoom into the left sidebar PROJECTS list */
.projects-stage-body img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(2.35);
  transform-origin: 5% 48%;
  transition: transform 700ms var(--ease);
}

.projects-stage:hover .projects-stage-body img {
  transform: scale(2.5);
}

.projects-stage-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 48% at 28% 52%, transparent 40%, rgba(7, 7, 10, 0.28) 100%),
    linear-gradient(90deg, transparent 55%, rgba(7, 7, 10, 0.18));
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.project-pills span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  transition: border-color 280ms var(--ease), background 280ms var(--ease), color 280ms var(--ease);
}

.project-pills span.is-on {
  color: var(--text);
  border-color: rgba(93, 143, 233, 0.4);
  background: rgba(93, 143, 233, 0.12);
}

/* —— Gallery product surface —— */
.gallery-section {
  padding-top: 48px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.gallery-stage {
  position: relative;
}

.gallery-stage-body {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0e;
}

.gallery-stage-body img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.gallery-filters span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  transition: border-color 280ms var(--ease), background 280ms var(--ease), color 280ms var(--ease);
}

.gallery-filters span.is-on {
  color: var(--text);
  border-color: rgba(93, 143, 233, 0.4);
  background: rgba(93, 143, 233, 0.12);
}

.gallery-copy .section-lead {
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 42ch;
}

.gallery-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.gallery-points li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.02);
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease);
}

.gallery-points li:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.04);
}

.gallery-points strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
}

.gallery-points span {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}

/* —— Scroll reveals (A-like motion) —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-child] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms var(--ease),
    transform 650ms var(--ease);
}

[data-reveal].is-in [data-reveal-child] {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].is-in [data-reveal-child]:nth-child(2) {
  transition-delay: 90ms;
}

[data-reveal].is-in [data-reveal-child]:nth-child(3) {
  transition-delay: 160ms;
}

[data-reveal].is-in [data-reveal-child]:nth-child(4) {
  transition-delay: 220ms;
}

.route-tab,
.model-tab,
.tool-chip {
  transition:
    border-color 280ms var(--ease),
    background 280ms var(--ease),
    color 280ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 280ms var(--ease);
}

.route-tab:hover,
.model-tab:hover,
.tool-chip:hover {
  transform: translateY(-1px);
}

.route-tab.is-active,
.model-tab.is-active,
.tool-chip.is-active {
  box-shadow: 0 8px 22px rgba(93, 143, 233, 0.12);
}

.product-frame {
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 300ms var(--ease);
}

.product-frame:hover {
  border-color: var(--line-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

/* —— FAQ —— */
.faq-section {
  padding-top: 48px;
}

.faq-list {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.02);
  overflow: hidden;
  transition: border-color 280ms var(--ease), background 280ms var(--ease);
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(93, 143, 233, 0.28);
  background: rgba(93, 143, 233, 0.04);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: transform 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  background: rgba(93, 143, 233, 0.14);
  border-color: rgba(93, 143, 233, 0.35);
  color: var(--text);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.faq-item code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
}

/* —— Download —— */
.download-section {
  padding-top: 48px;
  padding-bottom: 56px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(93, 143, 233, 0.12), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.download-icon {
  border-radius: 14px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.download-meta {
  margin: 4px 0 0 !important;
  color: var(--text-3) !important;
  font-size: 12px !important;
  font-family: var(--font-mono);
}

/* —— Footer (Krea-like multi-column) —— */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(93, 143, 233, 0.06), transparent 55%),
    var(--footer-bg);
  color: var(--text-3);
}

.footer-inner {
  width: min(1000px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin-bottom: 40px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.footer-col a {
  color: var(--text-3);
  font-size: 13px;
  transition: color 220ms var(--ease);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}

.footer-brand img {
  border-radius: 4px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-social a {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  transition: color 220ms var(--ease);
}

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

/* —— Responsive —— */
section[id] {
  scroll-margin-top: 92px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    width: min(100% - 24px, 640px);
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    max-height: calc(100vh - 90px);
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--menu-bg);
    box-shadow: var(--shadow);
  }

  .site-header.is-open nav {
    display: flex;
  }

  .site-header nav a {
    min-height: 40px;
    padding: 0 12px;
  }
}

@media (max-width: 860px) {
  .how-layout,
  .projects-layout,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .route-panel {
    position: static;
  }

  .demo-alive {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .mode-portals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mode-portal:last-child {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 640px) {
  .playground-body {
    grid-template-columns: 1fr;
  }

  .playground-rail {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .result-grid[data-cols="2"],
  .result-grid[data-cols="4"] {
    grid-template-columns: 1fr 1fr;
  }

  .control-row {
    max-width: calc(100% - 48px);
  }

  .mode-portals {
    grid-template-columns: 1fr;
  }

  .mode-portal:last-child {
    grid-column: auto;
  }

  .tool-compare {
    min-height: 144px;
  }

  .compare-panel {
    min-height: 120px;
  }

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

  .footer-inner {
    padding-top: 40px;
  }
}

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

  .hero-stage,
  .result-card,
  .model-tag,
  .music-wave i {
    animation: none !important;
  }

  .orb {
    opacity: 0.22;
  }

  [data-reveal],
  [data-reveal-child] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .why-card:hover,
  .mode-portal:hover,
  .gallery-points li:hover,
  .projects-points li:hover,
  .product-frame:hover,
  .route-tab:hover,
  .model-tab:hover,
  .tool-chip:hover {
    transform: none;
  }

  .projects-stage-body img,
  .projects-stage:hover .projects-stage-body img {
    transform: scale(2.35);
    transition: none;
  }
}

/* —— Studio page —— */
.studio-modes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.studio-modes .mode-portal {
  cursor: default;
  height: 100%;
}

.studio-modes .mode-portal:hover,
.studio-modes .mode-portal:last-child {
  transform: none;
  grid-column: auto;
}

/* —— 404 —— */
body:has(.not-found) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(.not-found) main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.not-found {
  flex: 1;
  width: 100%;
  min-height: 0;
  justify-content: center;
  padding: 120px 20px 48px;
}

.not-found h1 {
  max-width: 16ch;
}

@media (max-width: 860px) {
  .studio-modes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .studio-modes {
    grid-template-columns: 1fr;
  }
}
