/* ================================================================
   components.css — Nav, Footer, Buttons, Cards, Badges
   ================================================================ */

/* ── Scroll Progress Bar ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  z-index: 101;
  width: 0%;
  will-change: width;
}

/* ── Nav ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
@media (min-width: 640px) { .nav__inner { padding: 0 2rem; } }

.nav__wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a.active {
  color: var(--text-primary);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 639px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    gap: 0;
  }
  .nav__links.open li { padding: 0; }
  .nav__links.open a {
    font-size: 1rem;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    width: 100%;
  }
  .nav__toggle { display: flex; }
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-blue);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 24px rgba(59, 139, 196, 0.25);
}
.btn:hover {
  background: var(--brand-blue-light);
  box-shadow: 0 0 32px rgba(59, 139, 196, 0.35);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: none;
}
.btn--outline:hover {
  border-color: var(--brand-blue);
  background: rgba(59, 139, 196, 0.08);
  box-shadow: none;
}

/* ── Pill Badge ────────────────────────────────── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
}
.pill-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── App Store Badge ───────────────────────────── */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.875rem 1.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.app-store-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 139, 196, 0.2), rgba(200, 150, 62, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.app-store-badge:hover::before { opacity: 1; }
.app-store-badge:hover {
  border-color: rgba(59, 139, 196, 0.3);
  box-shadow: 0 0 30px rgba(59, 139, 196, 0.15);
}
.app-store-badge svg { width: 28px; height: 28px; flex-shrink: 0; position: relative; z-index: 1; }
.app-store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  z-index: 1;
}
.app-store-badge__label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Cards (shared) ────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--surface-2), #080D18);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 139, 196, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::after { opacity: 1; }
.card:hover {
  border-color: rgba(59, 139, 196, 0.25);
  transform: translateY(-2px);
}

/* ── Check List ────────────────────────────────── */
.check-list {
  list-style: none;
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
}
.check-list__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-gold);
}
.check-list__icon svg { width: 14px; height: 14px; }

/* ── Section Headlines ─────────────────────────── */
.section-headline {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}
.section-body strong {
  color: var(--text-primary);
  font-weight: 600;
}
@media (min-width: 1024px) {
  .section-headline { font-size: 2.75rem; margin-bottom: 1.75rem; }
}
@media (max-width: 639px) {
  .section-headline { font-size: 1.875rem; }
  .section-body { font-size: 1rem; }
}

/* ── Pull Quote ────────────────────────────────── */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--brand-gold);
  background: rgba(200, 150, 62, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Pull Quote (mobile) ──────────────────────── */
@media (max-width: 639px) {
  .pull-quote { padding: 1.25rem 1.25rem; font-size: 1rem; }
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2.5rem;
  text-align: center;
}
.site-footer__signoff {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.site-footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.site-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.site-footer__links a:hover { color: var(--text-primary); }
.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}
.site-footer__tech {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ── Back to Top ───────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  right: calc(2rem + env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s, color 0.2s;
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--brand-blue);
  color: #fff;
}
.back-to-top svg { width: 20px; height: 20px; }

/* ── Footer links stack (small screens) ──────── */
@media (max-width: 479px) {
  .site-footer__links { flex-direction: column; gap: 0; }
}

/* ── Small screen font sizes ─────────────────── */
@media (max-width: 374px) {
  .section-headline { font-size: 1.625rem; }
}
