/* ============================================================
   Lightfunnels Navbar — implemented from Figma "Website O"
   Nodes: 22620:3975 / 22620:3999 / 22620:4248 / 22620:4272
   ============================================================ */

:root {
  --neutral-25: #f6f8f9;
  --neutral-300: #dce3e9;
  --neutral-400: #adbbcb;
  --neutral-800: #4e5761;
  --neutral-900: #343a40;
  --neutral-1000: #1f2327;
  --brand-blue: #4867ff;
  --menu-border: #2a2b30;
  --menu-hairline: rgba(78, 87, 97, 0.45);
  --text-dim: rgba(255, 255, 255, 0.68);
  --font-body: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-float:
    0px 2px 1px rgba(0, 0, 0, 0.07),
    0px 2px 2px rgba(0, 0, 0, 0.07),
    0px 4px 4px rgba(0, 0, 0, 0.07),
    0px 8px 8px rgba(0, 0, 0, 0.09),
    0px 16px 16px rgba(0, 0, 0, 0.11),
    0px 32px 32px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #e9eaeb;
  font-family: var(--font-body);
}

.demo-content {
  padding: 480px 40px 80px;
  text-align: center;
  color: #667;
}

/* ================= HEADER SHELL ================= */

.lf-header {
  position: fixed;
  inset: 24px 0 auto;
  z-index: 100;
  width: min(1166px, calc(100% - 48px));
  margin-inline: auto;
}

/* ================= NAVBAR PILL ================= */

.lf-navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 14px 15px 26px;
  border-radius: 40px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%),
    var(--neutral-1000);
  filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.07))
          drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.07))
          drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.07))
          drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.09))
          drop-shadow(0px 16px 16px rgba(0, 0, 0, 0.11));
}

/* --- Logo --- */

.lf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.lf-logo__img {
  width: 132px;
  height: 34px;
  display: block;
}

/* --- Center links --- */

.lf-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.lf-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: var(--neutral-300);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.lf-nav-link:hover,
.lf-nav-item.is-open .lf-nav-link {
  background: rgba(255, 255, 255, 0.1);
}

.lf-chevron {
  width: 10px;
  height: 10px;
  display: block;
  transition: transform 0.25s ease;
}

.lf-nav-item.is-open .lf-chevron {
  transform: rotate(180deg);
}

/* --- Actions --- */

.lf-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.lf-btn--ghost {
  padding: 11px 20px;
  border-radius: 40px;
  background: var(--neutral-900);
  color: var(--neutral-25);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 0.18s ease;
}

.lf-btn--ghost:hover {
  background: #3d444b;
}

.lf-btn--primary {
  position: relative;
  padding: 12px 26px;
  border-radius: 60px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 58.3%, rgba(255, 255, 255, 0.05) 97.2%),
    var(--brand-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  box-shadow:
    0px 16px 8px rgba(31, 31, 31, 0.01),
    0px 12px 6px rgba(31, 31, 31, 0.04),
    0px 4px 4px rgba(31, 31, 31, 0.07),
    0px 1.5px 3px rgba(31, 31, 31, 0.08),
    inset 0px 1.5px 2px rgba(255, 255, 255, 0.26),
    inset 0px -0.5px 1px rgba(0, 0, 0, 0.2);
  transition: filter 0.18s ease;
}

.lf-btn--primary:hover {
  filter: brightness(1.08);
}

/* ================= MEGA MENUS ================= */

.lf-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
}

.lf-menu[hidden] { display: none; }

.lf-menu__panel {
  border: 1px solid var(--menu-border);
  border-radius: 24px;
  background: var(--neutral-1000);
  box-shadow:
    0px 2px 2px rgba(0, 0, 0, 0.07),
    0px 2px 4px rgba(0, 0, 0, 0.07),
    0px 4px 8px rgba(0, 0, 0, 0.07),
    0px 8px 16px rgba(0, 0, 0, 0.09),
    0px 16px 32px rgba(0, 0, 0, 0.11),
    0px 32px 64px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lf-menu.is-visible .lf-menu__panel {
  opacity: 1;
  transform: translateY(0);
}

.lf-menu__body {
  display: flex;
  align-items: stretch;
}

.lf-menu__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* --- Product link rows (shared by Products menu + Partner column) --- */

.lf-product-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.lf-product-link:hover {
  background: var(--neutral-900);
}

.lf-tile {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: block;
}

.lf-product-link__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lf-product-link__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.lf-product-link__sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Products menu columns --- */

.lf-menu__cols {
  display: flex;
  align-items: stretch;
}

.lf-menu__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 28px 28px 26px;
  flex: 1;
  min-width: 0;
}

.lf-menu__col--divided {
  border-right: 1px solid var(--menu-hairline);
}

.lf-menu__col--secondary {
  flex: 0 0 358.5px;
  justify-content: flex-start;
}

.lf-menu__col--secondary .lf-btn-all-features {
  margin-top: 8px;
}

.lf-btn-all-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 9px;
  background: var(--neutral-900);
  color: var(--neutral-25);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.lf-btn-all-features:hover {
  background: #3d444b;
}

.lf-btn-all-features img {
  width: 7.6px;
  height: 7.6px;
  display: block;
}

/* --- Bottom bar (both menus) --- */

.lf-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 38px;
  border-top: 1px solid var(--menu-hairline);
  margin-top: auto;
}

.lf-mini-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 4px;
  text-decoration: none;
}

.lf-mini-link__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.lf-mini-link:hover .lf-mini-link__chip {
  background: rgba(255, 255, 255, 0.16);
}

.lf-mini-link__chip img {
  width: 24px;
  height: 24px;
  display: block;
}

.lf-mini-link__text {
  display: flex;
  flex-direction: column;
}

.lf-mini-link__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
}

.lf-mini-link__sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
  white-space: nowrap;
}

.lf-vdivider {
  width: 1px;
  height: 36px;
  background: var(--menu-hairline);
  flex-shrink: 0;
}

/* --- Aside columns --- */

.lf-menu__aside {
  border-left: 1px solid var(--menu-hairline);
  flex-shrink: 0;
}

/* Products: Watch Demo */

.lf-menu__aside--demo {
  width: 309px;
  min-height: 204px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 24px;
  background: linear-gradient(241deg, rgba(255, 255, 255, 0) 37.6%, rgba(255, 255, 255, 0.1) 105.4%);
}

.lf-demo__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 240px;
}

.lf-demo__title {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.lf-demo__title img {
  width: 20px;
  height: 20px;
  display: block;
}

.lf-demo__sub {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.lf-demo__thumb {
  position: relative;
  display: block;
  width: 225px;
  height: 128px;
  border-radius: 8px;
  overflow: hidden;
}

.lf-demo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.lf-demo__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 17.7%, rgba(0, 0, 0, 0.9) 86.7%);
}

.lf-demo__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.15s ease;
}

.lf-demo__thumb:hover .lf-demo__play {
  background: rgba(255, 255, 255, 0.26);
}

.lf-demo__play img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Resources: featured trio + ambient glows */

.lf-featured {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 54px 16px;
  position: relative;
}

.lf-featured-link {
  position: relative;
  z-index: 0; /* stacking context so the glow stays behind the link content only */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  text-decoration: none;
  text-align: center;
}

/* ambient glow — one per tile, radial fade so it never shows a hard edge */
.lf-featured-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50px; /* tile center */
  transform: translate(-50%, -50%);
  width: 420px;
  height: 340px;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--glow, transparent) 0%, rgba(0, 0, 0, 0) 72%);
}

.lf-featured-link:nth-child(1) { --glow: rgba(87, 209, 150, 0.30); }
.lf-featured-link:nth-child(2) { --glow: rgba(251, 0, 94, 0.28); }
.lf-featured-link:nth-child(3) { --glow: rgba(72, 103, 255, 0.33); }

.lf-featured-link__tile {
  width: 180px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.lf-featured-link:hover .lf-featured-link__tile {
  transform: translateY(-3px);
}

.lf-featured-link__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.lf-featured-link__sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Resources: partner column */

.lf-menu__aside--partner {
  width: 458.5px;
  padding: 24px 28px;
  background: linear-gradient(198deg, rgba(255, 255, 255, 0) 18.4%, rgba(255, 255, 255, 0.1) 84.7%);
}

.lf-partner__label {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--neutral-400);
}

.lf-partner__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ================= RESPONSIVE (fallback) ================= */

@media (max-width: 1100px) {
  .lf-menu__aside--partner { width: 360px; }
  .lf-menu__col--secondary { flex: 1; }
}
