/* ===== Katalyst — home (phases.ai-inspired, clean light theme) ===== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --bg-panel: #f0f5f2;
  --ink: #0a1512;          /* near-black, faint green */
  --ink-2: #40514a;        /* body text */
  --ink-3: #6d7d76;        /* muted */
  --line: #e5ece8;
  --line-2: #d5e0da;
  --accent: #0e9e73;       /* Katalyst green */
  --accent-dark: #0a7e5b;
  --accent-soft: #e6f5ef;
  --maxw: 1160px;
  --r: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10,21,18,.05), 0 4px 16px rgba(10,21,18,.04);
  --shadow-lg: 0 24px 60px -20px rgba(10,60,42,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(14,158,115,.5); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(10,21,18,.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, #16bf94, var(--accent-dark));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--ink-2); font-size: 0.93rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta > a:first-child { font-size: 0.93rem; font-weight: 500; color: var(--ink-2); }
.nav-cta > a:first-child:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links, .nav-cta > a:first-child { display: none; } }

/* ===== Section scaffolding ===== */
section { position: relative; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-dark);
  padding: 6px 12px; border-radius: 100px; background: var(--accent-soft); margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; }

/* ===== Hero ===== */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% -5%, rgba(14,158,115,.12), transparent 62%),
    radial-gradient(50% 45% at 10% 0%, rgba(22,191,148,.08), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 14px 6px 10px;
  box-shadow: var(--shadow-sm);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  margin: 22px 0 0; font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.03;
  letter-spacing: -0.04em; font-weight: 700;
}
.hero h1 .grad { background: linear-gradient(100deg, #16bf94, #0a7e5b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.86rem; color: var(--ink-3); }

/* Hero product mock */
.mock {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mock-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--ink-3); font-weight: 500; }
.mock-list { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.mrow .who { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#c9ebe0,#9fd9c7); flex: none; }
.mrow .meta { flex: 1; min-width: 0; }
.mrow .meta b { display: block; font-size: 0.86rem; font-weight: 600; }
.mrow .meta small { color: var(--ink-3); font-size: 0.76rem; }
.score { font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 9px; border-radius: 100px; flex: none; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-3); }
.mock-foot b { color: var(--accent-dark); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .mock { max-width: 460px; }
}

/* ===== Trust / stats strip ===== */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat-label { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--ink-3); }
@media (max-width: 720px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); padding: 26px 16px; }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
}

/* ===== Feature rows (alternating) ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.rev .feature-media { order: -1; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.feature p { margin-top: 16px; color: var(--ink-2); font-size: 1.06rem; }
.feature ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 0.98rem; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; margin-top: 2px; }
.feature-media {
  background: linear-gradient(160deg, var(--bg-panel), #fff);
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  box-shadow: var(--shadow-sm); min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.fm-tag { font-size: 0.76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.fm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.fm-card b { font-size: 0.92rem; }
.fm-card small { display: block; color: var(--ink-3); font-size: 0.8rem; margin-top: 4px; }
.fm-bar { height: 8px; border-radius: 100px; background: var(--line); overflow: hidden; margin-top: 12px; }
.fm-bar > i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg,#16bf94,#0a7e5b); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature + .feature { margin-top: 64px; }
  .feature.rev .feature-media { order: 0; }
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.step-no { font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); letter-spacing: .05em; }
.step h3 { margin-top: 12px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step-link { display: block; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.step-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.step-go { display: inline-block; margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
.step-link:hover .step-go { color: var(--accent); }
.golive-cta { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.golive-note { font-size: 0.95rem; color: var(--ink-3); }
.golive-note b { color: var(--ink-2); }

/* ===== Results / quote ===== */
.results { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 56px; overflow: hidden; position: relative; }
.results::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, rgba(22,191,148,.22), transparent 60%); pointer-events: none; }
.results-inner { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.results .big { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(100deg,#8ff0cf,#16bf94); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results .big small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.6); margin-top: 14px; }
.results blockquote { font-size: 1.35rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; }
.results cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.92rem; color: rgba(255,255,255,.65); }
@media (max-width: 800px) { .results { padding: 44px 28px; } .results-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--accent-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--ink-2); font-size: 1rem; }

/* ===== CTA band ===== */
.cta { padding: 40px 0 110px; }
.cta-card {
  background: linear-gradient(160deg, var(--accent-soft), #fff 70%);
  border: 1px solid var(--line-2); border-radius: 28px; padding: 64px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.08; font-weight: 700; }
.cta-card p { margin: 16px auto 0; max-width: 560px; color: var(--ink-2); font-size: 1.1rem; }
.cta-form { margin: 32px auto 0; max-width: 520px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 100px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 0.95rem; font-family: inherit;
}
.cta-form input::placeholder { color: var(--ink-3); }
.cta-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,158,115,.15); }
.cta-note { margin-top: 18px; font-size: 0.95rem; color: var(--accent-dark); font-weight: 600; }
.cta-err { color: #c0392b; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); font-size: 0.92rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 14px; }
.footer-links a { display: block; color: var(--ink-2); font-size: 0.92rem; margin-bottom: 10px; transition: color .15s; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.85rem; }

/* ===== Channel chip (hero mock) ===== */
.chip {
  display: inline-flex; align-items: center; vertical-align: middle;
  font-size: 0.62rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 100px; margin-left: 6px;
  background: var(--accent-soft); color: var(--accent-dark);
}

/* ===== Capability / channel cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 1.25rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ===== Flow (how it's done) ===== */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.flow-no {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}
.flow-step h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.flow-step p { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
@media (min-width: 981px) {
  .flow-step:not(:last-child)::after {
    content: ''; position: absolute; top: 40px; right: -14px; width: 9px; height: 9px;
    border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2);
    transform: rotate(45deg);
  }
}
@media (max-width: 980px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ===== Control / human-in-the-loop band ===== */
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.band-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.band-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  border: 1px solid var(--line-2); background: #fff; border-radius: 100px;
  padding: 8px 15px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
}
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; gap: 30px; } }

/* ===== Testimonial ===== */
.testimonial {
  max-width: 840px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 56px 48px; box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
  content: '\201C'; position: absolute; top: 8px; left: 32px;
  font-size: 5rem; line-height: 1; color: var(--accent-soft); font-family: Georgia, serif;
}
.testimonial blockquote {
  position: relative; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.35;
  font-weight: 600; letter-spacing: -0.025em; color: var(--ink);
}
.testimonial figcaption { margin-top: 26px; }
.testimonial figcaption b { display: block; font-size: 0.98rem; color: var(--ink); }
.testimonial figcaption span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 0.9rem; }
@media (max-width: 560px) { .testimonial { padding: 40px 26px; } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
