/* ============================================
   GoSwim Apps Hub - Shared Stylesheet
   ============================================ */

:root {
  --navy-deep: #0a1f3d;
  --navy: #0f2647;
  --navy-light: #14315a;
  --gold: #e6b34a;
  --gold-bright: #f0bc52;
  --cream: #f5f1e8;
  --white: #ffffff;
  --muted: rgba(245, 241, 232, 0.65);
  --border: rgba(230, 179, 74, 0.18);
  --border-soft: rgba(245, 241, 232, 0.08);

  --font-display: 'Oswald', 'Bebas Neue', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ---------- LAYOUT ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 31, 61, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; max-width: 1180px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; height: 40px; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 0.3px; opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a.cta {
  background: var(--gold); color: var(--navy-deep);
  padding: 8px 18px; border-radius: 4px; opacity: 1;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--gold-bright); color: var(--navy-deep); }

/* ---------- HERO ---------- */
.hero { padding: 88px 0 56px; text-align: center; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 4px; color: var(--gold);
  font-weight: 600; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.05;
  letter-spacing: -0.5px; margin-bottom: 22px;
  color: var(--cream);
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 18px; line-height: 1.6; color: var(--muted);
  max-width: 580px; margin: 0 auto 36px;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: 1.5px; font-weight: 600;
  color: var(--cream);
}
.section-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

/* ---------- APP CARDS ---------- */
.apps { padding: 32px 0 64px; }
.app-card {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 14px; margin-bottom: 14px;
  text-decoration: none; color: inherit;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.app-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
  transform: translateY(-2px);
}
.app-card.disabled { opacity: 0.7; pointer-events: none; }
.app-icon {
  width: 96px; height: 96px; border-radius: 22px;
  display: block; overflow: hidden;
  background: var(--navy-light);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-info { min-width: 0; }
.app-name-row {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 6px; flex-wrap: wrap;
}
.app-name {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: 0.5px; font-weight: 600;
  color: var(--cream);
}
.badge {
  font-size: 10px; padding: 3px 9px; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
}
.badge-official {
  background: rgba(230, 179, 74, 0.15); color: var(--gold);
  border: 1px solid rgba(230, 179, 74, 0.3);
}
.badge-soon {
  background: rgba(255, 255, 255, 0.08); color: var(--muted);
  border: 1px solid var(--border-soft);
}
.app-tag {
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
.app-cta {
  font-size: 12px; color: var(--gold); font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap;
}
.app-cta.muted { color: var(--muted); }

.app-card-placeholder {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 24px; align-items: center; padding: 22px;
  border: 1px dashed var(--border-soft); border-radius: 14px;
}
.app-card-placeholder .icon-stub {
  width: 96px; height: 96px; border-radius: 22px;
  border: 2px dashed var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(245, 241, 232, 0.25); font-weight: 300;
}
.app-card-placeholder .stub-text {
  font-size: 13px; color: rgba(245, 241, 232, 0.4); font-style: italic;
}

/* ---------- CREDIBILITY ---------- */
.credibility {
  background: rgba(230, 179, 74, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-size: 36px;
  color: var(--gold); font-weight: 600;
}
.stat-label {
  font-size: 11px; letter-spacing: 2px;
  color: var(--muted); margin-top: 4px; text-transform: uppercase;
}

/* ---------- SUB-PAGE HERO ---------- */
.app-hero {
  padding: 56px 0 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.app-hero-icon {
  width: 220px; height: 220px;
  border-radius: 48px; overflow: hidden;
  justify-self: end;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.app-hero-icon img { width: 100%; height: 100%; display: block; }
.app-hero-text h1 {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05; margin-bottom: 16px; font-weight: 600;
  color: var(--cream);
}
.app-hero-text .tagline {
  font-size: 19px; color: var(--gold); margin-bottom: 22px;
  font-weight: 500;
}
.app-hero-text p {
  font-size: 16px; line-height: 1.7; color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 13px 28px;
  border-radius: 6px; text-decoration: none; font-weight: 600;
  font-size: 14px; letter-spacing: 0.5px;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--cream);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FEATURE BLOCKS ---------- */
.features { padding: 56px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature {
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.feature h3 {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: 1px; margin-bottom: 10px;
  color: var(--gold) !important;
  font-weight: 600;
}
.feature p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- LONG-FORM CONTENT ---------- */
.prose { padding: 40px 0 64px; }
.prose h2 {
  font-family: var(--font-display); font-size: 26px;
  letter-spacing: 1px; margin: 32px 0 16px; font-weight: 600;
  color: var(--cream);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 18px; font-size: 16px; color: rgba(245, 241, 232, 0.85); }
.prose strong { color: var(--gold); font-weight: 600; }

/* ---------- BACK LINK ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  margin: 32px 0 0; letter-spacing: 0.5px;
}
.back-link:hover { color: var(--gold); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 32px 0; text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.cta) { display: none; }
  .hero { padding: 56px 0 40px; }
  .app-card { grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; }
  .app-card .app-cta { display: none; }
  .app-icon { width: 72px; height: 72px; border-radius: 16px; }
  .app-name { font-size: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .app-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .app-hero-icon { justify-self: center; width: 160px; height: 160px; border-radius: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
}
