/* ============================================================================
   Silver Connection — marketing site styles
   Custom layer on top of Tailwind (Play CDN). Holds the things utilities don't
   express cleanly: glass nav, gradients, scroll-reveal, the faux dashboard.
   ============================================================================ */

:root {
  --primary: #001255;
  --primary-700: #002387;
  --tint: #124af0;
  --tint-soft: #7890ff;
  --accent: #00b048;
  --line: #dfe1ee;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* clear the fixed nav when jumping to anchors */
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #f8f9fa;
  color: #191c1d;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-headline {
  font-family: "Manrope", system-ui, sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.material-symbols-outlined.fill {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* --- Nav -------------------------------------------------------------------*/
.glass-nav {
  background: rgba(248, 249, 250, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 225, 238, 0.7);
}

/* --- Reusable surfaces -----------------------------------------------------*/
.gradient-btn {
  background-image: linear-gradient(120deg, #001255 0%, #002387 60%, #124af0 140%);
}
.gradient-text {
  background-image: linear-gradient(120deg, #124af0, #7890ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.soft-shadow {
  box-shadow: 0 18px 50px rgba(0, 18, 85, 0.08);
}
.soft-shadow-lg {
  box-shadow: 0 30px 80px rgba(0, 18, 85, 0.14);
}
.hairline {
  border: 1px solid rgba(198, 197, 212, 0.45);
}
.hero-glow {
  background: radial-gradient(closest-side, rgba(120, 144, 255, 0.45), transparent);
}
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 18, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 18, 85, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* --- Buttons ---------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}

/* --- Scroll reveal ---------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
  .bar-grow { animation: none; height: var(--h); }
}

/* --- Faux dashboard (hero) -------------------------------------------------*/
.dash {
  background: #ffffff;
  border-radius: 1rem;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 110px;
}
.dash-bars .bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7890ff, #124af0);
  height: var(--h);
}
.bar-grow {
  height: 0;
  animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes barGrow {
  to { height: var(--h); }
}
.tl-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.pulse-dot {
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --- Misc ------------------------------------------------------------------*/
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.link-underline {
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--tint);
  transition: width 0.25s ease;
}
.link-underline:hover::after {
  width: 100%;
}

/* --- Legal prose ----------------------------------------------------------*/
.legal-prose h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #001255;
  margin-top: 2rem;
}
.legal-prose h2:first-child {
  margin-top: 0;
}
.legal-prose h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #001255;
  margin-top: 1.5rem;
}
.legal-prose p {
  color: #454652;
  line-height: 1.7;
  margin-top: 0.75rem;
}
.legal-prose ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 0.75rem;
  color: #454652;
  line-height: 1.7;
}
.legal-prose ul li {
  margin-top: 0.35rem;
}
.legal-prose a {
  color: #124af0;
  font-weight: 600;
}
.legal-prose a:hover {
  text-decoration: underline;
}

/* anchor offset so section tops clear the fixed nav + sticky sub-nav */
.legal-section {
  scroll-margin-top: 8.5rem;
}
