:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #0d1118;
  --surface-soft: #131923;
  --surface-strong: #1b2533;
  --panel: #080b11;
  --panel-soft: #101620;
  --soft-boundary-bg: rgba(16, 22, 32, 0.22);
  --soft-boundary-bg-strong: rgba(16, 22, 32, 0.34);
  --soft-divider: rgba(110, 168, 255, 0.14);
  --field-bg: #090d14;
  --ink: #f5f8ff;
  --muted: #98a3b4;
  --line: #222b3a;
  --line-strong: #3b495d;
  --blue: #6ea8ff;
  --blue-soft: rgba(110, 168, 255, 0.13);
  --accent: var(--blue);
  --accent-soft: rgba(110, 168, 255, 0.12);
  --accent-line: rgba(110, 168, 255, 0.38);
  --accent-glow: rgba(110, 168, 255, 0.2);
  --edge-gradient: linear-gradient(
    135deg,
    rgba(110, 168, 255, 0.5),
    rgba(110, 168, 255, 0.12) 48%,
    rgba(159, 194, 255, 0.34)
  );
  --edge-gradient-soft: linear-gradient(
    135deg,
    rgba(110, 168, 255, 0.32),
    rgba(110, 168, 255, 0.08) 54%,
    rgba(159, 194, 255, 0.2)
  );
  --edge-gradient-active: linear-gradient(
    135deg,
    rgba(185, 216, 255, 0.72),
    rgba(110, 168, 255, 0.22) 48%,
    rgba(110, 168, 255, 0.58)
  );
  --done: #9fc2ff;
  --done-soft: rgba(110, 168, 255, 0.12);
  --done-line: rgba(110, 168, 255, 0.3);
  --danger: #e48a74;
  --header-bg: linear-gradient(180deg, rgba(13, 17, 24, 0.64), rgba(13, 17, 24, 0.38));
  --nav-action-bg: rgba(16, 22, 32, 0.46);
  --nav-action-shadow: inset 0 1px 0 rgba(245, 248, 255, 0.04);
  --button-primary-bg: linear-gradient(135deg, #f6f9ff 0%, #d5e5ff 52%, #8dbbff 100%);
  --button-primary-text: #04070d;
  --button-primary-hover: linear-gradient(135deg, #ffffff 0%, #c8ddff 46%, #6ea8ff 100%);
  --brand-mark-bg: #f7faff;
  --page-sheen: linear-gradient(180deg, rgba(110, 168, 255, 0.055), rgba(110, 168, 255, 0) 360px);
  --shadow: 0 28px 92px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --surface-strong: #dfe8f3;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --soft-boundary-bg: rgba(24, 95, 201, 0.055);
  --soft-boundary-bg-strong: rgba(24, 95, 201, 0.085);
  --soft-divider: rgba(24, 95, 201, 0.12);
  --field-bg: #ffffff;
  --ink: #0b111b;
  --muted: #5f6876;
  --line: #d9e2ec;
  --line-strong: #b4c1d0;
  --blue: #185fc9;
  --blue-soft: #e7f0ff;
  --accent: var(--blue);
  --accent-soft: rgba(24, 95, 201, 0.1);
  --accent-line: rgba(24, 95, 201, 0.32);
  --accent-glow: rgba(24, 95, 201, 0.14);
  --edge-gradient: linear-gradient(
    135deg,
    rgba(24, 95, 201, 0.36),
    rgba(24, 95, 201, 0.08) 48%,
    rgba(24, 95, 201, 0.24)
  );
  --edge-gradient-soft: linear-gradient(
    135deg,
    rgba(24, 95, 201, 0.22),
    rgba(24, 95, 201, 0.06) 54%,
    rgba(24, 95, 201, 0.16)
  );
  --edge-gradient-active: linear-gradient(
    135deg,
    rgba(24, 95, 201, 0.62),
    rgba(24, 95, 201, 0.14) 48%,
    rgba(24, 95, 201, 0.42)
  );
  --done: #2b67c7;
  --done-soft: #e7f0ff;
  --done-line: rgba(24, 95, 201, 0.28);
  --danger: #9a3412;
  --header-bg: rgba(246, 248, 251, 0.92);
  --nav-action-bg: rgba(24, 95, 201, 0.08);
  --nav-action-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --button-primary-bg: linear-gradient(135deg, #07101f 0%, #0e2c63 100%);
  --button-primary-text: #ffffff;
  --button-primary-hover: linear-gradient(135deg, #0b1930 0%, #185fc9 100%);
  --brand-mark-bg: #ffffff;
  --page-sheen: linear-gradient(180deg, rgba(24, 95, 201, 0.045), rgba(24, 95, 201, 0) 340px);
  --shadow: 0 20px 56px rgba(16, 18, 23, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    var(--page-sheen),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enter-left {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes enter-right {
  from {
    opacity: 0;
    transform: translateX(42px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes signal-sweep {
  0% {
    transform: translateX(-145%);
  }

  58%,
  100% {
    transform: translateX(150%);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }

  50% {
    box-shadow: 0 0 0 5px var(--blue-soft);
  }
}

@keyframes log-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes word-pop {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-pop {
  0% {
    opacity: 0;
    transform: translateX(28px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes node-focus {
  0%,
  100% {
    box-shadow: 0 10px 26px var(--blue-soft);
  }

  50% {
    box-shadow: 0 14px 34px var(--accent-glow);
  }
}

@keyframes flow-line {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 transparent;
  }

  50% {
    filter: brightness(1.18);
    box-shadow: 0 0 16px var(--accent-glow);
  }
}

@keyframes output-refresh {
  0% {
    background: var(--accent-soft);
  }

  100% {
    background: transparent;
  }
}

@keyframes action-ready-pulse {
  0%,
  100% {
    box-shadow: 0 10px 22px var(--accent-glow);
  }

  42% {
    box-shadow:
      0 12px 26px var(--accent-glow),
      0 0 0 2px var(--accent-soft);
  }
}

@keyframes workflow-arrival-down {
  0% {
    box-shadow: 0 0 0 transparent;
    transform: translateY(28px) scale(0.992);
  }

  52% {
    box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
    transform: translateY(6px) scale(1);
  }

  100% {
    box-shadow: var(--shadow);
    transform: translateY(0) scale(1);
  }
}

@keyframes workflow-arrival-up {
  0% {
    box-shadow: 0 0 0 transparent;
    transform: translateY(-28px) scale(0.992);
  }

  52% {
    box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
    transform: translateY(-6px) scale(1);
  }

  100% {
    box-shadow: var(--shadow);
    transform: translateY(0) scale(1);
  }
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header,
.site-footer,
.hero,
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(124%);
  -webkit-backdrop-filter: blur(18px) saturate(124%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-mark-bg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a,
.nav-action {
  transition:
    color 160ms ease,
    background 160ms ease;
}

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

.nav-action {
  border: 0;
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--nav-action-bg);
  box-shadow: var(--nav-action-shadow);
}

.nav-action:hover {
  background: var(--soft-boundary-bg-strong);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  align-content: center;
  min-height: calc(100svh - 72px);
  padding: 36px 0 30px;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: min(1120px, 100%);
  animation: enter-left 720ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.hero-brand-icon {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-mark-bg);
  box-shadow: 0 18px 44px var(--accent-glow);
}

.hero-brand-word {
  margin: 0;
  color: var(--ink);
  font-size: 5.4rem;
  font-weight: 900;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: 4.3rem;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: min(1120px, 100%);
  margin-bottom: 22px;
}

.motion-word {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  opacity: 0;
  transform-origin: left bottom;
  animation: word-pop 620ms cubic-bezier(0.22, 0.72, 0.18, 1) both;
  animation-delay: var(--word-delay, 0ms);
}

h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.site-disclosure {
  max-width: 740px;
  margin-bottom: 16px;
  border-left: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-actions,
.workflow-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-line);
  outline-offset: 2px;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--soft-boundary-bg);
  color: var(--ink);
  font-weight: 800;
}

.button.primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: 0 12px 26px var(--accent-glow);
}

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

.button.secondary {
  background: var(--soft-boundary-bg);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--soft-boundary-bg-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.hero-vision {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  gap: 22px;
  align-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hero-vision-copy {
  min-width: 0;
  width: 100%;
  max-width: 640px;
}

.hero-vision-copy h2 {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: 1.72rem;
}

.hero-vision-copy p:not(.panel-label),
.vision-points dd {
  margin: 0;
  color: var(--muted);
}

.hero-vision-copy p:not(.panel-label) {
  max-width: 620px;
  font-size: 0.95rem;
}

.vision-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  min-width: 0;
  gap: 28px;
  margin: 0;
}

.vision-points div {
  min-width: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 22px 24px 24px;
}

.vision-points dt {
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 850;
}

.vision-points dd {
  font-size: 0.82rem;
}

.workflow-stage {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 92px;
  scroll-margin-top: 88px;
}

.js-enabled .workflow-stage .workflow-stage-header,
.js-enabled .workflow-stage .workflow-shell,
.js-enabled .workflow-stage .sample-file-panel,
.js-enabled .workflow-stage .run-panel,
.js-enabled .workflow-stage .workflow-layout {
  transition:
    opacity 860ms ease,
    transform 1120ms cubic-bezier(0.16, 1, 0.22, 1);
  will-change: opacity, transform;
}

.js-enabled .workflow-stage:not(.is-workflow-visible) .workflow-stage-header,
.js-enabled .workflow-stage:not(.is-workflow-visible) .workflow-shell,
.js-enabled .workflow-stage:not(.is-workflow-visible) .sample-file-panel,
.js-enabled .workflow-stage:not(.is-workflow-visible) .run-panel,
.js-enabled .workflow-stage:not(.is-workflow-visible) .workflow-layout {
  opacity: 0;
}

.js-enabled .workflow-stage:not(.is-workflow-visible) .workflow-stage-header {
  transform: translateY(28px);
}

.js-enabled .workflow-stage:not(.is-workflow-visible) .workflow-shell {
  transform: translateY(52px) scale(0.986);
}

.js-enabled .workflow-stage:not(.is-workflow-visible) .sample-file-panel,
.js-enabled .workflow-stage:not(.is-workflow-visible) .run-panel,
.js-enabled .workflow-stage:not(.is-workflow-visible) .workflow-layout {
  transform: translateY(24px);
}

.js-enabled .workflow-stage.is-workflow-visible .workflow-stage-header,
.js-enabled .workflow-stage.is-workflow-visible .workflow-shell,
.js-enabled .workflow-stage.is-workflow-visible .sample-file-panel,
.js-enabled .workflow-stage.is-workflow-visible .run-panel,
.js-enabled .workflow-stage.is-workflow-visible .workflow-layout {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js-enabled .workflow-stage.is-workflow-visible .sample-file-panel {
  transition-delay: 120ms;
}

.js-enabled .workflow-stage.is-workflow-visible .run-panel {
  transition-delay: 220ms;
}

.js-enabled .workflow-stage.is-workflow-visible .workflow-layout {
  transition-delay: 320ms;
}

.js-enabled .workflow-reveal-item {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(24px) scale(0.982);
  transition:
    opacity 680ms ease,
    filter 760ms ease,
    transform 940ms cubic-bezier(0.16, 1, 0.22, 1);
  will-change: opacity, filter, transform;
}

.js-enabled .workflow-reveal-item.workflow-node {
  transform: none;
}

.js-enabled .workflow-reveal-item.is-component-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js-enabled .workflow-reveal-item.workflow-node.is-component-visible {
  transform: none;
}

.js-enabled .workflow-reveal-item.has-component-settled {
  will-change: auto;
}

.js-enabled .workflow-stage.is-workflow-visible .workflow-controls.is-component-visible:not(.has-component-settled) .button.primary:not(:disabled) {
  animation: action-ready-pulse 1100ms 220ms ease-out both;
}

.workflow-stage.is-entering-down .workflow-shell {
  animation: workflow-arrival-down 1320ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.workflow-stage.is-entering-up .workflow-shell {
  animation: workflow-arrival-up 1320ms cubic-bezier(0.16, 1, 0.22, 1) both;
}

.workflow-stage-header {
  max-width: 900px;
  margin-bottom: 24px;
}

.workflow-stage-header h2 {
  max-width: 840px;
}

.workflow-stage-header p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.sample-file-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--panel-soft) 62%, var(--surface-strong));
  padding: 18px;
  box-shadow: 0 18px 45px var(--accent-glow);
}

.sample-file-intro h3,
.sample-file-preview h3 {
  margin-bottom: 6px;
}

.sample-file-intro p:not(.panel-label) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sample-file-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sample-file-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: start;
  border: 0;
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: var(--soft-boundary-bg);
  color: var(--ink);
  text-align: left;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.sample-file-card:hover {
  transform: translateY(-1px);
  background: var(--soft-boundary-bg-strong);
}

.sample-file-card.is-selected {
  background: linear-gradient(135deg, var(--accent-soft), var(--soft-boundary-bg-strong));
}

.sample-file-card.is-selected::after {
  content: "Selected";
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 0;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--accent);
  background: var(--soft-boundary-bg-strong);
  font-size: 0.68rem;
  font-weight: 850;
}

.sample-file-card strong {
  max-width: calc(100% - 70px);
  font-size: 1rem;
}

.sample-file-card span {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sample-file-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sample-file-preview {
  display: grid;
  align-content: start;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 12px;
}

.sample-file-preview pre {
  min-height: 118px;
  max-height: 180px;
  margin: 0;
  overflow: auto;
  color: var(--ink);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.workflow-shell {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--panel));
  box-shadow: var(--shadow);
  padding: 24px;
}

.js-enabled.is-page-entering .workflow-stage.is-workflow-visible .workflow-shell {
  animation: enter-up 760ms 140ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.workflow-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    var(--accent-soft),
    rgba(110, 168, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  animation: signal-sweep 4.8s ease-in-out infinite;
}

.workflow-stage.is-workflow-visible .workflow-shell::before {
  animation:
    signal-sweep 2.4s ease-out 1,
    signal-sweep 4.8s 2.4s ease-in-out infinite;
}

.workflow-shell > * {
  position: relative;
  z-index: 1;
}

.workflow-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.workflow-heading h2 {
  font-size: 1.68rem;
}

.run-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 16px;
}

.run-panel h3 {
  margin-bottom: 5px;
}

.run-panel p:not(.panel-label) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.run-panel .workflow-controls {
  margin: 0;
}

.run-status {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--soft-boundary-bg);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.run-status.is-running {
  color: var(--blue);
  background: var(--blue-soft);
}

.run-status.is-done {
  color: var(--done);
  background: var(--done-soft);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
  gap: 22px;
}

.workflow-nodes {
  --flow-progress: 0%;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-nodes::before,
.workflow-nodes::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 28px;
  top: 33px;
  width: 2px;
  pointer-events: none;
  border-radius: 999px;
}

.workflow-nodes::before {
  bottom: 33px;
  background: var(--soft-divider);
}

.workflow-nodes::after {
  height: var(--flow-progress);
  max-height: calc(100% - 66px);
  background: linear-gradient(180deg, var(--blue), var(--done));
  transition: height 620ms cubic-bezier(0.2, 0.82, 0.22, 1);
}

.workflow-nodes[data-flow-state="running"]::after {
  animation: flow-line 980ms ease-in-out infinite;
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 10px;
  min-height: 66px;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--soft-boundary-bg);
  transition:
    background 180ms ease,
    box-shadow 220ms ease;
}

.workflow-node::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition:
    background 180ms ease,
    opacity 180ms ease;
}

.workflow-node[data-state="running"] {
  background: var(--blue-soft);
  animation: node-focus 900ms ease-in-out infinite;
}

.js-enabled .workflow-reveal-item.workflow-node.is-component-visible[data-state="running"] {
  transform: none;
}

.workflow-node[data-state="done"] {
  background: var(--done-soft);
}

.workflow-node[data-state="running"]::before,
.workflow-node[data-state="done"]::before {
  background: var(--accent);
}

.workflow-node[data-state="done"]::before {
  background: var(--done);
  opacity: 0.72;
}

.node-index {
  position: relative;
  z-index: 2;
  grid-row: 1 / span 2;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.76rem;
  font-weight: 850;
}

.workflow-node[data-state="running"] .node-index {
  color: var(--blue);
  animation: node-pulse 1.1s ease-in-out infinite;
}

.workflow-node[data-state="done"] .node-index {
  color: var(--done);
}

.node-title {
  align-self: end;
  font-size: 0.98rem;
  font-weight: 850;
}

.node-note {
  color: var(--muted);
  font-size: 0.81rem;
}

.workflow-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.84fr);
  gap: 14px;
  align-content: start;
}

.brief-panel,
.expansion-panel,
.review-panel {
  grid-column: 1 / -1;
}

.output-panel,
.log-panel,
.expansion-panel,
.review-panel,
.brief-panel {
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 14px;
}

.output-grid {
  display: grid;
  gap: 9px;
  margin: 0;
}

.output-grid.is-updating {
  animation: output-refresh 420ms ease both;
}

.output-grid div {
  border-top: 0;
  padding-top: 8px;
}

.output-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.output-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.log-list {
  display: grid;
  gap: 8px;
  min-height: 104px;
  max-height: 190px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  color: var(--muted);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
}

.log-list li {
  border-left: 0;
  padding-left: 9px;
}

.log-list li.is-active {
  color: var(--ink);
  animation: log-in 180ms ease both;
}

.expansion-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(120deg, var(--panel), var(--panel-soft));
}

.expansion-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.expansion-heading h3 {
  margin-bottom: 0;
}

.expansion-pill {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--soft-boundary-bg-strong);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.expansion-pill.is-ready {
  color: var(--done);
  background: var(--done-soft);
}

.expansion-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.expansion-list li::marker {
  color: var(--accent);
}

.review-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(120deg, var(--panel), var(--panel-soft));
}

.review-panel.is-active {
  box-shadow: 0 12px 30px var(--blue-soft);
}

.review-panel.is-complete {
  background: var(--done-soft);
}

.review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-heading h3,
.review-panel p {
  margin-bottom: 0;
}

.review-panel p {
  color: var(--muted);
  font-size: 0.86rem;
}

.review-pill {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--soft-boundary-bg-strong);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.review-pill.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.review-pill.is-complete {
  color: var(--done);
  background: var(--done-soft);
}

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

.review-option {
  display: grid;
  gap: 5px;
  min-height: 104px;
  align-content: start;
  border: 0;
  border-radius: var(--radius);
  padding: 11px;
  cursor: pointer;
  background: var(--soft-boundary-bg);
  color: var(--ink);
  text-align: left;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.review-option:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--soft-boundary-bg-strong);
}

.review-option:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.review-option.is-selected {
  background: var(--done-soft);
  opacity: 1;
}

.review-option strong {
  font-size: 0.86rem;
}

.review-option span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.brief-panel {
  display: grid;
  gap: 12px;
}

.brief-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brief-heading h3 {
  margin-bottom: 0;
}

.brief-pill {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--soft-boundary-bg-strong);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.brief-pill.is-ready {
  color: var(--done);
  background: var(--done-soft);
}

.brief-preview {
  min-height: 150px;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg-strong);
  padding: 12px;
  color: var(--ink);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.brief-note,
.brief-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.brief-status {
  min-height: 1.2em;
  color: var(--done);
  font-weight: 750;
}

.brief-status.is-error {
  color: var(--danger);
}

.workflow-controls {
  margin: 0 0 14px;
}

.workflow-toast {
  display: grid;
  gap: 2px;
  margin: 0 0 14px;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--accent-soft), var(--surface));
  box-shadow: 0 12px 28px var(--accent-glow);
  animation: toast-pop 360ms cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.workflow-toast[hidden] {
  display: none;
}

.workflow-toast .toast-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-toast strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.section {
  padding: 78px 0;
}

.js-enabled [data-reveal] {
  --reveal-y: 46px;
  opacity: 0;
  transform: translateY(var(--reveal-y)) scale(0.986);
  transition:
    opacity 1040ms ease,
    transform 1180ms cubic-bezier(0.16, 1, 0.22, 1.02);
  will-change: opacity, transform;
}

.js-enabled [data-reveal].reveal-from-top {
  --reveal-y: -38px;
}

.js-enabled [data-reveal].reveal-from-bottom {
  --reveal-y: 46px;
}

.js-enabled [data-reveal]:not(.is-visible) {
  transition-delay: 0ms;
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
}

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

.privacy-card div {
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 22px 24px 24px;
}

.privacy-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 92px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 880px;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-boundary-bg);
  padding: 20px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1.1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 0;
  padding: 24px 0 34px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-copy {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.footer-links a {
  color: var(--muted);
  transition: color 160ms ease;
}

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

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 88px;
}

.legal-hero {
  margin-bottom: 28px;
  border-bottom: 0;
  padding-bottom: 24px;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
}

.legal-hero p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-document {
  display: grid;
  gap: 14px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--panel));
  padding: 28px;
  box-shadow: var(--shadow);
}

.legal-document h2 {
  margin-top: 14px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
}

.legal-document p {
  margin-bottom: 0;
}

.legal-document a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: auto;
    gap: 28px;
  }

  .hero-brand-word {
    font-size: 4.5rem;
  }

  .hero-brand-icon {
    width: 76px;
    height: 76px;
  }

  .hero-vision {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero,
  .workflow-stage,
  .section {
    width: min(100% - 28px, 1180px);
  }

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

  .site-nav {
    order: 3;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-action {
    display: none;
  }

  .hero {
    padding: 34px 0 28px;
  }

  .workflow-stage {
    padding: 10px 0 64px;
  }

  .workflow-stage-header {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-brand-word {
    font-size: 3.25rem;
  }

  .hero-brand-lockup {
    gap: 12px;
  }

  .hero-brand-icon {
    width: 58px;
    height: 58px;
  }

  h2 {
    font-size: 1.85rem;
  }

  .vision-points,
  .workflow-layout,
  .workflow-side,
  .sample-file-panel,
  .sample-file-grid,
  .review-actions,
  .privacy-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-vision {
    padding: 16px;
  }

  .hero-vision-copy h2 {
    font-size: 1.42rem;
  }

  .workflow-shell {
    padding: 16px;
  }

  .brief-panel,
  .review-panel {
    grid-column: auto;
  }

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

  .run-status {
    width: fit-content;
  }

  .workflow-node {
    min-height: 72px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-main {
    width: min(100% - 28px, 920px);
    padding: 34px 0 64px;
  }

  .legal-document {
    padding: 18px;
  }

  .contact-email {
    font-size: 1.35rem;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .workflow-controls,
  .brief-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 2.02rem;
  }

  .hero-brand-word {
    font-size: 2.72rem;
  }

  .hero-brand-icon {
    width: 48px;
    height: 48px;
  }

  h2 {
    font-size: 1.6rem;
  }
}

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

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js-enabled .workflow-reveal-item {
    opacity: 1;
    transform: none;
  }

  .motion-word {
    opacity: 1;
    transform: none;
  }
}
