/* Rates-theme showcase pages: Loan Matrix + Equity Bot (preview only) */
:root {
  --slate: #010319; --slate-mid: #9db0c8; --slate-soft: #0a1628;
  --teal: #7cd2fb; --teal-dark: #38bdf8; --mist: #010319; --white: #f0f6ff;
  --line: rgba(165,211,235,0.18); --star: #f59e0b;
  --glow-a: #7cd2fb; --glow-b: #38bdf8; --glow-warm: #f59e0b;
  --glass: rgba(8,16,36,0.72); --glass-edge: rgba(165,211,235,0.28);
  --text: #e8f1fb; --muted: #9db0c8; --max: 1180px;
  --blue: #7cd2fb; --blue-bright: #a5d3eb; --blue-core: #b0ebff;
  --navy: #02071b; --navy-glass: rgba(2,7,27,0.9);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --up: #ff3b2f; --down: #39ff6a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text); background: #010319; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 75% 20%, rgba(56,189,248,0.16), transparent 50%),
    radial-gradient(ellipse at 15% 70%, rgba(124,210,251,0.10), transparent 45%),
    radial-gradient(120% 80% at 70% 20%, #0c1630 0%, #010319 55%, #00010d 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Structural header/nav/footer (copied from the shared About chrome, required because
   those layout rules live in per-page CSS, not only in site-nav.css) */
.site-header {
  background: rgba(1,3,25,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(165,211,235,0.18);
}
.nav { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0; flex-wrap: wrap; }
.brand-mark { display: flex; align-items: center; }
.dattilo-lockup { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.05rem; margin-left: auto; flex-wrap: wrap; }
.nav-links > a {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #c9d2e3; padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-links > a:hover, .nav-links > a.active { color: #fff; border-bottom-color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; margin-left: 0.5rem; }
.btn-started {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.55rem 0.95rem; border-radius: 999px;
}
.phone-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--white); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.phone-link svg { color: var(--teal); }
.site-footer { background: #00010d; color: #94a3b8; padding: 2rem 0; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-info { font-size: 0.8rem; line-height: 1.55; }
.footer-info strong { color: #fff; font-weight: 800; }
.footer-info .phone-f { color: var(--teal); font-weight: 700; }
.footer-nexa { display: flex; align-items: center; padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,0.15); }
.footer-nexa img { height: 48px; width: auto; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .footer-nexa { border-left: none; padding-left: 0; }
  .nav-cta .phone-link { display: none; }
}
@media (max-width: 560px) { .wrap { width: min(100% - 1.5rem, var(--max)); } }

.sx-hero { padding: 4.4rem 0 2.2rem; text-align: center; }
.sx-kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: #7cd2fb; margin-bottom: 0.7rem;
}
.sx-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f0f6ff;
  line-height: 1.12;
  margin: 0 0 0.85rem;
}
.sx-lede {
  max-width: 38rem; margin: 0 auto 1.4rem; color: #9db0c8; font-size: 1.05rem;
}
.sx-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.sx-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.25rem; border-radius: 999px;
  background: linear-gradient(180deg, rgba(8,18,42,0.95), rgba(2,7,27,0.92));
  border: 1px solid #7cd2fb;
  color: #f0f6ff !important;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem;
  box-shadow: 0 0 18px rgba(124,210,251,0.28), inset 0 1px 0 rgba(176,235,255,0.25);
}
.sx-cta:hover { border-color: #b0ebff; box-shadow: 0 0 26px rgba(124,210,251,0.45); }
.sx-cta-ghost {
  background: transparent; border-color: rgba(165,211,235,0.35);
  box-shadow: none; color: #cfe9ff !important;
}
.sx-cta-ghost:hover { border-color: #7cd2fb; }

.sx-section { padding: 1.2rem 0 2.6rem; }
.sx-section h2 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #b0ebff; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.sx-section h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(124,210,251,0.45), transparent);
}

.sx-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .sx-grid { grid-template-columns: 1fr; } }
.sx-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.15rem 1.25rem 1.2rem;
}
.sx-card h3 {
  font-size: 1.05rem; font-weight: 800; color: #f0f6ff; letter-spacing: -0.02em; margin-bottom: 0.4rem;
}
.sx-card p { color: #c5ccd8; font-size: 0.95rem; }
.sx-icon {
  width: 2.1rem; height: 2.1rem; border-radius: 10px; margin-bottom: 0.7rem;
  display: grid; place-items: center;
  border: 1px solid rgba(124,210,251,0.45);
  background: rgba(2,7,27,0.7);
  color: #7cd2fb; font-weight: 800; font-size: 0.85rem;
}

/* Loan Matrix preview slideshow */
.lm-preview { margin-top: 0.4rem; }
.lm-stage {
  position: relative; aspect-ratio: 16 / 9.2;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(165,211,235,0.28);
  background: #02071b;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 28px rgba(124,210,251,0.08);
}
.lm-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; animation: lmCycle 20s infinite;
}
.lm-stage img:nth-child(1) { animation-delay: 0s; }
.lm-stage img:nth-child(2) { animation-delay: 5s; }
.lm-stage img:nth-child(3) { animation-delay: 10s; }
.lm-stage img:nth-child(4) { animation-delay: 15s; }
@keyframes lmCycle {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-stage img { animation: none; opacity: 0; }
  .lm-stage img:first-child { opacity: 1; }
}
.lm-caption {
  margin-top: 0.75rem; font-size: 0.8rem; color: #9db0c8; text-align: center;
}
.lm-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; margin-top: 0.85rem; }
@media (max-width: 640px) { .lm-thumbs { grid-template-columns: repeat(2, 1fr); } }
.lm-thumbs figure {
  margin: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(165,211,235,0.22); background: #02071b;
}
.lm-thumbs img { width: 100%; height: 88px; object-fit: cover; object-position: top center; }
.lm-thumbs figcaption { font-size: 0.7rem; color: #9db0c8; padding: 0.35rem 0.45rem 0.5rem; text-align: center; }

/* Equity Bot digest modeled on Lock cards */
.eb-digest-wrap { position: relative; }
.sample-badge {
  position: absolute; top: -0.65rem; right: 1rem; z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #010319; background: #7cd2fb; padding: 0.28rem 0.65rem; border-radius: 999px;
  box-shadow: 0 0 16px rgba(124,210,251,0.45);
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.15rem 1.25rem 1.2rem;
}
.card.pulse { border-color: rgba(124,210,251,0.28); box-shadow: 0 0 24px rgba(124,210,251,0.08); }
.card h2 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #b0ebff; margin-bottom: 0.35rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.card h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(124,210,251,0.45), transparent);
}
.card p, .card li { color: #c5ccd8; font-size: 0.95rem; }
.card p + p { margin-top: 0.7rem; }
.byline { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem; }
.byline strong { color: #eef2f7; }
.pulse-grid { display: grid; gap: 1rem; grid-template-columns: 1.1fr 1fr 1fr; }
@media (max-width: 860px) { .pulse-grid { grid-template-columns: 1fr; } }
.pulse-block .label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7cd2fb; margin-bottom: 0.35rem;
}
.pulse-stat {
  font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; color: #f0f6ff; line-height: 1.1;
}
.pulse-stat.up { color: #39ff6a; } /* value up is good for equity, green like Rates DOWN/good */
.pulse-note { font-size: 0.8rem !important; color: #9db0c8 !important; margin-top: 0.25rem !important; }
.eb-lists { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1.1rem; }
@media (max-width: 760px) { .eb-lists { grid-template-columns: 1fr; } }
.eb-lists ul { margin: 0; padding-left: 1.1rem; }
.eb-lists li { margin: 0.3rem 0; }
.eb-disclaimer { margin-top: 1.15rem; font-size: 0.78rem !important; color: #8b96a8 !important; }

.hotspots { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .hotspots { grid-template-columns: 1fr; } }
.hot {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px; padding: 0.95rem 1rem;
}
.hot .tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #7cd2fb; }
.hot h3 { font-size: 1rem; margin: 0.25rem 0 0.35rem; color: #f0f6ff; }
.hot p { color: #c5ccd8; font-size: 0.88rem; }

.sx-close { padding: 0 0 3.6rem; text-align: center; }
.sx-close p { color: #9db0c8; max-width: 34rem; margin: 0 auto 1.1rem; }

.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2rem; margin-top: 1rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-info { font-size: 0.82rem; color: #9db0c8; }
.footer-info strong { color: #e8f1fb; }
.phone-f { color: #7cd2fb; font-weight: 700; }
.footer-nexa img { height: 42px; width: auto; }
@media (max-width: 560px) {
  .footer-nexa { border-left: none; padding-left: 0; }
}
