/* =========================================================================
   Sentinel — homepage polish layer (loaded last on the home page only).
   Uses the global tokens from styles.css; adds the aurora hero, live ticker,
   coverage panel, partner marquee and section rhythm.
   ========================================================================= */

.home-pro {
  --sx-ring: rgba(148, 178, 226, 0.16);
  --sx-panel: rgba(17, 28, 49, 0.72);
}

/* ------------------------------------------------------------------ hero */
.sx-hero { position: relative; overflow: clip; isolation: isolate; }

.sx-aurora {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  z-index: -1;
  filter: blur(90px);
  opacity: .75;
  pointer-events: none;
}
.sx-aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: sx-drift 26s var(--ease) infinite alternate;
}
.sx-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; top: 4%; left: 52%;
  background: radial-gradient(circle, rgba(59, 130, 246, .55), transparent 65%);
}
.sx-aurora span:nth-child(2) {
  width: 38vw; height: 38vw; top: 26%; left: 6%;
  background: radial-gradient(circle, rgba(56, 189, 248, .34), transparent 65%);
  animation-duration: 34s;
  animation-direction: alternate-reverse;
}
.sx-aurora span:nth-child(3) {
  width: 30vw; height: 30vw; top: 52%; left: 34%;
  background: radial-gradient(circle, rgba(52, 211, 153, .22), transparent 65%);
  animation-duration: 42s;
}
@keyframes sx-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -6vh, 0) scale(1.18); }
}

.sx-eyebrow {
  backdrop-filter: blur(8px);
  border: 1px solid var(--sx-ring);
  border-radius: 999px;
  padding: .34rem .8rem;
  background: rgba(59, 130, 246, .08);
}

.sx-h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  letter-spacing: -.035em;
  line-height: 1.04;
  background: linear-gradient(180deg, #ffffff 12%, #b9cdf0 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.sx-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.sx-cta-primary {
  position: relative;
  box-shadow: 0 16px 40px -18px rgba(59, 130, 246, .85);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sx-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -18px rgba(59, 130, 246, .95); }

.sx-proof { gap: 1.6rem; }
.sx-proof li strong {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #a8c3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sx-console {
  border: 1px solid var(--sx-ring);
  background: linear-gradient(180deg, rgba(22, 35, 60, .92), rgba(13, 21, 38, .92));
  box-shadow: 0 40px 90px -46px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* ------------------------------------------------------------ live ticker */
.sx-ticker {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--sx-ring);
  border-radius: 999px;
  background: var(--sx-panel);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sx-ticker-track {
  display: flex;
  gap: 26px;
  padding: 9px 0;
  width: max-content;
  animation: sx-scroll 38s linear infinite;
}
.sx-tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: .76rem;
  color: var(--text-dim);
  letter-spacing: .01em;
}
.sx-tick-led { width: 7px; height: 7px; border-radius: 999px; background: var(--info); flex: 0 0 auto; }
.sx-tick-ok   { background: var(--ok);   box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.sx-tick-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.sx-tick-bad  { background: var(--bad);  box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
@keyframes sx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ bento */
.sx-cell {
  position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.sx-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .14), transparent 70%);
  transition: opacity .25s var(--ease);
}
.sx-cell:hover { transform: translateY(-3px); box-shadow: 0 30px 70px -44px rgba(0, 0, 0, .9); }
.sx-cell:hover::after { opacity: 1; }

/* --------------------------------------------------------------- coverage */
.sx-coverage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--sx-ring);
  border-radius: 26px;
  background:
    radial-gradient(680px 340px at 100% 0%, rgba(59, 130, 246, .13), transparent 62%),
    var(--sx-panel);
  box-shadow: 0 44px 100px -60px rgba(0, 0, 0, .95);
}
.sx-coverage-copy h2 { margin: .4rem 0 .6rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }
.sx-coverage-copy p { max-width: 52ch; }
.sx-coverage-copy .tick-list { margin-top: 1rem; }

.sx-coverage-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sx-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 34, .55);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sx-stat span { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); }
.sx-stat strong {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.sx-stat em { font-style: normal; font-size: .76rem; color: var(--text-dim); }
.sx-stat-key {
  grid-column: span 2;
  border-color: rgba(59, 130, 246, .38);
  background: linear-gradient(180deg, rgba(59, 130, 246, .16), rgba(10, 17, 34, .55));
}
.sx-stat-wide { grid-column: span 2; }

/* ------------------------------------------------------------------ steps */
.sx-steps .hx-step { transition: transform .25s var(--ease), border-color .25s var(--ease); }
.sx-steps .hx-step:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .45); }

/* ------------------------------------------------------------------- news */
.sx-news .hx-news-card { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.sx-news .hx-news-card:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -46px rgba(0, 0, 0, .95); }
.sx-news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
}
.sx-news-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sx-news .hx-news-card:hover .sx-news-more svg { transform: translateX(4px); }

/* --------------------------------------------------------------- marquee */
.sx-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.sx-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: sx-scroll 44s linear infinite;
}
.sx-marquee:hover .sx-marquee-track,
.sx-ticker:hover .sx-ticker-track { animation-play-state: paused; }
.sx-partner { flex: 0 0 auto; }

/* ------------------------------------------------------------------- FAQ */
.sx-faq .faq-item { transition: border-color .2s var(--ease); }
.sx-faq .faq-item:hover { border-color: rgba(59, 130, 246, .38); }

/* ------------------------------------------------------------------ final */
.sx-final {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, .3);
  background:
    radial-gradient(700px 320px at 12% -20%, rgba(59, 130, 246, .3), transparent 60%),
    linear-gradient(180deg, rgba(22, 35, 60, .9), rgba(13, 21, 38, .9));
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .sx-coverage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .sx-coverage-stats { grid-template-columns: minmax(0, 1fr); }
  .sx-stat-key, .sx-stat-wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-aurora span,
  .sx-ticker-track,
  .sx-marquee-track { animation: none !important; }
  .sx-cell:hover, .sx-news .hx-news-card:hover, .sx-steps .hx-step:hover { transform: none; }
}
