/* =============================================
   TeamGuard Marketing Site
   ============================================= */

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

:root {
  --primary:       #0B2E6B;
  --primary-light: #1E5FAF;
  --primary-tint:  #D6E4F7;
  --green:         #3FAE2A;
  --green-light:   #5CCB3F;
  --green-tint:    #dcfce7;
  --accent:        #4FA3E3;
  --text:          #0f172a;
  --text-muted:    #475569;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(11,46,107,0.10);
  --shadow-lg:     0 8px 40px rgba(11,46,107,0.15);
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--primary);
}
.nav-brand .brand-team { color: var(--primary); }
.nav-brand .brand-guard { color: var(--green); }
.nav-shield {
  width: 32px; height: 32px; object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 9px 20px; border-radius: 8px; font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--primary-light) !important; }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ── Hero ───────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1a6fb5 100%);
  color: var(--white);
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-logo {
  width: 88px; height: 88px; object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 5px 14px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 24px; color: rgba(255,255,255,0.9);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-light); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #7dd3fc; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--green); color: var(--white);
  padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(63,174,42,0.4);
}
.btn-hero-primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-hero-secondary {
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-sub { margin-top: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ── Trust bar ──────────────────────────────── */
.trust-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.trust-icon { font-size: 1.1rem; }

/* ── Section base ───────────────────────────── */
section { padding: 80px 24px; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--primary); line-height: 1.25; margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 580px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 56px; }

/* ── Problem ────────────────────────────────── */
.problem { background: var(--white); }
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.problem-card {
  background: #fff5f5; border: 1px solid #fecaca;
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.problem-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.problem-card h3 { font-size: 0.95rem; font-weight: 700; color: #991b1b; margin-bottom: 4px; }
.problem-card p { font-size: 0.85rem; color: #7f1d1d; line-height: 1.5; }
.problem-solve {
  text-align: center; margin-top: 40px; font-size: 1.05rem;
  color: var(--primary); font-weight: 600;
}
.problem-solve strong { color: var(--green); }

/* ── Features ───────────────────────────────── */
.features { background: var(--bg); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.icon-blue   { background: var(--primary-tint); }
.icon-green  { background: var(--green-tint); }
.icon-orange { background: #ffedd5; }
.icon-purple { background: #f3e8ff; }
.icon-teal   { background: #ccfbf1; }
.icon-sky    { background: #e0f2fe; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── How it works ───────────────────────────── */
.how { background: var(--white); }
.steps {
  display: flex; flex-direction: column; gap: 0;
  max-width: 680px; margin: 0 auto;
}
.step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; flex-shrink: 0;
}
.step-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.step-body p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Roles ──────────────────────────────────── */
.roles { background: var(--bg); }
.roles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.role-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.role-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.role-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.role-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.role-card li { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.role-card li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── SafeSport callout ──────────────────────── */
.safesport {
  background: linear-gradient(135deg, var(--primary) 0%, #153d85 100%);
  color: var(--white); text-align: center;
}
.safesport .section-label { color: #7dd3fc; }
.safesport .section-title { color: var(--white); }
.safesport .section-sub   { color: rgba(255,255,255,0.8); margin: 0 auto 40px; }
.safesport-items {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  max-width: 800px; margin: 0 auto;
}
.safesport-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; min-width: 160px;
}
.safesport-item .si-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.safesport-item p { font-size: 0.88rem; color: rgba(255,255,255,0.8); text-align: center; line-height: 1.4; }
.safesport-item strong { display: block; color: var(--white); font-size: 0.95rem; font-weight: 700; }

/* ── CTA ────────────────────────────────────── */
.cta-section {
  background: var(--white); text-align: center; padding: 96px 24px;
}
.cta-section .section-title { margin-bottom: 14px; }
.cta-section .section-sub   { margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: var(--white);
  padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(11,46,107,0.3);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: background .2s;
}
.btn-outline:hover { background: var(--primary-tint); }
.cta-note { margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────── */
footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.footer-brand .brand-guard { color: var(--green-light); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.82rem; }

/* ── Mobile nav ─────────────────────────────── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .nav-menu-btn { display: block; }
  .hero { padding: 64px 24px 56px; }
  .trust-bar-inner { gap: 20px; }
  .steps { gap: 0; }
  footer .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ── Coming Soon Modal ─────────────────────── */
.cs-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,46,107,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.cs-overlay[hidden] { display: none; }
.cs-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  position: relative;
  animation: cs-pop 0.2s ease;
}
@keyframes cs-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.cs-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--text-muted);
}
.cs-close:hover { color: var(--text); }
.cs-shield {
  width: 72px; height: 72px;
  background: var(--primary-tint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.cs-shield img { width: 44px; height: 44px; object-fit: contain; }
.cs-box h2 {
  font-size: 1.6rem; font-weight: 800;
  color: var(--primary); margin-bottom: 12px;
}
.cs-box p {
  color: var(--text-muted); font-size: 0.97rem;
  line-height: 1.6; margin-bottom: 24px;
}
.cs-btn {
  display: inline-block;
  background: var(--primary); color: var(--white);
  font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: 999px;
  transition: background 0.2s;
  margin-bottom: 16px;
}
.cs-btn:hover { background: var(--primary-light); }
.cs-note {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 0;
}
.cs-note a { color: var(--primary-light); text-decoration: underline; }
