/* eefLMS SaaS landing v6 — symmetry + CTA + modal */
:root {
  --ink: #0f1c1a;
  --muted: #5f726c;
  --brand: #1f5c56;
  --brand-2: #2a726b;
  --brand-dark: #0f2a27;
  --accent: #c45c26;
  --accent-2: #e07a3d;
  --line: #d8e4df;
  --soft: #eef5f2;
  --soft-2: #f7fbf9;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 42, 39, .12);
  --shadow-lg: 0 30px 80px rgba(15, 42, 39, .18);
  --radius: 18px;
  --font: "Manrope", "Avenir Next", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--soft-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 10% -10%, rgba(31,92,86,.14), transparent 55%),
    radial-gradient(ellipse 45% 30% at 95% 0%, rgba(196,92,38,.1), transparent 50%),
    linear-gradient(180deg, #f4faf7 0%, var(--soft-2) 45%, #fff 100%);
  pointer-events: none;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247,251,249,.84);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.navbar.is-solid {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.94);
}
.nav-row {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-right: auto;
}
.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-2), var(--brand-dark));
  color: #fff;
  font-weight: 800;
}
.nav-links { display: none; gap: 1.2rem; }
.nav-links a {
  font-size: .9rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: none; gap: .5rem; align-items: center; }
.nav-toggle {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span { width: 1rem; height: 1.5px; background: var(--ink); }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-bottom: 1rem;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a {
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.mobile-menu .btn { margin-top: .75rem; border-bottom: 0; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: .55rem 1.15rem;
  border-radius: .85rem;
  font: inherit;
  font-weight: 750;
  font-size: .92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 3.15rem; padding: .8rem 1.35rem; font-size: .98rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(196,92,38,.28);
}
.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand-2); background: var(--soft); }
.btn-text {
  background: transparent;
  color: var(--muted);
  min-height: auto;
  padding: .4rem .65rem;
}
.btn-light { background: rgba(255,255,255,.96); color: var(--brand-dark); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

/* —— Hero —— */
.hero { padding: 2rem 0 3.25rem; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(31,92,86,.08);
  border: 1px solid rgba(31,92,86,.14);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 750;
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.2vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.75rem;
}

/* Symmetric stats — fixed 3 columns, equal structure */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.stat {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: .15rem;
  padding: 0 .9rem;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat strong {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--brand-dark);
  font-weight: 800;
}
.stat span {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.stat em {
  font-style: normal;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  text-wrap: balance;
}

.hero-visual {
  position: relative;
  min-height: 340px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  z-index: 0;
}
.blob-1 {
  width: 260px; height: 260px;
  background: rgba(31,92,86,.2);
  top: -8%; right: 4%;
}
.blob-2 {
  width: 200px; height: 200px;
  background: rgba(196,92,38,.16);
  bottom: 0; left: 0;
}
.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,42,39,.08);
  background: #fff;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: .7rem 1rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--soft-2);
  text-align: center;
}
.shot-main {
  position: relative;
  z-index: 2;
  transform: rotateY(-5deg) rotateX(3deg);
  box-shadow: var(--shadow-lg);
}
.shot-float {
  position: absolute;
  z-index: 3;
  width: 46%;
  animation: floaty 5.5s ease-in-out infinite;
}
.shot-a { right: -3%; bottom: -6%; }
.shot-b { left: -5%; top: 10%; width: 36%; animation-delay: .9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Strip */
.strip {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 1rem 0;
  justify-content: center;
}
.strip-row span {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

/* Sections */
.section { padding: clamp(3.5rem, 8vh, 5.5rem) 0; }
.section.alt { background: linear-gradient(180deg, #fff, var(--soft-2)); }
.section-head {
  margin-bottom: 2.25rem;
  max-width: 34rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  letter-spacing: -.03em;
  line-height: 1.18;
  text-wrap: balance;
}
.section-head p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  text-wrap: pretty;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15,42,39,.04);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.feature-card .icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card.c1 .icon { background: #e7f1ef; color: var(--brand); }
.feature-card.c2 .icon { background: #f8e9df; color: var(--accent); }
.feature-card.c3 .icon { background: #e8eef8; color: #2f5f9a; }
.feature-card.c4 .icon { background: #eaf6ea; color: #1f7a3f; }
.feature-card.c5 .icon { background: #f3eaf8; color: #6b3d8c; }
.feature-card.c6 .icon { background: #eef6f8; color: #1d6b7a; }
.feature-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  text-wrap: pretty;
}

/* Showcase */
.showcase-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 3.25rem;
}
.showcase-row:last-of-type { margin-bottom: 2rem; }
.chip {
  display: inline-flex;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(31,92,86,.1);
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.showcase-copy h3 {
  margin: 0 0 .7rem;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.showcase-copy > p {
  margin: 0 0 1rem;
  color: var(--muted);
  text-wrap: pretty;
}
.ticks { display: grid; gap: .45rem; margin-bottom: 1.25rem; }
.ticks li {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 650;
  font-size: .95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--brand);
}
.shot-lg { border-radius: 20px; box-shadow: var(--shadow-lg); }

.shot-pair,
.gallery {
  display: grid;
  gap: 1rem;
}
.shot-pair { grid-template-columns: 1fr; }
.gallery.three { grid-template-columns: 1fr; }

/* Steps */
.steps {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr 1fr;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  min-height: 100%;
}
.steps strong {
  display: block;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Demo */
.demo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.demo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 10px 28px rgba(15,42,39,.05);
  display: grid;
  gap: .35rem;
  align-content: start;
}
.demo-card h3 {
  margin: .15rem 0 .5rem;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.mono {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9rem;
  font-weight: 650;
  word-break: break-all;
}
.mono.muted { color: var(--muted); margin-bottom: .85rem; }
.hint {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}
.demo-card .btn { margin-top: .35rem; justify-self: start; }

/* Trio */
.trio {
  display: grid;
  gap: 1rem;
}
.trio article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  min-height: 100%;
}
.trio h3 { margin: 0 0 .45rem; }
.trio p { margin: 0; color: var(--muted); font-size: .95rem; text-wrap: pretty; }

/* CTA */
.cta-banner {
  padding: clamp(3.5rem, 9vh, 5.5rem) 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(196,92,38,.22), transparent 55%),
    linear-gradient(135deg, #12332f, #0f2a27 55%, #1a403b);
  color: #fff;
  text-align: center;
}
.cta-inner h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.cta-inner > p {
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,.7);
}
.cta-banner .hero-cta { justify-content: center; margin: 0; }

/* Footer */
.footer {
  background: #0a1a18;
  color: rgba(255,255,255,.58);
  padding: 2.75rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
}
.footer-credit {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1.2;
}
.footer-credit:hover { color: #fff; }
.footer h4 {
  margin: 0 0 .6rem;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-grid a {
  display: block;
  padding: .2rem 0;
  color: rgba(255,255,255,.82);
  font-weight: 650;
  font-size: .92rem;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
}

/* —— Modal —— */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 24, .55);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.35rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-x {
  position: absolute;
  top: .85rem;
  right: .95rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: var(--soft);
  border-radius: .7rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-card h2 {
  margin: .55rem 0 .55rem;
  font-size: 1.55rem;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.modal-lede {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: .95rem;
  text-wrap: pretty;
}
.lead-form {
  display: grid;
  gap: .75rem;
}
.lead-form label {
  display: grid;
  gap: .35rem;
}
.lead-form span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead-form span em {
  font-style: normal;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  opacity: .8;
}
.lead-form input {
  width: 100%;
  min-height: 2.85rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  font: inherit;
  font-weight: 600;
  background: var(--soft-2);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 0 3px rgba(31,92,86,.16);
  background: #fff;
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .shot-float, .shot-main, .modal-card { animation: none; transform: none; }
  .btn:hover { transform: none; }
}

/* Breakpoints */
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-pair { grid-template-columns: 1fr 1fr; }
  .gallery.three { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 980px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }

  .hero { padding: 2.25rem 0 4rem; }
  .hero-grid {
    grid-template-columns: .92fr 1.18fr;
    gap: 2rem;
    min-height: calc(100svh - var(--nav-h) - 1.5rem);
  }
  .hero-visual { min-height: 480px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-row {
    grid-template-columns: .9fr 1.1fr;
    gap: 2.75rem;
  }
  .showcase-row.reverse { grid-template-columns: 1.1fr .9fr; }
  .showcase-row.reverse .showcase-copy { order: 2; }
  .showcase-row.reverse .shot-lg { order: 1; }
  .steps { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 699px) {
  .stats {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 .85rem;
  }
  .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .shot-float { display: none; }
  .shot-main { transform: none; }
  .hero-cta .btn,
  .cta-banner .hero-cta .btn { flex: 1 1 auto; }
  .cta-banner .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Typography: no orphan phrases */
.nb { white-space: nowrap; }

p,
.hero-lede,
.section-head p,
.showcase-copy > p,
.feature-card p,
.modal-lede,
.trio p {
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
}

.section-head h2,
.showcase-copy h3,
.hero h1 {
  text-wrap: balance;
}
