:root {
  --lp-bg: #070b0a;
  --lp-text: #f3f6f4;
  --lp-muted: #8b968f;
  --lp-line: rgba(255, 255, 255, 0.1);
  --lp-accent: #3dffa8;
  --lp-accent-2: #6ee7ff;
  --lp-accent-soft: rgba(61, 255, 168, 0.35);
  --lp-font: "DM Sans", "Segoe UI", sans-serif;
  --lp-display: "Syne", "DM Sans", sans-serif;
  --lp-sticky-pad: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.landing {
  min-height: 100vh;
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.55;
  overflow-x: clip;
  padding-bottom: var(--lp-sticky-pad);
}

.lp-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(61, 255, 168, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(110, 231, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(61, 255, 168, 0.06), transparent 55%);
  animation: lpDrift 18s ease-in-out infinite alternate;
}
.lp-sweep {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.03) 48%,
    transparent 62%
  );
  animation: lpSweep 12s linear infinite;
}
@keyframes lpDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
}
@keyframes lpSweep {
  from { transform: translateX(-12%); }
  to { transform: translateX(12%); }
}

/* Partner + advert: indigo/purple like main site + animated waves */
body.landing-partner,
body.landing-advert {
  --lp-bg: #0a0a0a;
  --lp-muted: #9a95a8;
  --lp-line: rgba(255, 255, 255, 0.12);
  --lp-accent: #7c6cff;
  --lp-accent-2: #9b8cff;
  --lp-accent-soft: rgba(124, 108, 255, 0.4);
  background: #0a0a0a;
}
body.landing-partner .lp-ambient,
body.landing-advert .lp-ambient {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(88, 60, 160, 0.32), transparent 60%),
    radial-gradient(ellipse 55% 40% at 10% 80%, rgba(124, 108, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 40%, rgba(88, 60, 160, 0.12), transparent 50%);
}
body.landing-partner .lp-sweep,
body.landing-advert .lp-sweep {
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(155, 140, 255, 0.05) 48%,
    transparent 62%
  );
}
body.landing-partner .lp-sticky,
body.landing-advert .lp-sticky {
  background: linear-gradient(to top, rgba(10, 10, 10, 0.96), rgba(10, 10, 10, 0.82) 70%, transparent);
}
body.landing-partner .lp-btn-primary,
body.landing-advert .lp-btn-primary {
  color: #0c0818;
}
body.landing-partner .lp-btn-primary:hover,
body.landing-advert .lp-btn-primary:hover {
  background: #9b8cff;
  color: #0c0818;
}
body.landing-partner .lp-top {
  justify-content: flex-start;
}

.lp-waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.2;
}
.lp-waves-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: lpWaveDrift 28s linear infinite;
}
.lp-waves-svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
  animation: lpWaveFloat 14s ease-in-out infinite alternate;
}
@keyframes lpWaveDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes lpWaveFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 1.2%, 0); }
}

.lp-top, .lp-main, .lp-sticky { position: relative; z-index: 1; }
.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
  padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
}
.lp-top-link {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lp-top-link:hover { color: #fff; }

.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.85;
  font-family: var(--lp-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.logo-ne { display: flex; font-size: 1.35rem; }
.logo-n { color: #fff; }
.logo-e { color: #fff; }
.logo-proxy {
  margin-top: 0.22em;
  font-family: var(--lp-font);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: #fff;
  text-transform: uppercase;
}
.logo-mark--lp .logo-ne { font-size: 1.15rem; }
.logo-mark--hero {
  margin-bottom: 1.25rem;
}
.logo-mark--hero .logo-ne { font-size: clamp(2.8rem, 10vw, 4.5rem); }
.logo-mark--hero .logo-proxy {
  font-size: clamp(0.85rem, 2.8vw, 1.15rem);
  letter-spacing: 0.42em;
}

.lp-main { width: min(920px, calc(100% - 2rem)); margin: 0 auto; }
.lp-hero {
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3rem;
}
.lp-hero h1 {
  margin: 0;
  font-family: var(--lp-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 14ch;
}
.lp-lead {
  margin: 1rem 0 0;
  color: var(--lp-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  max-width: 36rem;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lp-btn-primary {
  background: var(--lp-accent);
  color: #04140d;
  box-shadow: 0 0 0 0 var(--lp-accent-soft);
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  background: #6cffbf;
  color: #04140d;
}
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-text);
  border: 1px solid var(--lp-line);
}
.lp-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.lp-pulse {
  animation: lpPulse 2.4s ease-in-out infinite;
}
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--lp-accent-soft); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

.lp-section {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--lp-line);
}
.lp-panel {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--lp-line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.lp-panel:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 108, 255, 0.12);
}
.lp-section h2 {
  margin: 0 0 1rem;
  font-family: var(--lp-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}
.lp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-list li {
  position: relative;
  padding: 0.95rem 0.85rem 0.95rem 1.55rem;
  margin: 0 -0.35rem;
  border-radius: 0.65rem;
  border-bottom: 1px solid var(--lp-line);
  color: rgba(243, 246, 244, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lp-list li:last-child { border-bottom: none; }
.lp-list li:hover,
.lp-list li:focus-within {
  background: rgba(255, 255, 255, 0.04);
}
@media (hover: hover) and (pointer: fine) {
  .lp-list li:hover {
    transform: translateX(2px);
  }
}
.lp-list li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lp-accent);
  box-shadow: 0 0 10px var(--lp-accent-soft);
}
.lp-list code {
  font-size: 0.9em;
  color: var(--lp-accent-2);
  word-break: break-word;
}
.lp-note {
  margin: 1.25rem 0 0;
  color: var(--lp-muted);
  font-size: 1rem;
}

.lp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(7, 11, 10, 0.96), rgba(7, 11, 10, 0.82) 70%, transparent);
  display: flex;
  justify-content: center;
}
.lp-sticky .lp-btn {
  width: min(420px, 100%);
  min-height: 44px;
}

.lp-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: lpRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.12s);
}
@keyframes lpRise {
  to { opacity: 1; transform: translateY(0); }
}

.lp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.lp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lp-ambient, .lp-sweep, .lp-pulse, .lp-enter,
  .lp-waves-track, .lp-waves-svg {
    animation: none !important;
  }
  .lp-enter, .lp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  body.landing { padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); }
  .lp-main { width: min(920px, calc(100% - 1.5rem)); }
  .lp-top { width: min(920px, calc(100% - 1.5rem)); padding-bottom: 0.5rem; }
  .lp-hero {
    min-height: auto;
    padding: 1.25rem 0 2.25rem;
  }
  .lp-hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
    max-width: 12ch;
  }
  .logo-mark--hero .logo-ne { font-size: clamp(2.35rem, 14vw, 3.4rem); }
  .lp-lead { font-size: 1.05rem; }
  .lp-cta { margin-top: 1.35rem; }
  .lp-cta .lp-btn { width: 100%; min-height: 48px; }
  .lp-panel {
    margin: 1rem 0 1.5rem;
    padding: 1.2rem 1rem 1.1rem;
    border-radius: 0.95rem;
  }
  .lp-section h2 { margin-bottom: 0.75rem; }
  .lp-list li {
    padding: 0.9rem 0.5rem 0.9rem 1.4rem;
    margin: 0;
  }
  .lp-waves { opacity: 0.14; }
  .lp-waves-track { animation-duration: 40s; }
}

@media (max-width: 400px) {
  .lp-hero h1 { font-size: 1.65rem; }
  .lp-lead { font-size: 1rem; }
  .lp-panel { padding: 1rem 0.85rem; }
}
