/* ============================================================
   threathunt.app — marketing site design system

   Same tokens, fonts and dot-grid background as tools.threathunt.app,
   so the whole product feels like one thing. Nav / footer / hero /
   section / card components are new - the tools app is a single-page
   grid, this is a proper multi-page site, so it gets its own
   stylesheet instead of a copy-pasted <style> block per page.
   ============================================================ */

:root {
  color-scheme: light dark;

  --bg:               light-dark(#f3f5f9, #15171f);
  --dot:              light-dark(#dce0e8, #262a37);
  --surface:          light-dark(#ffffff, #1c1f29);
  --surface-alt:      light-dark(#f8f9fc, #191c25);
  --surface-border:   light-dark(#e4e7ee, #2c3040);
  --surface-disabled: light-dark(#eaecf1, #23262f);
  --text:             light-dark(#202433, #e7e9f4);
  --text-dim:         light-dark(#6b7280, #9aa0b8);
  --accent:           light-dark(#4f6df5, #7c93ff);
  --accent-soft:      light-dark(rgba(79, 109, 245, 0.10), rgba(124, 147, 255, 0.16));
  --online:           light-dark(#22c55e, #4ade80);
  --danger:           light-dark(#dc2626, #f87171);
  --danger-soft:      light-dark(rgba(220, 38, 38, 0.10), rgba(248, 113, 113, 0.14));
  --overlay:          light-dark(rgba(20, 24, 36, 0.34), rgba(8, 10, 16, 0.58));

  --shadow-sm: 0 1px 3px   light-dark(rgba(16, 24, 40, 0.08), rgba(0, 0, 0, 0.40));
  --shadow-md: 0 6px 20px  light-dark(rgba(16, 24, 40, 0.10), rgba(0, 0, 0, 0.45));
  --shadow-lg: 0 12px 32px light-dark(rgba(16, 24, 40, 0.16), rgba(0, 0, 0, 0.55));

  --radius: 16px;
  --nav-h: 72px;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

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

html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  animation: bg-drift 70s linear infinite;
  -webkit-font-smoothing: antialiased;
}

@keyframes bg-drift {
  0%   { background-position: 0px 0px; }
  100% { background-position: -260px -130px; }
}

a { color: inherit; }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-brand b { color: var(--accent); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover { color: var(--text); background: var(--surface-alt); }
.nav-link.is-current { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--surface-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { height: 46px; padding: 0 24px; font-size: 14.5px; border-radius: 12px; }

.nav-login {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-login svg { width: 18px; height: 18px; fill: currentColor; }
.nav-login:hover { color: var(--accent); border-color: var(--accent); }
.nav-login.is-authed { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { text-align: left; padding: 12px 14px; }
  .nav-burger { display: grid; place-items: center; }
}

/* ---------- layout ---------- */

main { display: block; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
.section-head p { font-size: 15.5px; line-height: 1.6; color: var(--text-dim); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 88px;
  text-align: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  max-width: 760px;
  margin: 0 auto 22px;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg { width: 21px; height: 21px; fill: currentColor; }

.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tool-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.tool-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-item-name { font-size: 15px; font-weight: 700; color: var(--text); }

.tool-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}

.tool-tag.free { color: var(--online); border-color: var(--online); background: color-mix(in srgb, var(--online) 12%, transparent); }
.tool-tag.paid { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.tool-item-desc { font-size: 13px; line-height: 1.55; color: var(--text-dim); }

/* ---------- CTA band ---------- */

.cta-band {
  padding: 56px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 26px; }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}

.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }

.price-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 4px;
}

.price-amount b { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.price-amount b.is-word { font-size: 24px; }
.price-period { font-size: 12.5px; color: var(--text-dim); }

.price-features {
  flex: 1;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.price-features svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: var(--accent); }

.price-pick {
  width: 100%;
  height: 36px;
  margin-top: 16px;
  padding: 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  cursor: pointer;
}

.price-cta {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease;
}

.price-cta:hover { filter: brightness(1.08); }
.price-cta:disabled { opacity: 0.5; cursor: default; filter: none; }

.price-cta.ghost {
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--surface-border);
}

.price-cta.ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }

.price-cta.trial { background: var(--online); }
.price-cta.trial:hover { filter: brightness(1.06); }

.price-note {
  margin-top: 8px;
  font-size: 11.5px;
  text-align: center;
  color: var(--text-dim);
}

.price-note.is-error { color: var(--danger); }

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
}

.faq-item h3 { font-size: 14.5px; margin-bottom: 8px; }
.faq-item p { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

@media (max-width: 1040px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* Brand + theme toggle + login icon + burger already fill a phone-width
     bar on their own - Try Now is the first thing to go rather than letting
     everything else get squeezed. It's still one tap away on every page
     (hero, CTA bands), so nothing is actually lost. */
  .nav-actions .btn-primary { display: none; }

  .price-grid { grid-template-columns: 1fr; }
  .grid-3, .tool-list { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  section { padding: 56px 0; }
}

/* ---------- blog ---------- */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.blog-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-card h2 { font-size: 19px; margin: 8px 0 8px; color: var(--text); }
.blog-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

.blog-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius);
}

.post-head { margin-bottom: 36px; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
}
.post-back:hover { color: var(--accent); }

.post-head h1 { font-size: 34px; line-height: 1.2; margin: 10px 0 12px; }

.post-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.post-body > * + * { margin-top: 20px; }
.post-body h2 { font-size: 22px; margin-top: 40px; letter-spacing: -0.01em; }
.post-body h3 { font-size: 18px; margin-top: 32px; letter-spacing: -0.01em; }
.post-body p { color: var(--text); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li + li { margin-top: 8px; }
.post-body img { max-width: 100%; border-radius: 12px; border: 1px solid var(--surface-border); }
.post-body blockquote {
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-dim);
  font-style: italic;
}
.post-body code {
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 5px;
}
.post-body pre {
  padding: 16px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow-x: auto;
}
.post-body pre code { padding: 0; background: none; border: none; }
.post-body hr { border: none; border-top: 1px solid var(--surface-border); }

/* ---------- footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--surface-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand { max-width: 280px; }
.footer-brand .nav-brand { margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

@media (max-width: 480px) {
  .site-nav { padding: 0 16px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
}
