/* ===== Metronome Labs Design System ===== */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F5F2;
  --bg-dark: #1A1815;
  --ink: #1A1815;
  --ink-2: #4A4540;
  --ink-3: #8B8580;
  --rule: #E8E4DD;
  --coral: #FF6B5B;
  --coral-deep: #E8625A;
  --amber: #FFB347;
  --golden: #FFC857;
  --coral-glow: rgba(255, 107, 91, 0.45);
  --amber-glow: rgba(255, 179, 71, 0.35);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--ink); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--coral); }

/* Wordmark */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.025em;
  color: var(--ink); line-height: 1;
}
.wordmark .dot { color: var(--coral); }
.wordmark svg { width: 22px; height: 22px; }

/* Nav */
nav.main {
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a, .nav-link { font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav-link:hover { color: var(--coral); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 10px 18px;
  background: var(--coral); color: var(--bg);
  border-radius: 4px;
  box-shadow: 0 0 0 0 var(--coral-glow);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover {
  background: var(--coral-deep); color: var(--bg);
  box-shadow: 0 0 0 4px var(--coral-glow), 0 8px 24px rgba(255, 107, 91, 0.3);
  transform: translateY(-1px);
}
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after { content: ' \25BE'; font-size: 10px; opacity: 0.5; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 8px;
  padding: 24px 28px; min-width: 540px; z-index: 200;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  margin-top: 12px;
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-heading {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--coral); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.nav-dropdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 28px; }
.nav-dropdown-link {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 6px 0; transition: color 150ms;
  white-space: nowrap;
}
.nav-dropdown-link:hover { color: var(--coral); }
.nav-dropdown-all {
  display: block; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--coral); font-weight: 600; font-size: 13px;
}

/* Page hero (compact, sub-page) */
.page-hero {
  padding: 80px 48px 60px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--coral);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 24px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 14px;
}
.page-hero-eyebrow::before, .page-hero-eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--coral);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
  color: var(--ink); margin: 0 auto 20px; max-width: 880px;
}
.page-hero h1 .underline {
  background-image: linear-gradient(180deg, transparent 76%, var(--coral) 76%, var(--coral) 92%, transparent 92%);
  background-repeat: no-repeat; padding: 0 4px;
}
.page-hero p.lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 620px; margin: 0 auto;
}

/* Buttons */
.btn-glow {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: var(--bg);
  padding: 16px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 0 24px var(--coral-glow), 0 0 48px rgba(255, 179, 71, 0.18);
  animation: cta-pulse 3.2s ease-in-out infinite;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glow::after { content: '→'; font-size: 17px; transition: transform 220ms ease; }
.btn-glow:hover {
  background: var(--coral-deep); color: var(--bg); transform: translateY(-2px);
  box-shadow: 0 0 32px var(--coral-glow), 0 12px 40px rgba(255, 107, 91, 0.4), 0 0 64px rgba(255, 179, 71, 0.25);
}
.btn-glow:hover::after { transform: translateX(6px); }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 24px var(--coral-glow), 0 0 48px rgba(255, 179, 71, 0.18); }
  50%      { box-shadow: 0 0 36px rgba(255, 107, 91, 0.55), 0 0 72px rgba(255, 179, 71, 0.30); }
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px;
}
.btn-secondary:hover { color: var(--coral); border-bottom-color: var(--coral); }
.btn-secondary::after { content: '→'; transition: transform 200ms ease; }
.btn-secondary:hover::after { transform: translateX(4px); }

/* Ticker */
.ticker {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 20px 0; overflow: hidden; white-space: nowrap; background: var(--bg);
}
.ticker-track {
  display: inline-flex; gap: 56px;
  animation: ticker 40s linear infinite;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
}
.ticker-dot { color: var(--coral); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 100px 48px; max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--bg-soft); padding: 100px 48px; }
.section-alt-inner { max-width: 1280px; margin: 0 auto; }
.section-dark { background: var(--bg-dark); color: var(--bg); padding: 100px 48px; }
.section-dark-inner { max-width: 1280px; margin: 0 auto; }
.section-dark a { color: var(--bg); }
.section-dark a:hover { color: var(--coral); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--coral);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--coral); }
.eyebrow.center { justify-content: center; }
.section-dark .eyebrow { color: var(--amber); }
.section-dark .eyebrow::before { background: var(--amber); }

.display-h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--ink); max-width: 880px;
}
.display-h2 .underline {
  background-image: linear-gradient(180deg, transparent 78%, var(--coral) 78%, var(--coral) 92%, transparent 92%);
  background-repeat: no-repeat; padding: 0 3px;
}
.section-dark .display-h2 { color: var(--bg); }
.display-h2.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-sub {
  font-size: 18px; color: var(--ink-2);
  max-width: 640px; margin-top: 20px; line-height: 1.55;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark .section-sub { color: rgba(255,255,255,0.72); }

.longform {
  max-width: 720px; margin: 40px 0 0;
  font-size: 19px; line-height: 1.55; color: var(--ink-2);
}
.longform p { margin-bottom: 24px; }
.longform p:last-child { margin-bottom: 0; }
.longform a { color: var(--ink); border-bottom: 1.5px solid var(--coral); padding-bottom: 2px; font-weight: 600; }
.longform a:hover { color: var(--coral); }
.section-dark .longform { color: rgba(255,255,255,0.78); }

/* Card grid (used for listings) */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.list-card {
  display: block; padding: 32px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.list-card::after {
  content: '→'; position: absolute; right: 24px; top: 32px;
  color: var(--coral); font-size: 18px;
  opacity: 0; transform: translateX(-8px);
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.list-card:hover {
  border-color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.list-card:hover::after { opacity: 1; transform: translateX(0); }
.list-card .tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--coral); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
  display: block;
}
.list-card h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 12px; color: var(--ink);
  padding-right: 28px;
}
.list-card p {
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
}
.list-card .metric {
  font-size: 32px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 8px; line-height: 1;
}

/* Proof rows (dark) */
.proof-list { margin-top: 48px; }
.proof-row {
  display: grid; grid-template-columns: 1.1fr 2fr 0.7fr; gap: 32px;
  align-items: start; padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-decoration: none; color: inherit;
  transition: padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.proof-row::after {
  content: '→'; position: absolute; right: 0; top: 50%;
  transform: translate(-32px, -50%); opacity: 0;
  color: var(--coral); font-size: 22px;
  transition: all 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.proof-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.10); }
.proof-row:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(255,107,91,0.04) 0%, transparent 80%); }
.proof-row:hover::after { opacity: 1; transform: translate(0, -50%); }
.proof-metric { font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; color: var(--bg); }
.proof-row:hover .proof-metric { color: var(--coral); }
.proof-context { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 580px; }
.proof-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); text-align: right; padding-top: 8px; font-weight: 500; }

/* Pillars / Phase grid */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--rule); }
.pillars.three { grid-template-columns: repeat(3, 1fr); }
.pillar { padding-right: 8px; }
.pillar-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--coral); letter-spacing: 0.1em;
  margin-bottom: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.pillar-num::before {
  content: ''; width: 6px; height: 6px;
  background: var(--coral); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,91,0.18);
}
.pillar h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; color: var(--ink); }
.pillar p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* Lead magnet callout (used on industry pages) */
.lead-callout {
  background: linear-gradient(135deg, rgba(255,107,91,0.04), rgba(255,179,71,0.04));
  border-top: 1px solid rgba(255,107,91,0.12);
  border-bottom: 1px solid rgba(255,107,91,0.12);
  padding: 80px 48px;
  text-align: center;
}
.lead-callout-inner { max-width: 720px; margin: 0 auto; }
.lead-callout h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); margin-bottom: 16px; }
.lead-callout p { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin-bottom: 32px; }
.lead-callout-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; background: transparent;
  border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 600; font-size: 15px; border-radius: 6px;
  text-decoration: none; transition: all 200ms;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* Final CTA */
.final-cta { padding: 120px 48px; text-align: center; background: var(--bg); border-top: 1px solid var(--rule); position: relative; overflow: hidden; }
.final-cta::before {
  content: ''; position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, var(--coral-glow) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; color: var(--ink); margin: 0 auto 24px; }
.final-cta h2 .underline { background-image: linear-gradient(180deg, transparent 78%, var(--coral) 78%, var(--coral) 92%, transparent 92%); background-repeat: no-repeat; padding: 0 4px; }
.final-cta p { font-size: 18px; color: var(--ink-2); line-height: 1.55; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Email strip */
.email-strip { background: var(--bg-soft); padding: 72px 48px; text-align: center; }
.email-inner { max-width: 720px; margin: 0 auto; }
.email-inner h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin-bottom: 14px; }
.email-inner h3 .accent { color: var(--coral); }
.email-inner p { font-size: 16px; color: var(--ink-2); line-height: 1.55; margin-bottom: 28px; }
.email-form { display: flex; max-width: 480px; margin: 0 auto; border-bottom: 1.5px solid var(--ink); transition: border-color 200ms ease; }
.email-form:focus-within { border-bottom-color: var(--coral); }
.email-input { flex: 1; padding: 12px 0; background: transparent; border: none; color: var(--ink); font-family: var(--font-display); font-size: 16px; outline: none; }
.email-input::placeholder { color: var(--ink-3); }
.email-submit { padding: 12px 8px; background: transparent; border: none; color: var(--ink); font-family: var(--font-display); font-size: 16px; font-weight: 700; cursor: pointer; transition: color 200ms ease; }
.email-submit:hover { color: var(--coral); }
.email-submit::after { content: ' →'; }

/* FAQ */
.faq-list { max-width: 880px; margin: 48px auto 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { padding: 24px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 32px; transition: padding 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq-q:hover { padding-left: 12px; }
.faq-q h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.faq-q:hover h3 { color: var(--coral); }
.faq-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 16px; line-height: 1;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-q:hover .faq-icon { background: var(--coral); border-color: var(--coral); color: var(--bg); box-shadow: 0 0 0 5px rgba(255,107,91,0.18); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 360ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--coral); border-color: var(--coral); color: var(--bg); }
.faq-a-inner { padding: 0 0 28px; color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 720px; }

/* Footer */
footer { background: var(--bg); color: var(--ink); padding: 64px 48px 32px; border-top: 1px solid var(--rule); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 18px; font-weight: 700; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--coral); }
.footer-brand-block { max-width: 360px; }
.footer-brand-block p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 16px 0 12px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--rule); padding-top: 24px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* Responsive */
@media (max-width: 768px) {
  nav.main { padding: 14px 20px; }
  .nav-links { display: none; }
  nav.main .nav-cta { display: inline-flex; padding: 9px 14px; font-size: 13px; }
  .page-hero { padding: 56px 20px 40px; }
  .section, .section-alt, .section-dark, .lead-callout { padding: 64px 20px; }
  .ticker { padding: 16px 0; }
  .ticker-track { font-size: 12px; gap: 36px; }
  .display-h2 { font-size: clamp(28px, 7vw, 36px); }
  .card-grid, .card-grid.two-col { grid-template-columns: 1fr; gap: 16px; }
  .pillars, .pillars.three { grid-template-columns: 1fr; gap: 32px; }
  .pillar { padding-right: 0; }
  .proof-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .proof-row:hover { padding-left: 0; background: none; }
  .proof-row::after { display: none; }
  .proof-tag { text-align: left; }
  .proof-metric { font-size: 36px; }
  .faq-q { padding: 20px 0; gap: 16px; }
  .faq-q h3 { font-size: 16px; }
  .faq-icon { width: 28px; height: 28px; font-size: 15px; }
  .final-cta { padding: 80px 20px; }
  .final-cta h2 { font-size: clamp(32px, 8vw, 48px); }
  .final-cta p { font-size: 16px; }
  .email-strip { padding: 48px 20px; }
  .email-form { max-width: 100%; }
  .lead-callout-buttons { flex-direction: column; align-items: stretch; }
  footer { padding: 48px 20px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
