@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0c10;
  --chrome: #0e1015;
  --chrome-strong: #08090c;
  --panel: #14161d;
  --panel-raised: #181b23;
  --surface: #101218;
  --field: #14161d;
  --ink: #ecedf1;
  --heading: #f4f5f8;
  --muted: #9aa0ad;
  --muted-dim: #646b79;
  --line: #1e222b;
  --line-soft: #232733;
  --line-strong: #2a2f3b;
  --accent: #5b7cfa;
  --accent-light: #7e97ff;
  --accent-soft: #8fa6ff;
  --green: #34d399;
  --red: #ff5c5c;
  --danger: #ff7a74;
  --amber: #f5b544;
  --cyan: #38bdf8;
  --shadow-sm: 0 5px 13px rgba(9, 16, 38, 0.32);
  --shadow-md: 0 12px 30px rgba(5, 9, 20, 0.4);
  --shadow-lg: 0 30px 80px rgba(5, 9, 20, 0.64);
  color: var(--ink);
  font-family:
    "Pretendard", "Apple SD Gothic Neo", "Noto Sans CJK KR", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(91, 124, 250, 0.38);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  margin: 0;
}

.skip-link {
  background: var(--heading);
  clip-path: inset(50%);
  color: var(--bg);
  height: 1px;
  left: 16px;
  overflow: hidden;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  white-space: nowrap;
  width: 1px;
  z-index: 100;
}

.skip-link:focus-visible {
  clip-path: none;
  height: auto;
  overflow: visible;
  width: auto;
}

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

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

.shell {
  min-height: 100vh;
  overflow: hidden;
}

.nav {
  align-items: center;
  background: rgba(14, 16, 21, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(22px, 4vw, 30px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  color: var(--heading);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(91, 124, 250, 0.4);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.brand-mark span {
  background: var(--bg);
  border-radius: 999px;
  display: block;
  height: 11px;
  width: 11px;
}

.brand-mark.small {
  border-radius: 8px;
  height: 26px;
  width: 26px;
}

.brand-mark.small span {
  height: 8px;
  width: 8px;
}

.brand-badge {
  background: #1a1e27;
  border: 1px solid #262b36;
  border-radius: 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 3px 7px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 2px;
  margin-left: 14px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
}

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

.nav-actions,
.hero-actions,
.recorder-panel-actions,
.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
button {
  align-items: center;
  background: var(--panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: none;
  color: #c7cad3;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  min-width: 0;
  padding: 0 15px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.button:hover,
button:hover:not(:disabled) {
  background: #1d212b;
  border-color: #384052;
  color: var(--ink);
}

.button:active,
button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  color: #565c68;
  cursor: not-allowed;
  opacity: 0.58;
}

.button.primary,
button.primary,
.button.purple,
button.purple {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
}

.button.primary:hover,
button.primary:hover:not(:disabled),
.button.purple:hover,
button.purple:hover:not(:disabled) {
  background: #6c87f7;
  border-color: var(--accent-light);
  color: #ffffff;
}

.button.dark,
button.dark {
  background: #15211c;
  border-color: #235641;
  color: #5de0a6;
}

.button.dark:hover,
button.dark:hover:not(:disabled) {
  background: #193126;
  border-color: #2e7354;
  color: #7bf0bd;
}

button.danger,
.button.danger {
  background: #241619;
  border-color: #3a2a2e;
  color: var(--danger);
}

.button.large,
button.large {
  font-size: 15px;
  min-height: 50px;
  padding: 0 26px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(91, 124, 250, 0.48);
  outline-offset: 2px;
}

input,
textarea {
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #565c68;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #262b36;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  height: 5px;
  min-height: 5px;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(91, 124, 250, 0.55);
  cursor: pointer;
  height: 16px;
  width: 16px;
}

input[type="range"]::-moz-range-thumb {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(91, 124, 250, 0.55);
  cursor: pointer;
  height: 16px;
  width: 16px;
}

@keyframes rec-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 124, 250, 0.5);
  }
  100% {
    box-shadow: 0 0 0 15px rgba(91, 124, 250, 0);
  }
}

.home-page {
  overflow: hidden;
}

.home-hero,
.recorder-workbench,
.studio-preview,
.feature-section,
.pricing-section,
.dashboard,
.auth-layout,
.legal-page,
.not-found {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(46px, 7vw, 76px) clamp(20px, 4vw, 30px);
}

.home-hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 54px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: auto;
  padding-bottom: 40px;
  padding-top: 64px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-chip {
  align-items: center;
  background: var(--panel);
  border: 1px solid #262b36;
  border-radius: 999px;
  color: #c7cad3;
  display: inline-flex;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  gap: 8px;
  letter-spacing: 0;
  margin-bottom: 26px;
  padding: 6px 13px;
}

.hero-chip span,
.record-dot,
.recording-pill i {
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--red);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.record-dot,
.recording-pill i {
  animation: rec-pulse 1s infinite;
}

.hero-copy h1,
.dashboard h1,
.auth-card h1 {
  color: var(--heading);
  font-size: clamp(46px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 22px;
}

.hero-copy mark {
  background: transparent;
  color: var(--accent-light);
}

.hero-copy p:not(.mono-note),
.dashboard-lead,
.section-heading > p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 560px;
}

.mono-note {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  margin: 22px 0 0;
}

.hero-demo {
  position: relative;
}

.browser-preview {
  background: var(--chrome);
  border: 1px solid #20242e;
  border-radius: 16px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(91, 124, 250, 0.05);
  overflow: hidden;
}

.browser-preview-bar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid #20242e;
  display: flex;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
}

.window-dot {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.window-dot.red {
  background: var(--red);
}

.window-dot.amber {
  background: var(--amber);
}

.window-dot.lime {
  background: var(--green);
}

.address {
  align-items: center;
  background: var(--bg);
  border: 1px solid #262b36;
  border-radius: 6px;
  color: #7a8090;
  display: flex;
  flex: 1 1 220px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  height: 20px;
  margin-left: 8px;
  max-width: 240px;
  min-width: 0;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-pill {
  align-items: center;
  color: var(--red);
  display: inline-flex;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  gap: 5px;
  margin-left: auto;
}

.mock-product {
  background: #f4f6fb;
  height: 318px;
  overflow: hidden;
  position: relative;
}

.mock-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f0;
  color: #1b2230;
  display: flex;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
}

.mock-logo {
  background: #2c5bff;
  border-radius: 5px;
  height: 18px;
  width: 18px;
}

.mock-avatar {
  background: #ffd27a;
  border-radius: 999px;
  height: 24px;
  margin-left: auto;
  width: 24px;
}

.mock-body {
  padding: 16px;
}

.mock-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
}

.mock-title-row strong {
  color: #1b2230;
  font-size: 16px;
}

.mock-title-row button,
.mini-title button {
  background: #2c5bff;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  min-height: 30px;
  padding: 0 12px;
}

.hotspot-ring,
.hotspot {
  animation: ring-pulse 1.6s ease-out infinite;
  background: rgba(91, 124, 250, 0.16);
  border: 2px solid var(--accent-light);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(91, 124, 250, 0.5);
}

.hotspot-ring {
  height: 62px;
  position: absolute;
  right: 8px;
  top: -17px;
  width: 62px;
}

.mock-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.mock-kpis span {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 9px;
  display: block;
  padding: 11px;
}

.mock-kpis small {
  color: #8a91a0;
  display: block;
  font-size: 9px;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mock-kpis strong {
  color: #1b2230;
  display: block;
  font-size: 19px;
}

.mock-activity {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 9px;
  display: grid;
  gap: 12px;
  height: 96px;
  padding: 16px;
}

.mock-activity span {
  background: #eef1f8;
  border-radius: 999px;
  height: 10px;
}

.mock-activity span:nth-child(2) {
  width: 78%;
}

.mock-activity span:nth-child(3) {
  width: 58%;
}

.demo-callout,
.stage-callout {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  color: #e7e9ef;
  display: grid;
  line-height: 1.3;
  padding: 10px 13px;
}

.demo-callout {
  bottom: 16px;
  max-width: 230px;
  position: absolute;
  right: 16px;
}

.demo-callout strong {
  font-size: 12px;
}

.demo-callout span {
  color: var(--accent-soft);
  font-size: 11px;
}

.render-tag {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  bottom: -20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  color: #c7cad3;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  left: -20px;
  padding: 8px 12px;
  position: absolute;
}

.preview-label {
  background: rgba(91, 124, 250, 0.12);
  border: 1px solid rgba(126, 151, 255, 0.32);
  border-radius: 6px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
}

.proof-strip {
  background: var(--chrome);
  border-bottom: 1px solid #1a1e26;
  border-top: 1px solid #1a1e26;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  gap: 30px;
  justify-content: space-between;
  padding: 17px clamp(20px, 6vw, 80px);
}

.proof-strip strong {
  color: var(--accent-light);
  font-weight: 600;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  color: var(--heading);
  font-size: clamp(34px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 760px;
}

.kicker {
  color: var(--accent-light);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.recorder-panel {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(190px, 0.56fr) minmax(420px, 1fr);
  margin: 16px 0 24px;
  padding: 14px 16px;
}

.recorder-panel[data-recorder-state="connected"] {
  border-color: rgba(52, 211, 153, 0.34);
}

.recorder-panel[data-recorder-state="missing"],
.recorder-panel[data-recorder-state="error"] {
  border-color: rgba(255, 92, 92, 0.42);
}

.recorder-panel[data-recorder-state="recording"],
.recorder-panel[data-recorder-state="starting"] {
  border-color: rgba(91, 124, 250, 0.5);
}

.recorder-panel-copy h3,
.recorder-panel-copy h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  margin: 0;
}

.recorder-panel-copy p:not(.kicker) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.recorder-panel-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(250px, 1fr) auto;
}

.recorder-panel-controls label,
.inspector label {
  display: grid;
  gap: 7px;
}

.recorder-panel-controls label span,
.inspector label span,
.target-block small,
.viewport-block small,
.recorder-metrics small {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recorder-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.recorder-popover,
.project-stack-preview {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.recorder-popover header {
  align-items: center;
  background: var(--surface-soft, #111319);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 10px;
  padding: 13px 15px;
}

.recorder-popover header div {
  display: grid;
  flex: 1;
}

.recorder-popover header small,
.target-block small,
.viewport-block small,
.recorder-metrics small {
  display: block;
}

.recorder-popover header small {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0;
}

.recorder-popover header em {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.target-block,
.viewport-block,
.recorder-metrics {
  border-bottom: 1px solid #1a1e26;
  padding: 13px 15px;
}

.target-block strong {
  color: var(--accent-light);
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewport-block > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.viewport-block strong {
  color: #c7cad3;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}

.viewport-options {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.viewport-options button {
  align-items: flex-start;
  display: grid;
  font-size: 12px;
  justify-content: stretch;
  min-height: 56px;
  padding: 8px 10px;
  text-align: left;
}

.viewport-options button span {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  opacity: 0.7;
}

.viewport-options button.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(91, 124, 250, 0.25);
  color: #ffffff;
}

.recorder-metrics {
  border-bottom: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, 1fr);
}

.recorder-metrics span {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.recorder-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.recorder-metrics span:nth-child(2) strong {
  color: var(--accent-light);
}

.recorder-metrics span:nth-child(4) strong {
  color: var(--green);
  font-size: 16px;
  margin-top: 4px;
}

.projects-header {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.projects-header.compact {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
  padding: 18px;
}

.projects-header h3,
.projects-header h1 {
  color: var(--heading);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
  margin: 0;
}

.projects-header p:not(.kicker) {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.project-stack {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.project-card,
.project-row,
.token-row,
.job-row {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 94px;
  overflow: hidden;
}

.project-count {
  align-items: center;
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-count strong {
  color: var(--accent-light);
  font-size: 30px;
  line-height: 1;
}

.project-card.blue .project-count strong {
  color: var(--green);
}

.project-count span,
.project-tags span,
.panel-heading,
.timeline-meta,
.scene-item small,
.summary-row {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.project-count span {
  color: var(--muted-dim);
  font-size: 9px;
  letter-spacing: 0;
}

.project-card-main {
  min-width: 0;
  padding: 18px 22px;
}

.project-card-title {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.project-card-title h4,
.project-card-title h2 {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-title span,
.step-type-tag {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 6px;
  color: #8a90a0;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  padding: 3px 9px;
}

.studio-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  min-height: 620px;
  overflow: hidden;
}

.scene-rail,
.inspector,
.stage-column {
  min-width: 0;
}

.scene-rail,
.inspector {
  background: var(--chrome);
}

.scene-rail {
  border-right: 1px solid var(--line);
}

.inspector {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.panel-heading {
  align-items: center;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  padding: 14px 16px;
}

.panel-heading strong {
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
}

.inspector-heading strong {
  background: rgba(91, 124, 250, 0.12);
  border: 1px solid rgba(91, 124, 250, 0.28);
  border-radius: 999px;
  color: var(--accent-light);
  padding: 3px 9px;
}

.inspector label {
  padding: 0 16px;
}

.inspector textarea {
  min-height: 90px;
}

.step-stats {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
}

.step-stats span {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 999px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 2px 9px;
}

.scene-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.scene-item {
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  display: grid;
  gap: 11px;
  grid-template-columns: 56px minmax(0, 1fr);
  height: auto;
  justify-content: stretch;
  justify-items: stretch;
  min-height: 66px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.scene-item.selected {
  background: #181c29;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scene-thumb {
  align-items: center;
  background: var(--bg);
  border: 1px solid #23262f;
  border-radius: 7px;
  color: #c7cad3;
  display: flex;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  width: 56px;
}

.scene-item strong,
.scene-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.scene-item small {
  color: var(--muted-dim);
  font-size: 10px;
  margin-top: 3px;
}

.stage-column {
  background: var(--bg);
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) 124px;
}

.stage-toolbar {
  align-items: center;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 0 16px;
}

.icon-button {
  min-width: 34px;
  padding: 0;
}

.status {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 26px;
}

.screenshot-frame {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid #23262f;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  max-width: 760px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.mini-app {
  background: #f4f6fb;
  color: #1b2230;
  display: grid;
  grid-template-rows: 46px 1fr;
  height: 100%;
}

.mini-app-top {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f0;
  display: flex;
  gap: 12px;
  padding: 0 16px;
}

.mini-app-top > span {
  background: #2c5bff;
  border-radius: 6px;
  height: 22px;
  width: 22px;
}

.mini-app-top em {
  color: #8a91a0;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  margin-left: auto;
}

.mini-app-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 0;
}

.mini-app nav {
  align-content: start;
  background: #ffffff;
  border-right: 1px solid #e6e9f0;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.mini-app nav span {
  border-radius: 6px;
  color: #7a8295;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
}

.mini-app nav .active {
  background: #eef1f8;
  color: #1b2230;
}

.mini-app main {
  padding: 18px;
}

.mini-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-title strong {
  font-size: 19px;
}

.mini-title button {
  font-size: 12px;
  min-height: 34px;
}

.mini-card-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.mini-card-row span {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  height: 78px;
}

.mini-table {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mini-table span {
  background: #eef1f8;
  border-radius: 999px;
  height: 10px;
}

.mini-table span:nth-child(2) {
  width: 78%;
}

.mini-table span:nth-child(3) {
  width: 64%;
}

.mini-table span:nth-child(4) {
  width: 42%;
}

.hotspot {
  height: 72px;
  left: 50%;
  position: absolute;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 72px;
  z-index: 8;
}

.stage-callout {
  font-size: 13px;
  font-weight: 700;
  left: 50%;
  max-width: 240px;
  position: absolute;
  top: 30%;
  transform: translate(18px, 18px);
  z-index: 9;
}

.timeline {
  background: var(--chrome);
  border-top: 1px solid var(--line);
  padding: 11px 16px;
}

.timeline-meta {
  color: var(--muted-dim);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-bottom: 9px;
}

.timeline-meta strong {
  color: var(--muted);
  font-weight: 500;
}

.clips {
  display: flex;
  gap: 5px;
  height: 48px;
}

.clips button {
  align-items: stretch;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--muted);
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 7px;
}

.clips button.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 4px 14px rgba(91, 124, 250, 0.3);
  color: #ffffff;
}

.clips strong,
.clips span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clips strong {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.clips span {
  font-size: 10px;
}

.feature-ledger {
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.feature-ledger article {
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: clamp(24px, 6vw, 90px);
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  padding: 28px 0 30px;
}

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

.feature-ledger span {
  color: var(--accent-light);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-ledger h3 {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.feature-ledger p {
  color: #8a90a0;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.pricing-section {
  align-items: end;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.pricing-copy h2 {
  color: var(--heading);
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 18px;
}

.pricing-copy > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
}

.pricing-includes {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
}

.pricing-includes strong {
  color: var(--heading);
}

.pricing-includes ul {
  color: var(--muted);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.pricing-includes li::before {
  color: var(--green);
  content: "✓";
  margin-right: 9px;
}

.pricing-section > .button {
  grid-column: 2;
  justify-self: start;
}

.final-cta {
  align-items: center;
  background: #536fe1;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(5, 9, 20, 0.42);
  color: #ffffff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 20px auto 80px;
  max-width: calc(1180px - clamp(40px, 8vw, 60px));
  overflow: hidden;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 44px);
}

.final-cta h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.final-cta .button {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.grid {
  display: grid;
  gap: 14px;
}

.dashboard section,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.dashboard section {
  margin-top: 22px;
  padding: 22px;
}

.dashboard h2 {
  color: var(--ink);
  margin: 0 0 14px;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  padding: 24px;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state p {
  margin: 7px 0 14px;
}

.connection-key {
  background: #101722;
  border: 1px solid #26354d;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
}

.connection-status {
  border-left: 3px solid var(--line-strong);
  margin: 14px 0 18px;
  padding: 8px 12px;
}

.connection-status[data-state="connected"] {
  border-left-color: var(--green);
  color: var(--green);
}

.connection-status[data-state="error"],
.connection-status[data-state="missing"] {
  border-left-color: var(--danger);
  color: var(--danger);
}

.dashboard-hero {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.dashboard-hero .dashboard-lead {
  margin-bottom: 0;
}

.dashboard-stats {
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.dashboard-stats span {
  display: grid;
  gap: 3px;
  padding: 18px 20px;
}

.dashboard-stats span + span {
  border-left: 1px solid var(--line-soft);
}

.dashboard-stats strong {
  color: var(--heading);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.dashboard-stats small {
  color: var(--muted);
}

.workspace-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workspace-heading h2 {
  font-size: 26px;
  margin-bottom: 0;
}

.workspace-tabs {
  display: flex;
  gap: 6px;
}

.workspace-tabs a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 10px;
}

.workspace-tabs a[aria-current="page"] {
  background: var(--panel-raised);
  border-color: var(--line-strong);
  color: var(--ink);
}

.workspace-tabs span {
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.project-toolbar {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.35fr) auto auto;
  margin-bottom: 14px;
  padding: 12px;
}

.project-toolbar label {
  display: grid;
  gap: 6px;
}

.project-toolbar label > span {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 600;
}

.project-toolbar select {
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  min-height: 40px;
  padding: 0 12px;
}

.project-dashboard-list {
  display: grid;
  gap: 12px;
}

.dashboard-project-card {
  background: #11141b;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.dashboard-project-card:hover {
  background: #131720;
  border-color: #343b4a;
  transform: translateY(-1px);
}

.dashboard-project-card.is-archived {
  opacity: 0.78;
}

.project-card-header,
.project-title-line,
.project-actions,
.render-activity-row,
.render-activity-row > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.project-card-header {
  align-items: start;
  justify-content: space-between;
}

.project-title-line {
  flex-wrap: wrap;
}

.project-title-line h3 {
  color: var(--heading);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}

.project-source {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
  max-width: 680px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge,
.render-status {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

.render-status.completed {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.status-badge.published {
  background: rgba(91, 124, 250, 0.1);
  border-color: rgba(126, 151, 255, 0.35);
  color: var(--accent-soft);
}

.render-status.queued,
.render-status.running {
  background: rgba(91, 124, 250, 0.1);
  border-color: rgba(126, 151, 255, 0.35);
  color: var(--accent-soft);
}

.render-status.failed {
  background: rgba(255, 122, 116, 0.08);
  border-color: rgba(255, 122, 116, 0.35);
  color: var(--danger);
}

.project-facts {
  display: grid;
  gap: 0;
  grid-template-columns: 90px 90px minmax(150px, 0.5fr) minmax(150px, 1fr);
  margin: 18px 0;
}

.project-facts > div {
  border-left: 1px solid var(--line-soft);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 14px;
}

.project-facts > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.project-facts dt {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.project-facts dd {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-actions {
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  padding-top: 14px;
}

.project-actions form:last-child {
  margin-left: auto;
}

.inline-error {
  background: rgba(255, 122, 116, 0.07);
  border-left: 3px solid var(--danger);
  color: #ffaaa5;
  font-size: 12px;
  line-height: 1.55;
  padding: 10px 12px;
}

.dashboard-empty {
  min-height: 180px;
}

.render-activity-list,
.connection-list {
  display: grid;
  gap: 8px;
}

.render-activity-row,
.token-row {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.render-activity-row time {
  color: var(--muted-dim);
  font-size: 12px;
  margin-left: auto;
}

.connection-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

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

.connection-panel summary > span:first-child {
  display: grid;
  gap: 3px;
}

.connection-panel summary > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.connection-panel[open] summary {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.project-row,
.token-row,
.job-row {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 16px;
}

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

code {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 6px;
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 6px;
}

.auth-layout {
  align-items: center;
  display: grid;
  gap: clamp(42px, 8vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  min-height: calc(100dvh - 66px);
}

.auth-intro h1,
.legal-page h1,
.not-found h1 {
  color: var(--heading);
  font-size: clamp(42px, 6vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 22px;
}

.auth-intro > p:not(.kicker),
.not-found > p:not(.kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
}

.auth-steps,
.auth-benefits {
  color: var(--muted);
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.auth-steps li,
.auth-benefits li {
  align-items: center;
  display: flex;
  gap: 13px;
}

.auth-steps span {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.auth-benefits li::before {
  color: var(--green);
  content: "✓";
}

.auth-card {
  max-width: none;
  padding: clamp(28px, 4vw, 42px);
  width: 100%;
}

.auth-heading {
  margin: 34px 0 26px;
}

.auth-heading h2 {
  color: var(--heading);
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}

.auth-heading > p:last-child,
.auth-switch,
.auth-consent {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.auth-switch,
.auth-consent {
  font-size: 13px;
  margin-top: 18px;
}

.auth-switch a,
.auth-consent a,
.back-link,
.site-footer a {
  color: var(--accent-soft);
}

.auth-submit {
  margin-top: 8px;
  min-height: 48px;
  width: 100%;
}

.social-login-form {
  margin-bottom: 18px;
}

.social-login-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6d9df;
  border-radius: 10px;
  color: #202124;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  gap: 11px;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.social-login-button:hover {
  border-color: #aeb4bf;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.social-login-button:focus-visible {
  outline: 3px solid rgba(126, 151, 255, 0.45);
  outline-offset: 2px;
}

.auth-divider {
  align-items: center;
  color: var(--muted-dim);
  display: grid;
  font-size: 11px;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 0 18px;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line-soft);
  content: "";
  height: 1px;
}

.profile-page {
  min-height: calc(100dvh - 66px);
  padding: clamp(46px, 7vw, 88px) 0 100px;
}

.profile-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.profile-heading h1 {
  color: var(--heading);
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 14px;
}

.profile-heading p:not(.kicker),
.profile-section-heading p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.profile-panel {
  align-content: start;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
}

.profile-section-heading {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.profile-section-heading > span {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  padding-top: 6px;
}

.profile-section-heading h2 {
  color: var(--heading);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 7px;
}

.profile-submit {
  justify-self: start;
  margin-top: 6px;
  min-height: 44px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack > div {
  display: grid;
  gap: 7px;
}

.form-stack label {
  color: var(--muted-dim);
  font-size: 12px;
  font-weight: 600;
}

.field-help,
.field-errors,
.form-errors {
  font-size: 12px;
  line-height: 1.5;
}

.field-help,
.field-help ul {
  color: var(--muted-dim);
  margin: 0;
  padding-left: 16px;
}

.field-errors,
.form-errors,
.has-error label {
  color: var(--danger);
}

.field-errors ul,
.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.has-error input {
  border-color: rgba(255, 122, 116, 0.7);
}

.messages {
  left: 50%;
  max-width: min(620px, calc(100% - 32px));
  position: fixed;
  top: 78px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 60;
}

.message {
  background: #15211c;
  border: 1px solid #2e7354;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  color: #7bf0bd;
  margin: 0;
  padding: 12px 15px;
}

.legal-page,
.not-found {
  min-height: 68dvh;
}

.legal-page {
  max-width: 880px;
}

.legal-page h1,
.not-found h1 {
  margin-top: 34px;
}

.legal-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.legal-page section {
  border-top: 1px solid var(--line-soft);
  margin-top: 34px;
  padding-top: 24px;
}

.legal-page h2 {
  color: var(--ink);
}

.legal-page section p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  display: grid;
  gap: 16px 28px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 30px clamp(20px, 4vw, 30px) 38px;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.footer-brand {
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .home-hero,
  .recorder-grid,
  .studio-frame {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .studio-frame {
    min-height: 0;
  }

  .scene-rail,
  .inspector {
    border-left: 0;
    border-right: 0;
  }

  .scene-rail {
    border-bottom: 1px solid var(--line);
  }

  .inspector {
    border-top: 1px solid var(--line);
  }

  .recorder-popover {
    max-width: 420px;
  }

  .auth-layout,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .pricing-section > .button {
    grid-column: auto;
  }

  .project-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) auto;
  }

  .project-toolbar > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .nav-links {
    flex: 1 0 100%;
    flex-wrap: wrap;
    margin-left: 0;
    order: 3;
  }

  .home-hero,
  .recorder-workbench,
  .studio-preview,
  .feature-section,
  .pricing-section,
  .dashboard,
  .auth-layout,
  .profile-page,
  .legal-page,
  .not-found {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .profile-heading {
    align-items: start;
    flex-direction: column;
  }

  .home-hero {
    padding-top: 42px;
  }

  .hero-actions,
  .recorder-panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .recorder-panel-actions .button,
  .recorder-panel-actions button {
    width: 100%;
  }

  .recorder-panel,
  .recorder-panel-controls {
    grid-template-columns: 1fr;
  }

  .mock-product {
    height: 300px;
  }

  .address {
    display: none;
  }

  .project-card,
  .project-row,
  .token-row,
  .job-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .project-row,
  .token-row,
  .job-row {
    grid-template-columns: 1fr;
  }

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

  .stage-column {
    grid-template-rows: auto minmax(300px, 1fr) auto;
  }

  .stage-toolbar,
  .timeline-meta,
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-stage {
    padding: 18px;
  }

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

  .mini-app nav {
    display: none;
  }

  .feature-ledger article {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .workspace-heading,
  .project-card-header,
  .render-activity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-toolbar > .button {
    grid-column: auto;
  }

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

  .project-facts > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .render-activity-row time {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .hero-copy h1,
  .dashboard h1,
  .auth-card h1 {
    font-size: 42px;
  }

  .auth-intro h1,
  .legal-page h1,
  .not-found h1 {
    font-size: 38px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .button,
  .nav-actions button {
    font-size: 12px;
    min-height: 34px;
    padding: 0 10px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stats span + span {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .workspace-tabs {
    width: 100%;
  }

  .workspace-tabs a {
    flex: 1;
    text-align: center;
  }

  .project-actions,
  .project-actions form,
  .project-actions .button,
  .project-actions button {
    width: 100%;
  }

  .project-actions form:last-child {
    margin-left: 0;
  }

  .mock-kpis {
    grid-template-columns: 1fr;
  }

  .mock-kpis span:nth-child(n + 2) {
    display: none;
  }

  .recorder-metrics,
  .viewport-options,
  .mini-card-row {
    grid-template-columns: 1fr;
  }

  .project-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .clips {
    overflow-x: auto;
  }

  .clips button {
    flex-basis: 84px;
    flex-grow: 0;
  }
}
