/* ═══════════════════════════════════════════════
   VidTrigger / Outpost 42 — Shared Styles
   Design system: OLED Dark Mode · Inter · Pink+Blue
   ═══════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ────────────────────────────── */
:root {
  --bg:          #0F172A;
  --bg-muted:    #1E293B;
  --bg-surface:  #1A2540;
  --fg:          #FFFFFF;
  --fg-muted:    rgba(255,255,255,0.60);
  --fg-subtle:   rgba(255,255,255,0.35);
  --primary:     #3D8EC9;
  --primary-dk:  #2B6FAE;
  --accent:      #1A5FA0;
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(61,142,201,0.40);
  --glow-pink:   0 0 32px rgba(61,142,201,0.35);
  --glow-blue:   0 0 32px rgba(61,142,201,0.30);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 9999px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Skip link ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: top .2s ease-out;
}
.skip-link:focus { top: .75rem; }

/* ─── Layout helpers ────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

/* ─── Typography ────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .875rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-desc { margin: .75rem auto 0; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  min-height: 48px;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out, opacity 150ms ease-out;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-pill); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(236,72,153,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-pink), 0 8px 28px rgba(236,72,153,.35);
}

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 0;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}
.nav.scrolled {
  background: rgba(15,23,42,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav__logo-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav__logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.nav__logo-sub {
  font-size: .6875rem;
  color: var(--fg-subtle);
  font-weight: 400;
  letter-spacing: .04em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin-left: auto;
}
.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 150ms ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:focus-visible { outline: 2px solid var(--primary); border-radius: 4px; outline-offset: 3px; }
.nav__cta { margin-left: 1rem; }
.nav__cta .btn { padding: .6rem 1.25rem; min-height: 40px; font-size: .875rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius-sm);
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.nav__hamburger:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ─── App Store Badge ────────────────────────────── */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1.375rem;
  background: #000;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  cursor: pointer;
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
  border-color: rgba(255,255,255,.35);
}
.appstore-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-md); }
.appstore-badge__icon { width: 28px; height: 28px; flex-shrink: 0; }
.appstore-badge__text { text-align: left; line-height: 1.25; }
.appstore-badge__sub { font-size: .625rem; font-weight: 400; color: rgba(255,255,255,.7); letter-spacing: .04em; display: block; }
.appstore-badge__main { font-size: .9375rem; font-weight: 600; color: #fff; display: block; }

/* ─── Section divider ────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Scroll-reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer__brand-name .nav__logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
}
.footer__brand-name .nav__logo-mark img { width: 100%; height: 100%; }
.footer__brand-desc {
  font-size: .8125rem;
  color: var(--fg-subtle);
  line-height: 1.65;
  max-width: 260px;
}
.footer__col-title {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer__links a {
  font-size: .875rem;
  color: var(--fg-muted);
  transition: color 150ms ease;
}
.footer__links a:hover { color: var(--fg); }
.footer__links a:focus-visible { outline: 2px solid var(--primary); border-radius: 3px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--fg-subtle);
}

/* ─── Legal page shell ───────────────────────────── */
.legal-hero {
  padding: 7rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-hero .label { margin-bottom: .5rem; }
.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.legal-date {
  font-size: .8125rem;
  color: var(--fg-subtle);
}
.legal-content {
  padding: 3rem 0 5rem;
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}
.legal-content p {
  font-size: .9375rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: .875rem;
}
.legal-content ul, .legal-content ol {
  margin: .5rem 0 1rem 1.5rem;
}
.legal-content li {
  font-size: .9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: .35rem;
}
.legal-content strong { color: var(--fg); font-weight: 600; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--primary-dk); }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .875rem;
}
.legal-content th {
  text-align: left;
  padding: .625rem .875rem;
  background: var(--bg-muted);
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.legal-content td {
  padding: .625rem .875rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-content tr:last-child td { border-bottom: none; }

/* ─── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
