/* TinyX Bug Bounty Hub — design tokens from tinyx.co theme-clean */

:root {
  --bg-ghost: #f8f9fa;
  --surface: #fff;
  --charcoal: #1a1a2e;
  --muted: #64748b;
  --border: #e2e8f0;
  --ash: #cbd5e1;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.15);
  --wordmark: linear-gradient(145deg, #4f46e5, #7c3aed);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(26, 26, 46, 0.04), 0 8px 24px rgba(26, 26, 46, 0.06);
  --max: 720px;
  --max-wide: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--bg-ghost);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: var(--wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.9;
}

.wordmark span {
  font-weight: 500;
  opacity: 0.85;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

/* ——— Layout ——— */

main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 4.5rem 0 3rem;
  max-width: var(--max);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--charcoal);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--charcoal);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--ash);
  color: var(--accent);
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* ——— Sections ——— */

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  max-width: var(--max);
}

.section-wide {
  max-width: var(--max-wide);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 650;
}

.card p:last-child {
  margin-bottom: 0;
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}

.list-clean li:last-child {
  border-bottom: none;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .promise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.promise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.promise strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.975rem;
}

.promise span {
  display: block;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.scope-in h3 {
  color: var(--accent);
}

.scope-out h3 {
  color: var(--muted);
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--accent-glow);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--charcoal);
}

.note a {
  font-weight: 600;
}

/* ——— Thanks wall ——— */

.thanks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .thanks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thanks-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.thanks-card .handle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.thanks-card .name {
  margin: 0;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.thanks-foot {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

/* ——— CTA band ——— */

.cta-band {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}
