/* -------------------------------------------------------------------------
   Landing page (index only)
   ------------------------------------------------------------------------- */

.landing {
  --landing-accent: #ffd460;
  --landing-accent-dim: rgba(255, 212, 96, 0.14);
  --landing-accent-glow: rgba(255, 212, 96, 0.22);
  --landing-border: rgba(255, 255, 255, 0.08);
  --landing-panel: rgba(255, 255, 255, 0.03);
  --landing-panel-strong: rgba(255, 255, 255, 0.045);

  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 212, 96, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(13, 110, 253, 0.06), transparent 50%),
    var(--bs-body-bg);
}

/* Subtle tech grid */
.landing-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.landing-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 6rem; /* clear fixed footer */
}

/* Hero */
.landing-hero {
  margin-bottom: 2.25rem;
}

.landing-logo {
  max-width: min(340px, 78vw);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 28px var(--landing-accent-glow));
}

.landing-tagline {
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--landing-accent);
  margin-bottom: 1rem;
  opacity: 0.95;
}

.landing-lede {
  max-width: 36rem;
  color: var(--bs-secondary-color);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.landing-features {
  margin-bottom: 0.25rem;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--bs-body-color);
  background: var(--landing-panel-strong);
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.landing-chip .bi {
  color: var(--landing-accent);
  font-size: 0.9em;
}

/* Panels */
.landing-panel {
  background: var(--landing-panel);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.landing-panel-primary {
  box-shadow:
    0 0 0 1px rgba(255, 212, 96, 0.06),
    0 18px 50px -24px rgba(0, 0, 0, 0.65);
}

.landing-panel-secondary {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-panel-header {
  margin-bottom: 1rem;
}

.landing-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.45rem;
}

.landing-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 8px var(--landing-accent);
  display: inline-block;
}

.landing-panel-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-panel-hint {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

/* Form shell */
.landing-form-shell {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  min-height: 3rem;
}

/* Continue form: tighter vertical rhythm inside shell */
#chat-edit-form-container .mb-3:last-of-type {
  margin-bottom: 0.75rem !important;
}

#chat-edit-form-container .btn {
  width: 100%;
}

@media (min-width: 768px) {
  #chat-edit-form-container .btn {
    width: auto;
  }
}

.landing-footnote {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Footer */
.landing-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--landing-border) !important;
  background: rgba(22, 25, 29, 0.92) !important;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.landing-footer a:hover,
.landing-footer a:focus-visible {
  color: var(--landing-accent);
  border-bottom-color: var(--landing-accent-dim);
}

.landing-footer-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.35rem;
  user-select: none;
}

/* Prompt / resume forms */
.landing #prompt-form-container .form-control,
.landing #prompt-form-container .form-select,
.landing #chat-edit-form-container .form-control {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing #prompt-form-container .form-control:focus,
.landing #prompt-form-container .form-select:focus,
.landing #chat-edit-form-container .form-control:focus {
  border-color: rgba(255, 212, 96, 0.45);
  box-shadow: 0 0 0 0.2rem var(--landing-accent-dim);
}

.landing #prompt-form-container #chat-submit {
  background: var(--landing-accent);
  border-color: var(--landing-accent);
  color: #1a1a1a;
}

.landing #prompt-form-container #chat-submit:hover {
  filter: brightness(1.05);
}

/* Responsive spacing */
@media (min-width: 768px) {
  .landing-main {
    padding-top: 3.5rem;
  }

  .landing-hero {
    margin-bottom: 2.75rem;
  }

  .landing-panel {
    padding: 1.5rem 1.5rem 1.6rem;
  }

  .landing-logo {
    max-width: 380px;
  }
}

@media (max-width: 575.98px) {
  .landing-lede {
    font-size: 0.98rem;
  }

  .landing-chip {
    font-size: 0.75rem;
  }
}
