:root {
  --pine-950: #0f281e;
  --pine-900: #153a2c;
  --pine-800: #1f4c3a;
  --pine-700: #2f6b4f;
  --pine-600: #3d8262;
  --pine-100: #e7f0ea;
  --pine-50: #f4f8f5;
  --gold-500: #c9973b;
  --gold-400: #dcb15f;
  --gold-300: #ecd19c;
  --ink: #16211c;
  --inksoft: #5b6d64;
  --line: #e3e8e4;
  --paper: #faf9f5;
  --card: #ffffff;
  --shadow-lift: 0 1px 3px rgba(15, 40, 30, 0.08), 0 1px 2px rgba(15, 40, 30, 0.06);
  --shadow-pop: 0 12px 32px rgba(15, 40, 30, 0.14), 0 4px 12px rgba(15, 40, 30, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--pine-50);
  padding: 0.15em 0.5em;
  border-radius: 6px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- background decoration ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 800px 500px at 85% -5%, rgba(201, 151, 59, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at -5% 20%, rgba(47, 107, 79, 0.06), transparent 60%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--pine-950);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pine-950);
  color: var(--gold-400);
}
.brand-accent { color: var(--gold-500); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 0.88rem;
}
.nav-links a:not(.nav-cta) { color: var(--inksoft); transition: color 0.15s; }
.nav-links a:not(.nav-cta):hover { color: var(--pine-800); }
.nav-cta {
  background: var(--pine-950);
  color: white !important;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--pine-800); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--pine-950); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 70px;
  background: radial-gradient(ellipse 1000px 600px at 50% -10%, var(--pine-800), var(--pine-950) 60%);
  color: white;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 151, 59, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-logo {
  display: block;
  margin: 0 auto 22px;
  width: 180px;
  height: auto;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.accent { color: var(--gold-400); }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero-tags span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.hero-phone::before {
  content: "";
  position: absolute;
  top: -20px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(201, 151, 59, 0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold-500); color: var(--pine-950); box-shadow: var(--shadow-lift); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.btn-outline { border-color: rgba(255, 255, 255, 0.3); color: white; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--pine-950); color: white; }
.btn-dark:hover { background: var(--pine-800); transform: translateY(-2px); }
.section .btn-outline { border-color: var(--line); color: var(--ink); }
.section .btn-outline:hover { border-color: var(--pine-600); background: var(--pine-50); }

/* ---------- stats ---------- */
.stats { padding: 50px 0; background: white; border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num, .stat-num-text {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pine-800);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--inksoft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--pine-50); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 10px;
  color: var(--pine-950);
}
.section-sub {
  text-align: center;
  color: var(--inksoft);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 50px;
}

.grid { display: grid; gap: 22px; }
.features-grid { grid-template-columns: repeat(4, 1fr); }
.two-col { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lift);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card-icon {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--pine-100);
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--pine-950);
}
.card p { margin: 0; color: var(--inksoft); font-size: 0.92rem; line-height: 1.55; }

/* ---------- multitenant diagram ---------- */
.tenant-diagram { max-width: 720px; margin: 0 auto 60px; }
.tenant-diagram-top { display: flex; justify-content: center; margin-bottom: 8px; }
.tenant-box {
  border-radius: 16px;
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.tenant-box-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.tenant-box-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.7;
  margin-top: 2px;
}
.tenant-box.platform {
  background: var(--pine-950);
  color: white;
  min-width: 220px;
}
.tenant-diagram-lines {
  height: 40px;
  border-left: 2px dashed var(--pine-600);
  border-right: 2px dashed var(--pine-600);
  border-top: 2px dashed var(--pine-600);
  margin: 0 15%;
  border-radius: 12px 12px 0 0;
}
.tenant-diagram-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tenant-box.church { background: white; border: 1px solid var(--line); color: var(--ink); }
.tenant-box.church .dim { color: var(--inksoft); font-weight: 500; }
.tenant-box.church-ghost { border-style: dashed; opacity: 0.75; }

/* ---------- stack chips ---------- */
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.stack-chips span {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--pine-800);
}
.cta-inline {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ---------- demo cards ---------- */
.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lift);
}
.demo-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--pine-100);
  color: var(--pine-800);
  padding: 3px 10px;
  border-radius: 999px;
}
.demo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-list li span { font-size: 0.78rem; font-weight: 700; color: var(--inksoft); }
.demo-list code.copy { cursor: pointer; transition: background 0.15s, color 0.15s; }
.demo-list code.copy:hover { background: var(--gold-300); }
.demo-list code.copy.copied { background: var(--pine-700); color: white; }
.demo-note { text-align: center; margin-top: 30px; font-size: 0.88rem; color: var(--inksoft); }
.demo-note a { color: var(--pine-700); font-weight: 700; text-decoration: underline; }

/* ---------- cta banner ---------- */
.cta-banner { padding: 80px 0; }
.cta-banner-inner {
  background: var(--pine-950);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 151, 59, 0.25), transparent 60%);
}
.cta-banner-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 14px;
  position: relative;
}
.cta-banner-inner p {
  max-width: 480px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}
.cta-banner-inner .btn { position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tag { margin: 4px 0 0; font-size: 0.82rem; color: var(--inksoft); }
.footer-links { display: flex; gap: 22px; font-size: 0.85rem; font-weight: 700; color: var(--inksoft); }
.footer-links a:hover { color: var(--pine-800); }

/* ---------- phone mockups ---------- */
.mockups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.mockup-col { text-align: center; }
.phone {
  background: var(--pine-950);
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow-pop);
  max-width: 260px;
  margin: 0 auto;
}
.phone-notch {
  height: 18px;
  width: 70px;
  background: var(--pine-950);
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  margin-top: -18px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.phone-real .phone-screen { min-height: 0; }
.phone-shot { width: 100%; display: block; }
.phone-lg { max-width: 300px; }
.phone-lg .phone-notch { height: 20px; width: 80px; }
.mockup-caption { margin: 18px auto 0; max-width: 280px; font-size: 0.85rem; color: var(--inksoft); line-height: 1.5; }
.mockup-caption strong { color: var(--pine-800); }

/* ---------- screenshot gallery strip ---------- */
.shot-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
}
.shot-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.shot-card img { width: 100%; display: block; }
.shot-card figcaption { padding: 14px 16px 18px; font-size: 0.85rem; color: var(--inksoft); line-height: 1.5; }

/* ---------- flow tabs ---------- */
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.flow-tab {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--inksoft);
  cursor: pointer;
  transition: all 0.15s;
}
.flow-tab:hover { border-color: var(--pine-400, var(--pine-600)); }
.flow-tab.active { background: var(--pine-950); color: white; border-color: var(--pine-950); }
.flow-panels { max-width: 640px; margin: 0 auto; }
.flow-panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 30px 30px 50px;
  box-shadow: var(--shadow-lift);
  counter-reset: step;
}
.flow-panel.active { display: block; }
.flow-panel li {
  position: relative;
  padding-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}
.flow-panel li:last-child { padding-bottom: 0; }
.flow-panel li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -34px;
  top: 0;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--pine-950);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.flow-panel li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -23px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.flow-panel li b { color: var(--pine-800); }

/* ---------- story cards ---------- */
.stories-grid { grid-template-columns: repeat(2, 1fr); }
.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-lift);
}
.story-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pine-700);
  margin-bottom: 8px;
}
.story-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.story-card b { color: var(--pine-800); }

/* ---------- diagrams ---------- */
.diagram-block {
  background: var(--pine-950);
  border-radius: 20px;
  padding: 28px;
  margin: 30px 0;
  box-shadow: var(--shadow-pop);
  overflow-x: auto;
}
.diagram-caption { color: var(--pine-200, rgba(255,255,255,0.7)); font-size: 0.85rem; font-weight: 700; margin: 0 0 14px; }
.diagram-block pre.mermaid { background: transparent; display: flex; justify-content: center; min-width: 560px; }

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

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .tenant-diagram-bottom { grid-template-columns: 1fr; }
  .mockups-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; gap: 46px; }
  .stories-grid { grid-template-columns: 1fr; }
  .flow-panel { padding: 26px 22px 26px 46px; }
  .flow-panel li::before { left: -30px; }
  .flow-panel li::after { left: -19px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { align-self: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 50px; }
  .section { padding: 60px 0; }
  .cta-banner-inner { padding: 44px 22px; }
  .phone-lg { max-width: 240px; }
  .shot-card { flex: 0 0 78%; }
}
