:root {
  --ink: #0f1a16;
  --muted: #5a6b63;
  --paper: #f4efe4;
  --sand: #e8dfd0;
  --sea: #1a6b58;
  --sea-light: #2d8f76;
  --sea-deep: #0f4a3c;
  --accent: #d4622a;
  --gold: #c9a227;
  --white: #fffcf8;
  --glass: rgba(255,252,248,.72);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body.landing {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background atmosphere ── */
.lp-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.lp-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: lpOrb 12s ease-in-out infinite;
}
.lp-orb-1 {
  width: 55vw; height: 55vw; top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(26,107,88,.22), transparent 70%);
}
.lp-orb-2 {
  width: 45vw; height: 45vw; top: 10%; right: -10%;
  background: radial-gradient(circle, rgba(212,98,42,.14), transparent 70%);
  animation-delay: -4s;
}
.lp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,26,22,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,26,22,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* ── Nav ── */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid rgba(15,26,22,.06);
}
.lp-brand { display: flex; align-items: center; gap: .7rem; }
.lp-brand strong { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.lp-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--sea-light), var(--sea-deep));
  color: #fff; font-weight: 800; font-size: .82rem;
  box-shadow: 0 4px 14px rgba(26,107,88,.35);
}
.lp-nav nav { display: flex; gap: 1.25rem; align-items: center; }
.lp-nav nav > a:not(.lp-btn) {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem;
  transition: color .2s;
}
.lp-nav nav > a:not(.lp-btn):hover { color: var(--ink); }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.35rem; border-radius: 999px;
  background: linear-gradient(145deg, var(--sea-light), var(--sea-deep));
  color: #fff !important; font-weight: 700; font-size: .9rem;
  text-decoration: none; border: 1px solid transparent;
  box-shadow: 0 4px 18px rgba(26,107,88,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,107,88,.38);
}
.lp-btn-lg { padding: .9rem 1.75rem; font-size: .95rem; }
.lp-btn-ghost {
  background: var(--white); color: var(--ink) !important;
  border-color: rgba(15,26,22,.12);
  box-shadow: 0 2px 8px rgba(15,26,22,.04);
}
.lp-btn-ghost:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,26,22,.08);
}

.lp-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: .12em; font-size: .68rem;
  font-weight: 800; color: var(--sea); margin: 0 0 .85rem;
}
.lp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sea-light);
  animation: lpPulse 2s ease infinite;
}

/* ── Hero ── */
.lp-hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 1280px; margin: 0 auto;
}
.lp-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.02; margin: 0 0 1.1rem;
  letter-spacing: -.03em;
  animation: lpRise .8s ease both;
}
.lp-hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--sea-deep), var(--sea-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-lead {
  font-size: 1.1rem; line-height: 1.65; color: var(--muted);
  max-width: 32rem; margin: 0 0 1.6rem;
  animation: lpRise .8s .1s ease both;
}
.lp-cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  animation: lpRise .8s .18s ease both;
}
.lp-trust {
  margin-top: 1.75rem; font-size: .82rem; color: var(--muted); font-weight: 600;
  animation: lpRise .8s .26s ease both;
}
.lp-trust strong { color: var(--sea-deep); font-family: var(--display); font-size: 1rem; }

/* ── Mock dashboard ── */
.lp-hero-visual {
  animation: lpRise .9s .15s ease both, lpFloat 6s ease-in-out 1s infinite;
}
.lp-mock {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(15,26,22,.08);
  box-shadow:
    0 4px 6px rgba(15,26,22,.04),
    0 24px 60px rgba(15,26,22,.12),
    0 0 0 1px rgba(255,255,255,.5) inset;
  overflow: hidden;
}
.lp-mock-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .65rem 1rem;
  background: linear-gradient(180deg, #f8f6f1, #f0ebe3);
  border-bottom: 1px solid rgba(15,26,22,.06);
}
.lp-mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ddd8ce;
}
.lp-mock-dot:first-child { background: #e8837a; }
.lp-mock-dot:nth-child(2) { background: #e8c547; }
.lp-mock-dot:nth-child(3) { background: #7bc47a; }
.lp-mock-url {
  margin-left: .5rem; font-size: .68rem; color: var(--muted); font-weight: 600;
}
.lp-mock-body { display: flex; min-height: 320px; }
.lp-mock-side {
  width: 52px; padding: .85rem .5rem;
  background: #1a2332;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
.lp-mock-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
  color: #fff; font-size: .65rem; font-weight: 800;
  display: grid; place-items: center; margin-bottom: .5rem;
}
.lp-mock-nav-item {
  width: 28px; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,.12);
}
.lp-mock-nav-item.active { background: rgba(79,110,247,.5); width: 32px; }
.lp-mock-main { flex: 1; padding: 1rem; background: #f0f4f9; }
.lp-mock-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .85rem;
}
.lp-mock-kpi {
  background: #fff; border-radius: 10px; padding: .55rem .65rem;
  border: 1px solid rgba(15,26,22,.05);
}
.lp-mock-kpi span { display: block; font-size: .58rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.lp-mock-kpi strong { font-size: 1rem; font-weight: 800; color: var(--ink); }
.lp-mock-kpi.accent strong { color: #7c3aed; }
.lp-mock-chart {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: .65rem;
}
.lp-funnel-preview {
  background: #fff; border-radius: 12px; padding: .75rem;
  border: 1px solid rgba(15,26,22,.05);
  display: flex; flex-direction: column; align-items: center; gap: .28rem;
}
.lp-layer {
  width: var(--w); height: 32px; border-radius: 6px;
  background: var(--c);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .65rem;
  color: #fff; font-weight: 800; font-size: .72rem;
  box-shadow: 0 2px 8px rgba(15,26,22,.1);
}
.lp-layer em {
  font-style: normal; font-weight: 600; font-size: .58rem;
  opacity: .9;
}
.lp-mock-donuts {
  display: flex; flex-direction: column; gap: .5rem; justify-content: center;
}
.lp-donut {
  width: 100%; height: 70px; border-radius: 10px;
  background:
    conic-gradient(#4f6ef7 0 35%, #10b981 35% 60%, #f59e0b 60% 80%, #e2e8f0 80% 100%);
  mask: radial-gradient(circle at center, transparent 42%, #000 43%);
  -webkit-mask: radial-gradient(circle at center, transparent 42%, #000 43%);
  border: 1px solid rgba(15,26,22,.05);
}
.lp-donut-2 {
  background:
    conic-gradient(#8b5cf6 0 40%, #f97316 40% 65%, #3b82f6 65% 85%, #e2e8f0 85% 100%);
}
.lp-mock-badge {
  position: absolute; bottom: 1rem; right: 1rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(26,107,88,.92); color: #fff;
  font-size: .68rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(26,107,88,.35);
}

/* ── Metrics strip ── */
.lp-metrics {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; max-width: 1100px; margin: 0 auto 3rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.lp-metric {
  text-align: center; padding: 1.5rem 1rem;
  border-right: 1px solid rgba(15,26,22,.08);
}
.lp-metric:last-child { border-right: none; }
.lp-metric strong {
  display: block; font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--sea-deep); margin-bottom: .25rem;
}
.lp-metric span { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ── Sections ── */
.lp-section {
  position: relative; z-index: 1;
  padding: 4rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px; margin: 0 auto;
}
.lp-section-head { margin-bottom: 2.5rem; max-width: 540px; }
.lp-section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 .6rem; letter-spacing: -.02em;
}
.lp-section-lead { color: var(--muted); margin: 0; line-height: 1.6; font-size: 1.02rem; }

.lp-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem;
}
.lp-feature {
  padding: 1.5rem 1.4rem;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(15,26,22,.06);
  box-shadow: 0 4px 20px rgba(15,26,22,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lp-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,26,22,.08);
}
.lp-feature-hero {
  grid-row: span 2;
  background: linear-gradient(165deg, #fff 0%, #f0f7f4 100%);
  border-color: rgba(26,107,88,.12);
}
.lp-feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, var(--sea-light), var(--sea-deep));
  color: #fff; font-size: 1rem;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.lp-feature h3 { margin: 0 0 .5rem; font-size: 1.08rem; }
.lp-feature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.lp-mini-funnel {
  margin-top: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.lp-mini-funnel span {
  height: 14px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sea-light), var(--sea-deep));
  opacity: .85;
}

/* ── Pipeline flow ── */
.lp-pipeline {
  position: relative; z-index: 1;
  margin: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sea-deep) 0%, #1a5c4a 50%, #0d3d32 100%);
  overflow: hidden;
}
.lp-pipeline::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.lp-pipeline-inner {
  position: relative; padding: 3.5rem clamp(1.5rem, 4vw, 3rem);
  max-width: 1100px; margin: 0 auto;
}
.lp-pipeline .lp-kicker { color: rgba(255,255,255,.7); }
.lp-pipeline .lp-section-head h2 { color: #fff; }
.lp-pipeline .lp-section-lead { color: rgba(255,255,255,.75); }
.lp-stage-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .25rem;
  margin-top: 2rem;
}
.lp-stage-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}
.lp-stage-item.highlight {
  background: rgba(255,255,255,.95);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.lp-stage-item.highlight strong { color: var(--sea-deep); }
.lp-stage-num {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,.2);
  font-size: .68rem; font-weight: 800;
  display: grid; place-items: center;
  color: #fff;
}
.lp-stage-item.highlight .lp-stage-num {
  background: var(--sea); color: #fff;
}
.lp-stage-item strong { font-size: .82rem; color: #fff; white-space: nowrap; }
.lp-stage-arrow { color: rgba(255,255,255,.4); font-size: .9rem; font-weight: 700; padding: 0 .15rem; }

/* ── Roles ── */
.lp-roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.lp-role-card {
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(15,26,22,.07);
  box-shadow: 0 4px 24px rgba(15,26,22,.05);
  transition: transform .25s ease;
}
.lp-role-card:hover { transform: translateY(-3px); }
.lp-role-card.featured {
  background: linear-gradient(165deg, #fff, #eef6f3);
  border-color: rgba(26,107,88,.2);
  box-shadow: 0 12px 40px rgba(26,107,88,.12);
  transform: scale(1.02);
}
.lp-role-card.featured:hover { transform: scale(1.02) translateY(-3px); }
.lp-role-badge {
  display: inline-block; padding: .25rem .65rem; border-radius: 999px;
  background: rgba(26,107,88,.1); color: var(--sea-deep);
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .85rem;
}
.lp-role-card h3 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.25rem; }
.lp-role-card p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.lp-role-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.lp-role-card li {
  padding: .3rem .65rem; border-radius: 8px;
  background: rgba(15,26,22,.04);
  font-size: .75rem; font-weight: 700; color: var(--muted);
}

/* ── Footer CTA ── */
.lp-footer-cta {
  position: relative; z-index: 1;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 4rem;
}
.lp-footer-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 3rem 2rem;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--white), #f5f0e8);
  border: 1px solid rgba(15,26,22,.08);
  box-shadow: 0 20px 60px rgba(15,26,22,.08);
}
.lp-footer-card h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 .6rem;
}
.lp-footer-card p { color: var(--muted); margin: 0 0 1.5rem; font-size: 1.02rem; }
.lp-footer-card .lp-cta { justify-content: center; }

.lp-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid rgba(15,26,22,.06);
}
.lp-foot-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--muted); }
.lp-foot a { color: var(--sea); text-decoration: none; font-weight: 700; font-size: .9rem; }
.lp-foot a:hover { color: var(--sea-deep); }

@keyframes lpRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes lpOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, 3%) scale(1.05); }
}
@keyframes lpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; min-height: auto; }
  .lp-hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
  .lp-metrics { grid-template-columns: 1fr 1fr; }
  .lp-metric:nth-child(2) { border-right: none; }
  .lp-metric { border-bottom: 1px solid rgba(15,26,22,.08); }
  .lp-features { grid-template-columns: 1fr; }
  .lp-feature-hero { grid-row: span 1; }
  .lp-roles { grid-template-columns: 1fr; }
  .lp-role-card.featured { transform: none; }
  .lp-stage-flow { justify-content: center; }
  .lp-stage-arrow { display: none; }
  .lp-nav nav > a:not(.lp-btn) { display: none; }
}

@media (max-width: 520px) {
  .lp-mock-chart { grid-template-columns: 1fr; }
  .lp-mock-donuts { flex-direction: row; }
  .lp-donut { height: 56px; flex: 1; }
}
