/* ==========================================================================
   Lead Gen AI Systems — Design System
   Single source of truth for index.html + every /case-studies/* page.

   Token architecture (see ui-ux-pro-max "design-system" skill):
     Primitive  -> raw brand values, never referenced directly outside :root
     Semantic   -> purpose-named aliases components actually use
     Component  -> a few component-specific overrides, kept minimal on
                   purpose since this is a small static site, not an app
   ========================================================================== */

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

:root {
  /* ---- Primitive tokens ---- */
  --p-black-950: #0c0c10;
  --p-black-900: #111117;
  --p-gold-500: #FFB700;
  --p-gold-600: #E0A100;
  --p-white-100: #f4f4f5;
  --p-gray-400: #8b8b94;   /* verified ~5.5:1 contrast on --p-black-950/900 */
  --p-gray-800: #27272a;
  --p-zinc-300: #a1a1aa;

  /* ---- Semantic tokens ---- */
  --bg: var(--p-black-950);
  --bg-surface: var(--p-black-900);
  --accent: var(--p-gold-500);
  --accent-strong: var(--p-gold-600);
  --on-accent: var(--p-black-950);
  --text: var(--p-white-100);
  --text-secondary: var(--p-zinc-300);
  --text-muted: var(--p-gray-400);
  --border: var(--p-gray-800);

  /* ---- Type scale ---- */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ---- Radii ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* ---- Content widths (component tokens) ---- */
  --width-wide: 1100px;   /* homepage sections */
  --width-copy: 760px;    /* long-form case-study body */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.display { font-family: var(--font-display); letter-spacing: 0.02em; }

/* ==========================================================================
   Nav
   ========================================================================== */

nav {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2.5rem);
  max-width: var(--width-wide);
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: rgba(17, 17, 23, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(12, 12, 16, 0.94);
  border-color: var(--text-muted);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.nav-logo {
  grid-column: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  justify-self: start;
  color: var(--text);
}
.nav-logo-icon { width: 22px; height: 22px; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links {
  grid-column: 2;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-self: center;
  list-style: none;
  font-size: 0.9rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-cta {
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-strong); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  nav { padding: 1rem 1.25rem; }
  .nav-logo { font-size: 1.05rem; }
  .nav-toggle { width: 32px; height: 32px; }
  .nav-toggle svg { width: 16px; height: 16px; }
  .nav-cta { padding: 0.45rem 0.7rem; font-size: 0.72rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    grid-column: 1 / -1;
    justify-self: stretch;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  nav.menu-open .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 2rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--accent-strong); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

section { padding: 7rem 2rem; max-width: var(--width-wide); margin: 0 auto; }

.case-section, .case-hero {
  max-width: var(--width-copy);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}
.case-hero { border-top: none; padding-top: 7.5rem; padding-bottom: 2rem; }

.section-label {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 2.5rem;
  max-width: 24ch;
}
.case-section h2, .case-hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  max-width: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-top: 7rem;
}
.hero-content { flex: 1 1 auto; min-width: 0; }
.hero-visual { flex: 0 0 420px; max-width: 420px; }
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 8rem; }
  .hero-visual { flex: 0 0 auto; max-width: 340px; width: 100%; margin: 0 auto; }
}
.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 16ch;
}
h1 em { color: var(--accent); font-style: normal; }
.lede {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 1.15rem;
}
.cta-row { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Services grid
   ========================================================================== */

.grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; font-weight: 600; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }
.card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255, 183, 0, 0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 20px; height: 20px; }

/* ==========================================================================
   Logo marquee
   ========================================================================== */

.logo-cloud {
  padding: 1.5rem 0 2.5rem;
}
.logo-cloud-inner { max-width: var(--width-wide); margin: 0 auto; padding: 0 2rem; }
.logo-cloud-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.logo-marquee-mask {
  max-width: 1000px;
  margin: 1.75rem auto 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-marquee-scroll 36s linear infinite;
}
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 2rem;
  flex-shrink: 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.logo-item img {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
/* Zapmail's mark is black — invisible on the dark background without a
   light chip behind it. Every other logo here has enough contrast bare.
   Padding eats into the same 22px box (border-box) so it reads as the
   same size as the bare icons next to it, not a bigger chip. */
.logo-item img.icon-chip {
  padding: 3px;
  background: var(--p-white-100);
}

/* ==========================================================================
   Work grid (homepage case-study preview cards)
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.work-card {
  display: block;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  margin: 0.15rem 0 0.6rem;
  color: var(--text);
}
.work-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.25rem; }
.work-cta {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  background: transparent; border: 1px solid var(--border);
  padding: 0.55rem 1.1rem; border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.work-card:hover .work-cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ==========================================================================
   Win tag (pill) — used on featured stats site-wide
   ========================================================================== */

.win-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 183, 0, 0.18);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}
.win-tag svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ==========================================================================
   Case-study hero elements
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.current { color: var(--text); }

.proof-frame {
  display: block;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.proof-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.proof-dots { display: flex; gap: 0.35rem; flex-shrink: 0; }
.proof-dots span { width: 9px; height: 9px; border-radius: 50%; display: block; }
.proof-dots span:nth-child(1) { background: #ff5f57; }
.proof-dots span:nth-child(2) { background: #febc2e; }
.proof-dots span:nth-child(3) { background: #28c840; }
.proof-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-image { width: 100%; display: block; }

.case-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.case-subheadline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 1rem;
}
.case-date-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.case-date-line svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-muted); }

.case-body p, .case-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}
.case-list { list-style: none; margin-top: 1rem; }
.case-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.85rem;
}
.case-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.subsection-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.subsection-proof { width: 100%; display: block; }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.stat-cell { padding: 1.75rem 1.25rem; text-align: center; border-left: 1px solid var(--border); }
.stat-cell:first-child { border-left: none; }
.stat-cell .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-cell .label { font-size: 0.68rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Results teaser */
.results-teaser {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 1.75rem 1.5rem 0.5rem;
  margin-top: 1.75rem;
}
.results-teaser-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.results-teaser .stat-strip { border: none; margin-bottom: 0; }
.results-teaser .stat-cell { padding: 0 1.25rem 1.5rem; }
@media (max-width: 768px) {
  .results-teaser .stat-cell:nth-child(n+3) { padding-top: 1.5rem; }
}
.results-teaser .stat-cell .num { font-size: 2.1rem; color: var(--accent); }

/* Quote block */
.quote-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.75rem;
}
.quote-block p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}
.quote-proof { display: block; max-width: 420px; width: 100%; border-radius: 6px; margin-bottom: 1rem; }
.quote-block cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--text-muted); }

.disclaimer {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* CTA section */
.cta-section p { color: var(--text-secondary); max-width: 480px; margin-bottom: 1.75rem; font-size: 0.95rem; }

/* Homepage proof/contact strip */
.proof {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.proof p { color: var(--text-secondary); max-width: 42ch; }

/* ==========================================================================
   More Case Studies carousel
   ========================================================================== */

.related-case-card { display: block; border: 1px solid var(--border); text-decoration: none; transition: border-color 0.2s; }
.related-case-card:hover { border-color: var(--accent); }
.related-case-thumb { width: 100%; display: block; border-bottom: 1px solid var(--border); }
.related-case-body { padding: 1.5rem; }
.related-case-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0.25rem 0 0.6rem;
  color: var(--text);
}
.related-case-desc { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }
.related-case-cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.related-case-card:hover .related-case-cta { background: var(--accent-strong); }

.related-carousel { position: relative; overflow: hidden; }
.related-carousel-track { display: flex; transition: transform 0.5s ease; }
.related-carousel-track > .related-case-card { flex: 0 0 100%; }
.related-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.related-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  border: none; padding: 0; cursor: pointer; transition: background 0.2s;
}
.related-carousel-dot.active { background: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  max-width: var(--width-wide);
  margin: 0 auto;
  text-align: center;
}
footer p { font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
  margin-bottom: 2.5rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col h4 { font-size: 0.85rem; color: var(--text); margin-bottom: 0.3rem; }
.footer-col a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 0.2rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-muted); transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-legal { margin-top: 0.5rem; font-size: 0.78rem; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* About / Founder section — photo on the left, copy on the right */
.about-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start;
}
.about-photo { width: 100%; border-radius: 10px; display: block; }
.about-copy p { color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 1rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-name { color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; margin: 0 auto; }
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 720px; }

/* Service card tool-icon chips — icons only, no "Tools:" label */
.card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.1rem; }
.card-tools img { box-sizing: border-box; width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.card-tools img.icon-chip { padding: 3px; background: var(--p-white-100); }

/* How It Works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.step-card { position: relative; }
.step-num {
  font-family: var(--font-display); font-size: 2.75rem; color: var(--accent);
  line-height: 1; margin-bottom: 0.75rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; font-weight: 600; }
.step-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 1.25rem 0; font-weight: 600; font-size: 1rem;
  color: var(--text); list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; padding-bottom: 1.25rem; max-width: 65ch; }

/* Work-card cover image */
.work-card-image { width: 100%; aspect-ratio: 900 / 394; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; border: 1px solid var(--border); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 800px) {
  .grid-services, .work-grid, .steps-grid { grid-template-columns: 1fr; }
  section { padding: 5rem 1.25rem; }
}
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-col { align-items: center; }
}

/* ==========================================================================
   Legal pages (Privacy Policy, Terms of Service)
   ========================================================================== */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 9rem 1.5rem 5rem; }
.legal-wrap h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal-wrap h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2.25rem 0 0.75rem; letter-spacing: 0.02em; }
.legal-wrap p, .legal-wrap li { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.legal-wrap ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-wrap li { margin-bottom: 0.4rem; }
.legal-wrap a { color: var(--accent); }
.legal-note {
  background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  padding: 1.25rem; margin-top: 3rem; font-size: 0.85rem; color: var(--text-muted);
}

/* ==========================================================================
   Service card mini-demos — small looping CSS animations that show what
   each engine actually does, instead of just describing it in prose.
   No real data anywhere (leads-demo uses obviously-fake names + blurred
   email placeholders, never real addresses).
   ========================================================================== */

.mini-demo {
  height: 132px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

/* Lead Generation Engine — websites being scraped, leads landing in a live
   feed. Emails are obviously-fake placeholders (never a real address), not
   blurred — the fake domain itself is the tell, blur just looked broken. */
.leads-demo { display: flex; flex-direction: column; padding: 0.75rem 0.9rem; }
.scrape-label {
  display: flex; align-items: center; gap: 0.45rem; font-size: 0.7rem;
  color: var(--accent); font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; margin-bottom: 0.7rem; flex-shrink: 0;
}
.scrape-glass {
  width: 12px; height: 12px; border: 1.5px solid var(--accent); border-radius: 50%;
  position: relative; flex-shrink: 0;
  animation: scrape-scan 2.4s ease-in-out infinite;
}
.scrape-glass::after {
  content: ''; position: absolute; width: 5px; height: 1.5px; background: var(--accent);
  top: 11px; left: 9px; transform: rotate(45deg); transform-origin: left;
}
@keyframes scrape-scan { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.scrape-ellipsis span { animation: scrape-blink 1.4s ease-in-out infinite; }
.scrape-ellipsis span:nth-child(2) { animation-delay: 0.2s; }
.scrape-ellipsis span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scrape-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.leads-feed-mask {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.leads-track { display: flex; flex-direction: column; gap: 0.7rem; animation: leads-scroll 9s linear infinite; }
@keyframes leads-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.lead-row {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; white-space: nowrap;
  opacity: 0; animation: lead-row-in 0.4s ease-out forwards;
}
.lead-row:nth-child(2) { animation-delay: 0.15s; }
.lead-row:nth-child(3) { animation-delay: 0.3s; }
.lead-row:nth-child(4) { animation-delay: 0.45s; }
.lead-row:nth-child(5) { animation-delay: 0.6s; }
.lead-row:nth-child(6) { animation-delay: 0.75s; }
@keyframes lead-row-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
.lead-name { color: var(--text); font-weight: 600; }
.lead-email { color: var(--text-muted); user-select: none; overflow: hidden; text-overflow: ellipsis; }
/* Verdict pill — same semantic colors used site-wide for verification
   status (green/amber/red), doubling as a quiet nod to the email
   verification layer behind the Lead Generation Engine. */
.lead-verdict {
  margin-left: auto; flex-shrink: 0; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.lead-verdict.good { color: #22c55e; background: rgba(34, 197, 94, 0.15); }
.lead-verdict.risky { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.lead-verdict.bad { color: #ef4444; background: rgba(239, 68, 68, 0.15); }


/* DFY Full Outbound Engine — pipeline nodes pulsing in sequence */
.pipeline-demo { display: flex; align-items: center; justify-content: space-between; padding: 0 1.15rem; }
.pipeline-demo::before {
  content: ''; position: absolute; left: 1.85rem; right: 1.85rem; top: 58px;
  height: 1px; background: var(--border);
}
.pipeline-node {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; color: var(--text-muted); position: relative; z-index: 1;
}
.pipeline-node-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; transition: none;
}
.pipeline-node-dot svg { width: 14px; height: 14px; }
.pipeline-node.active .pipeline-node-dot { animation: pipeline-pulse 4.8s ease-in-out infinite; }
.pipeline-node:nth-child(1) .pipeline-node-dot { animation-delay: 0s; }
.pipeline-node:nth-child(2) .pipeline-node-dot { animation-delay: 1.2s; }
.pipeline-node:nth-child(3) .pipeline-node-dot { animation-delay: 2.4s; }
.pipeline-node:nth-child(4) .pipeline-node-dot { animation-delay: 3.6s; }
/* A dot travels the connecting line in sync with the node pulses, so the
   flow reads as one continuous motion instead of four disconnected blinks. */
.pipeline-track-dot {
  position: absolute; top: 58px; left: 1.85rem; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 6px 1px rgba(255, 183, 0, 0.6);
  animation: pipeline-travel 4.8s linear infinite;
}
@keyframes pipeline-travel {
  0% { left: 1.85rem; opacity: 0; }
  4% { opacity: 1; }
  96% { left: calc(100% - 1.85rem); opacity: 1; }
  100% { left: calc(100% - 1.85rem); opacity: 0; }
}
@keyframes pipeline-pulse {
  0%, 8% { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 183, 0, 0.15); }
  25%, 100% { background: var(--bg); border-color: var(--border); box-shadow: none; }
}
.pipeline-node-dot svg { width: 12px; height: 12px; color: inherit; }

/* AI SDR Engine — a hook being AI-generated, typewriter effect */
.ai-demo { display: flex; flex-direction: column; justify-content: center; padding: 0 1rem; gap: 0.7rem; }
.ai-demo-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.ai-demo-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: hero-hub-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes hero-hub-dot-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.ai-bubble {
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-surface);
  padding: 0.65rem 0.8rem;
}
.ai-typing {
  font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden;
  border-right: 2px solid var(--accent); width: 0; display: inline-block;
  animation: ai-type 7s steps(49, end) infinite, ai-caret 0.7s step-end infinite;
}
.ai-tags { display: flex; gap: 0.4rem; }
.ai-tag {
  font-size: 0.6rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.55rem;
}
@keyframes ai-type {
  0% { width: 0; }
  55% { width: 49ch; }
  90% { width: 49ch; }
  100% { width: 0; }
}
@keyframes ai-caret { 50% { border-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .leads-track, .lead-row, .scrape-glass, .scrape-ellipsis span,
  .pipeline-node.active .pipeline-node-dot, .pipeline-track-dot, .ai-typing {
    animation: none !important;
  }
  .lead-row, .scrape-ellipsis span { opacity: 1; transform: none; }
  .ai-typing { width: 49ch; border-right-color: transparent; }
}


/* ==========================================================================
   Hero orbit visual — "LGAIS Lead Engine": tool logos orbiting a central
   hub, inspired by the orbit-diagram pattern (not copied assets/markup,
   an original CSS build). Pure CSS, no JS, no real data.
   ========================================================================== */

.hero-visual {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  /* Soft fade at the left/right edges so the (now larger) orbit never
     hard-clips against the hero text if the column gets tight. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.orbit-badge {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--accent); background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
}

.orbit-visual { position: relative; width: 380px; height: 380px; margin: 0 auto; }

.orbit-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 112px; height: 112px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 0 0 1px rgba(255, 183, 0, 0.25), 0 0 50px rgba(255, 183, 0, 0.3);
  z-index: 2;
  animation: orbit-hub-breathe 3.4s ease-in-out infinite;
}
@keyframes orbit-hub-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 183, 0, 0.25), 0 0 40px rgba(255, 183, 0, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(255, 183, 0, 0.35), 0 0 70px rgba(255, 183, 0, 0.45); }
}
.orbit-hub svg { width: 26px; height: 26px; }

.orbit-ring {
  position: absolute; inset: 0;
  animation: orbit-spin 26s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Radiating spokes from hub to each logo, with a particle flowing inward
   along each one — visualizes leads/data being pulled from each tool
   into the engine, not just icons floating in empty space. */
.orbit-spoke {
  position: absolute; top: 50%; left: 50%; width: 160px; height: 1px;
  transform-origin: left center;
  transform: rotate(var(--angle));
  /* brightest right at the logo end so the line visibly plugs into it,
     fading back toward the hub (which has its own glow already) */
  background: linear-gradient(to right, rgba(255, 183, 0, 0.15), rgba(255, 183, 0, 0.45) 55%, rgba(255, 183, 0, 0.85));
  z-index: 0;
}
.orbit-particle {
  position: absolute; top: 50%; left: 100%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px 1px rgba(255, 183, 0, 0.7);
  transform: translate(-50%, -50%);
  animation: orbit-particle-flow 3s linear infinite;
  animation-delay: var(--sdelay, 0s);
}
@keyframes orbit-particle-flow {
  0% { left: 100%; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 6%; opacity: 0; }
}

.orbit-item {
  position: absolute; top: 50%; left: 50%;
  transform: rotate(var(--angle)) translateX(150px);
}
.orbit-item-box { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))); }
.orbit-counter { animation: orbit-counter-spin 26s linear infinite; }
@keyframes orbit-counter-spin { to { transform: rotate(-360deg); } }

.orbit-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--p-white-100); padding: 10px; object-fit: contain;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .orbit-visual { width: 300px; height: 300px; }
  .orbit-spoke { width: 128px; }
  .orbit-item { transform: rotate(var(--angle)) translateX(118px); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-counter, .orbit-particle, .orbit-hub { animation: none !important; }
}

/* DFY Mailbox Setup — a mock terminal verifying DNS records, deliberately
   a different visual language (monospace/code) from the node-flow
   pipeline used on the Full Outbound Engine card. */
.terminal-demo { padding: 0; background: #08080a; }
.terminal-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--border);
}
.term-dot { width: 8px; height: 8px; border-radius: 50%; }
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.terminal-body { padding: 0.5rem 0.85rem; font-family: 'Courier New', monospace; }
.term-line {
  font-size: 0.7rem; line-height: 1.55; display: flex; align-items: center; gap: 0.4rem;
  opacity: 0; transform: translateY(3px);
  animation: term-line-in 0.35s ease-out forwards;
  animation-iteration-count: 1;
}
.term-cmd { color: var(--text-secondary); animation-delay: 0.1s; }
.term-cmd::before { content: '$'; color: var(--accent); margin-right: 0.1rem; }
.term-out { color: var(--text); }
.term-out:nth-of-type(2) { animation-delay: 0.9s; }
.term-out:nth-of-type(3) { animation-delay: 1.7s; }
.term-out:nth-of-type(4) { animation-delay: 2.5s; }
.term-out:nth-of-type(5) { animation-delay: 3.3s; }
.term-check {
  width: 13px; height: 13px; border-radius: 50%; background: rgba(34, 197, 94, 0.15);
  color: #22c55e; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.58rem; flex-shrink: 0;
}
@keyframes term-line-in { to { opacity: 1; transform: translateY(0); } }
/* Loop the whole sequence by re-running the container's animation set on a timer via
   a wrapping animation on terminal-body itself (fade out + reset), simplest CSS-only loop */
.terminal-body { animation: term-cycle 5.2s ease-in-out infinite; }
@keyframes term-cycle {
  0%, 82% { opacity: 1; }
  92% { opacity: 0; }
  93% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .term-line, .terminal-body { animation: none !important; opacity: 1; transform: none; }
}
