.nl-home {
  --home-muted: #cbd5e1;
  --home-link: #7dd3fc;
  color: #f8fafc;
}

.nl-home [hidden] {
  display: none !important;
}

.nl-home a,
.nl-home button {
  -webkit-tap-highlight-color: transparent;
}

.nl-home :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 5px;
}

/* ======================================================
   Hero
   ====================================================== */
.nl-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 56px;
  align-items: center;
  padding: 34px 0 58px;
}

.nl-home-copy {
  min-width: 0;
}

.nl-home h1 {
  max-width: 700px;
  margin: 0;
  color: #7dd3fc;
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .nl-home h1 {
    background: linear-gradient(100deg, #7dd3fc, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}

.nl-home-intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.nl-home-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 24px;
  max-width: 600px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.nl-home-benefits li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.nl-home-benefits li::before {
  content: "✓";
  color: #7dd3fc;
  font-weight: 800;
}

/* ======================================================
   App screenshots
   ====================================================== */
.nl-home-app {
  width: 100%;
  max-width: 350px;
  min-width: 0;
  justify-self: center;
}

.nl-home-carousel {
  position: relative;
}

.nl-home-track {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 5px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: #64748b transparent;
}

.nl-home-slide {
  flex: 0 0 84%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  scroll-snap-align: center;
}

.nl-home-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.nl-home-arrow {
  position: absolute;
  top: 42%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(2,6,23,.86);
  font-size: 2rem !important;
  line-height: 1;
}

.nl-home-arrow--previous {
  left: 6px;
}

.nl-home-arrow--next {
  right: 6px;
}

.nl-home-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nl-home-dot {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.nl-home-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.nl-home-dot[aria-current="true"] span {
  background: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(125,211,252,.2);
}


/* ======================================================
   Homepage content
   ====================================================== */
.nl-home-section {
  padding: 42px 0;
}

.nl-home h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.nl-home-section-copy {
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ======================================================
   What NeuroLifts offers
   ====================================================== */
.nl-home-offerings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.nl-home-offering {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.nl-home-offering h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.nl-home-offering p {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ======================================================
   Learn topics
   ====================================================== */
.nl-home-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.nl-home-topic-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(255,255,255,.055);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nl-home-topic-links a:hover {
  color: #fff;
  border-color: rgba(125,211,252,.45);
  background: rgba(255,255,255,.09);
}

/* ======================================================
   Articles
   ====================================================== */
.nl-home-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.nl-home-text-link {
  color: var(--home-link);
  text-underline-offset: 4px;
}

.nl-home-text-link:hover {
  text-decoration: underline;
}

.nl-home-featured,
.nl-home-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  color: inherit;
  background: rgba(255,255,255,.055);
  text-decoration: none;
}

.nl-home-featured:hover,
.nl-home-card:hover {
  border-color: rgba(125,211,252,.45);
  background: rgba(255,255,255,.09);
}

.nl-home-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin-top: 24px;
}

.nl-home-featured--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.nl-home-featured-image {
  min-width: 0;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.nl-home-card-image {
  aspect-ratio: 4 / 3;
  background: #0f172a;
}

.nl-home-featured-image img,
.nl-home-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.nl-home-card-body {
  min-width: 0;
  padding: 20px;
}

.nl-home-featured .nl-home-card-body {
  align-self: center;
  padding: 28px;
}

.nl-home-card-meta {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.nl-home-card h3,
.nl-home-featured h3 {
  margin: 12px 0 0;
  color: #fff;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nl-home-card h3 {
  font-size: 1rem;
}

.nl-home-featured h3 {
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
}

.nl-home-card-description {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.nl-home-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.nl-home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ======================================================
   Responsive
   ====================================================== */
@media (max-width: 900px) {
  .nl-home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .nl-home-copy {
    max-width: 720px;
  }

  .nl-home-app {
    max-width: 360px;
  }

  .nl-home-offerings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nl-home-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nl-home-hero {
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .nl-home-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-home-offerings {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-home-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-home-featured .nl-home-card-body {
    padding: 20px;
  }

  .nl-home-section {
    padding: 30px 0;
  }

  .nl-home-article-grid {
    gap: 12px;
  }

  .nl-home-card-body {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .nl-home-article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-home-stores {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-home-track {
    scroll-behavior: auto;
  }
}
