/* =========================================================
   byHoward — AI Growth Agency
   Dark, modern theme keyed to the navy/teal logo palette
   ========================================================= */

:root {
  --bg: #141722;
  --bg-2: #181c2b;
  --surface: #1e2335;
  --surface-2: #242a40;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f8;
  --muted: #9aa3b8;
  --navy: #2e3470;
  --teal: #2dd9c0;
  --cyan: #33b3e0;
  --teal-dark: #1fc9b4;
  --gradient: linear-gradient(100deg, var(--teal), var(--cyan));
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: var(--teal); text-decoration: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.container.narrow { width: min(780px, 92%); }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.alt-bg { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-sub {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #0c1018;
  box-shadow: 0 8px 28px rgba(45, 217, 192, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(45, 217, 192, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 2.1rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

.text-link {
  display: inline-block;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
}

.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 34, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo { width: 38px; height: 38px; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.brand-name .accent { color: var(--teal); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-link.active { position: relative; }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  text-align: center;
}

.hero-sub { padding: clamp(4rem, 8vw, 6rem) 0; }

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 50% -10%, rgba(45, 217, 192, 0.16), transparent 70%),
    radial-gradient(520px 320px at 85% 20%, rgba(51, 179, 224, 0.10), transparent 70%),
    radial-gradient(520px 320px at 10% 30%, rgba(46, 52, 112, 0.45), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.lede {
  max-width: 640px;
  margin: 1.4rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  padding: 1.6rem 0;
  background: var(--bg-2);
}

.trust-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.trust-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
}

.trust-logos li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
}

.integrations li { color: var(--text); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.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(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-4px); border-color: rgba(45, 217, 192, 0.35); }

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-icon {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 217, 192, 0.14), rgba(51, 179, 224, 0.10));
  border: 1px solid rgba(45, 217, 192, 0.25);
  margin-bottom: 1.1rem;
}

.card-feature { display: flex; flex-direction: column; }
.card-feature p { margin-bottom: 1rem; }

/* ---------- Stats ---------- */
.stats-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(45, 217, 192, 0.08), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stats-disclaimer {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
}

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  border: 1px solid rgba(45, 217, 192, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; }
.quote p { font-style: italic; color: var(--text); }

.quote footer {
  margin-top: auto;
  padding-top: 1.2rem;
}

.quote footer strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.quote footer span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Lead form ---------- */
.book-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.book-copy h2 { margin-bottom: 1rem; }
.book-copy em { font-style: normal; color: var(--teal); }
.book-copy > p { color: var(--muted); }

.check-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.book-form { box-shadow: var(--shadow); }
.book-form:hover { transform: none; }

.form-row { margin-bottom: 1.1rem; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.form-row textarea { resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

.form-status.error { color: #ff8a8a; }

.form-row .field-error { border-color: #ff8a8a; }

.audit-includes-label {
  margin-top: 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.audit-includes-label + .check-list { margin-top: 0.8rem; }

/* ---------- FAQ ---------- */
.accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.accordion details p {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background:
    radial-gradient(640px 320px at 50% 110%, rgba(45, 217, 192, 0.14), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.final-cta p {
  color: var(--muted);
  max-width: 540px;
  margin: 1rem auto 2rem;
}

/* ---------- Agents page ---------- */
.agent-card { display: flex; flex-direction: column; }

.agent-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.agent-head .card-icon { margin-bottom: 0; flex-shrink: 0; }

.agent-tag {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.agent-card .check-list { margin-top: 1.1rem; }
.agent-card .check-list li { font-size: 0.92rem; }

/* ---------- Case studies ---------- */
.case-study { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.case-study:first-of-type { padding-top: clamp(4rem, 7vw, 5.5rem); }

.cs-card { padding: clamp(1.8rem, 4vw, 2.8rem); }
.cs-card:hover { transform: none; }

.cs-header h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-top: 0.5rem; }

.badge-fictional {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(51, 179, 224, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  vertical-align: middle;
}

.cs-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  margin-top: 1.8rem;
}

.cs-text h3 {
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.4rem 0 0.4rem;
}

.cs-text h3:first-child { margin-top: 0; }

.cs-stats {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.cs-stats .stat { text-align: left; }
.cs-stats .stat-number { font-size: 1.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-nav { display: grid; gap: 0.55rem; align-content: start; }
.footer-nav a { color: var(--muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--teal); }

.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .book-inner { grid-template-columns: 1fr; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 4%;
    display: none;
  }

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

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
