/* Icons */
.lm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size, 24px);
  height: var(--icon-size, 24px);
  color: var(--accent-2);
  flex-shrink: 0;
}
.lm-icon svg { width: 100%; height: 100%; }
.lm-eyebrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lm-btn { gap: 8px; }
.lm-logo { display: inline-flex; align-items: center; gap: 10px; }
.lm-logo__mark { border-radius: 8px; width: 45px; height: 45px; }

/* Nav dropdown icons */
.lm-nav__drop-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero split layout */
.lm-page-hero--split .lm-page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.lm-hero-image {
  display: block;
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(108, 92, 231, 0.28);
  background: rgba(14, 14, 21, 0.6);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.lm-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), transparent 55%);
}

.lm-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.lm-page-hero__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.lm-orb--1 { width: 360px; height: 360px; background: #8b5cf6; top: 8%; left: 3%; opacity: 0.45; }
.lm-orb--2 { width: 280px; height: 280px; background: #fbbf24; top: 25%; right: 8%; opacity: 0.25; }
.lm-orb--3 { width: 200px; height: 200px; background: #2dd4bf; bottom: 8%; left: 38%; opacity: 0.3; }

/* Editor mockup */
.lm-editor-mockup { position: relative; }
.lm-editor-mockup__glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 70%);
  pointer-events: none;
}
.lm-editor-mockup__window {
  position: relative;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
  background: #12121a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.lm-editor-mockup__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #12121a;
  border-bottom: 1px solid var(--line);
}
.lm-dot { width: 10px; height: 10px; border-radius: 50%; }
.lm-dot--red { background: #ff5f57; }
.lm-dot--yellow { background: #febc2e; }
.lm-dot--green { background: #28c840; }
.lm-editor-mockup__title { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.lm-editor-mockup__menubar {
  display: flex;
  gap: 14px;
  padding: 6px 14px;
  background: #222230;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
}
.lm-editor-mockup__body { display: grid; grid-template-columns: 42px 1fr 130px; min-height: 280px; }
.lm-editor-mockup__toolbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  background: #2b2b36;
  border-right: 1px solid var(--line);
}
.lm-editor-mockup__tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--muted);
}
.lm-editor-mockup__tool.is-active { background: rgba(108,92,231,0.25); color: var(--accent-2); }
.lm-editor-mockup__options {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: #2a2a34;
  border-bottom: 1px solid var(--line);
}
.lm-editor-mockup__opt-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.65rem;
  color: var(--muted);
}
.lm-editor-mockup__canvas {
  position: relative;
  flex: 1;
  min-height: 200px;
  background: #24242e;
}
.lm-editor-mockup__ruler { position: absolute; background: #2e2e3a; }
.lm-editor-mockup__ruler--h { top: 0; left: 16px; right: 0; height: 16px; }
.lm-editor-mockup__ruler--v { top: 16px; left: 0; width: 16px; bottom: 0; }
.lm-editor-mockup__artboard {
  position: absolute;
  inset: 24px 16px 16px 24px;
  background:
    linear-gradient(45deg, #2f2f3a 25%, transparent 25%),
    linear-gradient(-45deg, #2f2f3a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2f2f3a 75%),
    linear-gradient(-45deg, transparent 75%, #2f2f3a 75%);
  background-size: 12px 12px;
  background-color: #282832;
  border-radius: 4px;
  overflow: hidden;
}
.lm-editor-mockup__layer { position: absolute; border-radius: 8px; }
.lm-editor-mockup__layer--bg { inset: 0; background: #fff; }
.lm-editor-mockup__layer--photo {
  inset: 12% 15% 25% 10%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: rotate(-3deg);
}
.lm-editor-mockup__layer--shape {
  inset: 35% 20% 15% 25%;
  background: linear-gradient(135deg, #00cec9, #55efc4);
  border-radius: 50%;
  transform: rotate(5deg);
}
.lm-editor-mockup__layer--text {
  top: 18%; left: 22%;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.lm-editor-mockup__selection {
  position: absolute;
  top: 30%; left: 20%;
  width: 45%; height: 35%;
  border: 2px dashed #2680eb;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(38,128,235,0.3);
}
.lm-editor-mockup__status {
  display: flex;
  gap: 16px;
  padding: 5px 10px;
  background: #1e1e28;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  color: var(--muted);
}
.lm-editor-mockup__api { margin-left: auto; color: #7bedd8; }
.lm-editor-mockup__panels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #2b2b36;
  border-left: 1px solid var(--line);
  font-size: 0.68rem;
}
.lm-editor-mockup__panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.lm-editor-mockup__panel.is-open { flex: 1; }
.lm-editor-mockup__panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}
.lm-editor-mockup__layer-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  color: var(--muted);
}
.lm-editor-mockup__layer-row.is-active { background: rgba(108,92,231,0.15); color: var(--text); }
.lm-editor-mockup__layer-row.dim { opacity: 0.5; }
.lm-eye { width: 10px; height: 10px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.lm-eye.off { opacity: 0.3; }
.lm-fx { color: var(--accent-2); font-weight: 700; font-size: 0.6rem; }
.lm-editor-mockup__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14,14,21,0.9);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  animation: lm-float 4s ease-in-out infinite;
}
.lm-editor-mockup__float--1 { top: 8%; right: -4%; animation-delay: 0s; }
.lm-editor-mockup__float--2 { bottom: 12%; left: -6%; animation-delay: 1.5s; }
@keyframes lm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero visuals */
.lm-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.lm-hero-visual--tools .lm-hero-visual__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px;
}
.lm-hero-visual__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(108,92,231,0.12);
  border: 1px solid rgba(108,92,231,0.25);
  color: var(--accent-2);
  transition: transform 0.3s;
}
.lm-hero-visual__tile:hover { transform: scale(1.08); }
.lm-hero-visual--filters .lm-hero-visual__rings span {
  position: absolute;
  border: 2px solid rgba(108,92,231,0.3);
  border-radius: 50%;
  animation: lm-pulse 3s ease infinite;
}
.lm-hero-visual--filters .lm-hero-visual__rings span:nth-child(1) { width: 120px; height: 120px; }
.lm-hero-visual--filters .lm-hero-visual__rings span:nth-child(2) { width: 180px; height: 180px; animation-delay: 0.5s; }
.lm-hero-visual--filters .lm-hero-visual__rings span:nth-child(3) { width: 240px; height: 240px; animation-delay: 1s; }
@keyframes lm-pulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
.lm-hero-visual--panels .lm-hero-visual__panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 100px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  left: calc(20% + var(--i) * 12%);
  top: calc(25% + var(--i) * 8%);
  transform: rotate(calc(var(--i) * -4deg));
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.lm-hero-visual--format {
  gap: 24px;
}
.lm-hero-visual__file {
  padding: 24px 32px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  border: 2px solid var(--line);
}
.lm-hero-visual__file--psd { background: linear-gradient(135deg, #2680eb33, #6c5ce733); color: #74b9ff; }
.lm-hero-visual__file--png { background: linear-gradient(135deg, #00cec933, #55efc433); color: #7bedd8; }
.lm-hero-visual--style .lm-hero-visual__fx-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-4);
  text-align: center;
}
.lm-hero-visual__fx-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(108,92,231,0.2);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.lm-hero-visual__fx-preview {
  width: 160px;
  height: 100px;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #2680eb, #6c5ce7);
  box-shadow: 0 8px 24px rgba(108,92,231,0.4);
}
.lm-hero-visual--text .lm-hero-visual__type {
  margin: 0;
  font-family: var(--display);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lm-hero-visual__type-sub { margin: 8px 0 0; color: var(--muted); }

/* Stats with icons */
.lm-stat__icon {
  margin-bottom: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(108,92,231,0.12);
  border: 1px solid rgba(108,92,231,0.2);
}

/* Explore cards */
.lm-explore-card__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,206,201,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
  color: var(--accent-2);
}
.lm-explore-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Marquee with icons */
.lm-marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Testimonials */
.lm-quote__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  color: #ffeaa7;
}
.lm-quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lm-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--av-color, var(--accent));
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* News card images */
.lm-news-card { overflow: hidden; padding: 0; }
.lm-news-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-4);
  color: rgba(255,255,255,0.9);
}
.lm-news-card__picture,
.lm-news-card__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lm-news-card__body { padding: 24px; }
.lm-news-card__img--gradient-purple { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.lm-news-card__img--gradient-cyan { background: linear-gradient(135deg, #00cec9, #55efc4); }
.lm-news-card__img--gradient-pink { background: linear-gradient(135deg, #fd79a8, #e17055); }
.lm-news-card__img--gradient-blue { background: linear-gradient(135deg, #2680eb, #6c5ce7); }
.lm-news-card__img--gradient-gold { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.lm-news-card__img--gradient-green { background: linear-gradient(135deg, #00b894, #55efc4); }

/* Tool cards */
.lm-tool-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(108,92,231,0.1);
  border: 1px solid rgba(108,92,231,0.2);
  margin-bottom: 14px;
  color: var(--accent-2);
}
.lm-tool-card__tips li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Panel detail */
.lm-panel-detail {
  grid-template-columns: 100px 1fr;
}
.lm-panel-detail__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lm-panel-detail__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(108,92,231,0.12);
  border: 1px solid rgba(108,92,231,0.25);
  color: var(--accent-2);
}

/* Feature rows */
.lm-feature-row {
  grid-template-columns: 100px 1fr;
}
.lm-feature-row__icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.08));
  border: 1px solid var(--line);
  color: var(--accent-2);
}

/* Spec cards */
.lm-spec-card__icon {
  margin-bottom: 14px;
  color: var(--accent-2);
}

/* Filter intro */
.lm-filter-intro__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(108,92,231,0.12);
  flex-shrink: 0;
}

/* Style cards */
.lm-style-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-4), #2a2a38);
}
.lm-style-card__fx {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-2);
}

/* Highlight box */
.lm-highlight-box__icon { margin-bottom: 16px; color: var(--accent-2); }

/* CTA band */
.lm-cta { position: relative; overflow: hidden; }
.lm-cta__bg {
  position: absolute;
  inset: 0;
  background: url('/img/hero-bg.png') center/cover no-repeat;
  opacity: 0.15;
}
.lm-cta__inner { position: relative; }
.lm-cta__icon {
  margin-bottom: 16px;
  color: var(--accent-2);
}

/* News timeline visual */
.lm-news-timeline__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lm-news-timeline__visual .lm-news-card__img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Breadcrumb */
.lm-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Check list with icons */
.lm-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}
.lm-check-list li::before { display: none; }

@media (max-width: 1024px) {
  .lm-page-hero--split .lm-page-hero__grid { grid-template-columns: 1fr; }
  .lm-page-hero__visual { order: -1; }
}

@media (max-width: 720px) {
  .lm-editor-mockup__body { grid-template-columns: 36px 1fr; }
  .lm-editor-mockup__panels { display: none; }
  .lm-hero-visual--tools .lm-hero-visual__grid { grid-template-columns: repeat(2, 1fr); }
}

.lm-type-demo__samples {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.lm-action-card__icon { margin-bottom: 10px; color: var(--accent-2); }
.lm-value-card__icon { margin-bottom: 12px; color: var(--accent-2); }
.lm-contact__icon { margin-bottom: 16px; color: var(--accent-2); }
.lm-layer-demo .dim { opacity: 0.5; }
.lm-page-hero[style*="hero-bg"] { position: relative; }
.lm-page-hero[style*="hero-bg"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,11,0.85) 0%, rgba(7,7,11,0.92) 60%, var(--bg) 100%);
  pointer-events: none;
}
.lm-page-hero[style*="hero-bg"] .lm-page-hero__grid { position: relative; }

/* PWA install */
.lm-header__install { flex-shrink: 0; }
.lm-btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.lm-install {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: min(520px, calc(100% - 32px));
  animation: lm-slide-up 0.4s ease;
}
.lm-install__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(108,92,231,0.35);
  background: rgba(14,14,21,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lm-install__icon { border-radius: 10px; flex-shrink: 0; }
.lm-install__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lm-install__copy strong { font-size: 0.92rem; }
.lm-install__copy span { font-size: 0.78rem; color: var(--muted); }
.lm-install__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}
.lm-install__close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
@media (max-width: 720px) {
  .lm-install__inner .lm-btn,
  .lm-install__close {
    min-height: 44px;
    min-width: 44px;
  }
}
@keyframes lm-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (display-mode: standalone) {
  .lm-install, .lm-header__install { display: none !important; }
}

/* Install modal */
.lm-install-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lm-install-modal[hidden] { display: none !important; }
.lm-install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
}
.lm-install-modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid rgba(108,92,231,0.3);
  background: #14141f;
  box-shadow: var(--shadow);
  text-align: center;
}
.lm-install-modal__icon {
  border-radius: 16px;
  margin-bottom: 16px;
}
.lm-install-modal__dialog h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.5rem;
}
.lm-install-modal__lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.lm-install-modal__editor-hint {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.lm-install-modal__editor-hint a {
  color: var(--accent-2);
}
.lm-install-modal__section {
  text-align: left;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.lm-install-modal__section[hidden] { display: none; }
.lm-install-modal__section p { margin: 0 0 10px; font-size: 0.9rem; }
.lm-install-modal__section ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.lm-install-modal__section li { margin-bottom: 6px; }
.lm-install-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.lm-install-modal__close:hover { color: var(--text); }
