/* Nachtradar — marketing landing (Approach B) */
.landing {
  --ld-bg: #0A0B14;
  --ld-srf: #14172A;
  --ld-srf2: #1A1E36;
  --ld-line: #252A48;
  --ld-ink: #F4F4F8;
  --ld-mut: #9298B4;
  --ld-phos: #58F5B7;
  --ld-rave: #C8FF2E;
  --ld-map: #3ED6FF;
  --ld-crew: #B49CFF;
  --ld-dj: #FFA02E;
  --ld-ticket: #FF5E9C;
  --ld-host: #58F5B7;
  --ld-section-gap: clamp(2rem, 4vw, 2.75rem);
  display: block;
  min-height: 100%;
  background: var(--ld-bg);
  color: var(--ld-ink);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  touch-action: pan-y;
}

html.show-landing .landing {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

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

/* Ambient background */
.landing__ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.landing__ambient::before,
.landing__ambient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}

.landing__ambient::before {
  width: 55vw;
  height: 42vw;
  max-width: 620px;
  max-height: 480px;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(88, 245, 183, .14), transparent 68%);
}

.landing__ambient::after {
  width: 48vw;
  height: 38vw;
  max-width: 540px;
  max-height: 420px;
  top: 12%;
  right: -8%;
  background: radial-gradient(circle, rgba(62, 214, 255, .1), transparent 68%);
}

@media (prefers-reduced-motion: no-preference) {
  .landing__ambient::before {
    animation: ld-ambient-drift 28s ease-in-out infinite alternate;
  }
  .landing__ambient::after {
    animation: ld-ambient-drift 34s ease-in-out infinite alternate-reverse;
  }
}

@keyframes ld-ambient-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.06); }
}

.landing > *:not(.landing__ambient) { position: relative; z-index: 1; }

/* Header */
.landing__header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2rem);
  background: rgba(10, 11, 20, .72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.landing__header--scrolled {
  background: rgba(10, 11, 20, .94);
  border-bottom-color: var(--ld-line);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .32);
}

.landing__logo {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ld-ink);
  text-decoration: none;
}

.landing__logo-dot { color: var(--ld-phos); }

.landing__header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}

.landing__lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--ld-line);
  background: rgba(20, 23, 42, .65);
}

.landing__lang .df-seg-btn {
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ld-mut);
  min-width: 2.1rem;
}

.landing__lang .df-seg-btn.on {
  background: var(--ld-phos);
  color: #0A0B14;
  font-weight: 700;
}

@media (max-width: 380px) {
  .landing__enter { padding: .65rem .95rem; font-size: .82rem; }
  .landing__lang .df-seg-btn { padding: 4px 7px; min-width: 1.9rem; }
}

.landing__enter,
.landing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.2rem;
  border: none;
  border-radius: 14px;
  background: var(--ld-phos);
  color: #0A0B14;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(88, 245, 183, .22);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.landing__enter:hover,
.landing__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(88, 245, 183, .34);
}

.landing__inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.25rem;
}

/* Hero */
.landing__hero {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .landing__hero {
    grid-template-columns: 1.05fr .9fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.landing__hero-copy { text-align: left; }

.landing__badge {
  display: inline-block;
  margin-bottom: .85rem;
  padding: .32rem .75rem;
  border-radius: 999px;
  background: rgba(20, 23, 42, .85);
  border: 1px solid var(--ld-line);
  color: var(--ld-mut);
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .04em;
}

.landing__hero h1 {
  margin: 0 0 .85rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -.01em;
}

.landing__hero h1 em {
  font-style: normal;
  color: var(--ld-phos);
}

.landing__lead {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: clamp(.98rem, 1.8vw, 1.08rem);
  color: #C8CBDC;
}

.landing__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.landing__cta {
  padding: .9rem 1.5rem;
  border-radius: 16px;
  font-size: .98rem;
  background: linear-gradient(135deg, var(--ld-phos), #2EE6CA);
}

.landing__cta--ghost {
  background: rgba(20, 23, 42, .6);
  color: var(--ld-ink);
  border: 1px solid var(--ld-line);
  box-shadow: none;
}

.landing__cta--ghost:hover {
  background: rgba(26, 30, 54, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.landing__hero-visual {
  justify-self: center;
  width: min(200px, 52vw);
}

@media (min-width: 900px) {
  .landing__hero-visual { width: min(220px, 100%); }
}

/* Phone frame (shared) */
.phone-frame__bezel {
  padding: 9px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1A1E36, #0E1020);
  border: 1px solid var(--ld-line);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .48), 0 0 0 1px rgba(88, 245, 183, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.phone-frame:hover .phone-frame__bezel {
  transform: translateY(-2px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .52), 0 0 0 1px rgba(88, 245, 183, .1);
}

.phone-frame__notch {
  width: 34%;
  height: 4px;
  margin: 0 auto 7px;
  border-radius: 99px;
  background: #252A48;
}

.phone-frame__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(26, 30, 54, .95), rgba(14, 16, 32, .98));
}

.phone-frame__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity .35s ease;
}

.phone-frame__screen--loaded img { opacity: 1; }

.phone-frame__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: linear-gradient(165deg, rgba(88, 245, 183, .08), rgba(62, 214, 255, .05) 55%, rgba(20, 23, 42, .4));
  color: var(--ld-mut);
  font-size: .7rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.phone-frame__fallback svg {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--ld-phos);
  opacity: .55;
}

.phone-frame__screen--loaded .phone-frame__fallback { opacity: 0; pointer-events: none; }

/* Sections */
.landing__section {
  margin-top: var(--ld-section-gap);
}

.landing__section-head {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.landing__section-title {
  margin: 0 0 .4rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--ld-ink);
}

.landing__section-title span { color: var(--ld-phos); }

.landing__section-sub {
  margin: 0;
  color: var(--ld-mut);
  font-size: .94rem;
  line-height: 1.55;
}

/* Cities strip */
.landing__cities {
  margin-top: var(--ld-section-gap);
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(20, 23, 42, .65);
  border: 1px solid var(--ld-line);
}

.landing__cities-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.25rem;
}

.landing__cities-label {
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ld-mut);
}

.landing__cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing__cities-list li { list-style: none; }

.landing__city-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .72rem;
  border-radius: 999px;
  background: rgba(26, 30, 54, .85);
  border: 1px solid var(--ld-line);
  font-family: inherit;
  font-size: .82rem;
  color: #D8DAE8;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.landing__city-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 245, 183, .32);
  background: rgba(32, 36, 58, .95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

.landing__city-btn:active { transform: translateY(0); }

.landing__city-btn--home {
  border-color: rgba(88, 245, 183, .35);
  color: var(--ld-phos);
}

.landing__city-btn--europe {
  border-style: dashed;
  color: var(--ld-mut);
}

.landing__city-btn--loading {
  cursor: default;
  opacity: .65;
  pointer-events: none;
}

.landing__city-count {
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--ld-mut);
  padding: .1rem .38rem;
  border-radius: 999px;
  background: rgba(10, 11, 20, .45);
}

.landing__city-btn--home .landing__city-count { color: rgba(88, 245, 183, .85); }

.landing__city-btn--selected {
  border-color: rgba(88, 245, 183, .55);
  background: rgba(88, 245, 183, .1);
  color: var(--ld-phos);
  box-shadow: 0 0 0 1px rgba(88, 245, 183, .15);
}

.landing__city-btn--selected .landing__city-count {
  color: var(--ld-phos);
  background: rgba(88, 245, 183, .12);
}

.landing__cities-hint {
  margin: .75rem 0 0;
  font-size: .78rem;
  color: var(--ld-mut);
  line-height: 1.45;
}

.landing__cities-stat {
  margin-left: auto;
  font-size: .82rem;
  color: var(--ld-mut);
}

.landing__cities-stat strong {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .95rem;
  color: var(--ld-phos);
}

@media (max-width: 640px) {
  .landing__cities-stat {
    margin-left: 0;
    width: 100%;
    padding-top: .35rem;
    border-top: 1px solid var(--ld-line);
  }
}

/* Landing map preview */
.landing__map-section {
  margin-top: var(--ld-section-gap);
}

.landing__map-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ld-line);
  background: #0E1020;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .38);
}

.landing__map-host {
  width: 100%;
  height: clamp(220px, 42vw, 340px);
  background: #0E1020;
}

.landing__map-host .leaflet-container {
  font-family: inherit;
  background: #0E1020;
}

.landing__map-host .nr-map-tiles { filter: none; }

.landing__map-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(10, 11, 20, .82);
  border: 1px solid var(--ld-line);
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--ld-mut);
  pointer-events: none;
  transition: opacity .3s ease;
}

.landing__map-status--hide { opacity: 0; }

.landing-map-popup {
  min-width: 140px;
  max-width: 200px;
}

.landing-map-popup strong {
  display: block;
  font-size: .82rem;
  line-height: 1.35;
  margin-bottom: .25rem;
  color: var(--ld-ink);
}

.landing-map-popup span {
  display: block;
  font-size: .7rem;
  color: var(--ld-mut);
  margin-bottom: .5rem;
}

.landing-map-popup button {
  width: 100%;
  padding: .45rem .6rem;
  border: none;
  border-radius: 10px;
  background: var(--ld-phos);
  color: #0A0B14;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

/* Scoped overrides — landing.css loads after leaflet.css in index.html */
.landing__map-host .leaflet-popup-content-wrapper {
  background: #14172A !important;
  color: #F4F4F8 !important;
  border-radius: 12px;
  border: 1px solid var(--ld-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.landing__map-host .leaflet-popup-tip { background: #14172A !important; }

.landing__map-host .leaflet-popup-content {
  margin: 10px 12px;
  line-height: 1.4;
  color: #F4F4F8;
}

.landing__map-host .leaflet-popup-close-button {
  color: var(--ld-mut) !important;
  font-size: 18px;
  padding: 6px 8px 0 0;
}

.landing__map-host .leaflet-popup-close-button:hover { color: var(--ld-ink) !important; }

/* Feature zig-zag */
.landing__features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.85rem) 0;
  border-bottom: 1px solid rgba(37, 42, 72, .7);
}

.feat-row:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .feat-row--flip .feat-row__text { order: 2; }
  .feat-row--flip .feat-row__visual { order: 1; }
}

@media (max-width: 767px) {
  .feat-row {
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: .95rem 0;
  }
  .feat-row__visual {
    order: -1;
    width: min(132px, 34vw);
  }
  .landing__hero-visual { width: min(176px, 46vw); }
  .landing__hero { padding-bottom: .75rem; }
  .landing__cities { padding: .85rem 1rem; }
}

.feat-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  flex-shrink: 0;
  margin-bottom: .75rem;
}

.feat-row__icon svg { width: 1.2rem; height: 1.2rem; }
.feat-row__icon--deck   { background: rgba(200, 255, 46, .12);  color: var(--ld-rave); }
.feat-row__icon--map    { background: rgba(62, 214, 255, .12);  color: var(--ld-map); }
.feat-row__icon--crew   { background: rgba(180, 156, 255, .12); color: var(--ld-crew); }
.feat-row__icon--dj     { background: rgba(255, 160, 46, .12);  color: var(--ld-dj); }
.feat-row__icon--ticket { background: rgba(255, 94, 156, .12);  color: var(--ld-ticket); }
.feat-row__icon--host   { background: rgba(88, 245, 183, .12);  color: var(--ld-host); }

.feat-row__text h3 {
  margin: 0 0 .4rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(.92rem, 1.8vw, 1.08rem);
  font-weight: 700;
}

.feat-row__text p {
  margin: 0;
  color: var(--ld-mut);
  font-size: clamp(.86rem, 1.4vw, .95rem);
  line-height: 1.58;
  max-width: 26rem;
}

.feat-row__visual {
  justify-self: center;
  width: min(156px, 40vw);
}

@media (min-width: 900px) {
  .feat-row__visual { width: min(178px, 100%); }
}

/* About */
.landing__about {
  padding: 1.35rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 23, 42, .92), rgba(26, 30, 54, .75));
  border: 1px solid var(--ld-line);
}

.landing__about p {
  margin: 0 0 .65rem;
  color: #C8CBDC;
  font-size: .94rem;
  line-height: 1.6;
  max-width: 44rem;
}

.landing__about p:last-child { margin-bottom: 0; }

.landing__about-sub {
  margin: 1.1rem 0 .5rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .92rem;
  color: var(--ld-ink);
}

/* FAQ */
.landing__faq {
  display: grid;
  gap: .5rem;
}

.landing__faq details {
  border-radius: 14px;
  background: var(--ld-srf);
  border: 1px solid var(--ld-line);
  overflow: hidden;
  transition: border-color .25s ease;
}

.landing__faq details:hover { border-color: rgba(88, 245, 183, .22); }
.landing__faq details[open] { border-color: rgba(88, 245, 183, .28); }

.landing__faq summary {
  padding: .9rem 1.05rem;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}

.landing__faq summary::-webkit-details-marker { display: none; }

.landing__faq summary::after {
  content: '+';
  float: right;
  color: var(--ld-phos);
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  transition: transform .3s ease;
}

.landing__faq details[open] summary::after {
  content: '−';
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.landing__faq details[open] .faq-answer { grid-template-rows: 1fr; }

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.05rem 1rem;
  font-size: .88rem;
  color: var(--ld-mut);
  line-height: 1.55;
}

.faq-answer a { color: var(--ld-phos); }

@media (prefers-reduced-motion: reduce) {
  .landing__faq .faq-answer { transition: none; }
}

/* Footer */
.landing__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ld-line);
  text-align: center;
  font-size: .84rem;
  color: var(--ld-mut);
}

.landing__footer a {
  color: var(--ld-phos);
  text-decoration: none;
  transition: opacity .2s ease;
}

.landing__footer a:hover { opacity: .85; }

.landing__footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.35rem;
  margin-bottom: .75rem;
}

/* Landing ↔ app gate */
html.show-landing .stage {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
html.show-landing .landing { display: block; }
html.nr-app-active .landing { display: none !important; }
html.nr-app-active .stage {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Scroll fade-in */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
  .landing__ambient::before,
  .landing__ambient::after { animation: none !important; }
  .phone-frame:hover .phone-frame__bezel,
  .landing__enter:hover,
  .landing__cta:hover,
  .landing__city-btn:hover { transform: none; }
}