/* ================================================================
   Landing Page Styles
   All selectors prefixed with #landingPage for full isolation
   from dashboard CSS.
   ================================================================ */

/* ── Page Container Wrappers ────────────────────────────────────── */

#dashboardPage {
  display: none;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#landingPage {
  display: none;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  margin: 0;
  padding: 0;
  background: var(--l-bg);
  color: var(--l-text);
}

#landingPage .ld-styles,
#landingPage .ld-signin-apps {
  overflow-anchor: none;
}

/* ── Theme Variables ─────────────────────────────────────────────── */

/* Unified Landing typography: every landing theme shares the App's
   Syne + JetBrains Mono pair. A theme can still add a character display
   font by falling back to Syne if that webfont is unavailable — but
   Syne itself is always loaded, so Landing and App feel like the same
   product. */
/* Aurora — premium dark canvas with vivid violet/cyan aurora gradients.
   2026-05-21: replaced the removed cinematic_dark + glassmorphism themes.
   The block builder reads these --l-* variables, so a builder page on
   the Aurora theme inherits this palette automatically. */
#landingPage[data-theme="aurora"] {
  --l-bg: #070711;
  --l-text: #ECECF4;
  --l-text-muted: #9DA3B8;
  --l-accent: #8B5CF6;
  --l-accent-secondary: #22D3EE;
  --l-accent-tertiary: #EC4899;
  --l-accent-glow: rgba(139,92,246,0.30);
  --l-surface: rgba(255,255,255,0.045);
  --l-border: rgba(255,255,255,0.09);
  --l-font-display: 'Syne', sans-serif;
  --l-font-body: 'Syne', sans-serif;
  --l-font-mono: 'JetBrains Mono', monospace;
}


/* Dashboard Native — нативное продолжение личного кабинета. Цвета и
   шрифты совпадают с :root в main.css, чтобы при первом заходе landing
   и app выглядели как одна и та же страница. */
#landingPage[data-theme="dashboard_native"] {
  --l-bg: #0D0F12;
  --l-text: #E2E8F0;
  --l-text-muted: #9CA3AF;
  --l-accent: #38BDF8;
  --l-accent-glow: rgba(56,189,248,0.25);
  --l-surface: #161A20;
  --l-border: rgba(255,255,255,0.06);
  --l-font-display: 'Syne', sans-serif;
  --l-font-body: 'Syne', sans-serif;
  --l-font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset / Base ────────────────────────────────────────────────── */

#landingPage * {
  box-sizing: border-box;
}

/* ── Nav ─────────────────────────────────────────────────────────── */

#landingPage .ld-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: background 0.3s;
}

#landingPage .ld-nav.scrolled {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
}

/* ── Logo ────────────────────────────────────────────────────────── */

#landingPage .ld-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--l-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--l-text);
}

/* ── Menu ────────────────────────────────────────────────────────── */

#landingPage .ld-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

#landingPage .ld-menu a {
  color: var(--l-text-muted);
  text-decoration: none;
  font-family: var(--l-font-body);
  font-size: 14px;
  transition: color 0.2s;
  cursor: pointer;
}

#landingPage .ld-menu a:hover {
  color: var(--l-text);
}

/* ── Nav Right ───────────────────────────────────────────────────── */

#landingPage .ld-nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Language Switch ─────────────────────────────────────────────── */

#landingPage .ld-lang {
  background: transparent;
  border: 1px solid var(--l-border);
  color: var(--l-text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--l-font-body);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

#landingPage .ld-lang:hover {
  color: var(--l-text);
  border-color: var(--l-text-muted);
}

/* ── CTA Button ──────────────────────────────────────────────────── */

#landingPage .ld-cta {
  background: var(--l-accent);
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  font-family: var(--l-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#landingPage .ld-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Hero Section ────────────────────────────────────────────────── */

#landingPage .ld-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  text-align: center;
  position: relative;
}

/* ── Badge ───────────────────────────────────────────────────────── */

#landingPage .ld-badge {
  font-family: var(--l-font-body);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--l-accent);
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* ── Hero Title ──────────────────────────────────────────────────── */

#landingPage .ld-hero h1 {
  font-family: var(--l-font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--l-text);
}

/* ── Gradient Text ───────────────────────────────────────────────── */

#landingPage .ld-gradient {
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-secondary, var(--l-accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Subtitle ───────────────────────────────────────────────── */

#landingPage .ld-hero p {
  font-family: var(--l-font-body);
  font-size: 18px;
  color: var(--l-text-muted);
  max-width: 560px;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ── Buttons Row ─────────────────────────────────────────────────── */

#landingPage .ld-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

#landingPage .ld-buttons button {
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--l-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

#landingPage .ld-buttons button:first-child {
  background: var(--l-accent);
  color: #000;
}

#landingPage .ld-buttons button:last-child {
  background: var(--l-surface);
  color: var(--l-text);
  border: 1px solid var(--l-border);
}

/* ── Stats Bar ───────────────────────────────────────────────────── */

#landingPage .ld-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--l-border);
}

#landingPage .ld-stats > div {
  text-align: center;
}

#landingPage .ld-stats strong {
  display: block;
  font-family: var(--l-font-display);
  font-size: 28px;
  color: var(--l-text);
}

#landingPage .ld-stats span {
  font-family: var(--l-font-body);
  font-size: 12px;
  color: var(--l-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Features Section ────────────────────────────────────────────── */

#landingPage .ld-features {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

#landingPage .ld-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

#landingPage .ld-feature {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

#landingPage .ld-feature:hover {
  transform: translateY(-4px);
  border-color: var(--l-accent);
}

#landingPage .ld-feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--l-accent);
}

#landingPage .ld-feature h3 {
  font-family: var(--l-font-display);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--l-text);
}

#landingPage .ld-feature p {
  font-family: var(--l-font-body);
  font-size: 14px;
  color: var(--l-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Roadmap Section ─────────────────────────────────────────────── */

#landingPage .ld-roadmap {
  padding: 80px 32px;
  max-width: 1000px;
  margin: 0 auto;
}

#landingPage .ld-roadmap-title {
  font-family: var(--l-font-display);
  font-size: 32px;
  text-align: center;
  margin-bottom: 48px;
}

#landingPage .ld-timeline {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
}

#landingPage .ld-phase {
  flex: 1;
  min-width: 220px;
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

#landingPage .ld-phase.active {
  border-color: var(--l-accent);
}

#landingPage .ld-phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

#landingPage .ld-phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--l-border);
}

#landingPage .ld-phase.completed .ld-phase-dot {
  background: var(--l-text-muted);
}

#landingPage .ld-phase.active .ld-phase-dot {
  background: var(--l-accent);
  animation: ld-pulse 2.4s infinite;
}

#landingPage .ld-phase-title {
  font-family: var(--l-font-display);
  font-size: 16px;
  font-weight: 700;
}

#landingPage .ld-phase-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#landingPage .ld-phase-items li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--l-font-body);
  font-size: 13px;
  color: var(--l-text-muted);
}

#landingPage .ld-phase-items li.done {
  color: var(--l-text);
}

#landingPage .ld-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--l-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#landingPage .ld-check.checked {
  background: var(--l-accent);
  border-color: var(--l-accent);
}

/* ── NFT Styles Gallery ──────────────────────────────────────────── */

#landingPage .ld-styles {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
#landingPage .ld-styles-head { text-align: center; margin-bottom: 48px; }
#landingPage .ld-styles-title {
  font-family: var(--l-font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--l-text);
}
#landingPage .ld-styles-sub {
  font-family: var(--l-font-body);
  font-size: 14px;
  color: var(--l-text-muted);
  letter-spacing: 0.02em;
}
#landingPage .ld-styles-grid {
  display: grid;
  /* Exactly 4 columns so 8 cards fit neatly into 2 rows. Tablets
     (≤900px) collapse to 2 columns; phones (≤500px) stay at 2 too. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  #landingPage .ld-styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 500px) {
  #landingPage .ld-styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
#landingPage .ld-style-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  /* The tile is wrapped in <a href="https://getgems.io/..."> so clicks
     open the real NFT. Kill the default anchor styling (blue underline,
     link colour) so the tile looks like a card — the cursor still hints
     it's clickable. */
  text-decoration: none;
  color: inherit;
}
#landingPage .ld-style-card:link,
#landingPage .ld-style-card:visited,
#landingPage .ld-style-card:hover,
#landingPage .ld-style-card:active {
  text-decoration: none;
  color: inherit;
}
#landingPage .ld-style-card * { text-decoration: none; }
#landingPage .ld-style-card:hover {
  transform: translateY(-4px);
  border-color: var(--l-accent);
  box-shadow: 0 12px 28px -8px var(--l-accent-glow, rgba(56,189,248,0.3));
}
#landingPage .ld-style-preview {
  position: relative;
  /* GetGems NFT tiles are square — match them exactly so our real
     NFT previews don't get letterboxed or cropped. Applies both to
     the gradient placeholder and the loaded <img>. */
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* 2026-04-24: страховка для img внутри preview — раньше высота
   плитки гуляла из-за того, что aspect-ratio контейнера терялся,
   когда <img> грузился асинхронно. Привязываем картинку к
   родителю по абсолютным позициям — теперь все плитки в гриде
   гарантированно одной высоты вне зависимости от пропорций
   исходного PNG/WebP. */
#landingPage .ld-style-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#landingPage .ld-style-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
#landingPage .ld-style-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  z-index: 1;
}
#landingPage .ld-style-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 2;
}
#landingPage .ld-style-badge.premium { background: rgba(168,85,247,0.35); border-color: rgba(168,85,247,0.6); }
#landingPage .ld-style-badge.exclusive { background: rgba(234,179,8,0.35); border-color: rgba(234,179,8,0.6); }
#landingPage .ld-style-meta {
  /* Stacked + centred: number label on its own line under the preview.
     Centring matches the preview art (which itself centers the number
     in the artwork) for visual symmetry. */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 14px 14px;
  text-align: center;
}
#landingPage .ld-style-name {
  /* Mono-digit font — the label is just the formatted number, so it
     should look like a number. 18px base, 20px on wide viewports.
     Single-line with ellipsis as a safety net if the server ever
     returns something longer than expected. */
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--l-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
@media (min-width: 1200px) {
  #landingPage .ld-style-name { font-size: 20px; }
}
#landingPage .ld-style-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--l-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 500px) {
  #landingPage .ld-styles { padding: 56px 16px; }
  #landingPage .ld-styles-title { font-size: 24px; }
  #landingPage .ld-styles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  #landingPage .ld-style-number { font-size: 14px; }
}

/* ── FAQ Section ─────────────────────────────────────────────────── */

#landingPage .ld-faq {
  padding: 80px 32px;
  max-width: 720px;
  margin: 0 auto;
}

#landingPage .ld-faq-title {
  font-family: var(--l-font-display);
  font-size: 32px;
  text-align: center;
  margin-bottom: 48px;
}

#landingPage .ld-faq-item {
  border-bottom: 1px solid var(--l-border);
}

#landingPage .ld-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--l-font-body);
  font-size: 15px;
  color: var(--l-text);
}

#landingPage .ld-faq-q:hover {
  color: var(--l-accent);
}

#landingPage .ld-faq-arrow {
  transition: transform 0.3s;
  color: var(--l-text-muted);
}

#landingPage .ld-faq-item.open .ld-faq-arrow {
  transform: rotate(180deg);
}

#landingPage .ld-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#landingPage .ld-faq-item.open .ld-faq-a {
  max-height: 300px;
}

#landingPage .ld-faq-a p {
  padding: 0 0 20px;
  font-family: var(--l-font-body);
  font-size: 14px;
  color: var(--l-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────────── */

#landingPage .ld-footer {
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--l-border);
  font-family: var(--l-font-body);
  font-size: 13px;
  color: var(--l-text-muted);
}

#landingPage .ld-footer a {
  color: var(--l-text-muted);
  text-decoration: none;
}

#landingPage .ld-footer a:hover {
  color: var(--l-text);
}

/* ── Style-card skeleton (loading placeholder) ─────────────────────
   2026-04-24: пока /api/landing/showcase резолвится (наш DB → fallback
   на коллекцию getgems), рисуем нейтральный shimmer вместо фейковых
   карточек с надписью «111-00-000-00» — чтобы пользователь видел
   честный «грузим», а не сбойный UI. Подменяется реальными NFT, как
   только данные пришли. */

#landingPage .ld-style-card-skeleton {
  cursor: default;
  pointer-events: none;
}
#landingPage .ld-style-card-skeleton .ld-style-preview::after {
  display: none;  /* отключаем глянцевый highlight боевой плитки */
}
#landingPage .ld-style-skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: ld-skeleton-sweep 1.6s linear infinite;
}
#landingPage .ld-style-skeleton-bar {
  display: inline-block;
  width: 70%;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: ld-skeleton-sweep 1.6s linear infinite;
}
@keyframes ld-skeleton-sweep {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

/* ── Animations ──────────────────────────────────────────────────── */

@keyframes ld-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--l-accent-glow, rgba(56,189,248,0.4)); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes ld-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ld-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ld-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes ld-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reduced-motion accommodation: respect OS-level preference so we don't
   churn battery / trigger vestibular issues on every visit. Disable
   purely-decorative animations, keep CSS transitions short-and-snappy
   so interactive feedback still exists. */
@media (prefers-reduced-motion: reduce) {
  #landingPage *,
  #landingPage *::before,
  #landingPage *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Dashboard wrapper responsive ─────────────────────────────────── */

@media (max-width: 860px) {
  #dashboardPage {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  #dashboardPage {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
}

/* ── Tablet (intermediate) ─────────────────────────────────────────
   Without this stop the grid jumps from 3-4 columns straight to 1 at
   768px, leaving 900–769px feeling broken (huge cards stacked
   single-file while there is still room for two). */
@media (max-width: 1024px) and (min-width: 769px) {
  #landingPage .ld-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  #landingPage .ld-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  #landingPage .ld-stats > div { min-width: 0; }
  #landingPage .ld-hero { padding: 100px 24px 60px; }
}

/* ── Mobile Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  #landingPage .ld-nav {
    padding: 12px 16px;
  }

  #landingPage .ld-menu {
    display: none;
  }

  #landingPage .ld-hero {
    padding: 100px 20px 60px;
  }

  #landingPage .ld-hero h1 {
    font-size: 32px;
  }

  #landingPage .ld-hero p {
    font-size: 15px;
  }

  #landingPage .ld-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  #landingPage .ld-stats > div {
    min-width: 80px;
  }

  #landingPage .ld-features,
  #landingPage .ld-roadmap,
  #landingPage .ld-faq {
    padding: 48px 16px;
  }

  #landingPage .ld-features-grid {
    grid-template-columns: 1fr;
  }

  #landingPage .ld-timeline {
    flex-direction: column;
  }

  #landingPage .ld-buttons {
    flex-direction: column;
    width: 100%;
  }

  #landingPage .ld-buttons button {
    width: 100%;
  }

  #landingPage .ld-footer {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Mobile menu overlay */
  #landingPage .ld-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  #landingPage .ld-mobile-menu.open {
    display: flex;
  }

  #landingPage .ld-mobile-menu a {
    color: var(--l-text);
    font-size: 20px;
  }

  #landingPage .ld-nav .ld-hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  #landingPage .ld-hamburger {
    display: none;
  }

  #landingPage .ld-mobile-menu {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING BLOCK BUILDER  (2026-05-21)
   Public renderer styles for builder-mode pages (landing-blocks.js).
   Every value is driven by the active theme's --l-* variables, so a
   builder page looks native under either dashboard_native or aurora.
   ═══════════════════════════════════════════════════════════════════ */

#landingPage .lb-page { width: 100%; }

/* ── block scaffold ── */
#landingPage .lb-block { position: relative; width: 100%; }
#landingPage .lb-inner { width: 100%; margin: 0 auto; }
#landingPage .lb-mw-narrow { max-width: 640px; }
#landingPage .lb-mw-normal { max-width: 920px; }
#landingPage .lb-mw-wide   { max-width: 1160px; }
#landingPage .lb-mw-full   { max-width: 100%; }
#landingPage .lb-align-left   { text-align: left; }
#landingPage .lb-align-center { text-align: center; }
#landingPage .lb-align-right  { text-align: right; }

#landingPage .lb-bg-surface  { background: rgba(255,255,255,0.025); }
#landingPage .lb-bg-dark     { background: rgba(0,0,0,0.45); }
#landingPage .lb-bg-accent   { background: color-mix(in srgb, var(--l-accent) 11%, transparent); }
#landingPage .lb-bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--l-accent) 22%, transparent), transparent 72%),
    radial-gradient(ellipse 60% 50% at 85% 25%, color-mix(in srgb, var(--l-accent-secondary, var(--l-accent)) 16%, transparent), transparent 70%);
}

#landingPage .lb-pad-sm { padding: 30px 20px; }
#landingPage .lb-pad-md { padding: 52px 24px; }
#landingPage .lb-pad-lg { padding: 84px 28px; }
#landingPage .lb-pad-xl { padding: 128px 28px; }
@media (max-width: 640px) {
  #landingPage .lb-pad-md { padding: 40px 18px; }
  #landingPage .lb-pad-lg { padding: 56px 18px; }
  #landingPage .lb-pad-xl { padding: 92px 18px; }
}

/* ── text ── */
#landingPage .lb-text { margin: 0; }
#landingPage .lb-size-xs  { font-size: 12px; }
#landingPage .lb-size-sm  { font-size: 14px; }
#landingPage .lb-size-md  { font-size: 16px; }
#landingPage .lb-size-lg  { font-size: clamp(17px, 2vw, 20px); }
#landingPage .lb-size-xl  { font-size: clamp(20px, 2.6vw, 26px); }
#landingPage .lb-size-2xl { font-size: clamp(24px, 3.4vw, 34px); }
#landingPage .lb-size-3xl { font-size: clamp(30px, 4.6vw, 46px); }
#landingPage .lb-size-4xl { font-size: clamp(38px, 6.4vw, 72px); }
#landingPage .lb-weight-normal    { font-weight: 400; }
#landingPage .lb-weight-medium    { font-weight: 500; }
#landingPage .lb-weight-semibold  { font-weight: 600; }
#landingPage .lb-weight-bold      { font-weight: 700; }
#landingPage .lb-weight-extrabold { font-weight: 800; }
#landingPage .lb-font-display { font-family: var(--l-font-display); letter-spacing: -0.02em; }
#landingPage .lb-font-body    { font-family: var(--l-font-body); }
#landingPage .lb-font-mono    { font-family: var(--l-font-mono); }
#landingPage .lb-talign-left   { text-align: left; }
#landingPage .lb-talign-center { text-align: center; }
#landingPage .lb-talign-right  { text-align: right; }
#landingPage .lb-lh-tight   { line-height: 1.12; }
#landingPage .lb-lh-normal  { line-height: 1.5; }
#landingPage .lb-lh-relaxed { line-height: 1.8; }
#landingPage .lb-text a { color: var(--l-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── buttons ── */
#landingPage .lb-btn {
  font-family: var(--l-font-body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
#landingPage .lb-btn:hover { transform: translateY(-2px); }
#landingPage .lb-btn--sm { font-size: 13px; padding: 9px 16px; }
#landingPage .lb-btn--primary {
  background: linear-gradient(120deg, var(--l-accent), var(--l-accent-secondary, var(--l-accent)));
  color: #fff; box-shadow: 0 8px 24px -10px var(--l-accent-glow, rgba(0,0,0,.4));
}
#landingPage .lb-btn--ghost { background: var(--l-surface); color: var(--l-text); border-color: var(--l-border); }
#landingPage .lb-btn--ghost:hover { border-color: var(--l-accent); }

/* ── nav block ── */
#landingPage .lb-block--nav { position: sticky; top: 0; z-index: 60; }
#landingPage .lb-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 30px; background: rgba(10,10,18,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--l-border);
}
#landingPage .lb-nav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--l-font-display); font-weight: 800; font-size: 18px; color: var(--l-text); cursor: default; }
#landingPage .lb-nav-brand svg { width: 22px; height: 22px; color: var(--l-accent); }
#landingPage .lb-nav-links { display: flex; gap: 24px; align-items: center; }
#landingPage .lb-nav-link { color: var(--l-text-muted); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s; }
#landingPage .lb-nav-link:hover { color: var(--l-text); }
#landingPage .lb-nav-actions { display: flex; gap: 10px; align-items: center; }
#landingPage .lb-nav-lang { display: flex; border: 1px solid var(--l-border); border-radius: 9px; overflow: hidden; }
#landingPage .lb-lang-btn { background: transparent; border: 0; color: var(--l-text-muted); font-family: var(--l-font-mono); font-size: 11px; font-weight: 600; padding: 6px 9px; cursor: pointer; }
#landingPage .lb-lang-btn.is-active { background: var(--l-accent); color: #0a0a14; }
#landingPage .lb-nav-burger { display: none; background: transparent; border: 1px solid var(--l-border); border-radius: 9px; width: 38px; height: 38px; color: var(--l-text); cursor: pointer; align-items: center; justify-content: center; }
#landingPage .lb-nav-burger svg { width: 18px; height: 18px; }
#landingPage .lb-mobile-menu { display: none; }
#landingPage .lb-mobile-menu.open {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  position: fixed; inset: 0; z-index: 90; background: rgba(7,7,17,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#landingPage .lb-mnav-link { color: var(--l-text); font-family: var(--l-font-display); font-size: 21px; font-weight: 700; text-decoration: none; cursor: pointer; }
#landingPage .lb-mobile-close { position: absolute; top: 22px; right: 24px; background: transparent; border: 0; color: var(--l-text); font-size: 30px; line-height: 1; cursor: pointer; }
@media (max-width: 860px) {
  #landingPage .lb-nav { padding: 12px 18px; }
  #landingPage .lb-nav-links { display: none; }
  #landingPage .lb-nav .lb-nav-lang { display: none; }
  #landingPage .lb-nav-burger { display: flex; }
}

/* ── hero block ── */
#landingPage .lb-hero { display: flex; flex-direction: column; gap: 6px; }
#landingPage .lb-align-center .lb-hero { align-items: center; }
#landingPage .lb-align-left   .lb-hero { align-items: flex-start; }
#landingPage .lb-align-right  .lb-hero { align-items: flex-end; }
#landingPage .lb-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--l-font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--l-accent); background: color-mix(in srgb, var(--l-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--l-accent) 34%, transparent);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 14px;
}
#landingPage .lb-hero-sub { max-width: 620px; }
#landingPage .lb-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
#landingPage .lb-align-center .lb-hero-cta { justify-content: center; }
#landingPage .lb-align-right  .lb-hero-cta { justify-content: flex-end; }
#landingPage .lb-hero-media { margin-top: 26px; width: 100%; }
#landingPage .lb-hero-media img { max-width: 100%; border-radius: 18px; border: 1px solid var(--l-border); }

/* ── stats ── */
#landingPage .lb-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; width: 100%; }
#landingPage .lb-align-center .lb-stats { justify-content: center; }
#landingPage .lb-stat {
  flex: 1; min-width: 130px; background: var(--l-surface); border: 1px solid var(--l-border);
  border-radius: 14px; padding: 18px 16px; text-align: center;
}
#landingPage .lb-stat strong { display: block; font-family: var(--l-font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--l-text); }
#landingPage .lb-stat span { font-family: var(--l-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-text-muted); }

/* ── section heading ── */
#landingPage .lb-section-head { font-family: var(--l-font-display); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 36px; letter-spacing: -.02em; color: var(--l-text); }

/* ── features ── */
#landingPage .lb-features-grid { display: grid; gap: 18px; }
#landingPage .lb-cols-2 { grid-template-columns: repeat(2, 1fr); }
#landingPage .lb-cols-3 { grid-template-columns: repeat(3, 1fr); }
#landingPage .lb-cols-4 { grid-template-columns: repeat(4, 1fr); }
#landingPage .lb-feature { background: var(--l-surface); border: 1px solid var(--l-border); border-radius: 16px; padding: 24px; text-align: left; transition: transform .2s, border-color .2s; }
#landingPage .lb-feature:hover { transform: translateY(-4px); border-color: var(--l-accent); }
#landingPage .lb-feature-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--l-accent) 16%, transparent); color: var(--l-accent); margin-bottom: 14px; }
#landingPage .lb-feature-ic svg { width: 23px; height: 23px; }
#landingPage .lb-feature-ttl { font-family: var(--l-font-display); font-size: 16px; font-weight: 700; color: var(--l-text); margin-bottom: 6px; }
#landingPage .lb-feature-desc { font-size: 14px; line-height: 1.55; color: var(--l-text-muted); }
@media (max-width: 860px) { #landingPage .lb-cols-3, #landingPage .lb-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #landingPage .lb-cols-2, #landingPage .lb-cols-3, #landingPage .lb-cols-4 { grid-template-columns: 1fr; } }

/* ── faq ── */
#landingPage .lb-faq { text-align: left; }
#landingPage .lb-faq-item { border-bottom: 1px solid var(--l-border); }
#landingPage .lb-faq-q { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 4px; cursor: pointer; font-family: var(--l-font-body); font-size: 15px; font-weight: 600; color: var(--l-text); }
#landingPage .lb-faq-q:hover { color: var(--l-accent); }
#landingPage .lb-faq-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--l-text-muted); transition: transform .25s; }
#landingPage .lb-faq-item.open .lb-faq-arrow { transform: rotate(180deg); }
#landingPage .lb-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
#landingPage .lb-faq-item.open .lb-faq-a { max-height: 640px; }
#landingPage .lb-faq-a p { margin: 0; padding: 0 4px 18px; font-size: 14px; line-height: 1.65; color: var(--l-text-muted); }

/* ── roadmap ── */
#landingPage .lb-roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; text-align: left; }
#landingPage .lb-rm-phase { background: var(--l-surface); border: 1px solid var(--l-border); border-radius: 16px; padding: 22px; }
#landingPage .lb-rm-active { border-color: var(--l-accent); }
#landingPage .lb-rm-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
#landingPage .lb-rm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--l-border); flex-shrink: 0; }
#landingPage .lb-rm-completed .lb-rm-dot { background: var(--l-text-muted); }
#landingPage .lb-rm-active .lb-rm-dot { background: var(--l-accent); }
#landingPage .lb-rm-ttl { font-family: var(--l-font-display); font-size: 16px; font-weight: 700; color: var(--l-text); }
#landingPage .lb-rm-items { list-style: none; margin: 0; padding: 0; }
#landingPage .lb-rm-items li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--l-text-muted); }
#landingPage .lb-rm-items li.done { color: var(--l-text); }
#landingPage .lb-rm-check { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--l-border); flex-shrink: 0; margin-top: 1px; position: relative; }
#landingPage .lb-rm-check.checked { background: var(--l-accent); border-color: var(--l-accent); }
#landingPage .lb-rm-check.checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #0a0a14; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ── image ── */
#landingPage .lb-figure { margin: 0; display: inline-block; }
#landingPage .lb-img-w-xs   { width: 200px; max-width: 100%; }
#landingPage .lb-img-w-sm   { width: 360px; max-width: 100%; }
#landingPage .lb-img-w-md   { width: 560px; max-width: 100%; }
#landingPage .lb-img-w-lg   { width: 860px; max-width: 100%; }
#landingPage .lb-img-w-full { width: 100%; }
#landingPage .lb-img { display: block; width: 100%; height: auto; }
#landingPage .lb-rad-none { border-radius: 0; }
#landingPage .lb-rad-sm   { border-radius: 8px; }
#landingPage .lb-rad-md   { border-radius: 16px; }
#landingPage .lb-rad-lg   { border-radius: 26px; }
#landingPage .lb-rad-full { border-radius: 50%; }
#landingPage .lb-img-cap { margin-top: 10px; font-size: 13px; color: var(--l-text-muted); font-family: var(--l-font-mono); }
#landingPage .lb-img-link { display: block; }

/* ── gallery ── */
#landingPage .lb-gallery { display: grid; gap: 14px; }
#landingPage .lb-gal-cell { border-radius: 14px; overflow: hidden; border: 1px solid var(--l-border); background: var(--l-surface); text-decoration: none; display: block; }
#landingPage .lb-gal-cell img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
#landingPage .lb-gal-cap { padding: 9px 12px; font-size: 12px; color: var(--l-text-muted); font-family: var(--l-font-mono); }

/* ── cta ── */
#landingPage .lb-cta { background: var(--l-surface); border: 1px solid var(--l-border); border-radius: 22px; padding: 46px 32px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#landingPage .lb-cta-action { margin-top: 18px; }

/* ── spacer ── */
#landingPage .lb-spacer { display: flex; align-items: center; justify-content: center; }
#landingPage .lb-spacer-none { height: 4px; }
#landingPage .lb-spacer-sm { height: 26px; }
#landingPage .lb-spacer-md { height: 54px; }
#landingPage .lb-spacer-lg { height: 96px; }
#landingPage .lb-spacer-xl { height: 150px; }
#landingPage .lb-divider { width: 100%; border: 0; border-top: 1px solid var(--l-border); margin: 0; }

/* ── embed / footer / placeholders ── */
#landingPage .lb-embed { width: 100%; }
#landingPage .lb-embed-load { padding: 40px; text-align: center; color: var(--l-text-muted); font-family: var(--l-font-mono); font-size: 12px; }
#landingPage .lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 30px; }
#landingPage .lb-foot-text { font-family: var(--l-font-mono); font-size: 12px; color: var(--l-text-muted); }
#landingPage .lb-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
#landingPage .lb-foot-link { color: var(--l-text-muted); text-decoration: none; font-size: 13px; cursor: pointer; }
#landingPage .lb-foot-link:hover { color: var(--l-text); }
#landingPage .lb-ph { padding: 30px; border: 1px dashed var(--l-border); border-radius: 14px; color: var(--l-text-muted); font-size: 13px; text-align: center; }
#landingPage .lb-empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--l-text-muted); }
#landingPage .lb-empty-ic { font-size: 46px; }
#landingPage .lb-empty-sub { font-size: 13px; opacity: .7; }
