:root {
  color-scheme: dark;
  --ink: #e7f3ff;
  --muted: #9fb3c8;
  --quiet: #71869c;
  --line: rgb(92 139 177 / 34%);
  --panel: rgb(13 24 38 / 74%);
  --page: #050b14;
  --soft: rgb(20 46 68 / 58%);
  --signal: #24a8ff;
  --signal-strong: #00d9ff;
  --mojing: #39ffd0;
  --violet: #8a7cff;
  --amber: #ffbf5f;
  --graphite: #101a28;
  --editor: #0b111c;
  --editor-dark: #070b12;
  --editor-border: rgb(71 150 214 / 46%);
  --glow-blue: 0 0 24px rgb(0 183 255 / 30%);
  --glow-cyan: 0 0 28px rgb(57 255 208 / 26%);
  --shadow: 0 32px 100px rgb(0 10 24 / 46%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgb(80 170 255 / 7%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(80 170 255 / 6%) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgb(0 120 212 / 34%), transparent 42%),
    linear-gradient(135deg, rgb(138 124 255 / 13%) 0%, transparent 36%, rgb(57 255 208 / 8%) 100%),
    linear-gradient(180deg, #07111f 0%, #050b14 44%, #08111c 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 16%),
    repeating-linear-gradient(180deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 4px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 0 40px;
  border-bottom: 1px solid rgb(90 166 226 / 28%);
  background: rgb(5 11 20 / 78%);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 5%), 0 18px 50px rgb(0 10 24 / 18%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 184px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(93 209 255 / 72%);
  border-radius: 8px;
  background: linear-gradient(135deg, #0d6fff 0%, #00d9ff 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 22px rgb(0 217 255 / 24%);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: #99b6cf;
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #b9cbe0;
  font-size: 14px;
}

.main-nav a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #ffffff;
  border-color: var(--signal-strong);
}

.account-actions,
.account-chip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-text-button,
.mini-button,
.link-button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid rgb(124 220 255 / 74%);
  background: linear-gradient(135deg, #1977ff 0%, #00c8ff 48%, #28ffd2 100%);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 14px 38px rgb(0 183 255 / 32%), inset 0 1px 0 rgb(255 255 255 / 28%);
}

.primary-button:hover {
  background: linear-gradient(135deg, #2b8cff 0%, #12d5ff 48%, #52ffdf 100%);
}

.secondary-button,
.ghost-button {
  border: 1px solid rgb(96 150 194 / 38%);
  background: rgb(8 18 32 / 58%);
  color: #dbeeff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
}

.compact {
  min-height: 38px;
  padding-inline: 14px;
}

.full {
  width: 100%;
}

.icon-text-button,
.link-button {
  background: transparent;
  color: var(--signal-strong);
  font-weight: 700;
}

.account-chip {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(9 19 33 / 72%);
  font-size: 14px;
  box-shadow: var(--glow-cyan);
}

.user-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mojing);
}

.hero-section {
  display: block;
  min-height: auto;
  padding: 74px 5vw 42px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--signal-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  color: #f3f9ff;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 780px;
  margin: 26px 0 0;
  margin-inline: auto;
  color: #b5c7da;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  max-width: 780px;
  margin: 14px auto 0;
  color: var(--quiet);
  font-size: 13px;
}

.download-cta {
  min-width: 164px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 30px auto 0;
}

.hero-metrics div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(25 54 78 / 78%), rgb(10 22 37 / 74%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 18px 52px rgb(0 10 24 / 26%);
}

.hero-metrics dt {
  color: #f3fbff;
  font-size: 22px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-stage {
  max-width: 1180px;
  margin: 44px auto 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgb(71 189 255 / 44%);
  border-radius: 8px;
  background: var(--editor-dark);
  box-shadow:
    0 42px 100px rgb(0 10 24 / 52%),
    0 0 0 1px rgb(255 255 255 / 5%) inset,
    0 0 48px rgb(0 183 255 / 18%);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(71 150 214 / 36%);
  background: linear-gradient(90deg, #101827 0%, #0c1524 100%);
  color: #cfe9ff;
  font-size: 12px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #516065;
}

.window-bar span:first-child {
  background: #d2685f;
}

.window-bar span:nth-child(2) {
  background: #d2a64c;
}

.window-bar span:nth-child(3) {
  background: #4aa77e;
}

.window-bar p {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiction-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(92 139 177 / 38%);
  border-radius: 6px;
  background: rgb(5 11 20 / 76%);
}

.fiction-mode-button {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8fa6bc;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.fiction-mode-button:hover {
  color: #ffffff;
}

.fiction-mode-button.is-active {
  background: linear-gradient(135deg, rgb(17 111 255 / 78%), rgb(0 200 255 / 58%));
  color: #ffffff;
  box-shadow: 0 0 16px rgb(0 200 255 / 24%), inset 0 1px 0 rgb(255 255 255 / 18%);
}

.product-stage[data-fiction-mode="short"] .fiction-mode-button.is-active {
  background: linear-gradient(135deg, rgb(138 124 255 / 78%), rgb(57 255 208 / 48%));
  box-shadow: 0 0 18px rgb(138 124 255 / 26%), inset 0 1px 0 rgb(255 255 255 / 18%);
}

.product-stage[data-fiction-mode="short"] .status-bar {
  background: linear-gradient(90deg, #6457dc 0%, #277ed8 48%, #19cda9 100%);
}

.workbench-preview {
  display: grid;
  grid-template-columns: 50px 210px minmax(320px, 1fr) 248px;
  grid-template-rows: 1fr 26px;
  min-height: 590px;
  background: var(--editor);
}

.activity-bar,
.project-tree,
.ai-panel,
.editor-pane {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.activity-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  grid-row: 1 / span 2;
  background: linear-gradient(180deg, #0c1320 0%, #070c14 100%);
  color: #94a8bd;
}

.activity-bar span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
}

.activity-bar .active {
  background: linear-gradient(135deg, rgb(17 91 154 / 76%), rgb(9 28 52 / 76%));
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--signal-strong), 0 0 18px rgb(0 217 255 / 24%);
}

.project-tree,
.ai-panel {
  padding: 16px 14px;
  background: linear-gradient(180deg, #121b2a 0%, #0d1420 100%);
  color: #c8d8e8;
}

.ai-panel {
  border-left: 1px solid rgb(71 150 214 / 34%);
}

.project-tree {
  border-right: 1px solid rgb(71 150 214 / 34%);
}

.panel-title {
  margin: 0 0 14px;
  color: #9aa7b4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tree-item,
.tree-sub,
.tree-leaf {
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.tree-item {
  color: #f2f6fa;
  font-weight: 800;
}

.tree-sub {
  margin-top: 8px;
  color: #69c7ff;
}

.tree-leaf {
  color: #aeb9c4;
}

.tree-leaf.selected {
  background: linear-gradient(90deg, rgb(25 95 157 / 54%), rgb(21 35 53 / 70%));
  color: #ffffff;
  box-shadow: inset 2px 0 0 var(--signal-strong), 0 0 18px rgb(0 217 255 / 14%);
}

.editor-pane {
  min-width: 0;
  background: #0c111a;
}

.tab-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  gap: 4px;
  border-bottom: 1px solid rgb(71 150 214 / 34%);
  background: #121a28;
  font-size: 12px;
}

.tab-list {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  gap: 4px;
}

.tab {
  padding: 9px 12px;
  border-radius: 4px 4px 0 0;
  background: #172234;
  color: #9fb6cb;
  font-weight: 800;
}

.tab.active {
  background: #0c111a;
  color: #f1f5f9;
  box-shadow: inset 0 2px 0 var(--signal-strong);
}

.save-state {
  margin-left: auto;
  color: var(--mojing);
}

.editor-paper {
  width: min(88%, 650px);
  min-height: 430px;
  margin: 28px auto;
  padding: 34px;
  border: 1px solid rgb(78 154 211 / 34%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(22 31 45 / 96%), rgb(12 18 28 / 96%));
  color: #d4d4d4;
  box-shadow: 0 18px 45px rgb(0 0 0 / 32%), inset 0 1px 0 rgb(255 255 255 / 6%);
}

.chapter-label {
  color: #69d8ff;
  font-size: 12px;
  font-weight: 850;
}

.editor-paper h2 {
  margin: 10px 0 24px;
  font-size: 28px;
  color: #ffffff;
}

.editor-paper p {
  color: #c9d1d9;
  line-height: 1.9;
}

.insight {
  padding: 12px;
  border: 1px solid rgb(78 154 211 / 36%);
  border-radius: 8px;
  background: rgb(8 16 28 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.insight + .insight {
  margin-top: 10px;
}

.insight strong,
.insight span {
  display: block;
}

.insight strong {
  color: #f1faf9;
  font-size: 13px;
}

.insight span {
  margin-top: 8px;
  color: #aeb9c4;
  font-size: 12px;
  line-height: 1.5;
}

.mini-button {
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid rgb(124 220 255 / 54%);
  background: linear-gradient(135deg, #126cff 0%, #00c8ff 100%);
  color: #ffffff;
  font-weight: 800;
}

.status-bar {
  grid-column: 2 / span 3;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 12px;
  background: linear-gradient(90deg, #006fd6 0%, #00b7ff 52%, #12e2c4 100%);
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 -1px 0 rgb(255 255 255 / 12%);
}

[data-fiction-tree],
[data-fiction-tabs],
[data-fiction-paragraphs],
[data-fiction-insights],
[data-fiction-status],
[data-fiction-document-label],
[data-fiction-document-title],
[data-fiction-project-title],
[data-fiction-window-title],
[data-fiction-action] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.product-stage.is-mode-changing [data-fiction-tree],
.product-stage.is-mode-changing [data-fiction-tabs],
.product-stage.is-mode-changing [data-fiction-paragraphs],
.product-stage.is-mode-changing [data-fiction-insights],
.product-stage.is-mode-changing [data-fiction-status],
.product-stage.is-mode-changing [data-fiction-document-label],
.product-stage.is-mode-changing [data-fiction-document-title],
.product-stage.is-mode-changing [data-fiction-project-title],
.product-stage.is-mode-changing [data-fiction-window-title],
.product-stage.is-mode-changing [data-fiction-action] {
  opacity: 0;
  transform: translateY(4px);
}

[data-fiction-insights] {
  min-height: 132px;
}

[data-fiction-paragraphs] {
  min-height: 245px;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 5vw;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgb(83 154 214 / 28%);
  box-shadow: 0 18px 58px rgb(0 10 24 / 26%);
}

.signal-band p {
  margin: 0;
  padding: 18px;
  background: rgb(12 24 39 / 78%);
  color: #d7ecff;
  font-weight: 750;
  text-align: center;
}

.section {
  padding: 92px 5vw 0;
}

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

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.feature-card,
.download-card,
.showcase-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(18 34 52 / 76%), rgb(8 17 30 / 76%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 18px 54px rgb(0 10 24 / 24%);
  backdrop-filter: blur(16px);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
  transition-delay: calc(var(--motion-index, 0) * 70ms);
}

.feature-card::before,
.download-card::before,
.showcase-panel::before,
.roadmap-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgb(0 217 255 / 0%) 38%, rgb(0 217 255 / 28%) 48%, rgb(57 255 208 / 28%) 52%, transparent 64%);
  opacity: 0;
  transform: translateX(-120%);
}

.feature-card::after,
.download-card::after,
.showcase-panel::after,
.roadmap-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgb(57 255 208 / 0%);
  box-shadow: inset 0 0 0 rgb(0 217 255 / 0%);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card.is-visible,
.download-card.is-visible,
.showcase-panel.is-visible,
.roadmap-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .feature-card:not(.is-visible),
.motion-ready .download-card:not(.is-visible),
.motion-ready .showcase-panel:not(.is-visible),
.motion-ready .roadmap-list li:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

.feature-card.is-visible::before,
.download-card.is-visible::before,
.showcase-panel.is-visible::before,
.roadmap-list li.is-visible::before {
  animation: cardSweep 4.8s ease-in-out infinite;
  animation-delay: calc(var(--motion-index, 0) * 180ms);
  opacity: 1;
}

.feature-card:hover,
.download-card:hover,
.showcase-panel:hover,
.roadmap-list li:hover {
  border-color: rgb(57 255 208 / 58%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 22px 64px rgb(0 10 24 / 34%),
    0 0 34px rgb(0 217 255 / 13%);
  transform: translateY(-4px);
}

.feature-card:hover::after,
.download-card:hover::after,
.showcase-panel:hover::after,
.roadmap-list li:hover::after {
  border-color: rgb(57 255 208 / 28%);
  box-shadow: inset 0 0 32px rgb(0 217 255 / 10%);
}

.feature-card {
  min-height: 210px;
  padding: 24px;
}

.feature-index {
  color: var(--signal-strong);
  font-size: 12px;
  font-weight: 850;
  text-shadow: 0 0 16px rgb(0 217 255 / 48%);
}

.feature-card.is-visible .feature-index {
  animation: indexPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--motion-index, 0) * 120ms);
}

.feature-card h3 {
  margin: 38px 0 12px;
  font-size: 22px;
  color: #f4fbff;
}

.feature-card p,
.showcase-panel p,
.download-card p {
  color: var(--muted);
  line-height: 1.75;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 16px;
}

.showcase-panel {
  min-height: 280px;
  padding: 22px;
}

.shot-header {
  color: #f4fbff;
  font-weight: 850;
}

.shot-lines {
  display: grid;
  gap: 12px;
  margin: 36px 0;
}

.shot-lines span {
  display: block;
  width: 72%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(74 162 234 / 68%), rgb(57 255 208 / 42%));
  box-shadow: 0 0 18px rgb(0 217 255 / 16%);
  transform-origin: left center;
}

.showcase-panel.is-visible .shot-lines span {
  animation: editorLineFlow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--motion-index, 0) * 120ms);
}

.showcase-panel.is-visible .shot-lines span:nth-child(2) {
  animation-delay: 180ms;
}

.showcase-panel.is-visible .shot-lines span:nth-child(3) {
  animation-delay: 360ms;
}

.showcase-panel.is-visible .shot-lines span:nth-child(4) {
  animation-delay: 540ms;
}

.shot-lines .wide {
  width: 94%;
}

.shot-lines .medium {
  width: 58%;
}

.entity-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 24px;
  list-style: none;
}

.entity-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(6 16 28 / 48%);
  color: #dcefff;
}

.showcase-panel.is-visible .entity-list li {
  animation: entityGlow 3s ease-in-out infinite;
  animation-delay: calc(var(--motion-index, 0) * 130ms);
}

.showcase-panel.is-visible .entity-list li:nth-child(2) {
  animation-delay: 260ms;
}

.showcase-panel.is-visible .entity-list li:nth-child(3) {
  animation-delay: 520ms;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 110px;
  margin: 22px 0;
}

.timeline span {
  width: 18px;
  height: 18px;
  border: 4px solid rgb(105 216 255 / 38%);
  border-radius: 999px;
  background: var(--signal-strong);
  box-shadow: 28px 0 0 -7px rgb(57 255 208 / 44%), 0 0 18px rgb(0 217 255 / 24%);
}

.showcase-panel.is-visible .timeline span {
  animation: recoveryNode 1.9s ease-in-out infinite;
}

.showcase-panel.is-visible .timeline span:nth-child(2) {
  animation-delay: 180ms;
}

.showcase-panel.is-visible .timeline span:nth-child(3) {
  animation-delay: 360ms;
}

.showcase-panel.is-visible .timeline span:nth-child(4) {
  animation-delay: 540ms;
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
}

.download-card .secondary-button {
  position: relative;
  overflow: hidden;
}

.download-card .secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 16%), transparent);
  transform: translateX(-120%);
}

.download-card.is-visible .secondary-button::before {
  animation: buttonScan 2.6s ease-in-out infinite;
  animation-delay: calc(var(--motion-index, 0) * 180ms);
}

.download-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #f4fbff;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: auto 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.download-checksum {
  margin: -8px 0 16px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(154, 175, 193, 0.72);
}

.download-card .secondary-button {
  width: 100%;
}

.download-card[data-status="coming-soon"] .secondary-button {
  color: #ffd799;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.roadmap-list li {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(18 34 52 / 76%), rgb(8 17 30 / 76%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 18px 54px rgb(0 10 24 / 24%);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
  transition-delay: calc(var(--motion-index, 0) * 90ms);
}

.roadmap-list strong {
  color: #f4fbff;
}

.roadmap-list strong::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--signal-strong);
  box-shadow: 0 0 18px rgb(0 217 255 / 45%);
}

.roadmap-list li.is-visible strong::before {
  animation: roadmapNode 2.1s ease-in-out infinite;
  animation-delay: calc(var(--motion-index, 0) * 240ms);
}

.roadmap-list strong,
.roadmap-list span {
  display: block;
}

.roadmap-list span {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 92px;
  padding: 38px 5vw;
  border-top: 1px solid var(--line);
  background: rgb(5 11 20 / 82%);
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px;
  color: #d7ecff;
}

.auth-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 28px 90px rgb(0 10 24 / 46%), 0 0 42px rgb(0 183 255 / 16%);
}

.auth-dialog::backdrop {
  background: rgb(8 15 18 / 48%);
  backdrop-filter: blur(8px);
}

.auth-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(16 31 48 / 96%), rgb(7 15 27 / 96%));
}

.auth-panel h2 {
  margin: 0;
  font-size: 28px;
  color: #f4fbff;
}

.auth-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-panel label {
  display: grid;
  gap: 8px;
  color: #d7ecff;
  font-size: 13px;
  font-weight: 750;
}

.auth-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  background: rgb(5 13 24 / 72%);
  color: #f3fbff;
}

.auth-panel input:focus {
  border-color: var(--signal-strong);
  box-shadow: 0 0 0 3px rgb(0 217 255 / 14%), 0 0 20px rgb(0 217 255 / 12%);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(8 18 32 / 72%);
  color: #d7ecff;
  cursor: pointer;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #b43b2d;
  font-size: 13px;
}

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

  .product-stage {
    max-width: 920px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 20px;
  }

  .main-nav,
  .account-actions,
  .account-chip {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section {
    padding: 40px 20px 32px;
  }

  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .hero-metrics,
  .signal-band,
  .capability-grid,
  .showcase-grid,
  .download-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .signal-band {
    margin: 0 20px;
  }

  .section {
    padding: 70px 20px 0;
  }

  .workbench-preview {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .fiction-mode-switch {
    grid-template-columns: repeat(2, minmax(78px, 1fr));
  }

  .status-bar {
    grid-column: 2;
    overflow: hidden;
  }

  .project-tree,
  .ai-panel {
    display: none;
  }

  .editor-paper {
    width: calc(100% - 28px);
    padding: 24px;
  }

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

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 34px;
  }

  .main-nav {
    gap: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .window-bar {
    align-content: center;
    height: auto;
    min-height: 78px;
    padding-block: 8px;
    flex-wrap: wrap;
  }

  .window-bar p {
    flex-basis: calc(100% - 58px);
  }

  .fiction-mode-switch {
    width: 100%;
    margin-left: 28px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}

@keyframes cardSweep {
  0%,
  48% {
    transform: translateX(-120%);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  78%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes indexPulse {
  0%,
  100% {
    color: var(--signal-strong);
    text-shadow: 0 0 14px rgb(0 217 255 / 42%);
  }
  50% {
    color: var(--mojing);
    text-shadow: 0 0 24px rgb(57 255 208 / 66%);
  }
}

@keyframes editorLineFlow {
  0%,
  100% {
    transform: scaleX(0.78);
    filter: saturate(0.8);
  }
  50% {
    transform: scaleX(1);
    filter: saturate(1.45);
  }
}

@keyframes entityGlow {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  50% {
    border-color: rgb(57 255 208 / 48%);
    box-shadow: inset 0 0 22px rgb(0 217 255 / 8%), 0 0 24px rgb(0 217 255 / 11%);
  }
}

@keyframes recoveryNode {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.62;
  }
  45%,
  60% {
    transform: scale(1.18);
    opacity: 1;
    box-shadow: 28px 0 0 -7px rgb(57 255 208 / 44%), 0 0 24px rgb(0 217 255 / 48%);
  }
}

@keyframes buttonScan {
  0%,
  42% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes roadmapNode {
  0%,
  100% {
    background: var(--signal-strong);
    transform: scale(0.9);
  }
  50% {
    background: var(--mojing);
    transform: scale(1.18);
  }
}

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

  .feature-card,
  .download-card,
  .showcase-panel,
  .roadmap-list li {
    opacity: 1;
    transform: none;
  }

  .product-stage.is-mode-changing [data-fiction-tree],
  .product-stage.is-mode-changing [data-fiction-tabs],
  .product-stage.is-mode-changing [data-fiction-paragraphs],
  .product-stage.is-mode-changing [data-fiction-insights],
  .product-stage.is-mode-changing [data-fiction-status],
  .product-stage.is-mode-changing [data-fiction-document-label],
  .product-stage.is-mode-changing [data-fiction-document-title],
  .product-stage.is-mode-changing [data-fiction-project-title],
  .product-stage.is-mode-changing [data-fiction-window-title],
  .product-stage.is-mode-changing [data-fiction-action] {
    opacity: 1;
    transform: none;
  }
}
