/* Refread AI Journey page content styles. Shared site chrome comes from base.css and common.css. */
:root {
  --bg: #07100b;
  --bg2: #0b1510;
  --panel: #0f1b14;
  --panel2: #122118;
  --text: #f3f6f1;
  --muted: #aeb9b1;
  --line: rgba(189, 255, 114, 0.18);
  --green: #9ad83b;
  --green2: #c8ff7f;
  --soft: #d9e6da;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
.ai-journey-page {
  margin: 0;
  background:
    radial-gradient(
      900px 500px at 78% 4%,
      rgba(110, 171, 47, 0.11),
      transparent 65%
    ),
    linear-gradient(180deg, #08110c 0%, #07100b 45%, #050a07 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 4vw;
  padding: 120px clamp(30px, 6vw, 96px) 70px;
  z-index: 1;
}
.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #a8b7ac;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.9rem, 5.4vw, 5.15rem);
  line-height: 0.91;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
  font-weight: 650;
  max-width: 820px;
}
h1 span {
  display: block;
  color: var(--green);
}
.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: #bcc8bf;
  max-width: 650px;
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.play-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: #eef7ea;
  color: #0a100c;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.play-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #0d150f;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.ghost-note {
  font-size: 12px;
  color: #7f8e83;
}

.hero-stage {
  height: min(720px, 78vh);
  min-height: 580px;
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 52% 42%,
      rgba(153, 219, 62, 0.14),
      transparent 28%
    ),
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border: 1px solid rgba(177, 239, 102, 0.12);
  box-shadow: var(--shadow);
}
.hero-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(5, 10, 7, 0.65));
  pointer-events: none;
}
.stage-chapters {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 27px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stage-chapter {
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: rgba(6, 13, 9, 0.7);
  border: 1px solid rgba(185, 255, 105, 0.13);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.3s ease;
}
.stage-chapter:hover,
.stage-chapter.active {
  border-color: rgba(185, 255, 105, 0.42);
  background: rgba(139, 209, 53, 0.11);
  transform: translateY(-2px);
}
.stage-chapter b {
  display: block;
  font-size: 12px;
  color: #f2f7ef;
  margin-bottom: 3px;
}
.stage-chapter span {
  font-size: 10px;
  color: #849389;
}

/* Refread AI layer: inputs -> intelligence -> library experiences */
.ai-system {
  position: absolute;
  inset: 26px 16px 106px;
  z-index: 2;
}
.ai-system svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ai-path {
  fill: none;
  stroke: rgba(174, 235, 91, 0.24);
  stroke-width: 1.45;
  stroke-dasharray: 5 8;
  animation: pathFlow 12s linear infinite;
}
.ai-path.hot {
  stroke: rgba(190, 255, 111, 0.65);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 5px rgba(154, 216, 59, 0.35));
}
@keyframes pathFlow {
  to {
    stroke-dashoffset: -160;
  }
}
.ai-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 166px;
  height: 166px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(
    circle at 50% 44%,
    rgba(173, 242, 87, 0.17),
    rgba(8, 16, 11, 0.94) 64%
  );
  border: 1px solid rgba(198, 255, 127, 0.5);
  box-shadow:
    0 0 70px rgba(107, 171, 39, 0.17),
    inset 0 0 38px rgba(170, 234, 83, 0.08);
  transition: 0.35s ease;
}
.ai-core:before,
.ai-core:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(190, 255, 111, 0.28);
  inset: -24px;
  box-shadow: 0 0 22px rgba(153, 216, 59, 0.055);
  animation: corePulse 3.4s ease-in-out infinite;
}
.ai-core:after {
  inset: -52px;
  border-color: rgba(190, 255, 111, 0.19);
  animation-delay: -1.7s;
}
@keyframes corePulse {
  50% {
    transform: scale(1.035);
    opacity: 0.45;
  }
}
.ai-core-mark {
  width: 78px;
  height: 64px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(155, 197, 59, 0.22));
}
.ai-core-mark img {
  display: block;
  width: 78px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}
.ai-core b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #f5f8f2;
}
.ai-core small {
  display: block;
  max-width: 124px;
  margin: 4px auto 0;
  color: #8f9d94;
  font-size: 10px;
  line-height: 1.35;
}
.library-input {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(8, 16, 11, 0.76);
  border: 1px solid rgba(184, 247, 103, 0.18);
  color: #9aa89f;
  font-size: 10px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.library-input i {
  color: #9bc53b;
  font-size: 11px;
}
.in1 {
  left: 5%;
  top: 31%;
}
.in2 {
  right: 5%;
  top: 31%;
}
.in3 {
  left: 5%;
  bottom: 31%;
}
.in4 {
  right: 5%;
  bottom: 31%;
}
.ai-service {
  position: absolute;
  z-index: 4;
  width: 188px;
  min-height: 92px;
  padding: 14px 15px 13px;
  border-radius: 16px;
  background: rgba(8, 16, 11, 0.8);
  border: 1px solid rgba(184, 247, 103, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.17);
  backdrop-filter: blur(11px);
  cursor: pointer;
  transition: 0.3s ease;
  text-align: left;
}
.ai-service:hover,
.ai-service.active {
  border-color: rgba(190, 255, 111, 0.48);
  background: rgba(137, 202, 57, 0.1);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    0 0 25px rgba(134, 204, 50, 0.08);
  transform: translateY(-3px);
}
.ai-service .svc-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(155, 197, 59, 0.13);
  color: #baf067;
  font-size: 14px;
  margin-bottom: 8px;
}
.ai-service b {
  display: block;
  color: #eef4eb;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.ai-service span {
  display: block;
  color: #93a098;
  font-size: 0.78rem;
  margin-top: 5px;
  line-height: 1.35;
}
.svc1 {
  left: 1%;
  top: 2%;
}
.svc2 {
  right: 1%;
  top: 2%;
}
.svc3 {
  left: 1%;
  bottom: 2%;
}
.svc4 {
  right: 1%;
  bottom: 2%;
}
.ai-signal {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9f267;
  box-shadow: 0 0 12px rgba(173, 239, 88, 0.7);
  animation: signal 2.6s ease-in-out infinite;
}
.sig1 {
  left: 31%;
  top: 42%;
}
.sig2 {
  right: 31%;
  top: 42%;
  animation-delay: 0.65s;
}
.sig3 {
  left: 37%;
  bottom: 24%;
  animation-delay: 1.3s;
}
.sig4 {
  right: 37%;
  bottom: 24%;
  animation-delay: 1.95s;
}
@keyframes signal {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@media (min-width: 641px) {
  .in1,
  .in2 {
    top: 31%;
  }
  .in3,
  .in4 {
    bottom: 31%;
  }
  .svc1,
  .svc2 {
    top: 2%;
  }
  .svc3,
  .svc4 {
    bottom: 2%;
  }
}

.hero-cta-note {
  font-size: 13px;
  color: #91a097;
  line-height: 1.4;
}

.journey {
  position: relative;
  z-index: 1;
}
.timeline-rail {
  position: fixed;
  z-index: 30;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.45s ease;
}
body.in-journey .timeline-rail {
  opacity: 1;
}
.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #637165;
  background: #101912;
  position: relative;
  transition: 0.3s;
}
.rail-dot:before {
  content: attr(data-label);
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #69766d;
  white-space: nowrap;
  opacity: 0;
  transition: 0.25s;
}
.rail-dot.active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(154, 216, 59, 0.5);
}
.rail-dot.active:before {
  opacity: 1;
  color: #a9b6ad;
}

.chapter {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(350px, 0.83fr) minmax(520px, 1.17fr);
  gap: 5vw;
  align-items: center;
  padding: 110px clamp(34px, 6vw, 100px);
  position: relative;
  border-top: 1px solid rgba(169, 233, 93, 0.06);
}
.chapter:nth-child(even) {
  grid-template-columns: minmax(520px, 1.17fr) minmax(350px, 0.83fr);
}
.chapter:nth-child(even) .copy {
  order: 2;
}
.chapter:nth-child(even) .demo {
  order: 1;
}
.chapter:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    700px 420px at 76% 45%,
    rgba(100, 165, 45, 0.045),
    transparent 70%
  );
}
.copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.date {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--green2);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.date:before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--green);
}
.chapter h3 {
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 0.93;
  letter-spacing: -0.06em;
  margin: 0 0 23px;
  max-width: 680px;
}
.chapter p {
  color: #b4c0b8;
  font-size: 17px;
  line-height: 1.72;
  margin: 0;
  max-width: 560px;
}
.chapter p strong {
  color: #f2f6ef;
}
.chapter .micro {
  margin-top: 30px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 11px;
  border: 1px solid rgba(188, 255, 105, 0.15);
  border-radius: 999px;
  color: #92a095;
  background: rgba(146, 213, 53, 0.025);
}

.demo {
  min-height: 657px;
  position: relative;
  border: 1px solid rgba(178, 241, 105, 0.11);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.008)
  );
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 2;
}
.demo-head {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 8;
}
.demo-head span {
  font-size: 10px;
  color: #7e8d83;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.demo:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(4, 9, 6, 0.75));
  pointer-events: none;
  z-index: 6;
}

/* News tagging */
.news-field {
  position: absolute;
  inset: 78px 22px 48px;
  display: grid;
  place-items: center;
}
.news-product {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(187, 248, 108, 0.13);
  background: linear-gradient(180deg, #0f1913 0%, #0a120d 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.news-product:before {
  content: "";
  position: absolute;
  left: 18%;
  top: -22%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(156, 219, 61, 0.09),
    transparent 68%
  );
  pointer-events: none;
}
.news-field.run .news-product {
  opacity: 1;
  transform: none;
}
.news-appbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.news-branddot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(154, 216, 59, 0.55);
}
.news-searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #7f8e84;
  font-size: 11px;
}
.news-searchbar i {
  color: #9fbf7b;
  font-size: 11px;
}
.news-appicons {
  display: flex;
  gap: 8px;
}
.news-appicons span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}
.news-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(255px, 0.85fr);
  gap: 14px;
  height: calc(100% - 54px);
}
.news-browser,
.tag-assistant {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(
    180deg,
    rgba(19, 30, 23, 0.96),
    rgba(10, 17, 13, 0.96)
  );
  overflow: hidden;
}
.news-browser {
  padding: 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.news-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(187, 248, 108, 0.1);
  background: #0b140f;
  width: max-content;
  margin-bottom: 15px;
}
.news-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  color: #829087;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.25s ease;
}
.news-tab:hover {
  color: #dfe9dc;
}
.news-tab.active {
  background: rgba(154, 216, 59, 0.12);
  border-color: rgba(187, 248, 108, 0.18);
  color: #f0f7ec;
}
.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.feed-kicker {
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #718078;
  margin-bottom: 6px;
}
.feed-title {
  font-size: 18px;
  color: #eef5ec;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.feed-count {
  font-size: 9px;
  color: #829087;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  white-space: nowrap;
}
.headline-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}
.headline-list::-webkit-scrollbar {
  display: none;
}
.headline-row {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 11px;
  align-items: start;
  text-align: left;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(9px);
  transition:
    opacity 0.5s,
    transform 0.5s,
    background 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}
.news-field.run .headline-row {
  opacity: 1;
  transform: none;
}
.news-field.run .headline-row:nth-child(2) {
  transition-delay: 0.08s;
}
.news-field.run .headline-row:nth-child(3) {
  transition-delay: 0.16s;
}
.news-field.run .headline-row:nth-child(4) {
  transition-delay: 0.24s;
}
.headline-row:hover,
.headline-row:focus-visible {
  border-color: rgba(187, 248, 108, 0.14);
  background: rgba(154, 216, 59, 0.035);
  outline: none;
}
.headline-row.active {
  border-color: rgba(187, 248, 108, 0.24);
  background: rgba(154, 216, 59, 0.07);
  box-shadow: inset 3px 0 var(--green);
}
.source-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0c1510;
  border: 1px solid rgba(187, 248, 108, 0.11);
  color: #a8c98a;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}
.headline-main {
  min-width: 0;
}
.headline-main strong {
  display: block;
  color: #e6eee5;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 6px;
}
.headline-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 8.5px;
  color: #748178;
}
.headline-meta span + span:before {
  content: "•";
  margin-right: 7px;
  color: #516057;
}
.ai-route-pill {
  align-self: center;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(187, 248, 108, 0.12);
  background: #0d1711;
  color: #93a28f;
  font-size: 8px;
  white-space: nowrap;
  opacity: 0.6;
  transition: 0.25s;
}
.headline-row.active .ai-route-pill {
  opacity: 1;
  color: #d6e9bf;
  border-color: rgba(187, 248, 108, 0.24);
  background: rgba(154, 216, 59, 0.08);
}
.feed-foot {
  margin-top: auto;
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #68766d;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.feed-foot b {
  font-weight: 650;
  color: #abc68d;
}

.tag-assistant {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.assistant-head b {
  font-size: 14px;
  color: #f1f7ef;
  letter-spacing: -0.02em;
}
.assistant-head span {
  font-size: 9px;
  color: #7e8d83;
}
.assistant-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(154, 216, 59, 0.06);
  border: 1px solid rgba(186, 246, 108, 0.1);
  font-size: 9px;
  color: #b8c9aa;
}
.assistant-badge i {
  color: var(--green);
}
.tag-focuscard {
  position: relative;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, #121d16, #0c1410);
  /* overflow: hidden; */
}
.tag-focuscard:after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(178, 245, 105, 0.11),
    transparent
  );
  transform: skewX(-16deg);
  opacity: 0;
}
.tag-assistant.processing .tag-focuscard:after {
  opacity: 1;
  animation: scanArticle 1.05s ease forwards;
}
@keyframes scanArticle {
  from {
    left: -35%;
  }
  to {
    left: 125%;
  }
}
.tag-focuscard small {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--green2);
  margin-bottom: 7px;
}
.tag-focuscard b {
  display: block;
  font-size: 11.5px;
  line-height: 1.38;
  color: #e5efe4;
  min-height: 32px;
}
.tag-focuscard span {
  display: block;
  margin-top: 7px;
  font-size: 8.7px;
  color: #728078;
  line-height: 1.45;
}
.ai-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  position: relative;
}
.ai-pipeline:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 15px;
  height: 1px;
  background: rgba(187, 248, 108, 0.1);
}
.pipe-step {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #66756b;
  font-size: 8px;
  transition: 0.25s;
}
.pipe-dot {
  width: 30px;
  height: 30px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b140f;
  color: #637267;
  font-size: 10px;
  transition: 0.25s;
}
.pipe-step.done {
  color: #c9ddba;
}
.pipe-step.done .pipe-dot {
  border-color: rgba(187, 248, 108, 0.25);
  color: #dff1c9;
  background: rgba(154, 216, 59, 0.1);
  box-shadow: 0 0 18px rgba(154, 216, 59, 0.08);
}
.pipe-step.live .pipe-dot {
  animation: tagPulse 0.75s ease infinite alternate;
}
@keyframes tagPulse {
  to {
    box-shadow:
      0 0 0 5px rgba(154, 216, 59, 0.055),
      0 0 22px rgba(154, 216, 59, 0.16);
  }
}
.tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 55px;
  align-content: flex-start;
}
.tag-chip {
  padding: 7px 9px;
  border-radius: 999px;
  background: #101a14;
  border: 1px solid rgba(186, 246, 108, 0.1);
  font-size: 9px;
  color: #dce8d9;
  opacity: 0;
  transform: translateY(5px) scale(0.97);
  transition: 0.35s;
}
.tag-chip.show {
  opacity: 1;
  transform: none;
}
.tag-chip.em {
  background: rgba(154, 216, 59, 0.11);
  border-color: rgba(186, 246, 108, 0.18);
  color: #eff8ea;
}
.route-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.route-cell {
  padding: 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #0c1510;
}
.route-cell label {
  display: block;
  font-size: 7.5px;
  color: #708077;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}
.route-cell b {
  display: block;
  font-size: 10px;
  color: #dfe9dd;
  line-height: 1.3;
}
.route-cell span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: #66746b;
}
.ai-log {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.log-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  color: #68766d;
  opacity: 0.38;
  transition: 0.25s;
}
.log-line:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #526057;
}
.log-line.on {
  opacity: 1;
  color: #a8ba9c;
}
.log-line.on:before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(154, 216, 59, 0.45);
}
.assist-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 8.2px;
  color: #748178;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cde7ab;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(154, 216, 59, 0.45);
}
@media (max-width: 640px) {
  .news-shell {
    grid-template-columns: 1fr;
  }
  .tag-assistant {
    min-height: 360px;
  }
  .headline-list {
    max-height: none;
  }
  .route-box {
    grid-template-columns: 1fr;
  }
  .news-field {
    inset: 72px 12px 42px;
  }
}

/* For You */
.fy-stage {
  position: absolute;
  inset: 76px 20px 42px;
}
.fy-product {
  height: 100%;
  padding: 13px;
  border-radius: 24px;
  border: 1px solid rgba(187, 248, 108, 0.13);
  background: linear-gradient(180deg, #0f1913 0%, #09110d 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(14px) scale(0.988);
  transition: 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.foryou.run .fy-product {
  opacity: 1;
  transform: none;
}
.fy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 38px;
  margin-bottom: 10px;
}
.fy-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fy-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(154, 216, 59, 0.5);
}
.fy-title {
  font-size: 13px;
  font-weight: 700;
  color: #eff5ec;
  letter-spacing: -0.02em;
}
.fy-title span {
  color: #8d9b91;
  font-size: 9px;
  font-weight: 500;
  margin-left: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fy-ai-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(190, 252, 109, 0.14);
  border-radius: 999px;
  background: rgba(154, 216, 59, 0.07);
  font-size: 9px;
  color: #cfe2b8;
}
.fy-ai-state:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(154, 216, 59, 0.6);
  animation: fyPulse 1.8s ease-in-out infinite;
}
@keyframes fyPulse {
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}
.fy-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  gap: 11px;
  height: calc(100% - 48px);
  min-width: 0;
}
.fy-feed,
.fy-engine {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(18, 29, 22, 0.96),
    rgba(9, 15, 11, 0.96)
  );
  overflow: hidden;
}
.fy-feed {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.fy-section {
  min-width: 0;
}
.fy-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 1px 8px;
}
.fy-section-head b {
  font-size: 11px;
  color: #edf3ea;
  font-weight: 650;
  line-height: 1.3;
}
.fy-section-head b em {
  font-style: normal;
  color: var(--green2);
}
.fy-section-head span {
  font-size: 8px;
  color: #738078;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.fy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fy-card {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: #0d1610;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: 0.26s ease;
}
.fy-card:hover,
.fy-card.selected {
  border-color: rgba(190, 252, 109, 0.28);
  background: #111e15;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.17);
}
.fy-cover {
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 9px;
  background: linear-gradient(135deg, #1d3023, #263c2b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.fy-card:nth-child(2) .fy-cover {
  background: linear-gradient(135deg, #243126, #314732);
}
.fy-card:nth-child(3) .fy-cover {
  background: linear-gradient(135deg, #16291d, #2a3b2d);
}
.fy-cover i {
  font-size: 13px;
  color: #cde5ae;
}
.fy-match {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(8, 15, 10, 0.58);
  border: 1px solid rgba(190, 252, 109, 0.14);
  font-size: 8px;
  color: #d9ecbe;
}
.fy-body {
  padding: 8px 9px 9px;
}
.fy-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  color: #8a9a8f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.fy-type i {
  color: #a5d257;
  font-size: 8px;
}
.fy-card strong {
  display: block;
  font-size: 9.5px;
  line-height: 1.32;
  color: #e4ece3;
  font-weight: 600;
  min-height: 38px;
}
.fy-source {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  color: #69776e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fy-feedback-mini {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: rgba(6, 11, 8, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 7px;
  color: #85938a;
  opacity: 0;
  transition: 0.2s;
}
.fy-card:hover .fy-feedback-mini,
.fy-card.selected .fy-feedback-mini {
  opacity: 1;
}
.fy-engine {
  padding: 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.fy-engine:before {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 216, 59, 0.1), transparent 68%);
  pointer-events: none;
}
.fy-engine-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.fy-engine-head b {
  font-size: 12px;
  color: #eef5eb;
}
.fy-engine-head span {
  font-size: 8px;
  color: #75847a;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.fy-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.fy-signal {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #0c1510;
}
.fy-signal label {
  display: block;
  font-size: 7px;
  color: #68776d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.fy-signal b {
  display: block;
  font-size: 9px;
  color: #dce7d8;
  line-height: 1.25;
  font-weight: 600;
}
.fy-why {
  padding: 10px;
  border-radius: 13px;
  border: 1px solid rgba(190, 252, 109, 0.11);
  background: rgba(154, 216, 59, 0.045);
  margin-bottom: 9px;
  position: relative;
  overflow: hidden;
}
.fy-why:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green);
  opacity: 0.7;
}
.fy-why small {
  display: block;
  font-size: 7.5px;
  color: var(--green2);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 6px;
}
.fy-why b {
  display: block;
  font-size: 10px;
  color: #e6eee3;
  line-height: 1.35;
  margin-bottom: 6px;
}
.fy-why p {
  margin: 0 !important;
  font-size: 8.5px !important;
  line-height: 1.45 !important;
  color: #819087 !important;
}
.fy-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
}
.fy-reason {
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(186, 246, 108, 0.11);
  background: #101a14;
  font-size: 7.5px;
  color: #a9b8ab;
}
.fy-scorebox {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.fy-score-ring {
  --score: 92;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) calc(var(--score) * 1%),
    rgba(255, 255, 255, 0.06) 0
  );
  display: grid;
  place-items: center;
  position: relative;
}
.fy-score-ring:after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #0c1510;
}
.fy-score-ring b {
  position: relative;
  z-index: 1;
  font-size: 9px;
  color: #eaf4e4;
}
.fy-score-copy small {
  display: block;
  color: #728077;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.fy-score-copy b {
  font-size: 9.5px;
  color: #dfe9db;
}
.fy-feedback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}
.fy-feedback button {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0c1510;
  color: #8e9d93;
  border-radius: 10px;
  padding: 8px 7px;
  font-size: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.fy-feedback button:hover,
.fy-feedback button.active {
  border-color: rgba(190, 252, 109, 0.22);
  color: #e9f4e3;
  background: rgba(154, 216, 59, 0.075);
}
.fy-learn {
  min-height: 19px;
  margin-top: 7px;
  font-size: 7.5px;
  color: #738178;
  text-align: center;
  transition: 0.25s;
}
.fy-learn.on {
  color: #cbe5ac;
}
.foryou.run .fy-card {
  animation: fyCardIn 0.55s both;
}
.foryou.run .fy-card:nth-child(2) {
  animation-delay: 0.08s;
}
.foryou.run .fy-card:nth-child(3) {
  animation-delay: 0.16s;
}
.foryou.run .fy-section:nth-child(2) .fy-card {
  animation-delay: 0.2s;
}
.foryou.run .fy-section:nth-child(2) .fy-card:nth-child(2) {
  animation-delay: 0.28s;
}
.foryou.run .fy-section:nth-child(2) .fy-card:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes fyCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .fy-shell {
    grid-template-columns: 1fr;
  }
  .fy-engine {
    min-height: 300px;
  }
  .fy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fy-card:nth-child(3) {
    display: none;
  }
  .fy-stage {
    inset: 72px 12px 40px;
  }
}

/* Top Stories */
.ts-stage {
  position: absolute;
  inset: 76px 20px 42px;
}
.ts-product {
  height: 100%;
  padding: 13px;
  border-radius: 24px;
  border: 1px solid rgba(187, 248, 108, 0.13);
  background: linear-gradient(180deg, #0f1913 0%, #09110d 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(14px) scale(0.988);
  transition: 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  position: relative;
}
.topstories.run .ts-product {
  opacity: 1;
  transform: none;
}
.ts-product:before {
  content: "";
  position: absolute;
  left: 32%;
  top: 15%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(154, 216, 59, 0.09),
    transparent 68%
  );
  pointer-events: none;
}
.ts-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 38px;
  margin-bottom: 10px;
}
.ts-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ts-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(154, 216, 59, 0.5);
}
.ts-title {
  font-size: 13px;
  font-weight: 700;
  color: #eff5ec;
  letter-spacing: -0.02em;
}
.ts-title span {
  color: #7d8c82;
  font-size: 8px;
  font-weight: 500;
  margin-left: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(190, 252, 109, 0.13);
  border-radius: 999px;
  background: rgba(154, 216, 59, 0.06);
  font-size: 8.5px;
  color: #c8dcb2;
  white-space: nowrap;
}
.ts-live:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(154, 216, 59, 0.6);
  animation: tsPulse 1.8s ease-in-out infinite;
}
@keyframes tsPulse {
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}
.ts-contexts {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ts-context {
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: #0c1510;
  color: #829087;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 8.5px;
  cursor: pointer;
  transition: 0.22s;
}
.ts-context:hover,
.ts-context.active {
  border-color: rgba(190, 252, 109, 0.22);
  background: rgba(154, 216, 59, 0.08);
  color: #eef7e8;
}
.stage-chapter:hover b,
.ai-service:hover b,
.news-tab:hover,
.fy-feedback button:hover,
.ts-context:hover {
  color: #c8eb7f;
}
.ts-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(160px, 0.92fr) minmax(
      230px,
      1.35fr
    );
  gap: 10px;
  height: calc(100% - 90px);
  min-height: 0;
}
.ts-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(18, 29, 22, 0.96),
    rgba(10, 17, 13, 0.96)
  );
  overflow: hidden;
}
.ts-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.ts-panel-head b {
  font-size: 10px;
  color: #eaf2e8;
}
.ts-panel-head span {
  font-size: 7.5px;
  color: #6e7c73;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.ts-sources {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100% - 42px);
  overflow: hidden;
}
.ts-source {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: #0b140f;
  opacity: 0.48;
  transform: translateX(-5px);
  transition: 0.32s;
}
.topstories.harvesting .ts-source {
  opacity: 1;
  transform: none;
}
.topstories.harvesting .ts-source:nth-child(2) {
  transition-delay: 0.08s;
}
.topstories.harvesting .ts-source:nth-child(3) {
  transition-delay: 0.16s;
}
.topstories.harvesting .ts-source:nth-child(4) {
  transition-delay: 0.24s;
}
.topstories.harvesting .ts-source:nth-child(5) {
  transition-delay: 0.32s;
}
.topstories.harvesting .ts-source:nth-child(6) {
  transition-delay: 0.4s;
}
.ts-source-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(154, 216, 59, 0.07);
  border: 1px solid rgba(190, 252, 109, 0.1);
  color: #a9cf74;
  font-size: 8px;
}
.ts-source b {
  font-size: 8.5px;
  color: #cdd8ce;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-source small {
  display: block;
  font-size: 7px;
  color: #627067;
  margin-top: 2px;
}
.ts-source em {
  font-style: normal;
  font-size: 7px;
  color: #748178;
}
.ts-source-stream {
  margin-top: auto;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(154, 216, 59, 0.045);
  border: 1px solid rgba(190, 252, 109, 0.08);
  font-size: 7.5px;
  color: #819078;
  line-height: 1.4;
}
.ts-source-stream strong {
  color: #cfe5b0;
  font-weight: 650;
}
.ts-engine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 10px;
  overflow: hidden;
}
.ts-query {
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid rgba(190, 252, 109, 0.11);
  background: #0b140f;
  margin-bottom: 9px;
}
.ts-query small {
  display: block;
  font-size: 6.8px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #6f7e74;
  margin-bottom: 5px;
}
.ts-query b {
  display: block;
  font-size: 8.5px;
  line-height: 1.35;
  color: #dce9d6;
  font-weight: 600;
}
.ts-vector-core {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 4px 0 9px;
  background: radial-gradient(
    circle,
    rgba(154, 216, 59, 0.13),
    rgba(9, 17, 12, 0.86) 64%
  );
  border: 1px solid rgba(190, 252, 109, 0.19);
  box-shadow: 0 0 28px rgba(154, 216, 59, 0.055);
}
.ts-vector-core:before,
.ts-vector-core:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(190, 252, 109, 0.09);
  inset: -15px;
}
.ts-vector-core:after {
  inset: -30px;
  border-color: rgba(190, 252, 109, 0.05);
}
.ts-vector-core .node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ad83b;
  box-shadow: 0 0 8px rgba(154, 216, 59, 0.55);
  opacity: 0.35;
}
.ts-vector-core .node:nth-child(1) {
  left: 22%;
  top: 30%;
}
.ts-vector-core .node:nth-child(2) {
  right: 24%;
  top: 25%;
}
.ts-vector-core .node:nth-child(3) {
  left: 29%;
  bottom: 22%;
}
.ts-vector-core .node:nth-child(4) {
  right: 20%;
  bottom: 30%;
}
.ts-vector-core .node:nth-child(5) {
  left: 48%;
  top: 17%;
}
.ts-vector-core .node:nth-child(6) {
  left: 48%;
  bottom: 16%;
}
.topstories.embedding .ts-vector-core .node {
  animation: vectorNode 0.8s ease-in-out infinite alternate;
}
.topstories.embedding .ts-vector-core .node:nth-child(2) {
  animation-delay: 0.1s;
}
.topstories.embedding .ts-vector-core .node:nth-child(3) {
  animation-delay: 0.2s;
}
.topstories.embedding .ts-vector-core .node:nth-child(4) {
  animation-delay: 0.3s;
}
@keyframes vectorNode {
  to {
    opacity: 1;
    transform: scale(1.65);
  }
}
.ts-core-label {
  position: relative;
  z-index: 2;
  text-align: center;
}
.ts-core-label i {
  display: block;
  color: var(--green);
  font-size: 18px;
  margin-bottom: 5px;
}
.ts-core-label b {
  display: block;
  font-size: 9.5px;
  color: #eef5ea;
}
.ts-core-label span {
  display: block;
  font-size: 6.8px;
  color: #718077;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-pipeline {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: auto;
}
.ts-step {
  text-align: center;
  font-size: 6.6px;
  color: #617067;
  transition: 0.2s;
}
.ts-step i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b140f;
  color: #59685e;
  font-size: 8px;
  transition: 0.2s;
}
.ts-step.done {
  color: #c6d9b7;
}
.ts-step.done i,
.ts-step.live i {
  border-color: rgba(190, 252, 109, 0.22);
  background: rgba(154, 216, 59, 0.09);
  color: #dff0cb;
}
.ts-step.live i {
  animation: stepGlow 0.6s ease infinite alternate;
}
@keyframes stepGlow {
  to {
    box-shadow:
      0 0 0 4px rgba(154, 216, 59, 0.05),
      0 0 16px rgba(154, 216, 59, 0.14);
  }
}
.ts-results {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ts-results-list {
  padding: 9px;
  display: grid;
  gap: 7px;
  overflow: hidden;
}
.ts-story {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: #0b140f;
  opacity: 0.15;
  transform: translateX(8px);
  transition: 0.4s;
}
.topstories.ranking .ts-story {
  opacity: 1;
  transform: none;
}
.topstories.ranking .ts-story:nth-child(2) {
  transition-delay: 0.1s;
}
.topstories.ranking .ts-story:nth-child(3) {
  transition-delay: 0.2s;
}
.ts-score {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(154, 216, 59, 0.07);
  border: 1px solid rgba(190, 252, 109, 0.1);
  display: grid;
  place-items: center;
  text-align: center;
}
.ts-score b {
  font-size: 11px;
  color: #dff1c8;
}
.ts-score small {
  display: block;
  font-size: 6px;
  color: #6f7e74;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.ts-story-copy {
  min-width: 0;
}
.ts-story-copy small {
  display: block;
  font-size: 6.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8cab6d;
  margin-bottom: 4px;
}
.ts-story-copy b {
  display: block;
  font-size: 9px;
  line-height: 1.35;
  color: #e0e9df;
  font-weight: 600;
}
.ts-story-copy span {
  display: block;
  font-size: 7px;
  color: #68766d;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-rank {
  font-size: 8px;
  color: #66756b;
  padding-top: 2px;
}
.ts-story:first-child .ts-rank {
  color: var(--green);
}
.ts-engine-log {
  margin: 0 9px 9px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(154, 216, 59, 0.035);
  border: 1px solid rgba(190, 252, 109, 0.075);
  font-size: 7px;
  color: #748178;
  line-height: 1.45;
}
.ts-engine-log strong {
  color: #c8dfaa;
  font-weight: 650;
}
.ts-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 7px;
  color: #65736a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-statusbar .live {
  color: #c8dfaa;
}
.ts-statusbar .live:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(154, 216, 59, 0.45);
  margin-right: 5px;
  vertical-align: 1px;
}
@media (max-width: 760px) {
  .ts-shell {
    grid-template-columns: 1fr;
  }
  .ts-engine {
    min-height: 300px;
  }
  .ts-stage {
    inset: 72px 12px 40px;
  }
  .ts-sources {
    max-height: 250px;
  }
  .ts-results-list {
    overflow: visible;
  }
}

/* AI Search */
.search-demo {
  position: absolute;
  inset: 0;
  padding: 108px 35px 48px;
}
.search-shell {
  border: 1px solid rgba(190, 252, 109, 0.15);
  background: #0b1510;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.012),
    0 20px 60px rgba(0, 0, 0, 0.25);
}
.search-glyph {
  width: 20px;
  height: 20px;
  border: 2px solid #8fb66c;
  border-radius: 50%;
  position: relative;
}
.search-glyph:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #8fb66c;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}
.typed {
  font-size: 14px;
  color: #dbe4dd;
  min-height: 21px;
}
.caret {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--green);
  vertical-align: -3px;
  animation: blink 1s infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.intent-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 21px;
  opacity: 0;
  transform: translateY(7px);
  transition: 0.5s;
}
.search-demo.run .intent-row {
  opacity: 1;
  transform: none;
  transition-delay: 1.25s;
}
.intent {
  font-size: 9px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(153, 216, 59, 0.07);
  border: 1px solid rgba(186, 246, 108, 0.13);
  color: #a7b4aa;
}
.result-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
}
.result {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: #0e1912;
  border-radius: 16px;
  padding: 15px;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.55s;
}
.search-demo.run .result {
  opacity: 1;
  transform: none;
  transition-delay: 1.55s;
}
.search-demo.run .result:nth-child(2) {
  transition-delay: 1.7s;
}
.search-demo.run .result:nth-child(3) {
  transition-delay: 1.85s;
}
.search-demo.run .result:nth-child(4) {
  transition-delay: 2s;
}
.rtype {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}
.result b {
  font-size: 11px;
  line-height: 1.35;
  color: #d5ded7;
  display: block;
  margin: 7px 0;
}
.result span {
  font-size: 9px;
  color: #65746b;
}

.closing {
  min-height: 92vh;
  padding: 130px clamp(35px, 7vw, 112px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-inner {
  max-width: 980px;
  position: relative;
  z-index: 2;
}
.closing .eyebrow {
  color: var(--green);
}
.closing h2 {
  font-size: clamp(54px, 7vw, 105px);
  line-height: 0.93;
  letter-spacing: -0.065em;
  margin: 0 0 28px;
}
.closing h2 em {
  font-style: normal;
  color: var(--green);
}
.closing p {
  font-size: 19px;
  line-height: 1.65;
  color: #aebbb2;
  max-width: 760px;
  margin: 0 auto 36px;
}
.closing strong {
  color: #eef5eb;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--green);
  color: #0a110c;
  border-radius: 999px;
  padding: 15px 20px;
  font-weight: 750;
  box-shadow: 0 18px 50px rgba(100, 158, 31, 0.15);
  transform: translateY(0);
  transition: 0.35s;
}
.cta:hover {
  box-shadow: 0 18px 52px rgba(100, 158, 31, 0.25);
  filter: brightness(1.05);
  color: #0a110c;
  transform: translateY(-1px);
}
.closing-orbit {
  position: absolute;
  width: 850px;
  height: 850px;
  border-radius: 50%;
  border: 1px solid rgba(171, 236, 89, 0.06);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.closing-orbit:before,
.closing-orbit:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(171, 236, 89, 0.045);
  inset: 85px;
}
.closing-orbit:after {
  inset: 180px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.visible .reveal {
  opacity: 1;
  transform: none;
}

/* v2 interaction polish */
.ts-engine {
  padding: 14px 14px 12px;
  overflow: hidden;
  justify-content: flex-start;
}
.ts-query {
  margin-bottom: 12px;
}
.ts-vector-core {
  width: 96px;
  height: 96px;
  margin: 17px auto 14px;
  flex: 0 0 auto;
}
.ts-vector-core:before {
  inset: -9px;
  border-color: rgba(190, 252, 109, 0.11);
}
.ts-vector-core:after {
  inset: -16px;
  border-color: rgba(190, 252, 109, 0.065);
}
.ts-core-label {
  width: 84px;
  max-width: 84px;
  margin: auto;
}
.ts-core-label i {
  font-size: 16px;
  margin-bottom: 4px;
}
.ts-core-label b {
  font-size: 9px;
  line-height: 1.2;
}
.ts-core-label span {
  font-size: 6.1px;
  line-height: 1.25;
  letter-spacing: 0.055em;
  margin-top: 3px;
  white-space: normal;
}
.ts-pipeline {
  margin-top: 12px;
}

/* Approximately 10% stronger green feedback on hover/selection */
.stage-chapter:hover,
.stage-chapter.active {
  background: rgba(139, 209, 53, 0.14);
  box-shadow: 0 0 24px rgba(154, 216, 59, 0.07);
}
.ai-service:hover,
.ai-service.active {
  background: rgba(137, 202, 57, 0.13);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(134, 204, 50, 0.11);
}
.news-tab:hover,
.news-tab.active {
  background: rgba(154, 216, 59, 0.15);
  border-color: rgba(187, 248, 108, 0.23);
}
.headline-row:hover,
.headline-row:focus-visible,
.headline-row.active {
  background: rgba(154, 216, 59, 0.095);
  border-color: rgba(187, 248, 108, 0.27);
}
.fy-card:hover,
.fy-card.selected {
  background: rgba(17, 30, 21, 0.98);
  border-color: rgba(190, 252, 109, 0.34);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.17),
    0 0 24px rgba(154, 216, 59, 0.07);
}
.fy-feedback button:hover,
.fy-feedback button.active {
  background: rgba(154, 216, 59, 0.105);
  border-color: rgba(190, 252, 109, 0.28);
}
.ts-context:hover,
.ts-context.active {
  background: rgba(154, 216, 59, 0.11);
  border-color: rgba(190, 252, 109, 0.28);
  box-shadow: 0 0 18px rgba(154, 216, 59, 0.055);
}
.cta:hover {
  box-shadow: 0 18px 52px rgba(100, 158, 31, 0.25);
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .ai-system {
    inset: 18px 8px 112px;
  }
  .ai-core {
    width: 120px;
    height: 120px;
    top: 50%;
  }
  .ai-core:before {
    inset: -14px;
  }
  .ai-core:after {
    inset: -29px;
  }
  .ai-core-mark {
    width: 52px;
    height: 44px;
  }
  .ai-core-mark img {
    width: 52px;
  }
  .ai-core b {
    font-size: 11px;
  }
  .ai-core small {
    font-size: 8px;
  }
  .ai-service {
    width: 122px;
    min-height: 58px;
    padding: 8px 9px;
  }
  .ai-service .svc-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-bottom: 5px;
  }
  .ai-service b {
    font-size: 0.78rem;
  }
  .ai-service span {
    display: none;
  }
  .svc1 {
    left: 0;
    top: 2%;
  }
  .svc2 {
    right: 0;
    top: 2%;
  }
  .svc3 {
    left: 1%;
    bottom: 2%;
  }
  .svc4 {
    right: 1%;
    bottom: 2%;
  }
  .in1,
  .in2 {
    top: 31%;
  }
  .in3,
  .in4 {
    bottom: 31%;
  }
  .library-input {
    font-size: 8px;
    padding: 6px 8px;
  }
  .hero-cta-note {
    width: 100%;
    max-width: 310px;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }
  .hero-stage {
    height: 560px;
  }
  .chapter,
  .chapter:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .chapter:nth-child(even) .copy,
  .chapter:nth-child(even) .demo {
    order: initial;
  }
  .demo {
    min-height: 560px;
  }
  .timeline-rail {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 100px 18px 50px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-stage {
    height: 510px;
    min-height: 0;
    border-radius: 22px;
  }
  .stage-chapters {
    grid-template-columns: 1fr 1fr;
  }
  .chapter,
  .chapter:nth-child(even) {
    padding: 80px 18px;
  }
  .chapter h3 {
    font-size: 48px;
  }
  .chapter p {
    font-size: 15px;
  }
  .demo {
    min-height: 525px;
    border-radius: 22px;
  }
  .rec-stack {
    grid-template-columns: 1fr;
  }
  .rec:nth-child(3) {
    display: none;
  }
  .focus-column {
    width: 56%;
    right: 20px;
  }
  .source-chip:nth-child(n + 7) {
    display: none;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .result:nth-child(n + 3) {
    display: none;
  }
  .closing {
    padding: 110px 20px;
  }
  .closing p {
    font-size: 16px;
  }
}
