/* Snar's Lab landing.
   Pure black, purple + pink only on accents, Inter, long-form scrolling.
   Vibe target: Linear / Vercel / Stripe restraint. No glow blobs, no shimmer.
*/

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --fg: #ffffff;
  --fg-soft: #d4d4d8;          /* zinc-300 */
  --muted: #a1a1aa;            /* zinc-400 */
  --muted-soft: #86868f;       /* lightened from zinc-500 (#71717a ~4:1) to clear WCAG AA 4.5:1 on black for small text */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --purple: #a855f7;
  --pink: #ec4899;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  --font:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --container-max: 1120px;
  --section-pad-y: 112px;
}

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

/* Visible keyboard-focus indicator (WCAG 2.4.7). :focus-visible fires only for
   keyboard/AT navigation, not mouse clicks, so this never shows on pointer use. */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'cv01';
}

::selection {
  background: rgba(236, 72, 153, 0.35);
  color: var(--fg);
}

/* ---------- Container ---------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: backdrop-filter 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.cta {
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}
.nav-links a.cta:hover {
  background: #e4e4e7;
  color: var(--bg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 var(--section-pad-y);
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

h1.hero-title {
  font-size: clamp(48px, 7.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 24px;
  color: var(--fg);
}

h1.hero-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 620px;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-tagline-meta {
  font-size: 14px;
  color: var(--muted-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tagline-meta strong {
  color: var(--fg);
  font-weight: 600;
  font-feature-settings: 'tnum';
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.18),
    0 2px 8px rgba(236, 72, 153, 0.12);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.section-pad {
  padding: var(--section-pad-y) 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.25) 30%,
    rgba(236, 72, 153, 0.25) 70%,
    transparent 100%
  );
  border: none;
  margin: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 16px;
}

.section-eyebrow.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--fg);
}

.section-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 56px;
  max-width: 660px;
  line-height: 1.5;
}

/* ---------- Live stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: 'tnum';
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-height: 1em; /* prevent layout shift before JS fills it */
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Track-record row: separated from the headline strip, only rendered when
   there is real data behind it (script.js unhides). Auto-fit so 2-4 tiles
   stay centered regardless of how many qualified. */
.stats-track {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.stats-track-note {
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 28px;
  line-height: 1.5;
}

.stats-secondary {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* ---------- Feature grid ---------- */

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}
.feature:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-num {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--purple);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Persona row ---------- */

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

.persona {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}

.persona-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}

.persona h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg);
}

.persona p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Discord layout (channels + commands) ---------- */

.discord-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.list-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.list-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card li {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  color: var(--fg-soft);
  line-height: 1.5;
}

.list-card li .key {
  color: var(--pink);
  font-weight: 500;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13.5px;
  min-width: 158px;
  flex-shrink: 0;
}

.list-card li .desc {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Manifesto block ---------- */

.manifesto {
  max-width: 760px;
}

.manifesto p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin: 0 0 20px;
}

.manifesto p strong {
  color: var(--fg);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------- Pricing card (used on / and /pricing) ---------- */

.pricing-card {
  position: relative;
  margin-top: 24px;
  padding: 40px;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  max-width: 480px;
}

.pricing-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}
.pricing-card .price-amount {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.pricing-card .price-period {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.pricing-card .price-pitch {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 15px;
}

.pricing-card ul.included {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card ul.included li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg-soft);
}

.pricing-card ul.included li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gradient);
  flex-shrink: 0;
  margin-top: 9px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-card .small {
  color: var(--muted-soft);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  user-select: none;
}

.faq-q::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- CTA footer block ---------- */

.cta-final {
  padding: 96px 0;
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 14px;
}

.cta-final p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto 32px;
  max-width: 520px;
}

/* ---------- Footer ---------- */

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner small {
  color: var(--muted-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--fg);
}

/* ---------- Scroll-triggered fade-up ---------- */

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animates immediately, no scroll observer. */
.hero [data-animate] {
  opacity: 1;
  transform: none;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero .eyebrow         { animation-delay: 0ms; }
.hero .hero-title      { animation-delay: 60ms; }
.hero .hero-sub        { animation-delay: 120ms; }
.hero .hero-cta-row    { animation-delay: 180ms; }
.hero .hero-tagline-meta { animation-delay: 240ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Sample bot posts (Discord-style embeds) ---------- */

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

.embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--embed-accent, var(--purple));
  border-radius: 10px;
  padding: 28px 30px;
}

.embed-channel {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted-soft);
  margin: 0 0 14px;
}

.embed-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 16px;
}

.embed-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.embed-fields {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.embed-fields li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-soft);
}

.embed-fields .ef-key {
  color: var(--muted);
}

.embed-fields .ef-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.embed-footer {
  font-size: 12px;
  color: var(--muted-soft);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.embed-green {
  --embed-accent: #10b981;
}
.embed-amber {
  --embed-accent: #f59e0b;
}
.embed-purple {
  --embed-accent: #a855f7;
}
.embed-red {
  --embed-accent: #ef4444;
}

@media (max-width: 720px) {
  .embed-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) and (min-width: 861px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  :root {
    --section-pad-y: 88px;
  }

  .container {
    padding: 0 22px;
  }

  .hero {
    padding-top: 132px;
  }

  .feature-grid,
  .personas,
  .discord-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pricing-card {
    padding: 32px 28px;
  }

  .list-card li {
    flex-direction: column;
    gap: 2px;
  }
  .list-card li .key {
    min-width: 0;
  }
}

/* ---------- Pricing page specifics ---------- */

.pricing-hero {
  padding: 168px 0 64px;
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.pricing-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto;
}

.pricing-page .pricing-card {
  margin: 32px auto;
}

/* ---------- Home page pricing section (center the block) ---------- */

#get-access {
  text-align: center;
}

#get-access .section-lead {
  margin-left: auto;
  margin-right: auto;
}

#get-access .pricing-card {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ---------- About page ---------- */

.about-hero {
  padding: 168px 0 96px;
}

.about-inner {
  max-width: 680px;
}

.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 32px;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.18),
    0 2px 8px rgba(236, 72, 153, 0.12);
}

.about-page h1 {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--fg);
}

.about-handle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.about-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-soft);
}

.about-body strong {
  color: var(--fg);
  font-weight: 600;
}

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages (Terms, Privacy) ---------- */

.legal-page .legal-hero {
  padding: 88px 0 40px;
}

.legal-page .legal-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.legal-page .legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.legal-page .legal-toc {
  margin: 32px 0 0;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal-page .legal-toc h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}

.legal-page .legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.legal-page .legal-toc li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.legal-page .legal-toc a {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 15px;
}

.legal-page .legal-toc a:hover {
  color: var(--purple);
}

.legal-page .legal-body {
  padding: 40px 0 96px;
  max-width: 760px;
}

.legal-page .legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 56px 0 14px;
  scroll-margin-top: 88px;
}

.legal-page .legal-body h2:first-child {
  margin-top: 0;
}

.legal-page .legal-body p,
.legal-page .legal-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 14px;
}

.legal-page .legal-body ul,
.legal-page .legal-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-page .legal-body strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-page .legal-body a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(168, 85, 247, 0.4);
  text-underline-offset: 3px;
}

.legal-page .legal-body a:hover {
  text-decoration-color: var(--purple);
}

@media (max-width: 720px) {
  .legal-page .legal-toc ol {
    columns: 1;
  }
}
