/* Legnd Marketing — design system + styles
   Ink-first, voltage-lime accent. Space Grotesk display + Inter body. */

:root {
  --ink: #0F1115;
  --ink-2: #171A21;
  --ink-3: #20242E;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --lime: #C6F24E;
  --lime-deep: #A6D634;
  --muted: #5C6270;
  --muted-on-ink: #9AA1B0;
  --line: #E4E1D9;
  --line-ink: #2A2E39;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 40px);
  --shadow: 0 18px 50px -24px rgba(15, 17, 21, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime-deep);
  display: inline-block;
}
.eyebrow.on-ink { color: var(--lime); }
.eyebrow.on-ink::before { background: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.on-ink { color: var(--paper); border-color: var(--line-ink); }
.btn-ghost.on-ink:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn .arrow { font-size: 1.1em; line-height: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.brand .dot { color: var(--lime-deep); }
.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 8px;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  position: relative;
  padding: 0.2em 0;
}
.nav-links a:hover { color: var(--muted); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--lime-deep);
}
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--white); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
}
.section-ink .lead { color: var(--muted-on-ink); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(198,242,78,0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--lime); }
.hero .lead { color: #C9CDD6; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--line-ink);
  padding-top: 1.4rem;
}
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: -0.02em;
}
.hero-trust .lbl { font-size: 0.85rem; color: var(--muted-on-ink); }

/* Hero visual: stylized lead-flow panel */
.lead-panel {
  background: var(--ink-2);
  border: 1px solid var(--line-ink);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.lead-panel .lp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.lead-panel .lp-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.lead-panel .lp-live {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.lead-panel .lp-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198,242,78,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198,242,78,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(198,242,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,242,78,0); }
}
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-bottom: 1.1rem; }
.lp-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--lime), var(--lime-deep));
  border-radius: 5px 5px 0 0;
  opacity: 0.9;
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .lp-bars span { transition: none; }
}
.lp-rows { display: grid; gap: 0.55rem; }
.lp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink-3);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}
.lp-row .who { display: flex; align-items: center; gap: 0.6em; color: #D7DAE1; }
.lp-row .who i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--lime);
  font-family: "Space Grotesk", sans-serif;
}
.lp-row .tag {
  font-size: 0.7rem;
  color: var(--lime);
  background: rgba(198,242,78,0.12);
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

/* ---------- Logos / marquee strip ---------- */
.strip {
  background: var(--ink);
  color: var(--muted-on-ink);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-ink);
}
.strip .container {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* "Built for" stays put on the left */
.strip-label { flex: 0 0 auto; white-space: nowrap; }
/* Window the scrolling services pass through; fade out at both edges */
.strip-marquee {
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* The track holds two identical copies and slides one full copy width */
.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 38s linear infinite;
}
.strip-track:hover { animation-play-state: paused; }
.strip b {
  color: var(--paper);
  font-weight: 600;
  margin-right: 2.4rem;
  white-space: nowrap;
}
/* Move content left-to-right: start shifted one copy left, slide back to 0 */
@keyframes strip-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; transform: none; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ink);
}
.card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }
.card .more {
  margin-top: 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  display: inline-flex;
  gap: 0.4em;
}
.card .more:hover { color: var(--lime-deep); }

/* numbered process steps */
.step {
  background: var(--ink-2);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.step .n {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { color: var(--white); margin-bottom: 0.3rem; }
.step p { color: var(--muted-on-ink); margin-bottom: 0; font-size: 0.95rem; }

/* stat band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-ink .stat .num { color: var(--lime); }
.stat .lbl { color: var(--muted); font-size: 0.95rem; }
.section-ink .stat .lbl { color: var(--muted-on-ink); }

/* section heading block */
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1115' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* feature visual block */
.frame {
  background: var(--ink);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.frame::after {
  content: "";
  position: absolute;
  left: -20%; bottom: -30%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(198,242,78,0.14), transparent 60%);
}
.gbp-card { position: relative; z-index: 1; display: grid; gap: 0.9rem; }
.gbp-top { display: flex; align-items: center; gap: 0.8rem; }
.gbp-top .logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
}
.gbp-top .name { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.gbp-top .meta { font-size: 0.82rem; color: var(--muted-on-ink); }
.stars { color: var(--lime); letter-spacing: 2px; }
.gbp-pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--ink-3); border-radius: 999px;
  padding: 0.5em 0.9em; font-size: 0.85rem; color: #D7DAE1;
}
.gbp-pill .up { color: var(--lime); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 820px; margin-inline: auto; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq details[open] summary .pm { background: var(--lime); border-color: var(--lime); transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0.9rem 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--lime); color: var(--ink); text-align: center; }
.cta-band h2 { color: var(--ink); }
.cta-band .lead { color: #3a4416; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-primary { background: var(--ink); color: var(--paper); }
.cta-band .btn-primary:hover { background: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info .ci-item { display: flex; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-item:first-of-type { padding-top: 0; }
.contact-info .ci-item .ic {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--ink); color: var(--lime); display: grid; place-items: center;
}
.contact-info .ci-item .ic svg { width: 20px; height: 20px; }
.contact-info .ci-item h4 { font-family: "Space Grotesk", sans-serif; margin: 0 0 0.15rem; font-size: 1rem; }
.contact-info .ci-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

form.card { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; font-family: "Space Grotesk", sans-serif; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 11vw, 130px) 0 clamp(48px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -8%; top: -30%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(198,242,78,0.14), transparent 60%);
}
.page-hero .inner { position: relative; z-index: 1; max-width: 70ch; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #C9CDD6; }
.breadcrumb { font-size: 0.85rem; color: var(--muted-on-ink); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--lime); }

/* about values */
.value h3 { display: flex; align-items: center; gap: 0.6rem; }
.value h3 .b { color: var(--lime-deep); font-family: "Space Grotesk", sans-serif; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-ink); padding: clamp(48px, 7vw, 80px) 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-ink);
}
.site-footer .brand { color: var(--paper); margin-bottom: 1rem; }
.site-footer p { color: var(--muted-on-ink); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--muted-on-ink); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  /* Breathing room above the logo/CTA so the header isn't smashed at the top */
  .site-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .nav { gap: 0.6rem; }
  .brand { font-size: 1.2rem; min-width: 0; }
  .nav-links {
    position: fixed;
    inset: calc(72px + max(12px, env(safe-area-inset-top))) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(15, 17, 21, 0.12);
    padding: 0.5rem var(--pad) 1.25rem;
    transform: translateY(-135%);
    /* Fully hide when closed so the menu can never peek above the header */
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    max-height: calc(100dvh - 72px - max(12px, env(safe-area-inset-top)));
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s;
  }
  .nav-links a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 0.4rem; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
/* Hamburger morphs into an X when the menu is open */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
