:root {
  --font-family: Inter, Arial, sans-serif;
  --page-bg: #f8fafc;
  --text-color: #0f172a;
  --accent-color: #2563eb;
  --surface-color: #ffffff;
  --surface-border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--text-color);
  font-family: var(--font-family);
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  min-height: 100vh;
}

.lp-node {
  position: relative;
}

.lp-column,
.lp-row,
.lp-scroll-row {
  display: flex;
  width: 100%;
}

.lp-column {
  flex-direction: column;
}

.lp-row {
  flex-direction: row;
}

.lp-grid {
  display: grid;
  width: 100%;
}

.lp-photo-card {
  position: relative;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

.lp-overlay,
.lp-absolute {
  position: absolute;
  inset: 0;
}

.lp-overlay {
  pointer-events: none;
}

.lp-scroll-row {
  overflow-x: auto;
}

.lp-scroll-row::-webkit-scrollbar {
  display: none;
}

.lp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.lp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.lp-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid currentColor;
}

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.lp-image {
  display: block;
}

.lp-icon,
.lp-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.lp-empty {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lp-empty-card {
  max-width: 720px;
  background: #111827;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 32px;
}

.unknown-component {
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: #475569;
}

.widget-host {
  width: 100%;
  margin: 0;
}

.widget-iframe {
  width: 100%;
  min-height: 400px;
  background: #f8fafc;
  border: 0;
  border-radius: 16px;
  display: block;
}

.widget-error {
  padding: 20px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #9a3412;
  text-align: center;
}

.lp-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.lp-navbar-logo {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-navbar-links,
.lp-navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-navbar-link.active {
  color: #bfdbfe;
}

.mobile-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.desktop-only {
  display: flex;
}

.lp-accordion-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.lp-accordion-trigger {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.lp-accordion-panel {
  padding: 0 18px 18px;
  display: none;
}

.lp-accordion-item.is-open .lp-accordion-panel {
  display: block;
}

.lp-virtual-grid {
  overflow-y: auto;
  position: relative;
}

.lp-virtual-grid-window {
  display: grid;
  gap: inherit;
}

.fatal-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.fatal-error-card {
  max-width: 480px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #991b1b;
}

.component-error {
  padding: 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
}

@media (max-width: 768px) {
  .mobile-hamburger {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .lp-navbar {
    padding: 14px 16px;
  }

  .lp-navbar-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: #0f172a;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    transition: left 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .lp-navbar-links.open {
    left: 0;
  }

  .lp-navbar-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .lp-navbar-actions-mobile .lp-button {
    width: 100%;
  }
}