/* Overrides + additions applied on top of negobrain-app.css so a static
   landing renders correctly without the SPA's JavaScript.
   Keep this file small — everything else comes from the app CSS. */

/* Dark background (the SPA renders it via <DarkVeil> canvas; static pages
   fall back to a static radial + linear gradient that keeps the look). */
body.nb-lp-body {
  background: #05060b;
  color: rgba(255, 255, 255, 0.92);
  min-height: 100vh;
  margin: 0;
  font-family: 'Google Sans', 'Google Sans Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body.nb-lp-body .lpz-darkveil-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(79, 124, 255, 0.22), transparent 42%),
    radial-gradient(circle at 82% 96%, rgba(139, 92, 246, 0.24), transparent 48%),
    linear-gradient(to bottom, rgba(5, 7, 19, 0.82), rgba(5, 7, 19, 0.98) 55%);
}
body.nb-lp-body .lpz-darkveil-bg::before,
body.nb-lp-body .lpz-darkveil-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}
body.nb-lp-body .lpz-darkveil-bg::before {
  top: -12%;
  left: -8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.55), transparent 62%);
  opacity: 0.42;
  animation: nb-blob-a 18s ease-in-out infinite alternate;
}
body.nb-lp-body .lpz-darkveil-bg::after {
  bottom: -18%;
  right: -12%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(178, 155, 255, 0.5), transparent 62%);
  opacity: 0.38;
  animation: nb-blob-b 22s ease-in-out infinite alternate;
}
@keyframes nb-blob-a {
  0%   { transform: translate3d(0, 0, 0)      scale(1);    opacity: 0.42; }
  50%  { transform: translate3d(40px, 30px, 0) scale(1.08); opacity: 0.55; }
  100% { transform: translate3d(-30px, 60px, 0) scale(0.96); opacity: 0.36; }
}
@keyframes nb-blob-b {
  0%   { transform: translate3d(0, 0, 0)         scale(1);    opacity: 0.38; }
  50%  { transform: translate3d(-40px, -30px, 0) scale(1.1);  opacity: 0.5;  }
  100% { transform: translate3d(30px, -60px, 0)  scale(0.98); opacity: 0.32; }
}
@media (prefers-reduced-motion: reduce) {
  body.nb-lp-body .lpz-darkveil-bg::before,
  body.nb-lp-body .lpz-darkveil-bg::after {
    animation: none;
  }
}

/* Ensure reveal-based elements stay visible when the SPA JS is not present
   (the app toggles .is-visible via IntersectionObserver). */
.nb-lp-wrap .lpz-reveal.is-visible,
.nb-lp-wrap .lpz-reveal-up.is-visible,
.nb-lp-wrap .lpz-reveal-left.is-visible,
.nb-lp-wrap .lpz-reveal-right.is-visible,
.nb-lp-wrap .lpz-reveal-scale.is-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0) !important;
}

.nb-lp-wrap {
  position: relative;
  z-index: 1;
}

/* Hero — two columns on desktop (copy + character), stacked on mobile. */
.nb-lp-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
}
.nb-lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.nb-lp-hero-copy {
  max-width: 640px;
}
.nb-lp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.nb-lp-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}
.nb-lp-hero-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 162, 255, 0.55), rgba(139, 92, 246, 0.35) 40%, transparent 70%);
  filter: blur(70px);
  z-index: 0;
  animation: nb-glow-pulse 6s ease-in-out infinite alternate;
}
.nb-lp-character {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 520px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
  animation: nb-float 8s ease-in-out infinite alternate;
}
.nb-lp-hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 60px rgba(125, 162, 255, 0.18);
  animation: nb-float 9s ease-in-out infinite alternate;
}
@keyframes nb-glow-pulse {
  0%   { opacity: 0.55; transform: translateX(-50%) scale(0.94); }
  100% { opacity: 0.85; transform: translateX(-50%) scale(1.06); }
}
@keyframes nb-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .nb-lp-hero-glow, .nb-lp-character { animation: none; }
}

/* CTA button, same visual as the home LiquidGlassButton but pure CSS. */
.nb-lp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7da2ff 0%, #9b7dff 100%);
  color: #0b0d1a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nb-lp-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.36);
  color: #0b0d1a;
}
.nb-lp-cta-btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Prose block for landing sections. */
.nb-lp-prose {
  max-width: 720px;
}
.nb-lp-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 20px;
}
.nb-lp-prose p:last-child {
  margin-bottom: 0;
}
.nb-lp-prose strong {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
}
.nb-lp-prose a {
  color: #b29bff;
  text-decoration: underline;
  text-decoration-color: rgba(178, 155, 255, 0.36);
  text-underline-offset: 3px;
}

/* Content sections styled as glass cards to echo the home visual language. */
.nb-lp-section {
  padding: 32px 0;
}
.nb-lp-section > .lpz-container {
  max-width: 900px;
}
.nb-lp-section .lpz-section-intro {
  margin-bottom: 20px;
}
.nb-lp-section .lp-section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #b29bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nb-lp-prose {
  max-width: none;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(125, 162, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.nb-lp-prose::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7da2ff, #b29bff);
  margin-bottom: 20px;
}

/* FAQ items rendered as <details>. Open by default and visible for SEO. */
.nb-lp-faq-item {
  margin-bottom: 12px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
}
.nb-lp-faq-item summary.lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 0;
}
.nb-lp-faq-item summary.lp-faq-q::-webkit-details-marker {
  display: none;
}
.nb-lp-faq-item summary.lp-faq-q span:last-child {
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  font-weight: 400;
}
.nb-lp-faq-item[open] summary.lp-faq-q span:last-child {
  transform: rotate(45deg);
}
.nb-lp-faq-item .lp-faq-a {
  margin: 12px 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

/* Scroll-reveal fallback for static pages: use IntersectionObserver-free
   fade + slide, staggered via nth-of-type. Runs once on load. */
.nb-lp-wrap main > section {
  animation: nb-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nb-lp-wrap main > section:nth-of-type(1) { animation-delay: 0.05s; }
.nb-lp-wrap main > section:nth-of-type(2) { animation-delay: 0.15s; }
.nb-lp-wrap main > section:nth-of-type(3) { animation-delay: 0.25s; }
.nb-lp-wrap main > section:nth-of-type(4) { animation-delay: 0.35s; }
.nb-lp-wrap main > section:nth-of-type(5) { animation-delay: 0.45s; }
.nb-lp-wrap main > section:nth-of-type(n+6) { animation-delay: 0.55s; }
@keyframes nb-fade-up {
  from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);   filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nb-lp-wrap main > section { animation: none; }
}

/* Footer CTA styling to feel like a call-out (the home has its own but
   this echoes the same visual language). */
.lp-footer-cta {
  padding: 64px 0;
}
.lp-footer-cta > .lpz-container {
  max-width: 720px;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(125, 162, 255, 0.10) 0%, rgba(178, 155, 255, 0.08) 100%);
  border: 1px solid rgba(178, 155, 255, 0.25);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lp-footer-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
}
.lp-footer-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
}

/* Nav — hide mid-viewport links on mobile. */
@media (max-width: 900px) {
  .nb-lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nb-lp-hero-visual {
    order: -1;
    min-height: 260px;
  }
  .nb-lp-character {
    max-height: 320px;
  }
}
@media (max-width: 720px) {
  .nb-lp-nav-links {
    display: none;
  }
  .nb-lp-hero {
    padding-top: 88px;
    padding-bottom: 40px;
  }
  .nb-lp-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .nb-lp-cta-btn {
    justify-content: center;
  }
  .nb-lp-prose {
    padding: 24px 22px;
  }
  .lp-footer-cta > .lpz-container {
    padding: 32px 24px;
  }
}
