:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-alt: #edf1f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --stroke: rgba(15, 23, 42, 0.08);
  --stroke-strong: rgba(15, 23, 42, 0.14);
  --text: #101828;
  --muted: #5b6475;
  --muted-strong: #344054;
  --accent: #2457f5;
  --accent-soft: rgba(36, 87, 245, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.05);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 28%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.3), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.12), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(14, 165, 233, 0.08), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(99, 102, 241, 0.06), transparent 30%);
  filter: blur(6px);
  opacity: 0.95;
}

body::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 78%);
  opacity: 0.7;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

textarea {
  resize: none;
}

[hidden] {
  display: none !important;
}

.page {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.82)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), transparent 34%);
  backdrop-filter: blur(18px) saturate(1.05);
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.07);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.brand-mark-core {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, #93c5fd, #2563eb 72%);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.brand-wordmark {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-wordmark strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-wordmark span {
  color: var(--muted);
  font-size: 0.84rem;
}

.topnav {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.topnav a {
  color: var(--muted-strong);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.topnav a:hover {
  color: var(--accent);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.secondary-btn:hover {
  transform: translateY(-1px);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 26px;
}

.hero::before,
.launch-surface::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 99, 235, 0.12) 16%,
    rgba(56, 189, 248, 0.28) 50%,
    rgba(99, 102, 241, 0.16) 80%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background:
    radial-gradient(circle at 20% 12%, rgba(37, 99, 235, 0.08), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.07), transparent 18%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 12px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(1.95rem, 2.95vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 820;
  text-wrap: balance;
}

.hero-copy-text {
  max-width: 62ch;
  font-size: 1.06rem;
}

.trust-metrics-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.trust-metric strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  margin-bottom: 2px;
}

.trust-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.hero-visual {
  min-width: 0;
}

.hero-cad-stage {
  position: relative;
  min-height: 620px;
  padding: 20px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 42%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-cad-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(56, 189, 248, 0.1), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
  pointer-events: none;
  opacity: 0.8;
}

.hero-cad-stage::after {
  content: "";
  position: absolute;
  inset: auto 12% 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.34), rgba(56, 189, 248, 0.42), transparent);
  filter: blur(6px);
  pointer-events: none;
  opacity: 0.75;
}

.hero-cad-grid {
  position: absolute;
  inset: 20px;
  border-radius: 26px;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 96%);
  opacity: 0.8;
}

.hero-cad-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 580px;
}

.analysis-floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 14px;
  width: min(280px, calc(100% - 40px));
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 36%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.05);
}

.floating-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-stats div {
  display: grid;
  gap: 3px;
}

.analysis-stats strong {
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.analysis-stats span,
.analysis-floating-card p {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
}

.analysis-floating-card > strong {
  font-size: 0.96rem;
  color: var(--text);
}

.launch-surface {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  margin: 18px 0 36px;
}

.launch-surface::before {
  left: 8%;
  right: 8%;
  top: -6px;
  opacity: 0.62;
}

.launch-surface::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.24), rgba(99, 102, 241, 0.18), transparent);
  pointer-events: none;
  opacity: 0.68;
}

.launch-surface.is-processing .dropzone,
.launch-surface.is-processing .results-panel,
.upload-card.is-processing .dropzone,
.results-panel.is-processing {
  border-color: rgba(36, 87, 245, 0.26);
  box-shadow: 0 22px 60px rgba(36, 87, 245, 0.12), var(--shadow);
}

.launch-surface.is-processing .dropzone::before,
.launch-surface.is-processing .results-panel::before {
  opacity: 1;
  animation: panelShimmer 2.8s ease-in-out infinite;
}

.processing-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.9), rgba(239, 245, 255, 0.7)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
}

.processing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.launch-surface.is-processing .processing-panel::before {
  opacity: 1;
  animation: panelShimmer 2.8s ease-in-out infinite;
}

.processing-panel-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.processing-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.processing-stage-text {
  position: relative;
  padding-left: 18px;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 700;
}

.processing-stage-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(148, 163, 184, 0.68);
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.08);
}

.launch-surface.is-processing .processing-stage-text::before {
  background: #2457f5;
  box-shadow: 0 0 0 7px rgba(36, 87, 245, 0.12), 0 0 18px rgba(36, 87, 245, 0.22);
  animation: dotPulse 1.8s ease-in-out infinite;
}

.processing-bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.processing-bar span {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2457f5, #5b88ff);
  box-shadow: 0 0 18px rgba(36, 87, 245, 0.24);
  transition: width 240ms ease;
}

.processing-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  background-size: 180% 100%;
  opacity: 0.55;
}

.processing-bar.active span {
  background-size: 180% 100%;
  animation: processingPulse 1.1s linear infinite;
}

.processing-bar.active span::after {
  animation: panelShimmer 1.8s ease-in-out infinite;
}

@keyframes processingPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 180% 50%; }
}

@keyframes panelShimmer {
  0% {
    transform: translateX(-22%);
    opacity: 0.1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    transform: translateX(22%);
    opacity: 0.1;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.12);
  }
}

.workflow-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px 0 30px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.workflow-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(241, 245, 249, 0.7);
}

.workflow-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.workflow-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.workflow-arrow {
  color: #94a3b8;
  font-size: 1.6rem;
  font-weight: 800;
}

.guidance-section {
  margin-top: 10px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.premium-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.card-index {
  display: inline-flex;
  align-self: flex-start;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
}

.premium-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.premium-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.first-uploads {
  margin-top: 18px;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recommendation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--muted-strong);
  font-weight: 700;
}

.docs-section .docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.doc-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.doc-card .subhead {
  display: inline-flex;
  margin-bottom: 10px;
}

.doc-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace {
  margin-top: 32px;
}


.shell-head,
.auth-hero,
.workspace,
.upload-card,
.chat-shell,
.rail-card,
.results-panel {
  position: relative;
}

.shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.brand {
  display: grid;
  gap: 8px;
  max-width: 72ch;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.session-chip,
.auth-message,
.rail-meta,
.empty-state,
.hero-text {
  color: var(--muted);
}

.session-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.subtle-chip {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
  border: 1px solid var(--stroke);
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.auth-dialog {
  width: min(920px, calc(100vw - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
}

.auth-dialog-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.auth-dialog-copy,
.auth-dialog-body {
  padding: 12px;
}

.auth-dialog-body {
  display: grid;
  gap: 16px;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--muted-strong);
  font-size: 1.25rem;
}

.hero-copy,
.auth-card,
.rail-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 253, 0.92)),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.06), transparent 32%);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 100%;
}

.hero-copy h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-text {
  margin: 0;
  max-width: 58ch;
  font-size: 1.02rem;
}

.auth-card {
  display: grid;
  gap: 16px;
}

.auth-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.auth-tab {
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
}

.auth-tab.active {
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

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

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus {
  border-color: rgba(36, 87, 245, 0.38);
  box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.08);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-submit {
  width: 100%;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.google-btn:hover {
  transform: translateY(-1px);
}

.auth-message {
  margin: 0;
  min-height: 1.4em;
}

.auth-message[data-tone="error"] {
  color: #b42318;
}

.auth-message[data-tone="success"] {
  color: #127a38;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.project-rail {
  display: grid;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.save-banner {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(36, 87, 245, 0.08);
  border: 1px solid rgba(36, 87, 245, 0.16);
  color: var(--muted-strong);
  line-height: 1.6;
}

.rail-card {
  display: grid;
  gap: 16px;
}

.rail-meta {
  margin: 0;
  line-height: 1.7;
}

.empty-state {
  margin: 0;
  line-height: 1.7;
}

.memory-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.memory-chip {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(36, 87, 245, 0.07);
  border: 1px solid rgba(36, 87, 245, 0.12);
  color: var(--muted-strong);
  max-width: 100%;
}

.workspace-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.subhead {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 700 0.72rem/1 "IBM Plex Mono", monospace;
}

h1,
h2,
.project-row strong {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
  line-height: 0.96;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.brand-copy,
.intro-copy,
.dropzone-note,
.result-copy,
.message-text,
.project-row small {
  color: var(--muted);
  line-height: 1.65;
}

.brand-copy {
  max-width: 46ch;
  margin: 0;
  font-size: 0.96rem;
}

.intro {
  margin: 6px 0 18px;
}

.intro-copy {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-card {
  margin-bottom: 12px;
}

.dropzone {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3.4vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 253, 0.92)),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.06), transparent 34%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent 28%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.04);
  min-height: clamp(220px, 28vw, 320px);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dropzone::before,
.results-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.06), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%, rgba(99, 102, 241, 0.05));
  opacity: 0.7;
}

.dropzone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 40%, transparent 68%);
  transform: translateX(-18%);
  opacity: 0;
  pointer-events: none;
}

.dropzone:hover,
.dropzone.dragover {
  transform: translateY(-1px);
  border-color: rgba(36, 87, 245, 0.24);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.dropzone.dragover::after,
.launch-surface.is-processing .dropzone::after {
  opacity: 1;
  animation: panelShimmer 2.4s ease-in-out infinite;
}

.dropzone-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 58ch;
}

.dropzone-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.65rem, 2.7vw, 2.75rem);
  line-height: 0.98;
  text-wrap: balance;
}

.dropzone-note {
  margin: 12px 0 0;
  font-size: 1rem;
  max-width: 50ch;
}

.dropzone-note-strong {
  color: var(--muted-strong);
  font-weight: 700;
}

.dropzone-note-muted {
  font-size: 0.94rem;
}

.launch-beta-note {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.5;
}

.launch-beta-note strong {
  color: var(--text);
}

.upload-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  color: var(--muted-strong);
  font: 700 0.8rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-flow-arrow {
  color: var(--accent);
  font-size: 0.95rem;
}

.dropzone-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  padding-top: 8px;
}

.browse-pill,
.state-pill,
.download-link,
.send-btn,
.ghost-chip,
.project-row {
  border-radius: 999px;
}

.browse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.chat-shell,
.projects,
.results-panel {
  margin-top: 24px;
}

.chat-head,
.projects-head,
.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.conversation {
  min-height: 190px;
  padding: 4px 0 8px;
  display: grid;
  gap: 12px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 78ch;
}

.message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--stroke);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.user-avatar {
  background: #111827;
  color: #fff;
}

.bubble {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.message.user .bubble {
  background: #101828;
  color: #fff;
  border-color: rgba(16, 24, 40, 0.12);
}

.bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
  margin-bottom: 8px;
}

.bubble-meta {
  color: var(--muted);
  font-weight: 600;
}

.message.user .bubble-meta {
  color: rgba(255, 255, 255, 0.7);
}

.message-text {
  margin: 0;
}

.message.user .message-text {
  color: rgba(255, 255, 255, 0.92);
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.composer textarea {
  flex: 1;
  min-height: 62px;
  padding: 16px 16px 14px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #7b8497;
}

.send-btn,
.ghost-chip,
.project-row,
.download-link {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.send-btn {
  flex: 0 0 auto;
  padding: 14px 18px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(36, 87, 245, 0.22);
}

.send-btn:hover,
.ghost-chip:hover,
.project-row:hover,
.download-link:hover {
  transform: translateY(-1px);
}

.send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ghost-chip {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted-strong);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.projects {
  margin-bottom: 16px;
}

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

.conversation-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(36, 87, 245, 0.18);
  background: rgba(36, 87, 245, 0.04);
  color: var(--muted);
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.project-row.active {
  border-color: rgba(36, 87, 245, 0.28);
  box-shadow: 0 18px 36px rgba(36, 87, 245, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.project-row span:first-child {
  display: grid;
  gap: 4px;
}

.project-row strong {
  font-size: 1rem;
}

.project-row small {
  font-size: 0.92rem;
}

.project-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.results-panel {
  position: relative;
  overflow: hidden;
  padding-top: 10px;
}

.artifact-downloads {
  margin-top: 10px;
}

.download-link.is-hidden {
  display: none;
}

.download-link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 0;
  padding: 26px 2px 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 3px;
}

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

.state-pill {
  padding: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(36, 87, 245, 0.16);
  font: 700 0.84rem/1 "IBM Plex Mono", monospace;
}

.job-status-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  align-self: center;
  font-size: 0.78rem;
  color: var(--muted);
}

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

.recent-job {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(36, 87, 245, 0.05);
  border: 1px solid rgba(36, 87, 245, 0.08);
}

.recent-job strong {
  color: var(--text);
}

.recent-job span {
  color: var(--muted);
  font-size: 0.88rem;
}

.results-stack {
  display: grid;
  gap: 12px;
}

.result-section {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.72)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), transparent 30%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.result-headline-spaced {
  margin-top: 18px;
}

details.result-section {
  padding-bottom: 16px;
}

details.result-section > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--muted-strong);
}

details.result-section > summary::-webkit-details-marker {
  display: none;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.result-headline {
  font-weight: 700;
  color: var(--muted-strong);
  margin-bottom: 10px;
}

.result-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 10px;
}

.result-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(36, 87, 245, 0.06);
  color: var(--muted-strong);
}

.result-metric strong {
  color: var(--text);
}

.result-metric {
  font-size: 0.96rem;
}

.result-copy {
  margin: 0 0 10px;
}

.result-copy.compact {
  margin-bottom: 8px;
}

.schema-review-panel {
  display: grid;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.95), rgba(239, 245, 255, 0.78)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 36%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.schema-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.schema-review-head h3 {
  margin: 2px 0 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.schema-confidence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.schema-review-subtitle {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.schema-review-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.schema-review-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schema-review-card strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.schema-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.schema-review-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.schema-review-card-wide {
  grid-column: 1 / -1;
}

.schema-dimension-stack {
  display: grid;
  gap: 8px;
}

.schema-dimension-group {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.05);
}

.schema-dimension-group strong {
  font-size: 0.92rem;
}

.schema-dimension-group span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.schema-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--muted-strong);
  font-weight: 700;
  font-size: 0.86rem;
}

.schema-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.schema-note-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.schema-note-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.schema-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.6);
}

.progress-list,
.result-list {
  display: grid;
  gap: 8px;
}

.progress-list div,
.result-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-strong);
}

.progress-list div {
  position: relative;
  padding: 10px 12px 10px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 14px;
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease, color 220ms ease;
}

.progress-list div::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.08);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.progress-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.progress-list div:first-child::before {
  top: 8px;
}

.progress-list div.active {
  background: rgba(36, 87, 245, 0.06);
  box-shadow: inset 0 0 0 1px rgba(36, 87, 245, 0.08);
}

.progress-list div.active::before {
  background: #2457f5;
  box-shadow: 0 0 0 7px rgba(36, 87, 245, 0.12), 0 0 18px rgba(36, 87, 245, 0.22);
  animation: dotPulse 1.8s ease-in-out infinite;
}

.progress-list div.done::before {
  background: #0f7a3c;
  box-shadow: 0 0 0 6px rgba(15, 122, 60, 0.08);
}

.progress-list div span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 220ms ease;
}

.progress-list div.active span:last-child {
  color: var(--accent);
}

.progress-list div.done span:last-child {
  color: #0f7a3c;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.result-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.generated-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.code-block,
.preview-canvas {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.code-block {
  margin: 8px 0 0;
  padding: 14px;
  min-height: 170px;
  overflow: auto;
  color: #24324a;
  font: 0.86rem/1.6 "IBM Plex Mono", monospace;
}

.preview-canvas {
  display: block;
  height: auto;
  min-height: 260px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86)),
    rgba(36, 87, 245, 0.07);
  border: 1px solid rgba(36, 87, 245, 0.14);
  box-shadow: 0 10px 28px rgba(36, 87, 245, 0.08);
  text-decoration: none;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.download-link:hover {
  box-shadow: 0 14px 34px rgba(36, 87, 245, 0.12);
}

.results-panel.is-processing .result-section,
.results-panel.is-processing .processing-panel {
  position: relative;
}

.results-panel.is-processing .processing-panel::after,
.upload-card.is-processing .dropzone::after,
.launch-surface.is-processing .results-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(36, 87, 245, 0.08), 0 0 28px rgba(36, 87, 245, 0.08) inset;
}

.launch-hero,
.launch-section,
.report-card,
.gallery-card,
.beta-copy-card,
.beta-form,
.audience-card {
  border: 1px solid var(--stroke-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 253, 0.94)),
    radial-gradient(circle at top right, rgba(36, 87, 245, 0.05), transparent 30%);
  box-shadow: var(--shadow);
}

.launch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
}

.launch-copy,
.launch-panel,
.launch-section,
.beta-copy-card,
.beta-form,
.report-card,
.audience-card {
  border-radius: var(--radius-xl);
}

.launch-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 8px 6px 8px 4px;
}

.launch-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 0.98;
  max-width: 14ch;
}

.launch-steps {
  display: grid;
  gap: 12px;
}

.launch-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--stroke);
}

.launch-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.launch-step-number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(36, 87, 245, 0.12);
  color: var(--accent);
  font: 800 0.88rem/1 "IBM Plex Mono", monospace;
}

.launch-step strong {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-strong);
}

.launch-step p,
.launch-note,
.launch-section-copy,
.gallery-subtitle,
.gallery-copy,
.metric-meta,
.audience-focus {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.launch-panel {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.launch-panel-header h2 {
  margin-top: 8px;
}

.launch-checklist,
.result-list,
.launch-note {
  list-style: none;
}

.launch-checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.launch-checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.6;
}

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

.launch-note {
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.launch-section {
  margin-top: 28px;
  padding: 24px;
}

.launch-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.launch-section-copy {
  max-width: 56ch;
}

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

.gallery-card,
.audience-card,
.report-card,
.beta-copy-card,
.beta-form {
  padding: 20px;
}

.gallery-card {
  display: grid;
  gap: 14px;
}

.gallery-head {
  display: grid;
  gap: 14px;
}

.gallery-head h3 {
  margin: 2px 0 0;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.metric-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(36, 87, 245, 0.08);
  border: 1px solid rgba(36, 87, 245, 0.12);
  color: var(--muted-strong);
  font: 700 0.8rem/1 "IBM Plex Mono", monospace;
}

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

.gallery-figure {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.gallery-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.gallery-figure figcaption {
  margin-top: 8px;
  color: var(--muted-strong);
  font: 700 0.8rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--muted-strong);
}

.gallery-detail-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--stroke);
  font-size: 0.88rem;
}

.gallery-downloads {
  margin-top: 2px;
}

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

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.metric-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font: 700 0.74rem/1 "IBM Plex Mono", monospace;
}

.metric-value {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.metric-meta {
  font-size: 0.92rem;
}

.report-grid,
.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.report-card,
.beta-copy-card,
.beta-form,
.audience-card {
  display: grid;
  gap: 14px;
}

.beta-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 700;
}

.beta-form span {
  font-size: 0.94rem;
}

.beta-form input,
.beta-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.beta-form input:focus,
.beta-form textarea:focus {
  border-color: rgba(36, 87, 245, 0.34);
  box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.08);
}

.beta-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.beta-check-grid .check-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(36, 87, 245, 0.04);
  border: 1px solid rgba(36, 87, 245, 0.08);
}

.template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted-strong);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.audience-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.audience-focus {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(36, 87, 245, 0.06);
  border: 1px solid rgba(36, 87, 245, 0.08);
  color: var(--muted-strong);
  font-weight: 700;
}

.launch-section .empty-state {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .page {
    width: min(100vw - 22px, 1240px);
    padding: 18px 0 32px;
  }

  .topbar,
  .hero,
  .workflow-strip,
  .launch-section-head,
  .workspace,
  .chat-head,
  .projects-head,
  .results-head,
  .dropzone-foot,
  .report-grid,
  .beta-grid,
  .gallery-media,
  .metric-grid,
  .gallery-grid,
  .audience-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-rail {
    position: static;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .trust-metrics-inline,
  .guidance-grid,
  .docs-section .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.95rem, 7vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
  }

  .hero-cad-stage {
    min-height: 460px;
  }

  .hero-cad-svg {
    min-height: 420px;
  }

  .analysis-floating-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    display: none;
  }

  .dropzone {
    min-height: 0;
  }

  .composer {
    align-items: stretch;
    flex-direction: column;
  }

  .send-btn {
    width: 100%;
  }

  .auth-tab,
  .session-chip,
  .subtle-chip {
    width: 100%;
    justify-content: center;
  }

  .auth-dialog-surface {
    grid-template-columns: 1fr;
  }

  .launch-section,
  .gallery-card,
  .beta-copy-card,
  .beta-form,
  .report-card,
  .audience-card {
    padding: 18px;
  }

  .launch-surface {
    gap: 16px;
    margin: 14px 0 28px;
  }

  .processing-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .schema-review-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .schema-review-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding-top: 20px;
  }

  .metric-grid,
  .gallery-grid,
  .audience-grid,
  .beta-check-grid,
  .trust-metrics-inline,
  .guidance-grid,
  .docs-section .docs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-figure img {
    height: 180px;
  }
}
