/* Server landing pages (§2B). Three templates (LND-3) and four accent colours.
   Accents only swap the gold tokens, so every component keeps working. */

.accent--crimson {
  --gold-1: #9e1b2c;
  --gold: #d6455a;
  --gold-2: #f07a88;
  --gold-text: #f08c98;
  --gold-number: #e0566a;
  --border-gold: #6e1a25;
}

.accent--azure {
  --gold-1: #1d5fa8;
  --gold: #3f8fe0;
  --gold-2: #7cbcf5;
  --gold-text: #8cc3f5;
  --gold-number: #4d9be6;
  --border-gold: #1d4570;
}

.accent--jade {
  --gold-1: #1a7a55;
  --gold: #35b07f;
  --gold-2: #74dcae;
  --gold-text: #7fdcb2;
  --gold-number: #3cbc88;
  --border-gold: #1b5740;
}

.accent--crimson,
.accent--azure,
.accent--jade {
  --gold-gradient: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  --gold-edge: inset 0 2px 0 -1px var(--gold);
}

/* Dark Fantasy: deeper ground, serif headline, framed sections */
.landing--dark_fantasy {
  --bg: #0d0b0a;
  --surface: #17130f;
}

.landing--dark_fantasy .lp-hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.landing--dark_fantasy .lp-section {
  border: 1px solid var(--border-gold);
}

/* Minimal: flat, no panels */
.landing--minimal .lp-section {
  background: none;
  border: 0;
  border-block-end: 1px solid var(--border);
  border-radius: 0;
  padding-inline: 0;
}

.landing--minimal .lp-hero {
  background: none;
  text-align: start;
}

html:has(body.landing) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) {
    scroll-behavior: auto;
  }
}

/* A server profile is its own site: no directory header, footer, or phone bar. */
body.landing,
body.landing:has(> .site-header.fit-7) {
  padding-block-end: 0;
}

body.landing .lang-suggest,
body.landing .todo-banner,
body.landing .tabbar {
  display: none;
}

body.landing .page {
  max-width: 1120px;
  padding: 12px 20px 48px;
}

body.is-embed .site-header,
body.is-embed .site-footer,
body.is-embed .consent,
body.is-embed .todo-banner,
body.is-embed .landing-owner {
  display: none;
}

body.is-embed {
  padding: 0;
}

body.is-embed .page {
  padding: 12px;
}

.landing-owner {
  margin-block-end: 16px;
  font-size: var(--text-sm);
}

.lp-bar {
  position: sticky;
  z-index: 30;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-end: 20px;
  padding: 10px 12px 10px 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 40px;
  backdrop-filter: blur(14px);
}

.lp-bar__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-block-size: 36px;
}

.lp-bar__logo {
  display: block;
  max-block-size: 36px;
  max-inline-size: 180px;
  object-fit: contain;
}

.lp-bar__name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.lp-bar .btn {
  flex: 0 0 auto;
  width: auto;
}

.lp-bar__nav {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-inline-size: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-bar__nav::-webkit-scrollbar {
  display: none;
}

.lp-bar__nav a {
  padding: 8px 12px;
  border-radius: 20px;
  color: var(--text-soft);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.lp-bar__nav a:hover {
  color: var(--text);
}

.lp-bar__count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--gold-text);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lp-bar__count:has(.lp-countdown__clock) .lp-bar__when {
  display: none;
}

.lp-bar__what {
  margin-inline-end: 6px;
}

.lp-menu {
  display: none;
}

.lp-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 22px;
  list-style: none;
  cursor: pointer;
}

.lp-menu summary::-webkit-details-marker {
  display: none;
}

.lp-menu summary .icon {
  margin: 0;
}

.lp-menu__list {
  position: absolute;
  z-index: 40;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  min-inline-size: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.lp-menu__list a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-soft);
}

.lp-menu__list a:hover {
  background: var(--bg-sunken);
  color: var(--text);
}

.lp-slot {
  scroll-margin-top: 96px;
}

.lp-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: center;
  min-block-size: 460px;
  margin-block-end: var(--gap-panel);
  padding: 48px 40px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-panel);
  background: var(--page-glow), var(--glass);
  backdrop-filter: blur(18px);
}

.lp-hero__image {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.landing[data-dim="0"] .lp-hero__image { opacity: 0; }
.landing[data-dim="20"] .lp-hero__image { opacity: 0.2; }
.landing[data-dim="55"] .lp-hero__image { opacity: 0.55; }
.landing[data-dim="75"] .lp-hero__image { opacity: 0.75; }

.landing[data-font="serif"] .lp-hero__title,
.landing[data-font="serif"] .section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.landing[data-font="arabic"] .lp-hero__title,
.landing[data-font="arabic"] .section-title {
  font-family: "Amiri", "IBM Plex Sans Arabic", serif;
  font-style: normal;
}

.landing[data-radius="sharp"] {
  --radius-panel: 0px;
  --radius-chip: 0px;
  --radius-pill: 4px;
}

.landing[data-radius="pill"] {
  --radius-panel: 28px;
}

.lp-hero__copy,
.lp-side {
  position: relative;
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.lp-chips span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.lp-hero__lead {
  max-inline-size: 62ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.lp-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-panel);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.lp-side__title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
}

.lp-points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
}

.lp-points li + li {
  margin-block-start: 8px;
}

.lp-side__cta {
  margin-block-start: 8px;
}

.lp-hero__title {
  margin: 8px 0;
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.lp-hero__slogan {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: var(--text-lg);
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 24px;
}

.lp-countdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.lp-countdown__clock {
  color: var(--gold-number);
  font-size: var(--text-3xl);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.lp-section {
  margin-block-end: var(--gap-panel);
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-panel);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.lp-text {
  color: var(--text-soft);
  line-height: 1.6;
}

.lp-rates,
.lp-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.lp-rates div,
.lp-specs div {
  padding: 16px;
  border-radius: var(--radius-chip);
  background: var(--bg-sunken);
  text-align: center;
}

.lp-rates dt,
.lp-specs dt {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.lp-rates dd,
.lp-specs dd {
  margin: 0 0 4px;
  color: var(--gold-number);
  font-size: var(--text-xl);
  font-weight: 700;
}

.lp-rates dd {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
}

.lp-features {
  display: grid;
  gap: 16px;
}

.lp-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 8px 0 20px;
  border-block-end: 1px solid var(--border);
}

.lp-feature--media {
  grid-template-columns: minmax(160px, 0.85fr) auto minmax(0, 1.15fr);
}

.lp-feature__index {
  color: var(--gold-number);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lp-feature__title {
  margin: 0 0 8px;
  font-size: var(--text-xl);
}

.lp-join {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.lp-join__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-panel);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.lp-join__card h3 {
  margin: 0;
}

.lp-join__card p {
  margin: 0;
  color: var(--text-soft);
}

.lp-join__go {
  margin-block-start: auto;
  color: var(--gold-text);
  font-weight: 600;
}

.lp-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 32px;
  align-items: start;
  margin-block-start: 24px;
  padding: 28px 8px 32px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-panel);
  background: var(--glass);
  color: var(--text-soft);
  backdrop-filter: blur(18px);
}

.lp-foot__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-foot__col a {
  color: var(--text-soft);
}

.lp-foot__col a:hover {
  color: var(--gold-text);
}

.lp-foot__label {
  margin: 0 0 4px;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.lp-foot__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.lp-backlinks {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px 18px;
}

.lp-backlinks a {
  color: var(--text-soft);
}

.lp-backlinks a:hover {
  color: var(--gold-text);
}

.lp-foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.lp-foot__logo {
  display: block;
  max-block-size: 40px;
  max-inline-size: 160px;
  object-fit: contain;
}

.lp-foot__name {
  margin: 0;
  color: var(--text);
  font-size: var(--text-xl);
  font-weight: 700;
}

.lp-credit {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.lp-credit a {
  color: var(--text-soft);
  font-weight: 600;
}

.lp-credit a:hover {
  color: var(--gold-text);
}

.lp-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lp-shots img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.lp-join__count {
  margin: 0;
  color: var(--gold-text);
  font-weight: 600;
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.lp-card {
  padding: 16px;
  border-radius: var(--radius-chip);
  background: var(--bg-sunken);
  box-shadow: var(--gold-edge);
}

.lp-card__title {
  margin: 0 0 8px;
  font-size: var(--text-md);
}

.lp-prize {
  margin: 0;
  color: var(--gold-number);
  font-size: var(--text-3xl);
  font-weight: 700;
}

.lp-download {
  margin-block-end: 16px;
}

.lp-hash {
  overflow-wrap: anywhere;
}

.lp-faq {
  padding-block: 12px;
  border-block-end: 1px solid var(--border-row);
}

.lp-faq summary {
  min-block-size: var(--tap);
  cursor: pointer;
  font-weight: 600;
}

.lp-follow {
  text-align: center;
}

@media (prefers-reduced-transparency: reduce) {
  .lp-hero,
  .lp-section,
  .lp-side,
  .lp-join__card,
  .lp-close,
  .lp-foot {
    background: var(--surface);
    backdrop-filter: none;
  }
}

.landing-foot {
  padding-block: 24px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.lp-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  color: var(--gold-text);
  font-size: var(--text-sm);
}

.lp-offer a {
  color: inherit;
  font-weight: 700;
}

.lp-bar__clock,
.lp-clock {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.lp-bar__clock {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.lp-bar__clock time,
.lp-clock time {
  color: var(--text);
}

.lp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lp-proof b {
  display: block;
  color: var(--gold-number);
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}

.lp-proof span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.lp-reward {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
}

.lp-reward p {
  margin: 0;
}

.lp-reward__until {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.lp-reassure {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.lp-reassure li + li {
  margin-top: 4px;
}

.lp-ticker {
  overflow: hidden;
  margin: 18px 0 8px;
  border-block: 1px solid var(--border-gold);
}

.lp-ticker__track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding-block: 12px;
  animation: lp-marquee 36s linear infinite;
}

.lp-ticker span {
  color: var(--text-soft);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-ticker b {
  color: var(--gold-text);
}

@keyframes lp-marquee {
  to {
    transform: translateX(-50%);
  }
}

[dir="rtl"] .lp-ticker__track {
  animation-direction: reverse;
}

.lp-feature__points {
  margin: 8px 0 0;
  padding-inline-start: 18px;
}

.lp-feature__points li + li {
  margin-top: 4px;
}

.lp-shotbtn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.lp-feature--media .lp-shotbtn img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.lp-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lp-limits li {
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
}

.lp-join__count {
  display: flex;
  gap: 14px;
}

.lp-close {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 28px;
  padding: 28px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-panel);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.lp-close h2,
.lp-close p {
  margin: 0;
}

.lp-close p {
  margin-top: 6px;
  color: var(--text-soft);
}

.lp-dock {
  display: none;
  position: fixed;
  z-index: 40;
  inset-inline: 12px;
  inset-block-end: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border: 1px solid var(--border-gold);
  border-radius: 40px;
  backdrop-filter: blur(14px);
}

.lp-dock span {
  min-inline-size: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-lightbox {
  position: relative;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-inline-size: min(960px, 92vw);
}

.lp-lightbox::backdrop {
  background: rgb(0 0 0 / 75%);
}

.lp-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.lp-lightbox__close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

body.is-embed .lp-dock {
  display: none;
}

@media (max-width: 800px) {
  .lp-bar__nav,
  .lp-bar__clock {
    display: none;
  }

  .lp-foot,
  .lp-feature--media {
    grid-template-columns: 1fr;
  }

  body.landing:not(.is-embed) .page {
    padding-block-end: 96px;
  }

  .lp-dock {
    display: flex;
  }

  .lp-menu {
    display: block;
    position: relative;
  }

  .lp-hero {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    min-block-size: 0;
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .lp-hero {
    min-block-size: 0;
    padding: 28px 16px;
  }

  .lp-hero__title {
    font-size: 40px;
  }

  .lp-shots {
    grid-template-columns: 1fr;
  }

  .lp-section {
    padding: 16px;
  }
}
