/* =========================================================
   Purcell Ventures Labs — styles.css
   Palette: deep ink + electric chartreuse-lime accent + warm signal
   Type: Space Grotesk (display) / Inter (body)
   ========================================================= */

:root {
  /* Core ink palette */
  --ink-900: #0a0c14;
  --ink-850: #0d0f1a;
  --ink-800: #11142133;
  --panel:   #141826;
  --panel-2: #1a1f30;
  --line:    #262c40;
  --line-2:  #323a52;

  /* Text */
  --text:      #eef1f8;
  --text-dim:  #aab2c8;
  --text-mute: #767e96;

  /* Accents */
  --lime:    #c6f24e;   /* primary accent */
  --lime-d:  #a9d92f;
  --signal:  #ff8a5c;   /* warm secondary */
  --violet:  #8b7cff;

  /* Tag hues */
  --tag-tool: #c6f24e;
  --tag-guide: #8b7cff;
  --tag-directory: #57c8ff;
  --tag-product: #ff8a5c;

  --radius:   16px;
  --radius-s: 10px;
  --maxw: 1120px;

  --shadow: 0 18px 50px -24px rgba(0,0,0,0.75);
  --ring: 0 0 0 3px rgba(198,242,78,0.45);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(139,124,255,0.10), transparent 60%),
    radial-gradient(800px 520px at 8% 4%, rgba(198,242,78,0.08), transparent 55%),
    var(--ink-850);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--lime); color: #0a0c14; font-weight: 600;
  padding: 10px 16px; border-radius: 0 0 10px 10px; z-index: 100;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.card:focus-within {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* ---------- Layout helpers ---------- */
main { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 40px);
  backdrop-filter: blur(10px);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13,15,26,0.82), rgba(13,15,26,0.3));
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--lime); color: #0a0c14;
  font-weight: 700; font-size: 1.15rem; transform: skewX(-8deg);
}
.brand-text { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--lime); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  text-decoration: none; color: var(--text-dim);
  padding: 8px 12px; border-radius: 8px; font-size: .94rem; font-weight: 500;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line-2); }
.nav-cta:hover { border-color: var(--lime); color: var(--lime) !important; background: transparent !important; }
@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--lime);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary {
  background: var(--lime); color: #0a0c14;
  box-shadow: 0 10px 30px -12px rgba(198,242,78,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(198,242,78,0.65); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 40px) clamp(40px, 6vw, 72px);
}
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 25%, transparent 75%);
  opacity: 0.4; pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }

.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: "// "; color: var(--text-mute); }

.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.4rem); font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--lime);
  text-shadow: 0 0 40px rgba(198,242,78,0.25);
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-dim); max-width: 560px; margin: 0 0 30px;
}
.lede-strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 0;
}
.hero-stats > div {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 20px; background: rgba(20,24,38,0.6);
  min-width: 120px;
}
.hero-stats dt { font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.hero-stats dd { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--text); }
.hero-stats dd { color: var(--lime); }

/* ---------- Section heads ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px,4vw,40px); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 10px; }
.section-head p { color: var(--text-dim); margin: 0; font-size: 1.05rem; }

/* ---------- Tools ---------- */
.tools { padding: clamp(40px,7vw,80px) 0 clamp(20px,4vw,40px); }

.cat {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(18px,4vw,40px);
  margin-top: clamp(40px, 6vw, 64px);
}
.cat-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cat-head h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem); display: inline-flex; align-items: baseline; gap: 14px;
}
.cat-num {
  font-size: .9rem; color: var(--lime); font-weight: 700;
  border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 9px;
}
.cat-sub { color: var(--text-mute); margin: 0; font-size: .98rem; }

.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  min-height: 188px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 70%);
  opacity: 0; transition: opacity .2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card h4 { font-size: 1.16rem; font-weight: 600; }
.card p { margin: 0; color: var(--text-dim); font-size: .96rem; flex: 1; }

.tag {
  align-self: flex-start;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid currentColor;
}
.tag-tool { color: var(--tag-tool); }
.tag-guide { color: var(--tag-guide); }
.tag-directory, .tag-deal { color: var(--tag-directory); }
.tag-product { color: var(--tag-product); }

.card-link {
  align-self: flex-start; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .96rem;
  text-decoration: none; color: var(--text);
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line-2);
  transition: gap .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.card-link:hover { color: #0a0c14; background: var(--lime); border-color: var(--lime); gap: 11px; }

/* ---------- About band ---------- */
.about {
  margin: clamp(64px,9vw,110px) auto 0;
  max-width: var(--maxw);
  padding: 0 clamp(18px,4vw,40px);
}
.about-inner {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(139,124,255,0.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 52px);
}
.about-inner h2 { font-size: clamp(1.6rem,4vw,2.3rem); margin-bottom: 18px; }
.about-inner p { color: var(--text-dim); max-width: 620px; font-size: 1.06rem; margin: 0 0 16px; }
.about-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.about-points li {
  border-left: 2px solid var(--lime); padding: 4px 0 4px 16px;
  color: var(--text-dim); font-size: .98rem;
}
.about-points strong { color: var(--text); display: block; font-family: "Space Grotesk", sans-serif; }

/* ---------- Closing CTA ---------- */
.cta {
  margin: clamp(48px,7vw,90px) auto clamp(40px,6vw,72px);
  max-width: var(--maxw);
  padding: 0 clamp(18px,4vw,40px);
}
.cta-inner {
  position: relative; overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #11331f, #0d0f1a 55%);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: clamp(40px, 7vw, 76px) clamp(24px,5vw,48px);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(500px 280px at 50% -10%, rgba(198,242,78,0.18), transparent 60%);
  pointer-events: none;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner .eyebrow { color: var(--lime); }
.cta-inner h2 { font-size: clamp(2rem,5vw,3.2rem); margin-bottom: 16px; }
.cta-lede { color: var(--text-dim); max-width: 540px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.pill {
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 16px; font-size: .9rem; color: var(--text-dim);
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px,5vw,56px) clamp(18px,4vw,40px) 24px;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-tag { color: var(--text-mute); margin: 0; font-size: .95rem; max-width: 280px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--lime); }
.footer-fine {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(18px,4vw,40px) 36px;
  color: var(--text-mute); font-size: .85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(16px);
  animation: rise .7s var(--ease) forwards;
}
.reveal:nth-child(2) { animation-delay: .06s; }
.reveal:nth-child(3) { animation-delay: .12s; }
.reveal:nth-child(4) { animation-delay: .18s; }
.reveal:nth-child(5) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.card { opacity: 0; transform: translateY(14px); }
.card.in { animation: rise .55s var(--ease) forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- Light mode (system) ---------- */
@media (prefers-color-scheme: light) {
  :root[data-theme="dark"] { /* honor explicit dark default; no override */ }
}
