:root {
  --bg-top: #f7fbff;
  --bg-bottom: #edf4ff;
  --card: rgba(255, 255, 255, 0.76);
  --card-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(255, 255, 255, 0.84);
  --text: #0f2340;
  --muted: #667990;
  --muted-strong: #51657f;
  --accent: #2b7cff;
  --accent-soft: #8ac3ff;
  --accent-deep: #1757dc;
  --accent-ghost: rgba(43, 124, 255, 0.12);
  --ok: #198a58;
  --warn: #ffb238;
  --shadow-lg: 0 28px 80px rgba(100, 123, 155, 0.16);
  --shadow-md: 0 18px 44px rgba(100, 123, 155, 0.14);
  --shadow-sm: 0 14px 30px rgba(105, 128, 160, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-text: "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.98), transparent 18%),
    radial-gradient(circle at 86% 10%, rgba(148, 210, 255, 0.42), transparent 22%),
    radial-gradient(circle at 72% 68%, rgba(193, 233, 255, 0.38), transparent 24%),
    radial-gradient(circle at 18% 80%, rgba(244, 250, 255, 0.94), transparent 20%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 28%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 60%);
  opacity: 0.3;
}

@keyframes meshDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -14px, 0) scale(1.03);
  }
}

@keyframes floatLayerSlow {
  0%,
  100% {
    transform: translate3d(34px, 28px, -120px) rotate(-8deg);
  }

  50% {
    transform: translate3d(44px, 12px, -120px) rotate(-10deg);
  }
}

@keyframes floatLayerFast {
  0%,
  100% {
    transform: translate3d(16px, 14px, -60px) rotate(-5deg);
  }

  50% {
    transform: translate3d(26px, -4px, -60px) rotate(-7deg);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 124, 246, 0.22);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(46, 124, 246, 0);
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-140%) skewX(-18deg);
  }

  100% {
    transform: translateX(180%) skewX(-18deg);
  }
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(220%);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.88;
    transform: scale(1.06);
  }
}

@keyframes cardHoverGlow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
}

.ambient-blue {
  top: 2%;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(118, 190, 255, 0.56), rgba(118, 190, 255, 0));
}

.ambient-pink {
  bottom: -7rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(255, 196, 216, 0.34), rgba(255, 196, 216, 0));
}

.ambient-cyan {
  top: 36%;
  left: 44%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(120, 228, 255, 0.24), rgba(120, 228, 255, 0));
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1720px, calc(100% - 20px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.landing-view,
.app-view {
  display: grid;
  gap: 18px;
}

.landing-view {
  min-height: calc(100vh - 24px);
  align-content: start;
}

.is-hidden {
  display: none !important;
}

.card-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.82)),
    linear-gradient(180deg, var(--card-strong), var(--card));
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: var(--shadow-lg);
}

.card-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%);
  pointer-events: none;
}

.card-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  opacity: 0.8;
}

.landing-topbar,
.app-topbar,
.hero-section,
.compose-card,
.summary-card,
.deliver-card,
.auth-card {
  padding: 20px;
}

.landing-topbar,
.app-topbar {
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.landing-topbar {
  backdrop-filter: blur(30px) saturate(1.45);
  -webkit-backdrop-filter: blur(30px) saturate(1.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, #8fd0ff, #2b7cff 62%, #175cea);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 16px 28px rgba(46, 124, 246, 0.28);
}

.eyebrow,
.field-label,
.metric-label,
.surface-label,
.output-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.brand h1,
.app-topbar h2,
.hero-copy h2,
.section-head h3,
.auth-card h1 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand h1 {
  font-size: 30px;
}

.app-topbar h2 {
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-copy h2 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.94;
  max-width: 10ch;
}

.hero-copy h2 span {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent-deep), var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h3,
.auth-card h1 {
  font-size: clamp(22px, 3vw, 28px);
}

.workspace-panel .section-head h3,
.account-card .section-head h3,
.history-card .section-head h3 {
  font-size: clamp(18px, 2vw, 22px);
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 40px 36px;
}

.hero-copy,
.hero-preview {
  flex: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: -36px;
  top: 34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 195, 255, 0.2), rgba(138, 195, 255, 0));
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 30px rgba(130, 155, 189, 0.1);
}

.hero-text,
.card-text,
.activity-item p,
.criteria-list li,
.table-link,
.field-group p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: 18px;
  color: var(--muted-strong);
}

.hero-actions,
.topbar-actions,
.action-row,
.download-row,
.deliver-footer,
.compact-row {
  display: flex;
  gap: 10px;
}

.hero-actions {
  margin-top: 18px;
}

.topbar-actions {
  margin-top: 0;
  align-items: center;
}

.deliverable-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.deliverable-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(138, 196, 255, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 26px rgba(130, 155, 189, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.hero-mesh {
  position: absolute;
  inset: 2% 4% auto auto;
  width: 54rem;
  height: 54rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.96), transparent 30%),
    radial-gradient(circle at 62% 38%, rgba(124, 193, 255, 0.34), transparent 26%),
    radial-gradient(circle at 44% 70%, rgba(120, 228, 255, 0.15), transparent 28%),
    radial-gradient(circle at 72% 70%, rgba(171, 221, 255, 0.28), transparent 34%);
  filter: blur(30px);
  pointer-events: none;
  animation: meshDrift 14s ease-in-out infinite;
}

.hero-gridlines {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(219, 233, 249, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 233, 249, 0.38) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 76% 40%, rgba(0, 0, 0, 0.5), transparent 60%);
  opacity: 0.42;
  pointer-events: none;
}

.hero-preview {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
  --preview-rotate-x: 3deg;
  --preview-rotate-y: -8deg;
  --preview-shift-x: 0px;
  --preview-shift-y: 0px;
}

.hero-preview::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 199, 255, 0.24), rgba(132, 199, 255, 0));
  filter: blur(12px);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.preview-stack-layer {
  position: absolute;
  z-index: 0;
  width: min(720px, 92%);
  aspect-ratio: 1.24;
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(235, 244, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 34px 70px rgba(95, 124, 160, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.preview-stack-back {
  opacity: 0.62;
  animation: floatLayerSlow 9.5s ease-in-out infinite;
}

.preview-stack-mid {
  z-index: 1;
  opacity: 0.84;
  animation: floatLayerFast 7.8s ease-in-out infinite;
}

.preview-window {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  padding: 18px;
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    radial-gradient(circle at top right, rgba(128, 193, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 247, 255, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 40px 90px rgba(95, 124, 160, 0.2);
  transform:
    translate3d(var(--preview-shift-x), var(--preview-shift-y), 0)
    perspective(1800px)
    rotateY(var(--preview-rotate-y))
    rotateX(var(--preview-rotate-x));
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.preview-window:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 46px 110px rgba(93, 124, 166, 0.24);
}

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

.preview-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(19, 36, 60, 0.14);
}

.preview-badge {
  margin-left: auto;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 124, 246, 0.12);
  color: var(--accent-deep);
  font: 700 11px/28px var(--font-text);
  letter-spacing: 0.08em;
  overflow: hidden;
  position: relative;
}

.preview-badge::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -24px;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: sheenSweep 3.4s linear infinite;
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}

.preview-topline strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.preview-topline span {
  color: var(--muted);
  font-size: 12px;
}

.preview-surface {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1.08fr);
  gap: 16px;
  margin-top: 14px;
}

.preview-topic-panel,
.preview-results-panel,
.metric-box,
.step-item,
.delivery-status-item,
.activity-item,
.prisma-node {
  padding: 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-sm);
}

.preview-topic-panel,
.preview-results-panel {
  display: grid;
  gap: 14px;
}

.surface-topic-box {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 36px rgba(133, 155, 188, 0.13);
  font: 700 24px/1.22 var(--font-display);
  letter-spacing: -0.04em;
}

.surface-topic-box::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(127, 196, 255, 0.18), rgba(127, 196, 255, 0));
  pointer-events: none;
}

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

.surface-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(19, 36, 60, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.surface-stage span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(19, 36, 60, 0.15);
}

.surface-stage.is-done span {
  background: var(--ok);
}

.surface-stage.is-active {
  color: var(--accent);
  background: rgba(46, 124, 246, 0.1);
}

.surface-stage.is-active span {
  background: var(--accent);
  animation: pulseRing 1.8s ease-out infinite;
}

.preview-mini-prisma {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.prisma-mini-node {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.prisma-mini-node span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.prisma-mini-node strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.prisma-mini-arrow {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43, 124, 255, 0.2), rgba(43, 124, 255, 0.82));
}

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

.surface-metric {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(127, 151, 185, 0.08);
  position: relative;
}

.surface-metric::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43, 124, 255, 0.22), rgba(43, 124, 255, 0.88));
}

.surface-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.surface-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

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

.preview-deliver-card {
  padding: 14px;
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at top right, rgba(138, 196, 255, 0.2), transparent 44%),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 24px rgba(124, 145, 175, 0.08);
}

.preview-deliver-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8bc7ff, #2b7cff);
  box-shadow: 0 0 0 5px rgba(43, 124, 255, 0.08);
}

.preview-deliver-card span {
  display: block;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-deliver-card strong {
  display: block;
  margin-top: 10px;
  padding-left: 18px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.preview-downloads {
  display: flex;
  gap: 10px;
}

.preview-downloads button,
.sheet-tab,
.link-button {
  appearance: none;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: 700 13px/1 var(--font-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 20px rgba(136, 159, 190, 0.1);
  cursor: pointer;
}

.workspace-grid,
.deliverables-grid {
  display: grid;
  gap: 18px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) 400px;
  gap: 18px;
  width: 100%;
  align-items: start;
}

.workspace-main,
.workspace-sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
}

.workspace-panel {
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(128, 193, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.84));
}

.simple-compose-card,
.files-card,
.account-card,
.history-card {
  background:
    radial-gradient(circle at top right, rgba(128, 193, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.84));
}

.simple-compose-card {
  padding: 0 0 12px;
  background: transparent;
}

.workspace-panel .simple-compose-card,
.workspace-panel .files-card {
  border: 0;
  box-shadow: none;
}

.panel-divider {
  height: 1px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, rgba(210, 226, 246, 0.2), rgba(210, 226, 246, 0.9), rgba(210, 226, 246, 0.2));
}

.run-summary {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.step-inline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.step-inline-list .step-item {
  min-height: 70px;
  align-content: start;
}

.files-card {
  padding: 0;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.file-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  min-height: 118px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at top right, rgba(146, 204, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 28px rgba(117, 140, 172, 0.1);
}

.file-item:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 34px rgba(108, 133, 168, 0.12);
}

.file-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.file-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.account-card,
.history-card {
  padding: 22px;
}

.account-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #8fd0ff, #2b7cff 70%, #175cea);
  color: #fff;
  font: 700 21px/1 var(--font-display);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 28px rgba(46, 124, 246, 0.24);
}

.account-name {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.account-email {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.account-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 24px rgba(126, 147, 177, 0.08);
}

.account-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 420px;
  overflow: auto;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.66);
  background:
    radial-gradient(circle at top right, rgba(147, 205, 255, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 24px rgba(126, 147, 177, 0.08);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.history-item:hover,
.history-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(180, 220, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 30px rgba(106, 135, 170, 0.11);
  outline: none;
}

.history-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.history-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.history-item.is-active {
  border-color: rgba(180, 220, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 30px rgba(106, 135, 170, 0.11);
}

.history-item.is-active .history-state {
  background: rgba(43, 124, 255, 0.12);
  color: var(--accent-deep);
}

.summary-card,
.compose-card,
.deliver-card {
  background:
    radial-gradient(circle at top right, rgba(128, 193, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.82));
}

.compose-card > .section-head::before,
.summary-card > .section-head::before,
.deliver-card > .section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -20px;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43, 124, 255, 0.08), rgba(43, 124, 255, 0.92), rgba(138, 195, 255, 0.18));
  pointer-events: none;
}

.report-card > .section-head::before {
  background: linear-gradient(90deg, rgba(43, 124, 255, 0.12), rgba(43, 124, 255, 0.92), rgba(149, 215, 255, 0.26));
}

.prisma-card > .section-head::before {
  background: linear-gradient(90deg, rgba(25, 138, 88, 0.12), rgba(82, 173, 117, 0.9), rgba(171, 228, 195, 0.24));
}

.criteria-card > .section-head::before {
  background: linear-gradient(90deg, rgba(255, 178, 56, 0.12), rgba(255, 178, 56, 0.94), rgba(255, 226, 171, 0.26));
}

.studies-card > .section-head::before {
  background: linear-gradient(90deg, rgba(90, 132, 255, 0.12), rgba(90, 132, 255, 0.9), rgba(181, 201, 255, 0.26));
}

.extraction-card > .section-head::before {
  background: linear-gradient(90deg, rgba(69, 168, 203, 0.12), rgba(69, 168, 203, 0.94), rgba(177, 233, 248, 0.26));
}

.compose-card,
.summary-card,
.deliver-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.deliver-card:hover,
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 84px rgba(92, 117, 151, 0.18);
  border-color: rgba(191, 221, 255, 0.86);
}

.deliverables-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studies-span,
.extraction-span {
  grid-column: 1 / -1;
}

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

.section-head .eyebrow {
  letter-spacing: 0.08em;
}

.status-chip,
.user-chip,
.file-tag,
.output-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-chip,
.user-chip,
.file-tag {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.status-chip {
  position: relative;
  padding-left: 26px;
}

.status-chip::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8ccaff, #2b7cff);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(43, 124, 255, 0.08);
}

.textarea-shell,
.text-input {
  border-radius: var(--radius-lg);
}

.textarea-shell {
  display: block;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at top right, rgba(154, 210, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 255, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 34px rgba(136, 159, 190, 0.12);
}

.text-input,
textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 15px/1.6 var(--font-text);
}

textarea {
  min-height: 92px;
  resize: vertical;
  font-size: 15px;
}

.primary-button,
.secondary-button {
  appearance: none;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: 700 13px/1 var(--font-text);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #73c1ff, #2b7cff 70%, #1454dc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 26px rgba(46, 124, 246, 0.28);
  position: relative;
  overflow: hidden;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30px;
  width: 34px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  animation: sheenSweep 4.2s linear infinite;
}

.secondary-button {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 254, 255, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(136, 159, 190, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.preview-downloads button:hover,
.sheet-tab:hover,
.link-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: #e5e7eb !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  box-shadow: none !important;
}

.primary-button:disabled:hover,
.secondary-button:disabled:hover {
  background: #e5e7eb !important;
  transform: none !important;
}

.progress-track {
  height: 12px;
  margin-top: 14px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cc9ff, #2e7cf6);
  box-shadow: 0 0 18px rgba(76, 154, 255, 0.24);
  transition: width 280ms ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: progressShimmer 2.6s linear infinite;
}

.step-list,
.delivery-status-list,
.activity-list {
  display: grid;
  gap: 12px;
}

.step-list {
  margin-top: 18px;
}

.delivery-status-list,
.activity-list {
  margin-top: 18px;
}

.step-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.step-item.is-active {
  transform: translateX(4px);
  border-color: rgba(165, 214, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(110, 142, 180, 0.12);
}

.step-dot {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(19, 36, 60, 0.08);
}

.step-item.is-active .step-dot {
  background: var(--accent);
}

.step-item.is-done .step-dot {
  background: var(--ok);
}

.delivery-status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-box {
  position: relative;
  overflow: hidden;
}

.metric-box::after {
  content: "";
  position: absolute;
  inset: auto -20px -24px auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 196, 255, 0.22), rgba(138, 196, 255, 0));
}

.metric-box strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.output-state-pending {
  background: rgba(19, 36, 60, 0.08);
  color: var(--muted);
}

.output-state-running {
  background: rgba(255, 178, 56, 0.14);
  color: #8a6100;
}

.output-state-ready {
  background: rgba(25, 138, 88, 0.12);
  color: var(--ok);
}

.output-state-running,
.output-state-ready,
.output-state-pending {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.activity-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.activity-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7ec4ff, #2e7cf6);
  box-shadow: 0 0 0 6px rgba(46, 124, 246, 0.1);
}

.card-text {
  margin: 14px 0 0;
}

.deliver-footer {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(220, 232, 246, 0.72);
}

.compact-row {
  margin-top: 0;
}

.prisma-preview {
  margin-top: 16px;
}

.prisma-column {
  display: grid;
  gap: 14px;
}

.prisma-column::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 98px;
  bottom: 92px;
  width: 2px;
  background: linear-gradient(180deg, rgba(43, 124, 255, 0.18), rgba(43, 124, 255, 0.72));
}

.prisma-card {
  position: relative;
}

.prisma-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 80px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 200, 255, 0.18), rgba(137, 200, 255, 0));
  pointer-events: none;
}

.prisma-node {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.prisma-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(43, 124, 255, 0.18);
  box-shadow: 0 0 0 6px rgba(43, 124, 255, 0.08);
}

.prisma-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.prisma-node strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.prisma-node-accent::before {
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(25, 138, 88, 0.1);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.criteria-grid h4 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.criteria-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sheet-tab.is-active {
  background: linear-gradient(180deg, #eef6ff, #dbeaff);
  color: var(--accent-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 20px rgba(46, 124, 246, 0.14);
}

.table-wrap {
  margin-top: 16px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(133, 155, 188, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-top: 1px solid rgba(217, 226, 239, 0.86);
  text-align: left;
  font-size: 14px;
}

thead th {
  border-top: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(247, 250, 255, 0.84);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(234, 244, 255, 0.52);
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(210, 229, 249, 0.86);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.table-link:hover {
  color: var(--accent-deep);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 20, 36, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
}

.auth-card .brand {
  margin-bottom: 4px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.auth-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 98, 98, 0.08);
  border: 1px solid rgba(255, 98, 98, 0.16);
  color: #c43d3d;
  font-size: 13px;
  line-height: 1.5;
}

.text-input {
  min-height: 50px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(136, 159, 190, 0.1);
}

@media (max-width: 1200px) {
  .hero-section,
  .workspace-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-copy {
    max-width: none;
  }

  .preview-window {
    width: min(820px, 100%);
  }
}

@media (max-width: 920px) {
  .step-inline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-sidebar,
  .file-list {
    grid-template-columns: 1fr;
  }

  .file-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .file-actions {
    justify-content: space-between;
  }

  .deliverables-grid,
  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .metrics-row,
  .surface-metrics {
    grid-template-columns: 1fr;
  }

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

  .preview-deliver-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 16px);
    padding: 8px 0 16px;
  }

  .landing-topbar,
  .app-topbar,
  .hero-section,
  .compose-card,
  .summary-card,
  .deliver-card,
  .auth-card {
    padding: 18px;
  }

  .landing-topbar,
  .app-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .deliver-footer,
  .topbar-actions,
  .action-row,
  .download-row,
  .preview-downloads,
  .file-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-deliver-grid {
    grid-template-columns: 1fr;
  }

  .step-inline-list {
    grid-template-columns: 1fr;
  }

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

  .workspace-layout,
  .workspace-main,
  .workspace-sidebar {
    gap: 14px;
  }

  .preview-mini-prisma {
    grid-template-columns: 1fr;
  }

  .prisma-mini-arrow {
    width: 2px;
    height: 14px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(43, 124, 255, 0.2), rgba(43, 124, 255, 0.82));
  }

  th,
  td {
    white-space: nowrap;
  }
}

/* ===== NEW LANDING SECTIONS ===== */

/* Shared section styles */
.section-head-center {
  text-align: center;
  justify-content: center;
}

.section-head-center > div {
  max-width: 640px;
}

.section-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-subtitle {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.6;
}

/* Skills Section */
.skills-section {
  padding: 48px 36px;
}

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

.skill-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at top right, rgba(146, 204, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(117, 140, 172, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 40px rgba(108, 133, 168, 0.14);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.skill-icon-pico    { background: linear-gradient(135deg, #8fd0ff, #2b7cff); }
.skill-icon-search  { background: linear-gradient(135deg, #7ec4ff, #1757dc); }
.skill-icon-dedup   { background: linear-gradient(135deg, #a8e0ff, #4d9aff); }
.skill-icon-screen  { background: linear-gradient(135deg, #78e4ff, #2b9cff); }
.skill-icon-fulltext { background: linear-gradient(135deg, #b1e9f8, #45a8cb); }
.skill-icon-extract { background: linear-gradient(135deg, #8bc7ff, #5a84ff); }
.skill-icon-bias    { background: linear-gradient(135deg, #ffce78, #ff9f38); }
.skill-icon-prisma  { background: linear-gradient(135deg, #78dda6, #198a58); }

.skill-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Steps Section */
.steps-section {
  padding: 48px 36px;
}

.steps-big-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.step-big-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at top left, rgba(146, 204, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 30px rgba(117, 140, 172, 0.1);
}

.step-big-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #8fd0ff, #2b7cff 70%, #175cea);
  color: #fff;
  font: 700 20px/1 var(--font-display);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 24px rgba(46, 124, 246, 0.22);
  margin-bottom: 18px;
}

.step-big-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.step-big-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Use Cases Section */
.usecases-section {
  padding: 48px 36px;
}

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

.usecase-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(138, 196, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(130, 155, 189, 0.08);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.usecase-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 30px rgba(120, 145, 180, 0.12);
}

.compliance-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.compliance-badge {
  display: grid;
  gap: 2px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 22px rgba(126, 147, 177, 0.08);
  text-align: center;
}

.compliance-badge strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.compliance-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Pricing Section */
.pricing-section {
  padding: 48px 36px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 30px rgba(117, 140, 172, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 44px rgba(108, 133, 168, 0.14);
}

.pricing-card.is-featured {
  border-color: rgba(43, 124, 255, 0.3);
  background:
    radial-gradient(circle at top right, rgba(128, 193, 255, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 44px rgba(46, 124, 246, 0.16);
}

.pricing-recommend {
  position: absolute;
  top: -1px;
  right: 24px;
  padding: 6px 16px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #73c1ff, #2b7cff 70%, #1454dc);
  color: #fff;
  font: 700 11px/1 var(--font-text);
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(46, 124, 246, 0.28);
}

.pricing-name {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pricing-price {
  margin-top: 8px;
}

.pricing-price strong {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pricing-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
}

.pricing-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #78dda6, #198a58);
  box-shadow: 0 0 0 4px rgba(25, 138, 88, 0.08);
}

.pricing-feature-disabled {
  color: var(--muted);
  opacity: 0.5;
}

.pricing-feature-disabled::before {
  background: rgba(19, 36, 60, 0.1) !important;
  box-shadow: none !important;
}

.pricing-button {
  width: 100%;
  margin-top: 24px;
  min-height: 46px;
  font-size: 14px;
}

/* Plan badge in sidebar */
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(146, 204, 255, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #73c1ff, #2b7cff 70%, #1454dc);
  color: #fff;
  font: 700 11px/28px var(--font-text);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(46, 124, 246, 0.24);
}

.plan-quota {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.plan-upgrade-button {
  width: 100%;
  margin-top: 14px;
  min-height: 42px;
  font-size: 13px;
}

/* Footer */
.site-footer {
  margin-top: 4px;
  padding: 40px 36px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.76));
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brand-mark-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 232, 246, 0.72);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Minimal footer — used when the landing has only the hero */
.site-footer-minimal {
  margin-top: 24px;
  padding: 18px 28px;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-footer-minimal .footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.site-footer-minimal .footer-bottom p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Responsive for new sections */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 920px) {
  .steps-big-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .skills-section,
  .steps-section,
  .usecases-section,
  .pricing-section {
    padding: 32px 18px;
  }

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

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

  .site-footer {
    padding: 28px 18px 20px;
  }

  .compliance-row {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   Enterprise additions — agent mode badge, logout button, failed step state
   ========================================================================== */

.agent-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5b78;
  background: rgba(227, 236, 255, 0.9);
  border: 1px solid rgba(180, 203, 247, 0.6);
  letter-spacing: 0.2px;
}

.agent-mode-badge.is-anthropic {
  color: #1f4e79;
  background: linear-gradient(135deg, #dfe9ff, #c1d7ff);
  border-color: rgba(120, 160, 230, 0.9);
}

#logout-button {
  padding: 8px 14px;
}

.step-item.is-failed {
  background: rgba(255, 235, 235, 0.85);
  border-color: rgba(235, 120, 120, 0.55);
}

.step-item.is-failed .step-dot {
  background: #d9534f;
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.18);
}

.step-item.is-failed strong {
  color: #a52828;
}

.output-state-failed {
  color: #a52828;
  background: rgba(255, 220, 220, 0.8);
}

.file-item {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.file-item:hover {
  box-shadow: 0 4px 18px rgba(43, 124, 255, 0.12);
}

.plan-quota {
  font-variant-numeric: tabular-nums;
}

/* SMS login form */
.code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-input {
  flex: 1;
}

.send-code-button {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 13px;
}

.send-code-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.terms-row {
  margin: 12px 0 4px;
}

.terms-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  cursor: pointer;
}

.terms-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.terms-label a {
  color: var(--accent);
  text-decoration: none;
}

.terms-label a:hover {
  text-decoration: underline;
}

.policy-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.policy-text h3 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 15px;
}

