@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --home-bg-start: #fcf9ff;
  --home-bg-mid: #f3ecff;
  --home-bg-end: #fbf9ff;
  --home-surface: rgba(255, 255, 255, 0.78);
  --home-surface-strong: rgba(255, 255, 255, 0.94);
  --home-surface-panel: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 237, 255, 0.96)
  );
  --home-border: rgba(157, 46, 197, 0.14);
  --home-border-strong: rgba(157, 46, 197, 0.2);
  --home-shadow-soft: 0 16px 38px rgba(104, 74, 154, 0.1);
  --home-shadow-strong: 0 30px 72px rgba(92, 62, 142, 0.16);
  --home-copy: #2d2540;
  --home-copy-muted: #6a627c;
  --home-secondary: #2c7be5;
  --home-secondary-soft: rgba(44, 123, 229, 0.12);
  --home-accent-soft: rgba(157, 46, 197, 0.12);
  --home-grid-line: rgba(157, 46, 197, 0.045);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background-color: var(--home-bg-end);
  background-image:
    radial-gradient(circle at 50% -8%, rgba(210, 178, 255, 0.28), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 215, 239, 0.22), transparent 16%),
    radial-gradient(circle at 14% 72%, rgba(157, 46, 197, 0.08), transparent 18%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.3;
}

#header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 18px 20px 0;
  background: transparent;
  min-height: 0;
}

#header .topbar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(92, 62, 142, 0.12);
  backdrop-filter: blur(18px);
}

#header .left-wrap {
  gap: 28px;
}

#header .brand {
  gap: 14px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.06rem;
}

#header .brand-logo {
  width: 52px;
  height: 52px;
}

#header .nav {
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(157, 46, 197, 0.09);
  background: rgba(157, 46, 197, 0.05);
}

#header .nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #655c78;
  font-weight: 700;
}

#header .nav-link:hover {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(157, 46, 197, 0.14);
  box-shadow: 0 10px 22px rgba(157, 46, 197, 0.1);
}

#header .nav-link.active {
  color: var(--brand);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 237, 255, 0.96)
  );
  border-color: rgba(157, 46, 197, 0.18);
  box-shadow:
    0 12px 24px rgba(157, 46, 197, 0.12),
    inset 0 -2px 0 var(--brand);
}

#header .actions {
  gap: 12px;
}

#header .header-btn,
#header .notif-btn,
#header .avatar,
#header .mobile-menu-btn {
  border-radius: 999px;
}

#header .header-btn {
  padding: 11px 16px;
}

#header .header-btn-ghost,
#header .notif-btn,
#header .mobile-menu-btn {
  border-color: rgba(157, 46, 197, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(157, 46, 197, 0.08);
}

#header .header-btn-ghost:hover,
#header .notif-btn:hover,
#header .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(157, 46, 197, 0.22);
}

#header .notif-btn,
#header .avatar {
  width: 40px;
  height: 40px;
}

#header .avatar {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 12px 26px rgba(157, 46, 197, 0.24);
}

#header .notif-menu,
#header .menu {
  top: calc(100% + 12px);
  border-radius: 20px;
  border-color: rgba(157, 46, 197, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 48px rgba(73, 48, 120, 0.16);
  backdrop-filter: blur(18px);
}

#header .menu-item,
#header .notif-item {
  border-radius: 14px;
}

.page-content,
.page-content.active {
  display: block;
}

.home-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 32px;
  padding: 28px 20px 80px;
}

.hero,
.story-section,
.workflow-section,
.features,
.cta-section {
  position: relative;
}

.hero {
  padding: 26px 0 0;
}

.hero-inner,
.signal-strip,
.story-section,
.workflow-section,
.features-inner,
.cta-panel {
  max-width: 1320px;
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 450px);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid var(--home-border);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(157, 46, 197, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18));
  box-shadow: var(--home-shadow-strong);
  overflow: hidden;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58), transparent 72%);
  pointer-events: none;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.workflow-copy h2,
.cta-copy h2,
.card h3,
.story-card h3,
.stage-head h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: var(--home-copy);
}

.hero h1 {
  max-width: 10ch;
  margin: 0 0 22px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero .sub {
  max-width: 60ch;
  margin: 0;
  color: var(--home-copy-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.index-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.index-btn:hover {
  transform: translateY(-2px);
}

.index-btn-solid {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 16px 34px rgba(157, 46, 197, 0.22);
}

.index-btn-solid:hover {
  box-shadow: 0 20px 40px rgba(157, 46, 197, 0.28);
}

.index-btn-ghost {
  color: var(--home-copy);
  border-color: var(--home-border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 22px rgba(157, 46, 197, 0.08);
}

.index-btn-ghost.secondary {
  background: rgba(255, 255, 255, 0.56);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hero-stat {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 22px 18px 18px;
  border-radius: 22px;
  border: 1px solid var(--home-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.78)
  );
  box-shadow: var(--home-shadow-soft);
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(157, 46, 197, 0));
}

.hero-stat strong {
  display: block;
  margin-bottom: 10px;
  color: var(--home-copy);
  font-size: 1rem;
}

.hero-stat span {
  display: block;
  color: var(--home-copy-muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

.hero-stage {
  display: flex;
}

.stage-shell {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--home-border-strong);
  background: var(--home-surface-panel);
  box-shadow:
    0 24px 54px rgba(91, 60, 143, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.stage-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(157, 46, 197, 0.2), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%);
}

.stage-head,
.stage-board,
.stage-metric-grid {
  position: relative;
  z-index: 1;
}

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stage-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-head h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--home-secondary-soft);
  color: var(--home-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.stage-board {
  display: grid;
  gap: 16px;
}

.stage-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(157, 46, 197, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 14px 30px rgba(96, 67, 146, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.stage-row:hover {
  transform: translateX(4px);
  border-color: rgba(157, 46, 197, 0.2);
  box-shadow:
    0 18px 34px rgba(96, 67, 146, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.stage-index {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(157, 46, 197, 0.18),
    rgba(157, 46, 197, 0.1)
  );
  color: var(--brand);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.stage-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--home-copy);
  font-size: 1rem;
}

.stage-copy p {
  margin: 0;
  color: var(--home-copy-muted);
  line-height: 1.64;
}

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

.stage-metric {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(157, 46, 197, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.stage-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-metric strong {
  color: var(--home-copy);
  font-size: 0.95rem;
  line-height: 1.5;
}

.signal-strip {
  overflow: hidden;
  padding: 0 0 6px;
}

.signal-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 4px 0;
}

.signal-strip-inner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--home-copy);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(157, 46, 197, 0.05);
}

.story-section,
.workflow-section,
.features {
  padding: 6px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-intro.compact {
  margin-bottom: 28px;
}

.section-intro h2,
.workflow-copy h2,
.cta-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-intro p:last-child,
.workflow-copy p,
.cta-copy p {
  margin: 0;
  color: var(--home-copy-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

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

.story-card {
  min-height: 100%;
  padding: 26px 24px;
  border-radius: 26px;
  border: 1px solid var(--home-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(248, 243, 255, 0.86)
    );
  box-shadow: var(--home-shadow-soft);
}

.story-kicker,
.card-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.story-card p {
  margin: 0;
  color: var(--home-copy-muted);
  line-height: 1.72;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 8px 0;
}

.workflow-copy {
  position: sticky;
  top: 104px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--home-border);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(247, 241, 255, 0.84)
    );
  box-shadow: var(--home-shadow-soft);
}

.workflow-copy .index-btn {
  margin-top: 24px;
}

.workflow-steps {
  display: grid;
  gap: 18px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--home-shadow-soft);
}

.workflow-step span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(157, 46, 197, 0.18);
}

.workflow-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--home-copy);
  font-size: 1.04rem;
}

.workflow-step p {
  margin: 0;
  color: var(--home-copy-muted);
  line-height: 1.72;
}

.features-inner {
  padding: 0;
}

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

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px 24px 24px;
  border-radius: 26px;
  border: 1px solid var(--home-border);
  background:
    radial-gradient(circle at top right, rgba(157, 46, 197, 0.12), transparent 28%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(249, 245, 255, 0.92)
    );
  box-shadow: 0 18px 40px rgba(90, 61, 140, 0.12);
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--home-border-strong);
  box-shadow: 0 26px 52px rgba(90, 61, 140, 0.16);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), rgba(157, 46, 197, 0));
}

.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(157, 46, 197, 0.16),
    rgba(157, 46, 197, 0.08)
  );
  color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.card p {
  margin: 0;
  color: var(--home-copy-muted);
  line-height: 1.72;
}

.card-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.card-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--home-copy);
  font-size: 0.94rem;
  line-height: 1.6;
}

.card-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--home-secondary));
  box-shadow: 0 0 0 4px rgba(157, 46, 197, 0.08);
}

.cta-section {
  padding-top: 4px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid var(--home-border-strong);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #191228, #291440 56%, #35205c 100%);
  box-shadow: 0 30px 70px rgba(30, 18, 55, 0.34);
}

.cta-copy .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d6c2ff;
}

.cta-copy h2 {
  color: #ffffff;
}

.cta-copy p {
  color: rgba(235, 226, 255, 0.84);
}

.cta-actions {
  justify-content: flex-end;
}

.cta-panel .index-btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.cta-panel .index-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-footer {
  padding: 0 20px 24px;
  background: transparent;
  color: var(--home-copy-muted);
}

.site-footer .line {
  margin: 0 auto 16px;
  max-width: 1320px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(157, 46, 197, 0.18),
    transparent
  );
}

.site-footer p {
  margin: 0;
  color: #7d748f;
}

html[data-theme="dark"] body {
  background-color: #0d1524;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(161, 96, 235, 0.13), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(44, 123, 229, 0.08), transparent 16%),
    radial-gradient(circle at 12% 76%, rgba(161, 96, 235, 0.05), transparent 18%);
}

html[data-theme="dark"] body::before {
  opacity: 0.12;
}

html[data-theme="dark"] #header .topbar {
  border-color: #304158;
  background: rgba(13, 20, 34, 0.8);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] #header .nav {
  border-color: rgba(161, 96, 235, 0.16);
  background: rgba(161, 96, 235, 0.08);
}

html[data-theme="dark"] #header .nav-link {
  color: #d1d8e4;
}

html[data-theme="dark"] #header .nav-link:hover {
  background: rgba(22, 32, 48, 0.92);
  border-color: rgba(161, 96, 235, 0.2);
  color: #f2e8ff;
}

html[data-theme="dark"] #header .nav-link.active {
  background: linear-gradient(
    180deg,
    rgba(27, 39, 59, 0.96),
    rgba(19, 28, 43, 0.96)
  );
  border-color: rgba(161, 96, 235, 0.24);
}

html[data-theme="dark"] #header .header-btn-ghost,
html[data-theme="dark"] #header .notif-btn,
html[data-theme="dark"] #header .mobile-menu-btn {
  border-color: rgba(161, 96, 235, 0.16);
  background: rgba(17, 25, 39, 0.94);
}

html[data-theme="dark"] #header .notif-menu,
html[data-theme="dark"] #header .menu {
  background: rgba(17, 25, 39, 0.94);
  border-color: rgba(161, 96, 235, 0.16);
}

html[data-theme="dark"] .eyebrow {
  background: rgba(17, 25, 39, 0.6);
  border-color: rgba(161, 96, 235, 0.14);
}

html[data-theme="dark"] .hero-inner,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .workflow-copy,
html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .card,
html[data-theme="dark"] .signal-strip-inner span,
html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .stage-shell,
html[data-theme="dark"] .stage-row,
html[data-theme="dark"] .stage-metric {
  border-color: #304158;
}

html[data-theme="dark"] .hero-inner {
  background:
    radial-gradient(circle at 16% 16%, rgba(161, 96, 235, 0.14), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(44, 123, 229, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(17, 25, 39, 0.8), rgba(13, 21, 36, 0.72));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 30px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-intro h2,
html[data-theme="dark"] .workflow-copy h2,
html[data-theme="dark"] .story-card h3,
html[data-theme="dark"] .stage-head h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .cta-copy h2 {
  color: #edf3ff;
}

html[data-theme="dark"] .hero .sub,
html[data-theme="dark"] .hero-stat span,
html[data-theme="dark"] .section-intro p:last-child,
html[data-theme="dark"] .story-card p,
html[data-theme="dark"] .workflow-copy p,
html[data-theme="dark"] .workflow-step p,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .stage-copy p,
html[data-theme="dark"] .stage-metric strong,
html[data-theme="dark"] .site-footer p {
  color: #9eb0c3;
}

html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .story-card {
  background: linear-gradient(180deg, rgba(21, 31, 48, 0.94), rgba(15, 23, 36, 0.88));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 20px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .stage-shell {
  background: linear-gradient(180deg, rgba(21, 31, 48, 0.96), rgba(16, 24, 39, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .stage-row,
html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .card {
  background: rgba(13, 21, 36, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 20px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .stage-metric,
html[data-theme="dark"] .workflow-copy {
  background: rgba(17, 25, 39, 0.84);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015),
    0 10px 20px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .signal-strip-inner span {
  background: rgba(17, 25, 39, 0.8);
  color: #edf3ff;
}

html[data-theme="dark"] .index-btn-ghost {
  color: #edf3ff;
  border-color: #304158;
  background: rgba(17, 25, 39, 0.82);
}

html[data-theme="dark"] .index-btn-ghost.secondary {
  background: rgba(17, 25, 39, 0.62);
}

html[data-theme="dark"] .stage-index {
  color: #f2e8ff;
  background: linear-gradient(135deg, rgba(161, 96, 235, 0.38), rgba(44, 123, 229, 0.22));
  box-shadow: none;
}

html[data-theme="dark"] .stage-pill {
  background: rgba(44, 123, 229, 0.18);
  color: #9dcbff;
}

html[data-theme="dark"] .stage-kicker,
html[data-theme="dark"] .story-kicker,
html[data-theme="dark"] .card-kicker,
html[data-theme="dark"] .stage-metric span {
  color: #d9c3ff;
}

html[data-theme="dark"] .card-list li,
html[data-theme="dark"] .hero-stat strong,
html[data-theme="dark"] .stage-copy strong,
html[data-theme="dark"] .workflow-step strong {
  color: #edf3ff;
}

html[data-theme="dark"] .site-footer .line {
  background: linear-gradient(90deg, transparent, rgba(161, 96, 235, 0.22), transparent);
}

html[data-theme="dark"] .cta-panel {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 34px rgba(0, 0, 0, 0.16);
}

@media (max-width: 1100px) {
  .hero-inner,
  .workflow-section,
  .section-intro,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-stat-row,
  .story-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .workflow-copy {
    position: static;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  #header {
    padding: 14px 16px 0;
  }

  #header .topbar {
    border-radius: 20px;
  }

  #header .left-wrap {
    gap: 14px;
  }

  #header .brand {
    gap: 10px;
  }

  #header .brand-logo {
    width: 48px;
    height: 48px;
  }

  #header .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(157, 46, 197, 0.14);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 48px rgba(92, 62, 142, 0.14);
  }

  #header .nav.show {
    display: flex;
  }

  #header .nav-link {
    display: block;
    width: 100%;
  }

  html[data-theme="dark"] #header .nav {
    border-color: #304158;
    background: rgba(17, 25, 39, 0.98);
  }

  .home-shell {
    padding: 22px 16px 70px;
    gap: 24px;
  }

  .hero-inner,
  .workflow-copy,
  .cta-panel {
    padding: 22px;
  }

  .section-intro h2,
  .workflow-copy h2,
  .cta-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 14px;
  }

  .hero-inner,
  .stage-shell,
  .story-card,
  .workflow-step,
  .card,
  .cta-panel {
    border-radius: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero-actions .index-btn,
  .cta-actions .index-btn {
    width: 100%;
  }

  .stage-head {
    flex-direction: column;
  }

  .stage-board,
  .workflow-steps {
    gap: 14px;
  }

  .stage-row,
  .workflow-step {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .stage-index {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .workflow-step span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.94rem;
  }

  .stage-metric-grid {
    grid-template-columns: 1fr;
  }
}
