/**
 * SadiFlow public landing page.
 * Pattern: Feature-Rich Showcase. Style: Aurora mesh + soft glass depth.
 * Namespaced `sf-lp` so it never collides with the app shell in sadiflow.css.
 */

.sf-lp-page {
  --lp-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --lp-navy: #0b1b33;
  --lp-ink: #101c2e;
  --lp-muted: #55637a;
  --lp-blue: #0b57d0;
  --lp-blue-bright: #2b8bff;
  --lp-surface: #ffffff;
  --lp-line: rgba(11, 27, 51, 0.09);
  --lp-shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.05), 0 6px 16px rgba(11, 27, 51, 0.05);
  --lp-shadow-md: 0 2px 6px rgba(11, 27, 51, 0.05), 0 18px 40px rgba(11, 27, 51, 0.08);
  --lp-shadow-lg: 0 30px 70px rgba(11, 27, 51, 0.14);
  --lp-radius: 18px;
  --lp-radius-lg: 24px;

  font-family: var(--lp-font);
  background: #fbfcfe;
}

.sf-lp-page .sf-main {
  padding: 0;
}

/* --- Landing navbar treatment ------------------------------------------- */

.sf-lp-page .sf-site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.sf-lp-page .sf-navbar {
  background: rgba(251, 252, 254, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--lp-line);
}

.sf-lp-page .sf-navbar .nav-link {
  font-family: var(--lp-font);
  font-weight: 600;
  color: var(--lp-muted);
}

.sf-lp-page .sf-navbar .nav-link:hover,
.sf-lp-page .sf-navbar .nav-link:focus {
  color: var(--lp-ink);
}

.sf-lp-page .sf-navbar .nav-link.btn-primary {
  background: var(--lp-blue);
  border-color: var(--lp-blue);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(11, 87, 208, 0.24);
}

.sf-lp-page .sf-navbar .navbar-collapse.show,
.sf-lp-page .sf-navbar .navbar-collapse.collapsing {
  background: var(--lp-surface);
  border-radius: 0 0 var(--lp-radius) var(--lp-radius);
  box-shadow: var(--lp-shadow-md);
}

/* --- Shell -------------------------------------------------------------- */

.sf-lp {
  position: relative;
  overflow: clip;
  color: var(--lp-ink);
}

/* Aurora mesh: large, slow, low-saturation so text stays readable. */
.sf-lp__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 38% at 12% 8%, rgba(43, 139, 255, 0.26) 0%, transparent 62%),
    radial-gradient(40% 34% at 88% 2%, rgba(11, 87, 208, 0.2) 0%, transparent 60%),
    radial-gradient(52% 40% at 62% 40%, rgba(124, 178, 255, 0.16) 0%, transparent 66%),
    radial-gradient(38% 30% at 24% 52%, rgba(11, 87, 208, 0.1) 0%, transparent 62%);
  filter: saturate(1.15);
  animation: sf-lp-drift 18s ease-in-out infinite alternate;
}

@keyframes sf-lp-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2.5%, 1.5%, 0) scale(1.06);
  }
}

.sf-lp > section,
.sf-lp > footer {
  position: relative;
  z-index: 1;
}

.sf-lp__section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem);
}

.sf-lp__section-head {
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.sf-lp__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-blue);
}

.sf-lp__section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--lp-navy);
}

.sf-lp__section-head p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--lp-muted);
}

/* --- Buttons ------------------------------------------------------------ */

.sf-lp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--lp-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out,
    background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.sf-lp__btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.sf-lp__btn:focus-visible {
  outline: 3px solid rgba(11, 87, 208, 0.45);
  outline-offset: 3px;
}

.sf-lp__btn--primary {
  background: linear-gradient(135deg, var(--lp-blue-bright) 0%, var(--lp-blue) 62%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 87, 208, 0.3);
}

.sf-lp__btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 87, 208, 0.38);
}

.sf-lp__btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--lp-line);
  color: var(--lp-ink);
  box-shadow: var(--lp-shadow-sm);
}

.sf-lp__btn--ghost:hover {
  background: #fff;
  border-color: rgba(11, 87, 208, 0.3);
  color: var(--lp-blue);
}

.sf-lp__btn--light {
  background: #fff;
  color: var(--lp-blue);
  box-shadow: 0 12px 30px rgba(3, 20, 48, 0.28);
}

.sf-lp__btn--light:hover {
  color: var(--lp-blue);
}

.sf-lp__btn--outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.sf-lp__btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

/* --- Hero --------------------------------------------------------------- */

.sf-lp__hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.sf-lp__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 76rem;
  margin: 0 auto;
}

.sf-lp__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 87, 208, 0.16);
  box-shadow: var(--lp-shadow-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lp-blue);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sf-lp__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.sf-lp__hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--lp-navy);
}

.sf-lp__headline-accent {
  background: linear-gradient(120deg, var(--lp-blue-bright) 0%, var(--lp-blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sf-lp__lead {
  margin: 0 0 1.85rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.68;
  color: var(--lp-muted);
}

.sf-lp__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.sf-lp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lp-muted);
}

.sf-lp__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sf-lp__trust li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

/* --- Hero 3D stage ------------------------------------------------------ */

.sf-lp__hero-stage {
  position: relative;
  min-height: clamp(20rem, 42vw, 30rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-lp__stage-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(43, 139, 255, 0.3) 0%, transparent 68%);
  filter: blur(28px);
}

.sf-lp__mark {
  position: relative;
  width: 100%;
  height: clamp(19rem, 40vw, 28rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-lp__canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.sf-lp__mark-fallback {
  width: clamp(9rem, 20vw, 13.5rem);
  height: auto;
  border-radius: 26px;
  box-shadow: var(--lp-shadow-lg);
  transition: opacity 400ms ease-out;
}

/* Once WebGL takes over, retire the static mark. */
.sf-lp__mark.is-live .sf-lp__mark-fallback {
  display: none;
}

.sf-lp__float {
  position: absolute;
  margin: 0;
  padding: 0.9rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--lp-shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
}

.sf-lp__float figcaption {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lp-navy);
}

.sf-lp__float--tasks {
  left: -1%;
  bottom: 6%;
  width: min(15rem, 62%);
}

.sf-lp__float--tasks ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.sf-lp__float--tasks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0;
  font-size: 0.8125rem;
  color: var(--lp-muted);
}

.sf-lp__float--meeting {
  right: -1%;
  top: 6%;
  width: min(13.5rem, 56%);
}

.sf-lp__float--meeting p {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--lp-muted);
}

.sf-lp__float-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-blue);
}

.sf-lp__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.sf-lp__dot--done {
  background: #16a34a;
}

.sf-lp__dot--active {
  background: var(--lp-blue);
}

/* --- Feature grid ------------------------------------------------------- */

.sf-lp__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 76rem;
  margin: 0 auto;
}

.sf-lp__card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--lp-radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}

.sf-lp__card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 87, 208, 0.24);
  box-shadow: var(--lp-shadow-md);
}

.sf-lp__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(43, 139, 255, 0.16), rgba(11, 87, 208, 0.1));
  color: var(--lp-blue);
}

.sf-lp__card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lp-navy);
}

.sf-lp__card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--lp-muted);
}

/* --- Consolidation ------------------------------------------------------ */

.sf-lp__consolidate-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--lp-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sf-lp__consolidate-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--lp-navy);
}

.sf-lp__consolidate-copy p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--lp-muted);
}

.sf-lp__swap {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-lp__swap li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--lp-line);
  font-size: 0.9rem;
}

.sf-lp__swap-from {
  color: var(--lp-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(85, 99, 122, 0.45);
}

.sf-lp__swap-arrow {
  display: inline-flex;
  color: var(--lp-blue);
}

.sf-lp__swap-to {
  font-weight: 700;
  color: var(--lp-navy);
  text-align: right;
}

/* --- Steps -------------------------------------------------------------- */

.sf-lp__step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.sf-lp__step-list li {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--lp-radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-sm);
}

.sf-lp__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-blue-bright), var(--lp-blue));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 87, 208, 0.26);
}

.sf-lp__step-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--lp-navy);
}

.sf-lp__step-list p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--lp-muted);
}

/* --- Final CTA ---------------------------------------------------------- */

.sf-lp__cta-band {
  margin: 0 clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--lp-radius-lg);
  background:
    radial-gradient(60% 80% at 15% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, #1668dd 0%, #0b57d0 45%, #062f74 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 70px rgba(6, 47, 116, 0.3);
}

.sf-lp__cta-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.sf-lp__cta-icon {
  border-radius: 15px;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 28px rgba(3, 20, 48, 0.35);
}

.sf-lp__cta-band h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.sf-lp__cta-band p {
  margin: 0 0 1.8rem;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.86);
}

.sf-lp__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Footer ------------------------------------------------------------- */

.sf-lp__footer {
  border-top: 1px solid var(--lp-line);
  padding: 1.9rem clamp(1.25rem, 5vw, 2.5rem);
}

.sf-lp__footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
}

.sf-lp__footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--lp-muted);
}

.sf-lp__footer .sf-legal-links {
  max-width: 100%;
}

.sf-lp__footer .sf-legal-links a {
  color: var(--lp-muted);
}

.sf-lp__footer .sf-legal-links a:hover,
.sf-lp__footer .sf-legal-links a:focus {
  color: var(--lp-text, #051221);
}

/* --- Scroll reveal ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease-out, transform 520ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .sf-lp__float--tasks {
    left: -3%;
  }

  .sf-lp__float--meeting {
    right: -3%;
  }
}

@media (max-width: 991.98px) {
  .sf-lp__hero-inner {
    grid-template-columns: 1fr;
  }

  .sf-lp__hero-copy {
    order: 1;
    text-align: center;
  }

  .sf-lp__hero-stage {
    order: 2;
    min-height: 20rem;
  }

  .sf-lp__lead {
    margin-inline: auto;
  }

  .sf-lp__cta,
  .sf-lp__trust {
    justify-content: center;
  }

  .sf-lp__grid,
  .sf-lp__step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-lp__consolidate-inner {
    grid-template-columns: 1fr;
  }

  .sf-lp__step-list li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .sf-lp__float--tasks {
    left: 0;
    bottom: 0;
    width: min(13rem, 58%);
  }

  .sf-lp__float--meeting {
    right: 0;
    top: 0;
    width: min(11.5rem, 52%);
  }
}

@media (max-width: 575.98px) {
  .sf-lp__hero {
    padding-top: 2rem;
  }

  .sf-lp__hero h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.4rem);
  }

  .sf-lp__hero-stage {
    min-height: 16rem;
  }

  .sf-lp__mark {
    height: 15rem;
  }

  /* Floating chips crowd a phone screen, so the mark carries the hero instead. */
  .sf-lp__float {
    display: none;
  }

  .sf-lp__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .sf-lp__cta {
    flex-direction: column;
    width: 100%;
  }

  .sf-lp__cta .sf-lp__btn,
  .sf-lp__cta-actions .sf-lp__btn {
    width: 100%;
  }

  .sf-lp__cta-actions {
    flex-direction: column;
  }

  .sf-lp__grid,
  .sf-lp__step-list {
    grid-template-columns: 1fr;
  }

  .sf-lp__swap li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    text-align: left;
  }

  .sf-lp__swap-to {
    text-align: left;
  }

  .sf-lp__swap-arrow {
    transform: rotate(90deg);
  }

  .sf-lp__footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-lp__aurora {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sf-lp__btn:hover,
  .sf-lp__card:hover {
    transform: none;
  }
}
