
/* ==========================================================================
   How I Build : capability rails, tool chips and the stack ticker.
   Same white page, Museo Sans, grey copy and brand teal as the rest of home.
   ========================================================================== */
.home-stack { padding: 40px 0 70px; position: relative; }
.home-stack .titles { margin-bottom: 60px; }
.home-stack .titles h6 {
  color: #0097b2;
  background: linear-gradient(135deg, #0097b2 0%, #00e0ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-stack .titles p { color: #8a8a8a; max-width: 720px; text-align: center; }

.home-stack-shell {
  position: relative;
  border: 1px solid rgba(0, 151, 178, 0.14);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 151, 178, 0.09);
  padding: 44px 40px;
  overflow: hidden;
}
.home-stack-aura {
  position: absolute; top: -40%; right: -15%; width: 620px; height: 620px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.16) 0%, rgba(0, 151, 178, 0.07) 42%, rgba(255, 255, 255, 0) 70%);
  animation: homeAura 18s ease-in-out infinite alternate;
}
@keyframes homeAura {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-70px, 60px, 0) scale(1.12); }
}
.home-stack-row { position: relative; z-index: 1; }

/* ---------- Rails ---------- */
.home-rails { display: flex; flex-direction: column; gap: 6px; }
.home-rail {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left; padding: 18px 16px 18px 18px;
  background: transparent; border: 0; border-radius: 16px; cursor: pointer;
  font-family: inherit; color: inherit; overflow: hidden;
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-rail::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0;
  background: linear-gradient(180deg, #0097b2, #00e0ff); border-radius: 3px;
  transform: translateY(-50%);
  transition: height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-rail:hover { background: #f4fbfc; }
.home-rail.is-active { background: #f4fbfc; }
.home-rail.is-active::before { height: 58%; }

.home-rail-num {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.14em;
  color: #c6d4d7; transition: color 0.35s ease; flex: 0 0 auto;
}
.home-rail.is-active .home-rail-num {
  color: #0097b2;
  background: linear-gradient(135deg, #0097b2 0%, #00e0ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-rail-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-rail-label {
  font-size: 1.08rem; font-weight: 700; line-height: 1.25; color: #8a8a8a;
  transition: color 0.35s ease;
}
.home-rail.is-active .home-rail-label { color: #282828; }
.home-rail-sub {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #b0b8ba; transition: color 0.35s ease;
}
.home-rail.is-active .home-rail-sub { color: #0097b2; }

.home-rail-bar {
  position: absolute; left: 18px; right: 16px; bottom: 10px; height: 2px;
  background: rgba(0, 151, 178, 0.12); border-radius: 2px; overflow: hidden;
  opacity: 0; transition: opacity 0.3s ease;
}
.home-rail.is-active.is-auto .home-rail-bar { opacity: 1; }
.home-rail-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0097b2, #00e0ff); }
.home-rail.is-active.is-auto .home-rail-bar i { animation: homeRailFill 7s linear forwards; }
@keyframes homeRailFill { from { width: 0; } to { width: 100%; } }

/* ---------- Panel ---------- */
.home-stack-panel { padding-left: 28px; }
.home-stack-panel[hidden] { display: none; }
.home-stack-panel.is-active .home-stack-lead,
.home-stack-panel.is-active .home-stack-proof { animation: homeStackIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.home-stack-panel.is-active .home-stack-proof { animation-delay: 0.12s; }
@keyframes homeStackIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.home-stack-lead {
  font-size: 1.45rem; line-height: 1.6; font-weight: 300; letter-spacing: -0.2px;
  color: #8a8a8a; margin: 0 0 32px; max-width: 640px;
}
.home-stack-lead b { color: #282828; font-weight: 700; }

.home-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.home-tools li { float: none; width: auto; }
.home-tool {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px 11px 14px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(0, 151, 178, 0.16);
  box-shadow: 0 4px 14px rgba(0, 151, 178, 0.06);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.home-stack-panel.is-active .home-tool {
  animation: homeToolIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.1s + var(--d, 0ms));
}
@keyframes homeToolIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.home-tool:hover {
  transform: translateY(-4px);
  background: #f4fbfc;
  border-color: rgba(0, 151, 178, 0.34);
  box-shadow: 0 12px 26px rgba(0, 151, 178, 0.16);
}
.home-tool-ico { display: inline-flex; width: 21px; height: 21px; color: #0097b2; flex: 0 0 auto; }
.home-tool-ico svg { width: 100%; height: 100%; }
.home-tool-name { font-size: 0.97rem; font-weight: 700; color: #282828; white-space: nowrap; }

/* ---------- Proof ---------- */
.home-stack-proof {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 14px; max-width: 100%;
  background: #f4fbfc; border: 1px solid rgba(0, 151, 178, 0.16);
  color: #777; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-stack-proof:hover {
  color: #777; background: #eaf7fa; border-color: rgba(0, 151, 178, 0.34);
  transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 151, 178, 0.14);
}
.home-stack-proof-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #0097b2; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(0, 151, 178, 0.5); animation: homeProofDot 2.4s ease-out infinite;
}
@keyframes homeProofDot {
  0% { box-shadow: 0 0 0 0 rgba(0, 151, 178, 0.5); }
  100% { box-shadow: 0 0 0 11px rgba(0, 151, 178, 0); }
}
.home-stack-proof-text { font-size: 1rem; line-height: 1.45; }
.home-stack-proof-text strong { color: #282828; font-weight: 700; }
.home-stack-proof-arrow { color: #0097b2; font-weight: 700; transition: transform 0.3s ease; flex: 0 0 auto; }
.home-stack-proof:hover .home-stack-proof-arrow { transform: translateX(4px); }

/* ---------- Ticker ---------- */
.home-ticker {
  margin-top: 44px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.home-ticker-track { display: flex; width: max-content; animation: homeTicker 46s linear infinite; }
.home-ticker:hover .home-ticker-track { animation-play-state: paused; }
@keyframes homeTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.home-ticker-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.home-ticker-list li { float: none; width: auto; display: flex; align-items: center; }
.home-ticker-list li::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(0, 151, 178, 0.3); margin: 0 26px;
}
.home-ticker-list li span {
  font-size: 1.02rem; font-weight: 700; letter-spacing: 0.02em; color: #bcc6c8;
  white-space: nowrap; transition: color 0.3s ease;
}
.home-ticker-list li:hover span { color: #0097b2; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .home-stack-panel { padding-left: 18px; }
  .home-stack-lead { font-size: 1.3rem; }
}

@media (max-width: 991px) {
  .home-stack { padding: 30px 0 70px; }
  .home-stack-shell { padding: 30px 22px; border-radius: 22px; }
  .home-stack-aura { width: 420px; height: 420px; top: -25%; }
  .home-rails {
    flex-direction: row; gap: 8px; margin-bottom: 26px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    padding-bottom: 6px; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .home-rails::-webkit-scrollbar { height: 0; }
  .home-rail {
    flex: 0 0 auto; width: auto; scroll-snap-align: start;
    padding: 12px 16px; border: 1px solid rgba(0, 151, 178, 0.16); gap: 10px;
  }
  .home-rail::before { display: none; }
  .home-rail.is-active { border-color: rgba(0, 151, 178, 0.4); }
  .home-rail-num { font-size: 0.95rem; }
  .home-rail-label { font-size: 0.97rem; white-space: nowrap; }
  .home-rail-sub { display: none; }
  .home-rail-bar { left: 14px; right: 14px; bottom: 5px; }
  .home-stack-panel { padding-left: 0; }
  .home-stack-lead { font-size: 1.2rem; margin-bottom: 26px; }
  .home-ticker { margin-top: 34px; }
}

@media (max-width: 767px) {
  .home-stack { padding: 20px 0 56px; }
  .home-stack-shell { padding: 24px 18px; border-radius: 18px; }
  .home-stack-lead { font-size: 1.1rem; line-height: 1.65; }
  .home-tools { gap: 8px; margin-bottom: 26px; }
  .home-tool { padding: 9px 14px 9px 12px; border-radius: 12px; }
  .home-tool-name { font-size: 0.9rem; }
  .home-tool-ico { width: 18px; height: 18px; }
  .home-stack-proof { padding: 13px 16px; gap: 10px; align-items: flex-start; border-radius: 12px; }
  .home-stack-proof-dot { margin-top: 6px; }
  .home-stack-proof-text { font-size: 0.93rem; }
  .home-ticker-list li::after { margin: 0 16px; }
  .home-ticker-list li span { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-stack-aura,
  .home-ticker-track,
  .home-stack-proof-dot,
  .home-rail.is-active.is-auto .home-rail-bar i { animation: none; }
  .home-stack-panel.is-active .home-stack-lead,
  .home-stack-panel.is-active .home-stack-proof,
  .home-stack-panel.is-active .home-tool { animation: none; opacity: 1; transform: none; }
  .home-ticker-track { width: 100%; }
}
