:root {
  --bg: #05070b;
  --bg-2: #090d15;
  --text: #f4f4f7;
  --muted: #a8a8ae;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --accent: #d7d7de;
  --accent-2: #c8c8cf;
  --radius: 20px;
  --topbar-height: 56px;
  --topbar-offset: 12px;
  --topbar-side-inset: clamp(72px, 8vw, 140px);
  --topbar-radius: 16px;
  --topbar-brand-size: 1.15rem;
  --topnav-link-size: 0.9rem;
  --topbar-cta-size: 0.84rem;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --font-apple:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    "Segoe UI",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-apple);
  line-height: 1.5;
  overflow-x: hidden;
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-apple);
  letter-spacing: -0.03em;
  font-weight: 700;
}

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

.container {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
}

.section {
  padding: clamp(84px, 10vw, 128px) 0;
}

.topbar {
  position: fixed;
  top: var(--topbar-offset);
  left: var(--topbar-side-inset);
  right: var(--topbar-side-inset);
  z-index: 40;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--topbar-radius);
  background: linear-gradient(
    180deg,
    rgba(18, 18, 20, 0.74) 0%,
    rgba(8, 8, 10, 0.84) 100%
  );
  backdrop-filter: blur(16px) saturate(74%);
  -webkit-backdrop-filter: blur(16px) saturate(74%);
  box-shadow: none;
  isolation: isolate;
  overflow: hidden;
}

.topbar::before {
  content: none;
}

.topbar::after {
  content: none;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 36px));
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: var(--topbar-brand-size);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-apple);
}

.topnav {
  position: static;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topnav a {
  color: rgba(244, 244, 247, 0.62);
  font-weight: 300;
  font-size: var(--topnav-link-size);
  letter-spacing: 0.01em;
  opacity: 0.96;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.topbar .btn {
  font-size: var(--topbar-cta-size);
  padding: 7px 9px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #eceef2 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 18px rgba(0, 0, 0, 0.25);
}

.topnav a:hover {
  color: rgba(244, 244, 247, 0.9);
  opacity: 1;
}

.topnav a[aria-current="page"] {
  color: rgba(244, 244, 247, 0.93);
  font-weight: 400;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: var(--font-apple);
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-weight: 600;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #111213;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background: #ffffff;
  color: #111213;
  box-shadow: none;
}

.btn-light {
  background: #ffffff;
  color: #111213;
  box-shadow: none;
}

.btn-ghost {
  background: #ffffff;
  border-color: #ffffff;
  color: #111213;
}

.hero {
  padding-top: calc(var(--topbar-height) + var(--topbar-offset));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-gridstage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 35% at 50% 50%, rgba(80, 140, 255, 0.3), transparent 60%),
    radial-gradient(130% 130% at 15% 20%, rgba(0, 0, 0, 0.16), transparent 55%),
    radial-gradient(140% 140% at 82% 12%, rgba(74, 146, 255, 0), transparent 50%),
    radial-gradient(160% 160% at 50% 78%, rgba(15, 18, 32, 0.32), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to bottom, hsl(240, 24%, 3%), hsl(240, 22%, 4%), hsl(240, 18%, 6%));
  overflow: hidden;
}

.hero-gridstage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 11, 0) 0%,
    rgba(5, 7, 11, 0.60) 50%,
    var(--bg) 100%
  );
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

.hero-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  text-align: center;
  pointer-events: none;
}

.hero-center h1 {
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 1.03;
  margin: 0 auto;
  max-width: 18ch;
  font-weight: 700;
}

.hero-center p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: #b8b8bf;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.hero-center .btn {
  margin-top: 24px;
}

.chapter {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-top: clamp(110px, 14vw, 170px);
  padding-bottom: clamp(96px, 14vw, 150px);
  background: var(--bg);
}

.chapter > .container {
  position: relative;
  z-index: 1;
}

.chapter-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.chapter-title {
  margin: 16px auto 0;
  max-width: 20ch;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 700;
}

.chapter-sub {
  margin: 18px auto 0;
  max-width: 60ch;
  color: #c4c4cb;
  font-size: 1.06rem;
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.1;
}

.workflow-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 44px);
}

.workflow-sticky {
  position: static;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.workflow-sticky .section-head {
  max-width: none;
}

.workflow-sticky-title {
  margin: 0;
  color: #f8f8fa;
  font-family: var(--font-apple);
  /* font-size: clamp(2.00rem, 6vw, 3.00rem); */
  font-size: 2.5rem;

  line-height: 1.02;
  font-weight: 480;
  letter-spacing: -0.036em;
  max-width: 12.5ch;
}

.workflow-nav {
  margin-top: clamp(34px, 3.2vw, 52px);
  position: sticky;
  top: calc(var(--topbar-height) + var(--topbar-offset) + 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.workflow-nav-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(214, 214, 220, 0.62);
  transition: color 0.18s ease;
}

.workflow-nav-title {
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  line-height: 1.08;
  font-weight: 340;
  letter-spacing: -0.022em;
}

.workflow-nav-link:hover {
  color: rgba(246, 246, 248, 0.95);
}

.workflow-nav-link.is-active {
  color: var(--text);
}

.workflow-nav-link.is-active .workflow-nav-title {
  font-weight: 380;
}

.workflow-rail {
  display: flex;
  flex-direction: column;
  padding-top: 160px;
  gap: clamp(30px, 3.2vw, 44px);
  width: calc(100% + clamp(208px, 17.28vw, 449px));
  max-width: none;
}

.workflow-stage {
  min-height: clamp(744px, calc(100vh - 164px), 912px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(121, 203, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  padding: clamp(22px, 3vw, 34px);
  scroll-margin-top: calc(var(--topbar-height) + var(--topbar-offset) + 26px);
  width: 100%;
}

.workflow-stage.is-active {
  border-color: rgba(156, 223, 255, 0.42);
}

.workflow-stage-main h3 {
  font-size: clamp(1.4rem, 2.7vw, 2.25rem);
  line-height: 1.1;
}

.workflow-stage-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

.workflow-media-slot {
  margin-top: 20px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 120% at 18% 10%, rgba(156, 223, 255, 0.14), transparent 45%),
    linear-gradient(160deg, rgba(7, 12, 23, 0.86), rgba(12, 15, 24, 0.92));
  color: rgba(214, 214, 220, 0.82);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.workflow-media-slot video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.story-centerline {
  position: relative;
  height: 520vh;
  padding: 0;
  background: var(--bg);
}

.story-centerline-pin {
  position: sticky;
  top: calc(var(--topbar-height) + var(--topbar-offset));
  height: calc(100vh - (var(--topbar-height) + var(--topbar-offset)));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

.story-camera-scene {
  --story-app-stage-scale: 1;
  --story-app-stage-shift-y: 0px;
  --story-app-stage-radius: 0px;
  --story-app-stage-top-pad: 0px;
  --story-content-shift-x: 0px;
  --story-chat-final-shift-x: 0px;
  --story-chat-final-shift-y: 0px;
  --story-chat-final-scale: 1;
  --story-chat-final-height-mult: 1;
  --story-model-final-scale: 1;
  --story-app-window-opacity: 0;
  --story-app-window-scale: 1.04;
  --story-app-window-shift-y: 20px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(var(--story-scene-cam-x, 0px), var(--story-scene-cam-y, 0px), 0)
    scale(var(--story-scene-cam-scale, 1));
  transform-origin: var(--story-scene-origin-x, 50%) var(--story-scene-origin-y, 50%);
  will-change: transform;
}

.story-app-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding-top: var(--story-app-stage-top-pad);
  box-sizing: border-box;
  border-radius: var(--story-app-stage-radius);
  transform: translate3d(0, var(--story-app-stage-shift-y), 0) scale(var(--story-app-stage-scale));
  transform-origin: 50% 50%;
  will-change: transform, border-radius;
}

.story-app-window {
  position: absolute;
  inset:
    clamp(8px, 1.2vw, 14px)
    clamp(140px, 14vw, 300px)
    clamp(8px, 1.2vw, 14px);
  border-radius: clamp(18px, 1.8vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 7, 8, 0.28);
  box-shadow:
    0 36px 92px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: var(--story-app-window-opacity);
  transform: translate3d(0, var(--story-app-window-shift-y), 0) scale(var(--story-app-window-scale));
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
  will-change: opacity, transform;
}

.story-app-window-topbar {
  position: relative;
  height: clamp(48px, 6vh, 62px);
  border-bottom: 0;
  background: rgba(10, 10, 11, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(10px, 1.3vw, 16px);
}

.story-app-window-dots {
  position: absolute;
  left: clamp(14px, 1.6vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.story-app-window-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.story-app-window-dot--red {
  background: #ff5f57;
}

.story-app-window-dot--yellow {
  background: #febc2e;
}

.story-app-window-dot--green {
  background: #28c840;
}

.story-app-window-address {
  width: min(54%, 480px);
  height: clamp(30px, 3.5vh, 36px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 20, 0.92);
  color: rgba(237, 237, 240, 0.9);
  font-size: clamp(0.82rem, 0.92vw, 0.98rem);
  font-weight: 560;
  letter-spacing: 0.01em;
  display: grid;
  place-items: center;
  white-space: nowrap;
}

.story-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translate3d(var(--story-content-shift-x, 0px), 0, 0);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.story-model-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--story-model-opacity, 0);
  transform: translate3d(var(--story-content-shift-x, 0px), var(--story-model-shift-y, 34px), 0)
    scale(calc(var(--story-model-scale, 0.88) * var(--story-model-final-scale, 1)));
  filter: blur(var(--story-model-blur, 8px));
  will-change: opacity, transform, filter;
}

.story-model-shell {
  position: relative;
  z-index: 1;
  width: clamp(290px, 42vw, 700px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: transparent;
}

.story-model-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.45));
}

.story-centerline-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.story-centerline-title {
  margin: 0;
  width: fit-content;
  max-width: none;
  display: grid;
  justify-items: center;
  gap: 0.06em;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1.03;
  font-weight: 560;
  letter-spacing: calc(-0.036em + var(--story-title-spread, 0em));
  color: #f8f8fa;
  opacity: var(--story-title-opacity, 1);
  transform: translate3d(0, var(--story-title-shift-y, 0px), 0) scale(var(--story-title-scale, 1));
  filter: blur(var(--story-title-blur, 0px));
  will-change: transform, opacity, filter, letter-spacing;
}

.story-centerline-title > span {
  display: block;
  white-space: nowrap;
}

.story-nav {
  position: absolute;
  left: calc(var(--topbar-side-inset) + 22px);
  top: clamp(40px, 16vh, 100px);
  transform: none;
  display: grid;
  justify-items: start;
  gap: 16px;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.story-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.story-nav-item {
  display: inline-flex;
  width: fit-content;
  justify-self: start;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 20px 28px 20px 18px;
  border-radius: 18px;
  border: 0;
  background: rgba(24, 24, 26, 0.64);
  backdrop-filter: blur(12px) saturate(45%);
  -webkit-backdrop-filter: blur(12px) saturate(45%);
  transition: background-color 180ms ease;
}

.story-nav-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(222, 222, 228, 0.46);
  background: transparent;
  padding: 0;
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.story-nav-dot::before,
.story-nav-dot::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.story-nav-dot::after {
  width: 100%;
  height: 100%;
  background: rgba(212, 212, 218, 0.3);
  transition: opacity 220ms ease, background-color 220ms ease, box-shadow 260ms ease;
  opacity: 1;
}

.story-nav-dot::before {
  width: 0;
  height: 0;
  background: transparent;
  filter: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.story-nav-dot:hover {
  border-color: rgba(242, 242, 246, 0.68);
}

.story-nav-dot.is-active {
  border-color: rgba(255, 255, 255, 0.86);
  background: transparent;
}

.story-nav-item:hover .story-nav-dot,
.story-nav-item:focus-within .story-nav-dot {
  border-color: rgba(245, 245, 248, 0.94);
}

.story-nav-item:hover,
.story-nav-item:focus-within {
  background: rgba(30, 30, 33, 0.72);
}

.story-nav-dot.is-active::after {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.92),
    0 0 24px rgba(255, 255, 255, 0.34);
  opacity: 1;
}

.story-nav-dot.is-active::before {
  opacity: 0;
}

.story-nav-dot.is-jump::before {
  animation: none;
}

.story-nav-label {
  color: rgba(200, 200, 206, 0.52);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 180ms ease, opacity 180ms ease;
  opacity: 0.74;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
}

.story-nav-item:hover .story-nav-label {
  color: rgba(228, 228, 232, 0.82);
  opacity: 0.92;
}

.story-nav-dot.is-active + .story-nav-label {
  color: rgba(246, 246, 248, 0.96);
  opacity: 1;
}

@keyframes storyNavBurst {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.45);
  }
  55% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1.95);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.85);
  }
}

.story-chat-panel {
  --story-chat-base-height: min(82vh, 860px);
  --story-panel-pad-x: 16px;
  --story-panel-pad-b: 14px;
  position: absolute;
  right: clamp(16px, 2.8vw, 44px);
  top: 50%;
  width: clamp(240px, 21.6vw, 344px);
  height: calc(var(--story-chat-base-height) * var(--story-chat-final-height-mult, 1));
  transform: translate3d(
      calc(var(--story-chat-shift-x, 120px) + var(--story-chat-final-shift-x, 0px)),
      calc(-50% + var(--story-chat-final-shift-y, 0px)),
      0
    )
    scale(calc(var(--story-chat-scale, 0.985) * var(--story-chat-final-scale, 1)));
  transform-origin: 100% 50%;
  opacity: var(--story-chat-opacity, 0);
  border-radius: 34px;
  border: 1px solid rgba(226, 236, 255, 0.18);
  background: linear-gradient(180deg, rgba(4, 6, 11, 0.95), rgba(3, 5, 10, 0.98));
  box-shadow:
    0 36px 92px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 3;
  position: absolute;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px var(--story-panel-pad-x) var(--story-panel-pad-b);
  overflow: visible;
  pointer-events: none;
  will-change: transform, opacity;
}

.story-chat-header {
  display: grid;
  gap: 12px;
  padding: 6px 6px 0;
}

.story-chat-brand {
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-apple);
  text-align: left;
}

.story-chat-topic-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-chat-topic {
  text-align: left;
  color: rgba(212, 212, 219, 0.75);
  font-size: clamp(0.77rem, 0.84vw, 0.94rem);
  font-weight: 500;
  letter-spacing: -0.014em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-chat-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 10px 2px 98px;
}

.story-chat-bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 10px 13px;
  text-align: left;
  font-size: clamp(0.9rem, 0.94vw, 1.05rem);
  line-height: 1.36;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.story-chat-bubble--assistant {
  align-self: flex-start;
  background: rgba(245, 245, 246, 0.95);
  color: #0f1012;
  border-bottom-left-radius: 6px;
}

.story-chat-bubble--user {
  align-self: flex-end;
  background: linear-gradient(120deg, #8f4de9, #9a6df3);
  color: #f6f6f8;
  border-bottom-right-radius: 6px;
}

.story-chat-composer {
  position: absolute;
  left: var(--story-panel-pad-x);
  right: var(--story-panel-pad-x);
  bottom: var(--story-panel-pad-b);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  min-height: 72px;
  height: var(--story-composer-height, 72px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  align-content: center;
  padding: 10px 10px 0 13px;
  transform: translate3d(0, calc(-1 * var(--story-composer-lift, 0px)), 0);
  transform-origin: bottom center;
  z-index: 5;
}

.story-chat-input {
  color: rgba(236, 236, 241, 0.96);
  font-size: clamp(1rem, 1.02vw, 1.2rem);
  line-height: 1.24;
  letter-spacing: -0.014em;
  display: block;
  flex: 1 1 auto;
  align-self: flex-start;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  max-height: calc(1.24em * 2);
  word-break: break-word;
}

.story-chat-input-text {
  white-space: normal;
}

.story-chat-caret {
  display: none;
  width: 2px;
  height: 0.92em;
  margin-left: 0;
  vertical-align: -0.08em;
  background: rgba(236, 242, 252, 0.92);
}

.story-chat-composer.is-typing .story-chat-caret {
  display: inline-block;
  opacity: 0.95;
  animation: storyCaretBlink 0.9s steps(1, end) infinite;
}

.story-chat-send {
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-self: center;
  pointer-events: none;
  background: rgba(183, 188, 198, 0.9);
  color: #47474d;
  font-size: 1.35rem;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}

.story-chat-composer.is-input-active .story-chat-send {
  background: rgba(246, 249, 255, 0.98);
  color: #44444b;
}

.story-chat-composer.is-send-flash .story-chat-send {
  background: rgba(246, 249, 255, 0.95);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.78);
}

.story-chat-composer.is-send-press .story-chat-send {
  transform: scale(0.96);
}

@keyframes storyCaretBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}

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

.feature {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 19, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  padding: 24px;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.feature::before {
  content: none;
}

.feature:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(22, 22, 24, 0.92);
}

.feature h3 {
  position: relative;
  z-index: 1;
  font-size: 1.14rem;
  margin-bottom: 8px;
  letter-spacing: -0.014em;
  font-weight: 600;
  color: #f4f4f7;
}

.feature p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(198, 201, 208, 0.9);
}

.blog-page {
  background: #06080d;
  color: #f4f4f7;
}

.blog-landing {
  padding-top: calc(var(--topbar-height) + var(--topbar-offset) + 44px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.blog-hero {
  margin: 0 auto 44px;
  max-width: 960px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.blog-hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.4rem);
  line-height: 0.98;
  max-width: none;
  font-weight: 600;
  letter-spacing: -0.032em;
}

.blog-hero .eyebrow {
  margin: 0;
}

.blog-hero-sub {
  margin: 4px 0 0;
  max-width: 48ch;
  color: rgba(208, 210, 217, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -0.014em;
}

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

.blog-tile {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01) 58%),
    rgba(14, 16, 22, 0.62);
  backdrop-filter: blur(14px) saturate(124%);
  -webkit-backdrop-filter: blur(14px) saturate(124%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 260ms ease;
}

.blog-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 34%);
}

.blog-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.blog-tile a {
  position: relative;
  z-index: 1;
  display: block;
}

.blog-tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-tile-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-tile-content {
  padding: 20px 24px 24px;
  background: linear-gradient(180deg, rgba(18, 20, 27, 0.84), rgba(11, 12, 18, 0.92));
}

.blog-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(215, 218, 224, 0.74);
  font-weight: 520;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-tile-content h2 {
  margin-top: 12px;
  font-size: clamp(1.34rem, 2vw, 1.84rem);
  line-height: 1.14;
  font-weight: 580;
  letter-spacing: -0.025em;
  color: #f4f4f7;
}

.blog-topic {
  margin: 18px 0 0;
  color: rgba(196, 198, 205, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.blog-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
}

.blog-card .tag {
  display: inline-block;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(207, 207, 214, 0.86);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.blog-card h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.blog-card a {
  color: var(--accent);
  font-weight: 700;
}

.cta-inner {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 19, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  padding: clamp(30px, 6vw, 60px);
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  max-width: 20ch;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.cta-inner p {
  margin: 10px 0 24px;
  color: rgba(201, 203, 209, 0.9);
}

.footer {
  padding: 28px 0 40px;
}

.footer-inner {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(17, 17, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(194, 197, 205, 0.9);
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .feature-grid,
  .blog-grid,
  .blog-tiles {
    grid-template-columns: 1fr;
  }

  .topnav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .workflow-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .workflow-sticky {
    position: static;
  }

  .workflow-sticky .section-head {
    max-width: none;
  }

  .workflow-nav {
    position: static;
    top: auto;
    margin-top: 24px;
  }

  .workflow-sticky-title {
    font-size: clamp(2.1rem, 8.2vw, 3.56rem);
    line-height: 0.99;
    max-width: 12.5ch;
  }

  .workflow-nav-title {
    font-size: clamp(0.89rem, 3.3vw, 1.35rem);
    line-height: 1.1;
  }

  .workflow-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-centerline-title {
    font-size: clamp(2.1rem, 10vw, 4.5rem);
  }

  .story-nav {
    display: none;
  }

  .story-chat-panel {
    --story-chat-base-height: min(74vh, 740px);
    --story-panel-pad-x: 12px;
    --story-panel-pad-b: 12px;
    right: 12px;
    width: min(90vw, 304px);
    border-radius: 28px;
    padding: 14px 12px 12px;
  }

  .story-model-shell {
    width: min(72vw, 430px);
  }

  .story-chat-header {
    padding: 4px 4px 0;
  }

  .story-chat-topic {
    font-size: 0.78rem;
  }

  .story-chat-bubble {
    max-width: 92%;
    padding: 9px 11px;
    font-size: 0.9rem;
  }

  .story-chat-composer {
    min-height: 62px;
    height: var(--story-composer-height, 62px);
  }

  .story-chat-send {
    flex-basis: 36px;
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
  }

  .story-app-window {
    inset: 16px 18px 10px;
    border-radius: 18px;
  }

  .story-app-window-topbar {
    height: 44px;
    padding-inline: 10px;
  }

  .story-app-window-dots {
    left: 12px;
  }

  .story-app-window-dot {
    width: 10px;
    height: 10px;
  }

  .story-app-window-address {
    width: min(78%, 460px);
    height: 28px;
    font-size: 0.76rem;
  }

  .story-centerline {
    height: 420vh;
  }

  .workflow-rail {
    width: 100%;
    padding-top: 0;
  }

}

@media (max-width: 640px) {
  :root {
    --topbar-height: 52px;
    --topbar-offset: 10px;
    --topbar-side-inset: 14px;
  }

  .section {
    padding: 74px 0;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }
}
