/* ============================================================
   AgentHub — one page landing site
   Modern SaaS design inspired by Fiverr:
   bright green accent, dark hero, bold typography, clean cards
   ============================================================ */

:root {
  --green: #1dbf73;
  --green-dark: #19a463;
  --green-soft: #e8f9f1;
  --dark: #222325;
  --hero-dark: #013912;
  --text: #222325;
  --text-muted: #62646a;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --white: #ffffff;
  --border: #e4e5e7;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(34, 35, 37, 0.1);
  --shadow-soft: 0 4px 16px rgba(34, 35, 37, 0.06);
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* keep anchored sections clear of the sticky header */
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.narrow { max-width: 760px; }
.centre { text-align: center; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { color: var(--text-muted); }
p + p { margin-top: 1rem; }

.eyebrow {
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 191, 115, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--dark);
}

/* Secondary button sits on the dark hero, so it inverts there */
.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.92rem;
  border-radius: 8px;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

/* full Karr Consulting lockup image */
.logo-lockup {
  display: block;
  height: 26px;
  width: auto;
}

.logo span, .footer-logo span { color: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover { color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  background: var(--hero-dark);
  padding: 104px 0 112px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  margin-bottom: 2.4rem;
  max-width: 34rem;
}

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

.hero-credit {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* Hero visual: clean workflow card */

.workflow-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 24px;
  max-width: 420px;
  margin-left: auto;
}

.workflow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-green { background: var(--green); }

.workflow-title { font-weight: 700; font-size: 0.95rem; }

.workflow-status {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.workflow-steps { padding: 18px 0 6px; }

.workflow-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-radius: 10px;
  font-size: 1.1rem;
}

.step-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.step-detail { font-size: 0.8rem; }

.step-check {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
}

.workflow-connector {
  width: 2px;
  height: 22px;
  background: var(--border);
  margin: 4px 0 4px 19px;
}

.workflow-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ============ Logo strip ============ */

.logo-strip {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.logo-strip-caption {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.logo-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  /* fade the strip edges so logos glide in and out */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  list-style: none;
  flex-shrink: 0;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  animation: logo-scroll 30s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  to { transform: translateX(-100%); }
}

/* Placeholder wordmarks — replace with <img> client logos.
   Images should render around 28px tall in greyscale. */
.logo-item {
  white-space: nowrap;
  font-size: 1.3rem;
  color: #9ba0a8;
}

.logo-item img {
  display: block;
  height: 30px;
  width: auto;
}

/* squarer marks need more height to read at strip scale */
.logo-item-boxy img { height: 42px; }
.logo-item-tall img { height: 48px; }

.logo-style-bold { font-weight: 700; letter-spacing: -0.02em; }
.logo-style-lower { font-weight: 800; letter-spacing: -0.03em; }
.logo-style-caps { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1rem; }
.logo-style-caps-italic { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-track[aria-hidden="true"] { display: none; }
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-track {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 32px 48px;
    padding: 0 24px;
  }
}

/* ============ Sections ============ */

.section { padding: 104px 0; }

.section.alt { background: var(--bg-alt); }

.section-heading { text-align: center; }

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.problem { background: var(--bg-alt); }

.problem h2 { margin-bottom: 1.4rem; }

.problem p { font-size: 1.05rem; }

/* ============ Service cards ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
}

.card p { font-size: 0.95rem; }

/* ============ Open source ============ */

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill-list li:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* ============ Audience grid ============ */

.audience-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.audience-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-grid li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ============ How it works ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 3rem;
}

.step {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

/* ============ Pricing ============ */

.pricing-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 36px;
  margin: 2.4rem auto;
  max-width: 460px;
}

.price-line {
  font-size: 1.3rem;
  color: var(--text);
}

.price-line strong {
  font-weight: 700;
  color: var(--green-dark);
}

.price-sub {
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ============ Final CTA ============ */

.final-cta {
  background: var(--hero-dark);
}

.final-cta h2, .final-cta p { color: var(--white); }

.final-cta p {
  opacity: 0.82;
  font-size: 1.05rem;
  margin-bottom: 2.4rem;
}

/* ============ Contact form ============ */

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 44px;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 15px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 191, 115, 0.15);
}

.form-success {
  margin-top: 1.2rem;
  color: var(--green-dark);
  font-weight: 600;
}

.email-fallback {
  text-align: center;
  margin-top: 2rem;
}

.email-fallback a {
  color: var(--green-dark);
  font-weight: 600;
}

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

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.footer-logo .logo-lockup { height: 20px; }

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.88rem;
}

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

@media (max-width: 900px) {
  .hero { padding: 72px 0 80px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .workflow-card { margin: 0 auto; }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section { padding: 76px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 28px 22px; }
}
