/* ============================================
   HowlMetrics - Design System
   Wolf Pak Strategies layout (nav, cards, Built With, footer), light theme.
   Accessibility: WCAG 2.1 AA contrast, visible focus, skip link, reduced motion.
   ============================================ */

:root {
  --navy: #0b1a3a;
  --navy-2: #13254d;
  --blue: #1f74c4;          /* softer accent for text/icons, 5.0:1 on white */
  --blue-dark: #185f9f;
  --sky: #4fb3ee;           /* the logo's light blue */
  --sky-soft: #e6f3fc;
  --btn: #5bb6ef;           /* soft sky button, navy text (8.7:1) */
  --btn-hover: #47a8e6;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-tint: #eaf3fd;
  --text: #141a26;
  --text-2: #3d4757;          /* 9.6:1 on white */
  --text-3: #556074;          /* 6.4:1 on white */
  --border: #dbe3ef;
  --green: #047857;
  --gradient: linear-gradient(90deg, #3b8fdc, #5cc2f3);
  --shadow: 0 4px 24px rgba(11, 26, 58, 0.08);
  --shadow-hover: 0 10px 36px rgba(79, 179, 238, 0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max: 1200px;
  --nav-h: 72px;
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 17px; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: 'Outfit', 'Inter', sans-serif; color: var(--navy); line-height: 1.2; }

/* --- Accessibility helpers --- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* --- Navigation (Wolf Pak style, light glass) --- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 0.96rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-cta { background: var(--btn); color: var(--navy) !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--btn-hover); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy); font-size: 1.3rem; padding: 6px 10px; cursor: pointer; }

/* --- Hero --- */
.hero { padding: calc(var(--nav-h) + 64px) 0 72px; background: radial-gradient(1200px 500px at 80% -10%, var(--bg-tint), transparent), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-tint); color: var(--navy); border: 1px solid #c8dcf8; padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 18px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-size: 1.2rem; color: var(--text-2); max-width: 620px; margin-bottom: 28px; }
.hero-logo img { width: 100%; max-width: 420px; margin: 0 auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform var(--ease), box-shadow var(--ease), background var(--ease); }
.btn-primary { background: var(--btn); color: var(--navy); }
.btn-primary:hover { background: var(--btn-hover); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.hero-micro { margin-top: 18px; font-size: 0.9rem; color: var(--text-3); }

/* --- Sections --- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-subtitle { color: var(--text-2); font-size: 1.08rem; }

/* --- Cards --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); transition: transform var(--ease), box-shadow var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); font-size: 1.25rem; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.6px; }
.badge-built { background: #d1fae5; color: #065f46; }
.badge-next { background: #e5e7eb; color: #374151; }

/* --- Report sample --- */
.sample { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.sample-cap { font-size: 0.78rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
.sample-line { font-size: 1.15rem; margin: 8px 0 12px; }
.bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: 0.82rem; font-weight: 700; color: #fff; }
.bar .paid { background: #6b7688; width: 70%; display: flex; align-items: center; padding-left: 10px; }
.bar .organic { background: var(--gradient); width: 30%; display: flex; align-items: center; padding-left: 10px; color: #06122e; }
.meter { margin-top: 18px; }
.meter-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 0.92rem; }
.meter-row span:first-child { width: 170px; color: var(--text-2); }
.meter-track { flex: 1; height: 14px; background: #e6ebf3; border-radius: 8px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--gradient); }

/* --- Rules list --- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; max-width: 980px; margin: 0 auto; list-style: none; }
.rules li { position: relative; padding-left: 34px; color: var(--text-2); }
.rules li i { position: absolute; left: 0; top: 4px; color: var(--blue); font-size: 1.1rem; }
.rules li strong { color: var(--navy); }

/* --- Platforms --- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.platform { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--navy); }
.platform small { color: var(--text-3); font-weight: 500; }

/* --- FAQ --- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin-top: 10px; color: var(--text-2); }

/* --- CTA band --- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { color: #d5def0; margin-bottom: 22px; }
.cta-band .btn-primary { background: var(--btn); color: var(--navy); }
.cta-band .btn-primary:hover { background: #ffffff; color: var(--navy); }

/* --- Built With (Wolf Pak) --- */
.partners-strip { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 8px; }
.partner-logo--nvidia { height: 72px; width: auto; }

/* --- Parent company credit --- */
.parent-card { display: flex; align-items: center; gap: 24px; max-width: 760px; margin: 0 auto 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.parent-card img { width: 120px; height: 120px; border-radius: 50%; flex: none; }
.parent-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.parent-card p { color: var(--text-2); margin-bottom: 14px; }
/* Footer in the Wolf Pak Capture layout: parent brand first, product last */
.footer-logo-card { display: inline-flex; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); margin-bottom: 16px; }
.footer-logo-card img { width: 88px; height: 88px; border-radius: 10px; object-fit: contain; }
.footer-badge { display: inline-block; background: rgba(18, 166, 242, 0.12); border: 1px solid rgba(18, 166, 242, 0.45); color: #e6edf9; border-radius: 999px; padding: 6px 14px; font-size: 0.82rem; font-weight: 700; margin: 4px 0 10px; }
.footer-parent-url { display: block; font-size: 0.9rem; color: #aeb9cf !important; }
.footer-product { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-product .footer-contact { align-items: center; }
h2.footer-links-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; color: var(--sky); }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal { margin-top: 10px; }
/* "by Wolf Pak Strategies" next to the product logo in the top bar */
.nav-brand { gap: 10px; }
.nav-by { display: flex; flex-direction: column; line-height: 1.15; font-size: 0.72rem; color: var(--text-3); border-left: 1px solid var(--border); padding-left: 10px; }
.nav-by strong { color: var(--navy); font-size: 0.8rem; }
@media (max-width: 420px) { .nav-by { display: none; } }
.footer-parent { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-md); max-width: 300px; }
.footer-parent img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.footer-parent small { color: #aeb9cf; }
.site-footer a.footer-parent:hover { text-decoration: none; border-color: #fff; }
@media (max-width: 720px) { .parent-card { flex-direction: column; text-align: center; } }

/* --- Legal pages --- */
.legal-hero { padding: calc(var(--nav-h) + 56px) 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.legal-updated { margin-top: 12px; color: var(--text-3); font-size: 0.92rem; }
.legal-content { max-width: 860px; margin: 0 auto; padding: 44px 24px 80px; }
.legal-content h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.legal-content h3 { font-size: 1.12rem; margin: 20px 0 8px; }
.legal-content p, .legal-content li { color: var(--text-2); margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 12px; }
.section-num { color: var(--blue); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 30px; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; margin-top: 10px; }

/* --- Footer (Wolf Pak style, dark) --- */
.site-footer { background: var(--navy); color: #c9d3e6; padding: 64px 0 28px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: #c9d3e6; margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #e6edf9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links-title { color: #fff; font-weight: 700; margin-bottom: 12px; font-family: 'Outfit', sans-serif; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; color: #aeb9cf; }
.footer-bottom p { margin-bottom: 8px; }
.footer-nvidia { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.footer-nvidia img { height: 38px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }

/* --- Motion (only when JS is on and the visitor allows motion) --- */
.js .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-up { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links a.nav-cta { padding: 12px 18px; margin-top: 6px; text-align: center; }
  .grid-3, .grid-2, .rules { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 20px; }
  .meter-row span:first-child { width: 120px; }
}
@media print {
  .site-nav, .skip-link { display: none; }
  .hero, .legal-hero { padding-top: 20px; }
}
