/* Leximo marketing + legal pages. Requires leximo-tokens.css. */

body.landing-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--aurora-glow);
  background-repeat: no-repeat;
  background-size: 100% 520px;
  color: var(--text);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* ---------------------------------------------------------------- Nav */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 12px 0;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 1px solid transparent;
}

.landing-nav.top-nav-collapse {
  background: rgba(15, 17, 23, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--elev-1);
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .landing-nav.top-nav-collapse {
  background: rgba(245, 246, 248, 0.92);
}

.landing-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-nav .navbar-brand {
  order: 1;
}

.landing-nav .landing-nav__actions {
  order: 2;
  margin-left: auto;
}

.landing-nav .navbar-collapse {
  order: 3;
  flex-basis: 100%;
}

@media (min-width: 768px) {
  .landing-nav .navbar-collapse {
    order: 2;
    flex-basis: auto;
    flex-grow: 1;
  }

  .landing-nav .landing-nav__actions {
    order: 3;
    margin-left: 8px;
  }

  .landing-nav .landing-nav__actions .navbar-toggler {
    display: none;
  }
}

.landing-nav .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.landing-nav .navbar-brand img {
  height: 36px;
  width: auto;
}

.landing-nav .navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  padding: 6px 10px;
  background: var(--surface-2);
}

.landing-nav .navbar-toggler:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-nav .navbar-nav {
  align-items: center;
}

.landing-nav .nav-link {
  color: var(--text-muted) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px !important;
  border-radius: var(--radius-control);
}

.landing-nav .nav-link:hover,
.landing-nav .nav-item.active .nav-link {
  color: var(--text) !important;
  background: rgba(var(--accent-rgb), 0.08);
}

/* Legal pages: same logo-left layout, no collapse toggler */
.landing-nav--legal .navbar-collapse {
  display: flex !important;
  order: 2;
  flex-basis: auto;
  flex-grow: 1;
}

.landing-nav--legal .landing-nav__actions {
  order: 3;
  margin-left: 8px;
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.signup-alert {
  position: sticky;
  top: 0;
  z-index: 1040;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--text);
}

/* ---------------------------------------------------------------- Hero */

.hero-area-bg {
  position: relative;
  padding: 140px 0 72px;
  overflow: hidden;
}

.hero-area-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 55% at 70% 10%, rgba(var(--purple-rgb), 0.16) 0%, transparent 70%),
    radial-gradient(45% 50% at 20% 20%, rgba(var(--accent-rgb), 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-area-bg .contents {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 36px;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  text-align: left;
}

.feature-item {
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elev-1);
}

.feature-item h6 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.target-audiences {
  margin-top: 8px;
}

.target-audiences > h5 {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Sections */

.section-padding {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shape {
  width: 48px;
  height: 3px;
  margin: 0 auto;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
}

.feature-content {
  max-width: 820px;
  margin: 0 auto 40px;
}

.feature-content h5 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.feature-content p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.sample-translations {
  margin: 40px 0;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elev-1);
}

.sample-translations .icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.sample-translations .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient-soft);
  color: var(--accent);
  font-size: 22px;
}

.sample-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.sample-translations .container > span,
.sample-translations .container > h6 {
  color: var(--text-muted);
}

.audio-samples {
  margin-top: 8px;
}

.audio-sample {
  margin-bottom: 18px;
}

.audio-sample .pricing-header h5 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.audio-sample audio {
  width: 100%;
  max-width: 280px;
}

.audio-sample ul.description {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.intro-img {
  margin-top: 18px;
}

.intro-img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  box-shadow: var(--elev-2);
  cursor: pointer;
}

.integrations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
}

.integration-card {
  text-align: center;
  max-width: 280px;
}

.integration-link {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.integration-link:hover {
  color: var(--accent);
}

.integration-card .intro-img {
  margin-top: 0.75rem;
}

.integration-card .intro-img img {
  max-width: 200px;
  max-height: 60vh;
}

/* ---------------------------------------------------------------- Pricing */

.pricing-row {
  align-items: stretch;
}

.pricing-col {
  margin-bottom: 20px;
  display: flex;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-table:hover {
  border-color: var(--border-hover);
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.pricing-table.featured {
  border-color: rgba(var(--accent-rgb), 0.55);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--accent-gradient) border-box;
  border: 1px solid transparent;
  box-shadow: var(--elev-2);
}

.pricing-table-header h5 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 16px;
}

.price .currency {
  color: var(--text-muted);
  font-size: 16px;
}

.price .amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price .period {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.pricing-features i {
  margin-top: 1px;
  color: var(--green);
  font-size: 15px;
}

.pricing-table-footer {
  margin-top: auto;
}

.btn-common {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent-gradient);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-common:hover {
  filter: brightness(1.08);
  color: #fff !important;
  text-decoration: none;
}

.btn-common:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- Footer */

.footer-area {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-top: 56px;
  padding-bottom: 0;
}

.footer-area h3,
.footer-titel {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-area .textwidget p,
.footer-link a,
.address a {
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-link,
.address {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link li,
.address li {
  margin-bottom: 8px;
}

.footer-link a:hover,
.address a:hover {
  color: var(--accent);
}

.address i {
  margin-right: 6px;
}

#copyright {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.copyright-content {
  text-align: center;
}

.copyright-content p {
  margin: 0;
  color: var(--text-faint);
  font-size: 12.5px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1020;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: var(--elev-2);
}

.back-to-top:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.back-to-top.show {
  display: inline-flex;
}

/* ---------------------------------------------------------------- Legal */

.legal-page {
  padding: 110px 0 72px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page .text-muted {
  color: var(--text-muted) !important;
}

.legal-page h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.legal-page h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-nav-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.legal-nav-list li {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.legal-nav-list a {
  color: var(--text);
  font-size: 16px;
}

.legal-nav-list a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------- Modal */

#imageModal .modal-content {
  background: transparent;
  border: none;
}

#imageModal .modal-body {
  padding: 0;
}

#imageModal img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-control);
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 991.98px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero-area-bg {
    padding: 120px 0 56px;
  }

  .landing-nav .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
  }

  .landing-nav--legal .navbar-collapse {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .landing-nav__actions {
    margin: 8px 0 0;
  }

  .landing-nav--legal .landing-nav__actions {
    margin: 0 0 0 8px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 56px 0;
  }

  .sample-translations {
    padding: 22px 16px;
  }
}
