/* Landing page overrides for "download" style homepage.
   Loaded only when `.settings.landing_enabled` is true. */

body {
  background: #f6f4ef;
  position: relative;
}

/* Global background grid (enterprise site style) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.landing-main {
  float: none;
  margin: 0;
  max-width: none;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.landing-content {
  float: none;
  width: 100% !important;
  margin-top: 0 !important;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px 56px;
}

/* Disable sidebar layout assumptions */
.landing-main .page-top,
.landing-main .content {
  width: 100% !important;
}

/* Top nav */
.landing-page-top {
  position: sticky !important;
  top: 0;
  z-index: 20;
  display: block !important;
  height: auto !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(246, 244, 239, 0.9) !important;
  backdrop-filter: blur(10px);
}

.landing-top-left .landing-logo img {
  width: 32px;
  height: 32px;
}

.landing-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.landing-top-left,
.landing-top-center,
.landing-top-right {
  min-width: 0;
}

.landing-top-left {
  justify-self: start;
}

.landing-top-center {
  justify-self: center;
}

.landing-top-right {
  justify-self: end;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}

.landing-logo:hover {
  opacity: 0.9;
}

.landing-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  object-fit: cover;
}

.landing-logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.landing-site-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.78);
  letter-spacing: 0.2px;
  line-height: 1;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  white-space: nowrap;
}

.landing-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: none !important;
  border-radius: 10px;
  font-size: 13px;
  color: #222;
  background: transparent !important;
  position: relative;
}

.landing-nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.landing-nav-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.landing-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: #4b4b4b;
  cursor: pointer;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
}

.lang-icon {
  display: inline-flex;
  align-items: center;
  color: #8b8b8b;
}

.lang-current {
  font-weight: 600;
  letter-spacing: 0.1px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 6px;
  display: none;
  z-index: 5;
}

.lang-switch.is-open .lang-menu {
  display: block;
}

.lang-item {
  color: #6b6b6b;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  display: block;
}

.lang-item:hover {
  color: #1f4dd6;
  background: rgba(31, 77, 214, 0.08);
}

.lang-item.is-active {
  color: #1f4dd6;
  background: rgba(31, 77, 214, 0.12);
  font-weight: 600;
}

.lang-sep {
  color: #b2b2b2;
}

@media (max-width: 640px) {
  .landing-top-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .lang-switch {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.02);
    padding: 4px 8px;
    border-radius: 10px;
  }
}

@media (max-width: 960px) {
  .landing-top-inner {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    row-gap: 10px;
  }

  .landing-top-center {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .landing-top-right {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  .landing-top-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
}

.landing-top-link {
  font-size: 13px;
  color: #3f3f3f;
}

.landing-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: #1f5fd6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Hero */
.landing-hero {
  padding: 40px 12px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.landing-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 600;
  color: #1f4fb4;
  font-family: "Georgia", "Times New Roman", serif;
  margin: 0;
}

.landing-subtitle {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
}

.landing-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.08s ease, background-color 0.12s ease;
  gap: 8px;
}

.landing-btn-icon {
  display: inline-flex;
  align-items: center;
}

.landing-btn-icon-os svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.landing-btn:active {
  transform: translateY(1px);
}

.landing-btn-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.landing-btn-primary {
  background: #eaf2ff;
  color: #1f5fd6;
  border: 1px solid #cfe0ff;
}

.landing-btn-primary:hover {
  background: #e1ecff;
}

.landing-btn-secondary {
  background: #fdfbf7;
  color: #1f1f1f;
}

.landing-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.landing-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

/* Features */
.landing-features {
  margin: 26px auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 10px;
  position: relative;
  z-index: 2;
}

.landing-feature-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.landing-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 6px;
}

.landing-feature-body {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.5;
}

/* Media box */
.landing-media {
  margin: 18px auto 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
  position: relative;
  z-index: 2;
}

.landing-showcase {
  margin: 22px auto 0;
  position: relative;
  z-index: 2;
}

.landing-showcase-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}

.landing-showcase-tab {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.landing-showcase-tab.is-active {
  background: rgba(31, 95, 214, 0.12);
  border-color: rgba(31, 95, 214, 0.25);
  color: rgba(31, 95, 214, 1);
}

.landing-showcase-panels {
  width: 100%;
}

.landing-showcase-panel {
  display: none;
}

.landing-showcase-panel.is-active {
  display: block;
}

.landing-showcase-slogan {
  text-align: center;
  color: rgba(0, 0, 0, 0.68);
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 10px;
}

.landing-media--tab {
  margin-top: 0;
}

.landing-media-placeholder {
  width: 100%;
  min-height: 380px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.55);
  font-size: 16px;
  font-weight: 600;
}

.landing-media-inner {
  width: 100%;
  max-height: 520px;
  border-radius: 12px;
  object-fit: contain;
  background: #f6f5f2;
}

@media screen and (max-width: 960px) {
  .landing-main {
    margin: 0;
    padding: 0;
  }

  .landing-top-inner {
    padding-bottom: 12px;
  }

  .landing-title {
    font-size: 34px;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .landing-top-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .landing-top-right {
    justify-self: center;
  }

  .landing-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing-nav-item:not(:last-child)::after {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .landing-top-inner {
    padding-bottom: 12px;
  }

  .landing-nav {
    justify-content: center;
  }
}
