/* LinguPilot landing — aligned with app dark theme */

:root {
  --lp-bg: #141414;
  --lp-surface: #1b1b1b;
  --lp-surface-2: #222222;
  --lp-text: #ffffff;
  --lp-muted: rgba(255, 255, 255, 0.72);
  --lp-muted-2: rgba(255, 255, 255, 0.55);
  --lp-navy: #0b1e3c;
  --lp-aqua: #16c7b4;
  --lp-pilot-blue: #168bc7;
  --lp-amber: #f59e0b;
  --lp-border: rgba(255, 255, 255, 0.1);
  --lp-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body.lp-landing-body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--lp-text);
  background:
    radial-gradient(1200px 420px at 25% -10%, rgba(11, 30, 60, 0.55), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(22, 199, 180, 0.12), transparent 55%),
    var(--lp-bg);
}

.lp-landing-nav {
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-border);
}

.lp-landing-brand span {
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  color: var(--lp-text);
  font-size: 1.15rem;
}

.btn-landing-primary {
  background: linear-gradient(135deg, var(--lp-pilot-blue), var(--lp-aqua));
  border: none;
  color: #fff;
  font-weight: 600;
}

.btn-landing-primary:hover,
.btn-landing-primary:focus {
  color: #fff;
  filter: brightness(1.08);
}

.btn-landing-outline {
  border: 1px solid rgba(22, 139, 199, 0.45);
  color: var(--lp-text);
  font-weight: 600;
  background: transparent;
}

.btn-landing-outline:hover {
  background: rgba(22, 139, 199, 0.12);
  color: var(--lp-text);
  border-color: rgba(22, 199, 180, 0.5);
}

.btn-landing-ghost {
  color: var(--lp-muted);
  border: none;
  background: transparent;
}

.btn-landing-ghost:hover {
  color: var(--lp-text);
}

.btn-landing-accent {
  background: var(--lp-amber);
  border: none;
  color: #141414;
  font-weight: 700;
}

.btn-landing-accent:hover {
  color: #141414;
  filter: brightness(1.06);
}

.lp-landing-hero {
  position: relative;
  padding: calc(2.25rem * 1.3) 0 calc(3.5rem * 1.3);
  min-height: calc(20rem * 1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lp-landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.55) 48%, rgba(20, 20, 20, 0.35) 100%),
    url("../assets/1.jpg") center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.lp-landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-top: 8.25rem;
}

.lp-landing-brand-hero {
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.35rem;
  background: linear-gradient(135deg, #ffffff 20%, #16c7b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-landing-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ca0ca;
  margin: 0 0 0.85rem;
}

.lp-landing-hero h1 {
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.lp-landing-lead {
  font-size: 1.05rem;
  color: var(--lp-muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.lp-landing-section {
  padding: 4rem 0;
}

.lp-landing-section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lp-landing-section-title {
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.lp-landing-section-sub {
  color: var(--lp-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.lp-landing-pain-card {
  height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, rgba(27, 27, 27, 0.95), rgba(27, 27, 27, 0.8));
  box-shadow: var(--lp-shadow);
}

.lp-landing-pain-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 180, 120, 0.9);
}

.lp-landing-pain-card h3 {
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: #36e5d5;
}

.lp-landing-pain-card p:last-child {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.lp-landing-catalog-row {
  margin-bottom: 1.75rem;
}

.lp-landing-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 3.25rem;
  margin-bottom: 12px;
}

.lp-landing-row-header > div {
  min-width: 0;
  flex: 1;
}

.lp-landing-row-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffc107;
  line-height: 1.25;
}

.lp-landing-row-header p {
  margin: 0.25rem 0 0;
  color: var(--lp-muted-2);
  font-size: 0.88rem;
  line-height: 1.35;
  min-height: 1.35em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lp-landing-row-hint {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--lp-muted-2);
  font-size: 0.82rem;
  white-space: nowrap;
}

.lp-landing-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
}

.lp-landing-carousel::-webkit-scrollbar {
  height: 10px;
}

.lp-landing-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.lp-landing-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.lp-landing-card-preview {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  color: inherit;
  font: inherit;
}

a.lp-landing-card-preview {
  text-decoration: none;
}

.lp-landing-mini-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.lp-landing-card-preview:hover .lp-landing-mini-card,
.lp-landing-card-preview:focus-visible .lp-landing-mini-card {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  outline: none;
}

.lp-landing-mini-media {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.lp-landing-mini-cover {
  aspect-ratio: 16 / 10;
  height: 118px;
  background-color: #1b1b1b;
  background-image: linear-gradient(135deg, rgba(11, 30, 60, 0.55), rgba(22, 139, 199, 0.25));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lp-landing-mini-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 10px 12px 12px;
  background: #fff;
  min-height: 3.4rem;
}

.lp-landing-mini-body h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #141414;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.lp-landing-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.lp-landing-card-locked .lp-landing-mini-cover {
  filter: brightness(0.72);
}

.lp-landing-why-list {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.lp-landing-why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--lp-border);
  background: rgba(27, 27, 27, 0.88);
}

.lp-landing-why-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #141414;
  background: linear-gradient(135deg, var(--lp-pilot-blue), var(--lp-aqua));
}

.lp-landing-why-pain {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 180, 120, 0.9);
}

.lp-landing-why-item h3 {
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #36e5d5;
}

.lp-landing-why-item p:last-child {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.55;
}

.lp-landing-cta {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(22, 199, 180, 0.15), transparent 70%),
    linear-gradient(180deg, var(--lp-surface-2), var(--lp-bg));
  border-top: 1px solid var(--lp-border);
}

.lp-landing-cta h2 {
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.lp-landing-cta p {
  color: var(--lp-muted);
  margin-bottom: 1.5rem;
}

.lp-landing-footer {
  border-top: 1px solid var(--lp-border);
  color: var(--lp-muted-2);
  background: rgba(0, 0, 0, 0.25);
}

.lp-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lp-auth-modal.d-none {
  display: none !important;
}

.lp-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.lp-auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--lp-shadow);
}

.lp-auth-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  color: var(--lp-muted);
  font-size: 1.6rem;
  line-height: 1;
}

.lp-auth-modal-card h2 {
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.lp-auth-modal-sub {
  color: var(--lp-muted);
  margin-bottom: 1rem;
}

.lp-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.25rem;
}

.lp-auth-tab {
  border: none;
  background: transparent;
  color: var(--lp-muted);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
}

.lp-auth-tab.is-active {
  background: rgba(22, 139, 199, 0.22);
  color: #fff;
}

.lp-auth-form .form-label {
  color: var(--lp-muted);
}

.lp-auth-form .form-control {
  background: #111;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lp-auth-form .form-control:focus {
  background: #111;
  color: #fff;
  border-color: rgba(22, 199, 180, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(22, 199, 180, 0.15);
}

.lp-auth-form .form-text {
  color: var(--lp-muted-2);
}

@media (max-width: 767.98px) {
  .lp-landing-hero {
    padding: calc(0.85rem * 1.3) 0 calc(2.75rem * 1.3);
    min-height: calc(10rem * 1.3);
  }

  .lp-landing-carousel {
    grid-auto-columns: 168px;
  }

  .lp-landing-mini-cover {
    height: 100px;
  }

  .lp-landing-row-hint {
    display: none;
  }
}
