/* Cloudbizz home-story — cinematic storytelling homepage
   Inspired by archive-devin-ai.lusion.co, adapted to Cloudbizz tokens. */

.story-page {
  --story-ink: #080942;
  --story-ink-soft: #101758;
  --story-muted: #3a4278;
  --story-line: rgba(8, 9, 66, 0.1);
  --story-surface: #f4f5fc;
  --story-white: #ffffff;
  --story-navy: #07083f;
  --story-navy-2: #0c1058;
  --story-accent: #2510f3;
  --story-accent-soft: #5135ff;
  --story-glow: rgba(37, 16, 243, 0.14);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(197, 204, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(232, 234, 255, 0.7), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--story-surface) 28%, #fbfbff 100%);
}

.story-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(226, 229, 244, 0.7);
}

/* ——— Scroll logo: hero → header ——— */
.story-page--logo-fly .site-header--logo-fly {
  background: rgba(255, 255, 255, 0.55);
  border-bottom-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.story-page--logo-fly.is-logo-docked .site-header--logo-fly {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(226, 229, 244, 0.86);
  box-shadow: 0 10px 28px rgba(18, 16, 104, 0.06);
}

.story-page--logo-fly .brand--slot {
  display: inline-flex;
  align-items: center;
  width: 213px;
  height: 32px;
  text-decoration: none;
  pointer-events: none;
}

.story-page--logo-fly.is-logo-docked .brand--slot {
  pointer-events: auto;
}

.story-page--logo-fly .brand__slot {
  display: block;
  width: 213px;
  height: 32px;
}

.story-logo-source {
  width: min(340px, 72vw);
  height: clamp(48px, 5.2vw, 72px);
  margin: 0 0 22px;
}

.story-logo-fly {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  display: block;
  width: 320px;
  height: 48px;
  margin: 0;
  transform-origin: left center;
  will-change: transform, width, height;
  text-decoration: none;
  /* Hit-testing only on the image; avoids a wide box blocking header controls */
  pointer-events: none;
  opacity: 0;
  animation: story-logo-appear 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

@keyframes story-logo-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.story-logo-fly__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  pointer-events: auto;
  filter: drop-shadow(0 18px 40px rgba(18, 16, 104, 0.12));
  transition: filter 0.35s ease;
}

/* Mobile menu panel sits under the flyer; hide it while open */
body.is-mobile-nav-open .story-logo-fly {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.story-page--logo-fly.is-logo-docked .story-logo-fly__img {
  filter: none;
}

.story-page--logo-fly .story-hero {
  justify-content: center;
  min-height: min(100svh, 880px);
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 48px;
}

.story-page--logo-fly .story-hero__inner {
  align-items: center;
}

.story-page--logo-fly .story-hero__copy {
  padding-top: 0;
}

.story-page--logo-fly .story-logo-source {
  width: min(380px, 78vw);
  height: clamp(56px, 6vw, 84px);
  margin: 0 0 28px;
}

.story-page--logo-fly .story-hero h1 {
  max-width: 16ch;
}

.story-page--logo-fly .story-scroll-hint {
  opacity: 0.55;
}

@media (max-width: 1120px) {
  .story-page--logo-fly .brand--slot,
  .story-page--logo-fly .brand__slot {
    width: 168px;
    height: 26px;
  }

  .story-logo-source {
    width: min(260px, 78vw);
    height: 44px;
    margin-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .story-page--logo-fly .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .story-page--logo-fly .brand--slot {
    order: 0;
  }

  .story-logo-source {
    width: min(220px, 70vw);
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-logo-fly {
    transition: none !important;
  }
}

.story-shell {
  width: var(--cb-shell);
  margin: 0 auto;
}

/* ——— Hero ——— */
.story-hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) 0 56px;
  overflow: hidden;
}

.story-hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 42%, rgba(81, 53, 255, 0.16), transparent 32%),
    radial-gradient(circle at 18% 70%, rgba(37, 16, 243, 0.08), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(247, 247, 254, 0.95) 100%);
}

.story-webgl {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.story-page--logo-fly .story-hero__atmosphere,
.story-page--logo-fly .story-hero__grid,
.story-page--logo-fly .story-hero__inner {
  z-index: 1;
}

.story-page--logo-fly .story-hero__inner {
  position: relative;
}

.story-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(8, 9, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 66, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.story-hero__inner {
  position: relative;
  z-index: 1;
  width: var(--cb-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: end;
}

.story-hero__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--story-ink);
}

.story-hero__brand em {
  font-style: normal;
  color: var(--story-accent);
}

.story-hero h1 {
  margin: 0;
  max-width: 14ch;
  color: var(--story-ink);
  font-size: var(--cb-title-hero);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: 0.98;
}

.story-hero__lead {
  margin: 22px 0 0;
  max-width: 36ch;
  color: var(--story-ink-soft);
  font-size: var(--cb-lead-section);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.story-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.story-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.story-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.story-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--story-accent), var(--story-accent-soft));
  box-shadow: 0 14px 32px rgba(37, 16, 243, 0.28);
}

.story-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 16, 243, 0.34);
}

.story-btn--ghost {
  color: var(--story-ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--story-line);
  backdrop-filter: blur(10px);
}

.story-btn--ghost:hover {
  transform: translateY(-2px);
  background: #fff;
}

.story-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--story-muted);
  font-size: 14px;
  font-weight: 700;
}

.story-hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-hero__proof svg {
  width: 16px;
  height: 16px;
  stroke: var(--story-accent);
  stroke-width: 2;
  fill: none;
}

.story-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: var(--story-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.story-scroll-hint__cross {
  width: 18px;
  height: 18px;
  position: relative;
}

.story-scroll-hint__cross::before,
.story-scroll-hint__cross::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.story-scroll-hint__cross::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.story-scroll-hint__cross::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

/* ——— Live demo panel ——— */
.story-demo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0c4a 0%, #15186a 48%, #2510f3 140%);
  box-shadow:
    0 40px 80px rgba(7, 8, 63, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: #e8eaff;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateY(12px);
  animation: story-float-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes story-float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: translateY(12px) scale(1); }
}

.story-demo__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.story-demo__dots {
  display: flex;
  gap: 6px;
}

.story-demo__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.story-demo__dots i:nth-child(1) { background: #ff5f57; }
.story-demo__dots i:nth-child(2) { background: #febc2e; }
.story-demo__dots i:nth-child(3) { background: #28c840; }

.story-demo__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.story-demo__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #b8ff7a;
}

.story-demo__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(184, 255, 122, 0.18);
  animation: story-pulse 1.8s ease-in-out infinite;
}

@keyframes story-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.story-demo__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 0;
}

.story-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.story-msg {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(10px);
  animation: story-msg-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.story-msg:nth-child(1) { animation-delay: 0.35s; }
.story-msg:nth-child(2) { animation-delay: 1.1s; }
.story-msg:nth-child(3) { animation-delay: 1.9s; }
.story-msg:nth-child(4) { animation-delay: 2.7s; }

@keyframes story-msg-in {
  to { opacity: 1; transform: translateY(0); }
}

.story-msg--you {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-msg--cb {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.96);
  color: var(--story-ink);
}

.story-msg__who {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}

.story-msg--cb .story-msg__who { color: var(--story-accent); opacity: 1; }

.story-workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(0, 0, 0, 0.18);
}

.story-workspace__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-workspace__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 234, 255, 0.55);
  padding: 12px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.story-workspace__tab.is-active {
  color: #fff;
  border-bottom-color: #b8ff7a;
  background: rgba(255, 255, 255, 0.04);
}

.story-workspace__panel {
  display: none;
  padding: 16px;
  flex: 1;
  font-size: 12.5px;
  line-height: 1.5;
}

.story-workspace__panel.is-active { display: block; }

.story-workspace__panel ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.story-workspace__panel li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.story-workspace__panel li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #b8ff7a;
  flex: 0 0 auto;
}

.story-demo__prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(232, 234, 255, 0.55);
  font-size: 13px;
}

.story-demo__prompt span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-demo__prompt b {
  color: #fff;
  font-weight: 700;
}

/* ——— Statement ——— */
.story-statement {
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}

.story-statement__kicker {
  margin: 0 0 18px;
  color: var(--story-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-statement h2 {
  margin: 0 auto;
  max-width: 16ch;
  color: var(--story-ink);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: 0.95;
}

.story-statement h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--story-accent), #7a63ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-statement__lead {
  margin: 22px auto 0;
  max-width: 42ch;
  color: var(--story-ink-soft);
  font-size: var(--cb-lead-section);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ——— Reveal helpers ——— */
.story-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-reveal.is-in {
  opacity: 1;
  transform: none;
}

.story-reveal-delay-1 { transition-delay: 0.08s; }
.story-reveal-delay-2 { transition-delay: 0.16s; }
.story-reveal-delay-3 { transition-delay: 0.24s; }

/* ——— Capabilities ——— */
.story-capabilities {
  padding: clamp(48px, 7vw, 96px) 0;
}

.story-capabilities__intro {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.story-eyebrow {
  margin: 0 0 12px;
  color: var(--story-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-capabilities h2,
.story-usecases h2,
.story-stack h2,
.story-proof h2,
.story-faq h2 {
  margin: 0;
  color: var(--story-ink);
  font-size: var(--cb-title-section);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: 1;
}

.story-section-lead {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--story-ink-soft);
  font-size: var(--cb-lead-section);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

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

.story-cap {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 9, 66, 0.08);
  box-shadow: 0 18px 40px rgba(18, 16, 104, 0.05);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.story-cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(18, 16, 104, 0.1);
}

.story-cap::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--story-glow);
  pointer-events: none;
}

.story-cap__index {
  display: block;
  margin-bottom: 18px;
  color: var(--story-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.story-cap h3 {
  margin: 0;
  color: var(--story-ink);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.story-cap p {
  margin: 12px 0 0;
  color: var(--story-muted);
  font-size: 16px;
  line-height: 1.45;
}

.story-cap ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.story-cap li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--story-ink-soft);
  font-size: 14.5px;
  font-weight: 600;
}

.story-cap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--story-accent);
}

/* ——— Stats ——— */
.story-stats {
  margin: clamp(40px, 6vw, 72px) auto;
  width: var(--cb-shell);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(8, 9, 66, 0.08);
  box-shadow: 0 24px 60px rgba(18, 16, 104, 0.08);
}

.story-stat {
  padding: clamp(28px, 4vw, 44px) 28px;
  background: linear-gradient(180deg, #ffffff, #f7f8ff);
  text-align: center;
}

.story-stat strong {
  display: block;
  color: var(--story-ink);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.story-stat span {
  display: block;
  margin-top: 10px;
  color: var(--story-muted);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ——— Dark cinematic band ——— */
.story-band {
  position: relative;
  margin: clamp(48px, 7vw, 100px) 0;
  padding: clamp(64px, 8vw, 110px) 0;
  color: #eef0ff;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(81, 53, 255, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(37, 16, 243, 0.25), transparent 45%),
    linear-gradient(160deg, var(--story-navy) 0%, var(--story-navy-2) 55%, #12155f 100%);
  overflow: hidden;
}

.story-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}

.story-band .story-shell { position: relative; z-index: 1; }

.story-band__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.story-band .story-eyebrow { color: #b8ff7a; }

.story-band h2 {
  margin: 0;
  color: #fff;
  font-size: var(--cb-title-section);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: 1;
}

.story-band__lead {
  margin: 18px 0 0;
  max-width: 36ch;
  color: rgba(238, 240, 255, 0.78);
  font-size: var(--cb-lead-section);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.story-band__points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.story-band__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 600;
  color: rgba(238, 240, 255, 0.9);
}

.story-band__points svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  stroke: #b8ff7a;
  stroke-width: 2.2;
  fill: none;
}

.story-console {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.story-console__bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-console__bar span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.story-console__bar span.is-live {
  color: #0b1630;
  background: #b8ff7a;
}

.story-console__rows {
  padding: 8px 0;
}

.story-console__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.story-console__row:last-child { border-bottom: 0; }

.story-console__row b {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story-console__row small {
  color: rgba(238, 240, 255, 0.62);
  font-size: 13px;
}

.story-console__pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8ff7a;
  background: rgba(184, 255, 122, 0.12);
}

/* ——— Use cases ——— */
.story-usecases {
  padding: clamp(48px, 7vw, 100px) 0;
}

.story-usecases__intro {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
}

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

.story-use {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px 26px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  box-shadow: 0 16px 36px rgba(18, 16, 104, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-use:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 16, 243, 0.28);
  box-shadow: 0 26px 50px rgba(18, 16, 104, 0.1);
}

.story-use__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.story-use__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 16, 243, 0.08);
  color: var(--story-accent);
}

.story-use__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.story-use__arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--story-surface);
  color: var(--story-ink);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.story-use:hover .story-use__arrow {
  transform: translateX(3px);
  background: var(--story-accent);
  color: #fff;
}

.story-use__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.story-use h3 {
  margin: 0;
  color: var(--story-ink);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.story-use p {
  margin: 10px 0 0;
  color: var(--story-muted);
  font-size: 16px;
  line-height: 1.45;
  flex: 1;
}

.story-use ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.story-use li {
  color: var(--story-ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.story-use li::before {
  content: "→ ";
  color: var(--story-accent);
}

/* ——— Stack / tools ——— */
.story-stack {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  text-align: center;
}

.story-stack .story-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.story-marquee {
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.story-marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: story-marquee 32s linear infinite;
}

@keyframes story-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.story-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  color: var(--story-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(18, 16, 104, 0.04);
}

.story-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--story-accent);
}

/* ——— Quote / proof ——— */
.story-proof {
  padding: 0 0 clamp(64px, 8vw, 110px);
}

.story-proof__card {
  width: var(--cb-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: clamp(32px, 4vw, 48px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(81, 53, 255, 0.12), transparent 35%),
    #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  box-shadow: 0 28px 70px rgba(18, 16, 104, 0.08);
}

.story-proof blockquote {
  margin: 0;
  color: var(--story-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.story-proof figcaption {
  margin-top: 22px;
  color: var(--story-muted);
  font-size: 15px;
  font-weight: 700;
}

.story-proof__metrics {
  display: grid;
  gap: 14px;
  align-content: center;
}

.story-proof__metric {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--story-surface);
}

.story-proof__metric strong {
  display: block;
  color: var(--story-accent);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.story-proof__metric span {
  display: block;
  margin-top: 4px;
  color: var(--story-ink-soft);
  font-size: 14px;
  font-weight: 700;
}

/* ——— FAQ ——— */
.story-faq {
  padding: 0 0 clamp(48px, 6vw, 80px);
}

.story-faq__list {
  width: min(860px, 100%);
  margin: 28px auto 0;
  display: grid;
  gap: 10px;
}

.story-faq details {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  overflow: hidden;
}

.story-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--story-ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story-faq summary::-webkit-details-marker { display: none; }

.story-faq summary svg {
  width: 18px;
  height: 18px;
  stroke: var(--story-accent);
  stroke-width: 2.2;
  fill: none;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.story-faq details[open] summary svg { transform: rotate(45deg); }

.story-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--story-muted);
  font-size: 15.5px;
  line-height: 1.5;
}

/* ——— CTA ——— */
.story-cta {
  width: var(--cb-shell);
  margin: 0 auto clamp(72px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 44px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(184, 255, 122, 0.18), transparent 35%),
    linear-gradient(135deg, #0a0c4a, #2510f3 70%, #5135ff);
  box-shadow: 0 30px 70px rgba(37, 16, 243, 0.28);
}

.story-cta h2 {
  margin: 0;
  font-size: var(--cb-title-cta);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: 1.1;
}

.story-cta p {
  margin: 10px 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.45;
}

.story-cta .story-btn--primary {
  background: #fff;
  color: var(--story-ink);
  box-shadow: none;
}

.story-cta .story-btn--primary:hover {
  background: #b8ff7a;
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .story-demo,
  .story-msg,
  .story-marquee__track,
  .story-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ——— Responsive ——— */
@media (max-width: 1120px) {
  .story-page {
    --cb-shell: min(calc(100% - 40px), 980px);
  }

  .story-hero__inner,
  .story-band__layout,
  .story-proof__card,
  .story-cta {
    grid-template-columns: 1fr;
  }

  .story-hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 28px);
    justify-content: flex-start;
  }

  .story-hero h1 { max-width: none; }
  .story-demo { transform: none; min-height: 480px; }
  .story-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-usecases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-usecases__intro { flex-direction: column; align-items: flex-start; }
  .story-scroll-hint { display: none; }
}

@media (max-width: 760px) {
  .story-page {
    --cb-shell: min(calc(100% - 32px), 720px);
  }

  .story-hero__inner { gap: 28px; }
  .story-demo__body { grid-template-columns: 1fr; }
  .story-chat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .story-workspace__tabs { grid-template-columns: repeat(2, 1fr); }
  .story-cap-grid,
  .story-usecases__grid,
  .story-stats {
    grid-template-columns: 1fr;
  }
  .story-statement h2 { font-size: clamp(40px, 12vw, 64px); }
  .story-console__row { grid-template-columns: 1fr; gap: 6px; }
  .story-cta { padding: 26px 22px; }
  .story-cta .story-btn { width: 100%; justify-content: center; }
  .story-hero__actions { flex-direction: column; }
  .story-hero__actions .story-btn { width: 100%; justify-content: center; }
  .story-price-grid,
  .story-partner-grid { grid-template-columns: 1fr; }
}

/* ——— Homepage pricing + partners ——— */
.story-pricing,
.story-partners {
  padding: clamp(48px, 7vw, 96px) 0;
}

.story-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
}

.story-price {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 32px rgba(18, 16, 104, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-price:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 16, 243, 0.28);
  box-shadow: 0 22px 44px rgba(18, 16, 104, 0.1);
}

.story-price h3 {
  margin: 0;
  color: var(--story-ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.story-price__price {
  margin: 12px 0 0;
  color: var(--story-accent);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.story-price__price small {
  display: block;
  margin-top: 2px;
  color: var(--story-muted);
  font-size: 13px;
  font-weight: 700;
}

.story-price p {
  margin: 12px 0 0;
  color: var(--story-muted);
  font-size: 15px;
  line-height: 1.45;
  flex: 1;
}

.story-price__cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--story-accent);
  font-size: 14px;
  font-weight: 800;
}

.story-price__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.story-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
}

.story-partner {
  padding: 26px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  box-shadow: 0 14px 32px rgba(18, 16, 104, 0.04);
}

.story-partner h3 {
  margin: 0;
  color: var(--story-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.story-partner p {
  margin: 10px 0 0;
  color: var(--story-muted);
  font-size: 15px;
  line-height: 1.45;
}

.story-partners__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Product / utility story skin ——— */
body.story-skin {
  --story-ink: #080942;
  --story-ink-soft: #101758;
  --story-muted: #3a4278;
  --story-accent: #2510f3;
  --story-accent-soft: #5135ff;
  --story-navy: #07083f;
  --story-surface: #f4f5fc;
  background:
    radial-gradient(ellipse 70% 40% at 80% -5%, rgba(197, 204, 255, 0.4), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7f7fe 18%, #fbfbff 100%);
}

body.story-skin .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

body.story-skin .btn--primary,
body.story-skin .header-cta,
body.story-skin .diagnostic-banner__button,
body.story-skin .mega-diagnostic-btn {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 16, 243, 0.22);
}

body.story-skin .diagnostic-banner {
  width: var(--cb-shell, min(calc(100% - 120px), 1520px));
  margin: 0 auto clamp(72px, 8vw, 120px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(184, 255, 122, 0.18), transparent 35%),
    linear-gradient(135deg, #0a0c4a, #2510f3 70%, #5135ff);
  box-shadow: 0 30px 70px rgba(37, 16, 243, 0.28);
  border: 0;
}

body.story-skin .diagnostic-banner h2,
body.story-skin .diagnostic-copy h2 {
  color: #fff !important;
  font-size: var(--cb-title-cta) !important;
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
}

body.story-skin .diagnostic-banner p,
body.story-skin .diagnostic-banner li {
  color: rgba(255, 255, 255, 0.84);
}

body.story-skin .diagnostic-banner__button {
  background: #fff !important;
  color: #080942 !important;
}

body.story-skin .diagnostic-secondary {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.story-skin .section-eyebrow,
body.story-skin .deskio-kicker,
body.story-skin .ser-eyebrow,
body.story-skin .care-eyebrow,
body.story-skin .evo-eyebrow {
  color: var(--story-accent) !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Soft reveal for any .story-reveal on product pages */
body.story-skin .story-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

body.story-skin .story-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* neoo bridge */
.neoo-page.story-skin {
  background:
    radial-gradient(ellipse 70% 40% at 80% -5%, rgba(197, 204, 255, 0.35), transparent 50%),
    #fff;
}

.neoo-page.story-skin .neoo-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 229, 244, 0.86);
}

.neoo-page.story-skin .neoo-demo {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 16, 243, 0.22);
}

/* commande / legal / policy / 404 */
body.story-skin .cmd-hero h1,
body.story-skin .legal-main h1,
body.story-skin .policy-hero h1,
body.story-skin .error-card h1 {
  color: #080942;
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
}

body.story-skin .cmd-card {
  border-radius: 20px;
  border-color: rgba(8, 9, 66, 0.08);
  box-shadow: 0 14px 32px rgba(18, 16, 104, 0.04);
}

body.story-skin .policy-final-cta,
body.story-skin .error-card {
  border-radius: 24px;
}

@media (max-width: 1120px) {
  .story-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-partner-grid { grid-template-columns: 1fr; }
  body.story-skin .diagnostic-banner {
    width: min(calc(100% - 40px), 980px);
  }
}

/* ——— Product page atmospheric heroes ——— */
.go-page.story-skin .go-hero,
.go-page.story-skin .go-hero--deskio-reference,
.serenity-page.story-skin .ser-hero,
.care-page.story-skin .care-hero,
.evo-page.story-skin .evo-hero,
body.story-skin .ser-hero,
body.story-skin .care-hero,
body.story-skin .evo-hero {
  position: relative;
}

.go-page.story-skin .deskio-copy h1,
.serenity-page.story-skin .ser-hero h1,
body.story-skin .ser-hero h1,
body.story-skin .care-hero h1,
body.story-skin .evo-hero h1,
body.story-skin .ova-hero h1 {
  color: #080942;
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
}

body.story-skin .ova-final-cta {
  width: var(--cb-shell, min(calc(100% - 120px), 1520px));
  margin: 0 auto clamp(72px, 8vw, 120px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(184, 255, 122, 0.18), transparent 35%),
    linear-gradient(135deg, #0a0c4a, #2510f3 70%, #5135ff);
  box-shadow: 0 30px 70px rgba(37, 16, 243, 0.28);
  color: #fff;
}

body.story-skin .ova-final-cta h2,
body.story-skin .ova-final-cta p {
  color: #fff;
}

body.story-skin .go-apps,
body.story-skin .go-process,
body.story-skin .go-packs,
body.story-skin .ser-chain,
body.story-skin .ser-pricing,
body.story-skin .care-pipeline,
body.story-skin .care-detail,
body.story-skin .evo-steps,
body.story-skin .evo-result {
  scroll-margin-top: 88px;
}

body.story-skin .site-footer {
  border-top: 1px solid rgba(8, 9, 66, 0.08);
  background: linear-gradient(180deg, #fbfbff, #f4f5fc);
}

/* Error page story shell */
.error-page.story-skin,
body.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 10%, rgba(197, 204, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #fff, #f4f5fc);
}

.error-page .error-card,
body.story-skin .error-card {
  width: min(520px, calc(100% - 40px));
  padding: 40px 32px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(8, 9, 66, 0.08);
  box-shadow: 0 28px 60px rgba(18, 16, 104, 0.1);
  text-align: center;
}

.error-page .error-card h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  color: #080942;
}

.error-page .error-card p {
  margin: 14px 0 0;
  color: #3a4278;
  font-size: 17px;
  line-height: 1.45;
}

.error-page .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
