/* ── Reset body for scrollable landing (override challenge.css) ── */
.landing-body {
  height: auto !important;
  overflow: auto !important;
  display: block !important;
  background: #ffffff;
}

/* ── Sticky nav ────────────────────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nephila-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.15s;
}
.lang-link:hover { color: #fff; }
.lang-link--active { color: #fff; font-weight: 700; }

.lang-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--nephila-blue);
  color: #fff;
  padding: 72px 24px 88px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.hero-spider {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 380px;
  height: auto;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-headline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(28px, 5.5vw, 50px);
  line-height: 1.15;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.hero-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 15px 36px;
  background: var(--nephila-accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.15s, transform 0.15s;
}
.hero-cta:hover {
  background: #c5002e;
  transform: translateY(-2px);
}

/* ── Shared section layout ─────────────────────────────────────── */
.landing-section {
  padding: 56px 24px;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-slab);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nephila-blue);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nephila-blue);
  display: inline-block;
}

.section-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 600px;
}
.section-body:last-child { margin-bottom: 0; }

/* ── Intro section ─────────────────────────────────────────────── */
.intro-section {
  background: #fff;
}

/* ── Challenge section ─────────────────────────────────────────── */
.challenge-section {
  background: var(--nephila-light);
  padding-bottom: 0;
  padding-top: 40px;
}

.challenge-section .section-inner {
  padding-bottom: 20px;
}

.challenge-app {
  display: flex;
  flex-direction: column;
  height: 80vh;
  min-height: 520px;
  max-height: 820px;
  background: var(--nephila-light);
  overflow: hidden;
}

/* progress bar sits at top of challenge-app */
.challenge-app > .progress {
  flex-shrink: 0;
}

/* main fills remaining height and scrolls */
.challenge-app > #main {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  scroll-behavior: smooth;
}

/* input bar at bottom */
.challenge-app > .input-bar {
  flex-shrink: 0;
}

/* feedback-section inside challenge (post-challenge form) */
.challenge-app .feedback-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 48px;
}

/* ── About section ─────────────────────────────────────────────── */
.about-section {
  background: #fff;
}

.about-sponsor {
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 12px 24px;
  background: var(--nephila-blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
}
.about-link:hover { background: var(--nephila-accent); }

/* ── Footer ────────────────────────────────────────────────────── */
.landing-footer {
  background: var(--nephila-blue) !important;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 20px !important;
  width: auto !important;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  display: block;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

/* ── Mobile adjustments ────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 56px 20px 72px;
    min-height: 48vh;
  }

  .hero-spider {
    width: 240px;
    right: -15px;
    bottom: -10px;
  }

  .landing-section {
    padding: 44px 20px;
  }

  .challenge-section {
    padding-top: 32px;
  }

  .challenge-app {
    height: 85vh;
  }

  .landing-nav {
    padding: 10px 16px;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
