/* ============================================================
   TVSpot — Global Styles (Base, Nav, Footer)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:              #0a0a0c;
  --bg-raised:       #111114;
  --text-primary:    #eeeef0;
  --text-secondary:  rgba(238,238,240,0.58);
  --text-muted:      rgba(238,238,240,0.28);
  --text-ultra-muted:rgba(238,238,240,0.16);

  --accent:          #1BB0E6;
  --accent-dim:      rgba(27,176,230,0.12);
  --accent-border:   rgba(27,176,230,0.22);

  --border:          rgba(255,255,255,0.06);
  --border-mid:      rgba(255,255,255,0.09);

  --radius-sm:       8px;
  --radius:          12px;
  --radius-pill:     999px;

  --font:      "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Soft glow at crown */
  background-image: radial-gradient(
    ellipse 70% 30% at 50% 0%,
    rgba(27,176,230,0.055) 0%,
    transparent 60%
  );
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── APP ICONS ──────────────────────────────────────────── */
.app-icon-img {
  width: 26px;
  height: 26px;
  border-radius: 22.5%; 
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.footer-icon .app-icon-img {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL NAV
   ═══════════════════════════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 40px);
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 6px 0 18px;
  border-radius: var(--radius-pill);
  background: rgba(16, 16, 20, 0.48);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 12px rgba(0,0,0,0.14);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(12, 12, 16, 0.90);
  border-color: rgba(255,255,255,0.11);
  box-shadow: 0 4px 24px rgba(0,0,0,0.36), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  padding: 4px 10px 4px 0;
  flex-shrink: 0;
  transition: opacity 0.16s;
}
.nav-brand:hover { opacity: 0.68; }

.brand-logo {
  height: 19px; 
  width: auto;
  display: block;
  transform: translate(5px, 1.6px); 
}

.nav-icon svg { width: 22px; height: 22px; display: block; }
.nav-icon svg circle[stroke] { stroke: var(--text-primary); }
.nav-icon svg circle[fill]   { fill: var(--text-primary); }

.nav-brand-name {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

.nav-cta {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.2s, background 0.2s;
  margin-left: 8px;
}
.nav-cta:hover {
  transform: scale(1.05);
  background: #f0f0f0;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  padding: 56px 32px 36px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  width: fit-content;
  transition: opacity 0.16s;
}
.footer-brand-row:hover { opacity: 0.68; }

.footer-brand-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.footer-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 180px;
  letter-spacing: -0.005em;
}

.footer-download {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-download-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.appstore-badge img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.76;
  transition: opacity 0.16s;
}
.appstore-badge:hover img { opacity: 1; }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: -0.005em;
  padding: 2px 0;
  margin-right: 20px;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

/* ─── GLOBAL RESPONSIVE ───────────────────────── */
@media (max-width: 640px) {
  #main-nav { width: calc(100% - 20px); top: 10px; padding: 0 4px 0 14px; }
  .nav-links .nav-link { display: none; } 
  .nav-links .nav-cta { margin-left: 0; }
  
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-download { align-items: flex-start; }
  .site-footer { padding: 44px 20px 28px; }
}