*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --toolbar-bg: #1e1e2e;
  --toolbar-border: #2d2d3f;
  --sidebar-bg: #161622;
  --sidebar-border: #2a2a3e;
  --canvas-bg: #3a3a4a;
  --accent: #7c6eed;
  --accent-hover: #6a5bd9;
  --danger: #e05c5c;
  --danger-hover: #c94e4e;
  --success: #4caf7d;
  --success-hover: #3d9968;
  --text: #e0e0f0;
  --text-dim: #9090aa;
  --btn-bg: #2d2d42;
  --btn-hover: #38384e;
  --sep: #2d2d42;
  --input-bg: #252535;
  --input-border: #3a3a52;
  --thumb-border: #3a3a52;
  --thumb-active: #7c6eed;
}

html, body { height: 100%; font-family: 'Inter', sans-serif; }

/* ---- LOGIN ---- */
#login-screen {
  position: fixed;
  inset: 0;
  background: #13131f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: #1e1e2e;
  border: 1px solid #2d2d3f;
  border-radius: 16px;
  padding: 40px 48px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
}

.login-logo {
  font-size: 48px;
  color: #7c6eed;
  margin-bottom: 4px;
  line-height: 1;
}

.login-title {
  font-size: 22px;
  font-weight: 600;
  color: #e0e0f0;
  margin: 0;
}

.login-subtitle {
  font-size: 13px;
  color: #9090aa;
  margin-bottom: 12px;
}

#login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 12px;
  font-weight: 500;
  color: #9090aa;
}

.login-field input {
  background: #252535;
  border: 1px solid #3a3a52;
  color: #e0e0f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.login-field input:focus {
  border-color: #7c6eed;
}

.login-error {
  font-size: 13px;
  color: #e05c5c;
  text-align: center;
  padding: 6px 0;
}

.btn-logout {
  background: transparent;
  border: 1px solid #3a3a52;
  color: var(--text-dim);
}
.btn-logout:hover {
  background: rgba(224,92,92,0.15);
  border-color: #e05c5c;
  color: #e05c5c;
}

.btn-login {
  width: 100%;
  justify-content: center;
  padding: 10px;
  font-size: 14px;
  margin-top: 4px;
  border-radius: 8px;
}

body { background: var(--canvas-bg); color: var(--text); overflow: hidden; }

#app { display: flex; flex-direction: column; height: 100vh; }

/* ---- TOOLBAR ---- */
#toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 52px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid var(--toolbar-border);
  flex-shrink: 0;
  overflow-x: auto;
}

.toolbar-group { display: flex; align-items: center; gap: 6px; }
.toolbar-sep { width: 1px; height: 28px; background: var(--sep); margin: 0 4px; flex-shrink: 0; }
.toolbar-spacer { flex: 1; }

.ctrl-label {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---- ICONOIR ---- */
.btn i[class^="iconoir-"] {
  font-size: 16px;
  line-height: 1;
}

.file-item-icon i[class^="iconoir-"] {
  font-size: 16px;
  line-height: 1;
}

.placeholder-icon {
  font-size: 64px;
  color: #555570;
  display: block;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--btn-bg);
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger-hover); }

.btn-success { background: var(--success); }
.btn-success:hover { background: var(--success-hover); }

.btn-lg { padding: 10px 24px; font-size: 15px; }

/* ---- FONT CONTROLS ---- */
#font-select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  max-width: 180px;
}

#font-size {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  width: 64px;
  text-align: center;
}

#font-color {
  width: 32px;
  height: 32px;
  border: 2px solid var(--input-border);
  border-radius: 6px;
  cursor: pointer;
  background: none;
  padding: 2px;
}

.page-info {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

/* ---- WORKSPACE ---- */
#workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ---- FILE PANEL ---- */
#file-panel {
  width: 200px;
  flex-shrink: 0;
  background: #111118;
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#file-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.no-files {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px 8px;
  opacity: 0.6;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.file-item:hover { background: rgba(255,255,255,0.06); }
.file-item.active { background: rgba(124,110,237,0.18); }

.file-item-icon {
  flex-shrink: 0;
  color: #e05c5c;
}

.file-item-name {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-close {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s, color 0.12s;
}
.file-item:hover .file-item-close { opacity: 1; }
.file-item-close:hover { background: rgba(224,92,92,0.2); color: #e05c5c; }

/* ---- SIDEBAR ---- */
#sidebar {
  width: 160px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

#thumbnails {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#thumbnails::-webkit-scrollbar { width: 6px; }
#thumbnails::-webkit-scrollbar-track { background: transparent; }
#thumbnails::-webkit-scrollbar-thumb { background: var(--sep); border-radius: 3px; }

.thumbnail {
  border: 2px solid var(--thumb-border);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.1s;
  position: relative;
  background: #fff;
}
.thumbnail:hover { border-color: #6060a0; transform: scale(1.02); }
.thumbnail.active { border-color: var(--thumb-active); }

.thumbnail canvas {
  width: 100%;
  display: block;
}

.thumb-num {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 1px 4px;
}

/* ---- CANVAS CONTAINER ---- */
#canvas-container {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: var(--canvas-bg);
}

#canvas-container::-webkit-scrollbar { width: 8px; height: 8px; }
#canvas-container::-webkit-scrollbar-track { background: transparent; }
#canvas-container::-webkit-scrollbar-thumb { background: #555566; border-radius: 4px; }

/* ---- PLACEHOLDER ---- */
#placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  text-align: center;
}

.placeholder-box p {
  font-size: 15px;
  color: var(--text-dim);
}

/* ---- CANVAS WRAPPER ---- */
#canvas-wrapper {
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-radius: 2px;
  line-height: 0;
}

/* ---- LOADING ---- */
#loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-box {
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 12px;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-text {
  font-size: 14px;
  color: var(--text-dim);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--sep);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- LOGOUT MODAL ---- */
#logout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-box {
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 12px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.modal-text {
  font-size: 15px;
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* Fabric.js canvas wrappers */
.canvas-container { position: relative !important; }

/* ================================================================
   LOGIN PAGE
   ================================================================ */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #13131f;
  overflow: auto;
}

/* ================================================================
   PAGE BODY (all non-editor pages)
   ================================================================ */
body.page-body {
  overflow: auto;
  background: #13131f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================================================
   MAIN NAV
   ================================================================ */
#main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 54px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid var(--toolbar-border);
  flex-shrink: 0;
  overflow-x: auto;
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-right: 12px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-link {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--btn-hover); color: var(--text); }
.nav-link.active { background: rgba(124,110,237,0.18); color: var(--accent); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-email {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ================================================================
   HOME PAGE
   ================================================================ */
.home-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px 64px;
  width: 100%;
}

.home-hero {
  text-align: center;
  margin-bottom: 44px;
}

.home-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.home-subtitle {
  font-size: 15px;
  color: var(--text-dim);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
}

.tool-card-icon {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 4px;
}

.tool-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

.tool-card-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 6px;
}
.tool-card-badge.free {
  background: rgba(76,175,125,0.15);
  color: var(--success);
}

/* ================================================================
   TOOL PAGES (compress, merge, split, pdf-to-word)
   ================================================================ */
.tool-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-hero { text-align: center; }

.tool-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Drop zone */
.dropzone {
  border: 2px dashed var(--toolbar-border);
  border-radius: 14px;
  padding: 52px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--toolbar-bg);
  text-align: center;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(124,110,237,0.07);
}
.dropzone-icon {
  font-size: 44px;
  color: var(--text-dim);
}
.dropzone-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.dropzone-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* File info panel */
.file-info-panel {
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-info-icon {
  font-size: 22px;
  color: #e05c5c;
  flex-shrink: 0;
}
.file-info-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.file-info-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-info-size {
  font-size: 12px;
  color: var(--text-dim);
}
.file-info-pages {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Action button */
.btn-action {
  align-self: center;
  padding: 10px 36px;
  font-size: 15px;
}

/* Result panel */
.result-panel {
  background: var(--toolbar-bg);
  border: 1px solid var(--success);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.result-stats {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.result-stats strong { color: var(--success); }

/* ================================================================
   MERGE: FILE LIST
   ================================================================ */
.merge-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.merge-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.merge-list-hint {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
}

.merge-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.merge-file-item {
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
  user-select: none;
  transition: background 0.12s, border-color 0.12s;
}
.merge-file-item:hover { border-color: #4a4a62; }
.merge-file-item.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.drag-handle {
  color: var(--text-dim);
  flex-shrink: 0;
  font-size: 18px;
}
.merge-file-name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.merge-file-size {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.merge-remove-btn {
  padding: 4px 8px;
  flex-shrink: 0;
}

/* ================================================================
   SPLIT: THUMBNAILS
   ================================================================ */
.split-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 10px;
}
.split-thumb-grid::-webkit-scrollbar { width: 6px; }
.split-thumb-grid::-webkit-scrollbar-track { background: transparent; }
.split-thumb-grid::-webkit-scrollbar-thumb { background: var(--sep); border-radius: 3px; }

.split-thumb {
  position: relative;
  border: 2px solid var(--toolbar-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.split-thumb canvas { display: block; }

.split-thumb-num {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 2px;
  padding: 0 3px;
}

/* Split mode */
.split-mode-panel {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.split-mode-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.split-mode-label input { accent-color: var(--accent); }

/* Range input */
.range-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.range-input-row input[type="text"] {
  flex: 1;
  min-width: 200px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.range-input-row input[type="text"]:focus { border-color: var(--accent); }
.range-hint {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ================================================================
   SCAN WARNING
   ================================================================ */
.scan-warning {
  background: rgba(224,92,92,0.1);
  border: 1px solid var(--danger);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #e05c5c;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

/* ================================================================
   PAYWALL MODAL
   ================================================================ */
#paywall-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.paywall-icon {
  font-size: 40px;
  color: var(--accent);
}

/* ================================================================
   RESPONSIVE (app pages)
   ================================================================ */
@media (max-width: 600px) {
  #main-nav { padding: 0 12px; }
  .nav-email { display: none; }
  .home-title { font-size: 24px; }
  .tool-title { font-size: 20px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-main { padding: 32px 16px 48px; }
  .home-main { padding: 32px 16px 48px; }
  .result-stats { flex-direction: column; gap: 6px; }
}

/* ================================================================
   LANDING PAGE
   ================================================================ */
.landing-body {
  background: #0d0d18;
  color: #e0e0f0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.lnd-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.lnd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,24,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lnd-header.scrolled {
  border-bottom-color: #2d2d3f;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.lnd-header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.lnd-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.lnd-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.lnd-nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #9090aa;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.lnd-nav-link:hover { color: #e0e0f0; background: rgba(255,255,255,0.06); }

.lnd-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lnd-btn-outline {
  background: transparent;
  border: 1px solid #3a3a52;
  color: #e0e0f0;
}
.lnd-btn-outline:hover { background: rgba(255,255,255,0.06); border-color: #5a5a72; }

.lnd-btn-ghost {
  background: transparent;
  color: #9090aa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lnd-btn-ghost:hover { color: #e0e0f0; background: rgba(255,255,255,0.06); }

.lnd-burger {
  display: none;
  background: transparent;
  border: none;
  color: #e0e0f0;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.lnd-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid #2d2d3f;
  background: #0d0d18;
}
.lnd-mobile-menu.open { display: flex; }
.lnd-mobile-link {
  padding: 10px 12px;
  font-size: 15px;
  color: #9090aa;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.lnd-mobile-link:hover { color: #e0e0f0; background: rgba(255,255,255,0.06); }
.lnd-mobile-cta { margin-top: 8px; text-align: center; justify-content: center; }

/* --- Hero --- */
.lnd-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.lnd-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.lnd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,110,237,0.12);
  border: 1px solid rgba(124,110,237,0.3);
  color: var(--accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
}

.lnd-hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: #f0f0ff;
  letter-spacing: -0.02em;
}

.lnd-gradient-text {
  background: linear-gradient(135deg, #7c6eed 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lnd-hero-desc {
  font-size: 18px;
  color: #9090aa;
  max-width: 580px;
  line-height: 1.65;
}

.lnd-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.lnd-hero-cta {
  padding: 13px 32px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lnd-hero-note {
  font-size: 13px;
  color: #606078;
}

.lnd-hero-visual {
  margin-top: 16px;
  position: relative;
}

.lnd-tools-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.lnd-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e1e2e;
  border: 1px solid #2d2d3f;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #c0c0d8;
  transition: border-color 0.2s, transform 0.2s;
}
.lnd-tool-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.lnd-tool-chip i { color: var(--accent); font-size: 18px; }

.lnd-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,110,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Stats --- */
.lnd-stats {
  padding: 40px 0;
  border-top: 1px solid #1e1e2e;
  border-bottom: 1px solid #1e1e2e;
  background: #111120;
}

.lnd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.lnd-stat { padding: 8px; }

.lnd-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.lnd-stat-label {
  font-size: 13px;
  color: #606078;
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}

/* --- Sections --- */
.lnd-section {
  padding: 96px 0;
}

.lnd-section-dark {
  background: #111120;
}

.lnd-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.lnd-section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(124,110,237,0.1);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.lnd-section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: #f0f0ff;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.lnd-section-desc {
  font-size: 16px;
  color: #606078;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Features --- */
.lnd-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.lnd-feature-big {
  grid-column: span 1;
  grid-row: span 2;
}

.lnd-feature-card {
  background: #1a1a28;
  border: 1px solid #2d2d3f;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.lnd-feature-card:hover {
  border-color: #4a4a62;
  transform: translateY(-2px);
}

.lnd-feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lnd-feature-icon.accent { background: rgba(124,110,237,0.15); color: #7c6eed; }
.lnd-feature-icon.green  { background: rgba(76,175,125,0.15);  color: #4caf7d; }
.lnd-feature-icon.blue   { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.lnd-feature-icon.orange { background: rgba(249,115,22,0.15);  color: #fb923c; }
.lnd-feature-icon.purple { background: rgba(168,85,247,0.15);  color: #c084fc; }

.lnd-feature-title {
  font-size: 17px;
  font-weight: 600;
  color: #f0f0ff;
  margin-bottom: 10px;
}

.lnd-feature-desc {
  font-size: 14px;
  color: #606078;
  line-height: 1.6;
}

.lnd-feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lnd-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #9090aa;
}

.lnd-feature-list i {
  color: var(--success);
  flex-shrink: 0;
  font-size: 16px;
}

/* --- How it works --- */
.lnd-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.lnd-step {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  background: #1a1a28;
  border: 1px solid #2d2d3f;
  border-radius: 16px;
}

.lnd-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3a52;
  font-size: 24px;
  padding: 0 8px;
  flex-shrink: 0;
  margin-top: 48px;
}

.lnd-step-num {
  font-size: 42px;
  font-weight: 700;
  color: rgba(124,110,237,0.25);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.lnd-step-title {
  font-size: 16px;
  font-weight: 600;
  color: #f0f0ff;
  margin-bottom: 10px;
}

.lnd-step-desc {
  font-size: 13px;
  color: #606078;
  line-height: 1.6;
}

/* --- Pricing --- */
.lnd-pricing-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.lnd-plan {
  background: #1a1a28;
  border: 1px solid #2d2d3f;
  border-radius: 20px;
  padding: 36px 32px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: border-color 0.2s;
}

.lnd-plan-pro {
  border-color: var(--accent);
  background: linear-gradient(160deg, #1e1a36 0%, #1a1a28 100%);
  box-shadow: 0 0 48px rgba(124,110,237,0.12);
}

.lnd-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.lnd-plan-header { display: flex; flex-direction: column; gap: 8px; }

.lnd-plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0ff;
}

.lnd-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.lnd-plan-amount {
  font-size: 42px;
  font-weight: 700;
  color: #f0f0ff;
  letter-spacing: -0.02em;
}

.lnd-plan-period {
  font-size: 14px;
  color: #606078;
}

.lnd-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.lnd-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.lnd-plan-features li.yes { color: #c0c0d8; }
.lnd-plan-features li.no  { color: #404058; }
.lnd-plan-features li.yes i { color: var(--success); }
.lnd-plan-features li.no  i { color: #404058; }

.lnd-plan-cta {
  text-align: center;
  justify-content: center;
  padding: 12px;
  font-size: 15px;
}

/* --- Reviews --- */
.lnd-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lnd-review {
  background: #1a1a28;
  border: 1px solid #2d2d3f;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}
.lnd-review:hover { border-color: #4a4a62; }

.lnd-review-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
}

.lnd-review-text {
  font-size: 14px;
  color: #9090aa;
  line-height: 1.65;
  flex: 1;
}

.lnd-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lnd-review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(124,110,237,0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lnd-review-name {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0f0;
}

.lnd-review-role {
  font-size: 12px;
  color: #606078;
}

/* --- FAQ --- */
.lnd-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lnd-faq-item {
  background: #1a1a28;
  border: 1px solid #2d2d3f;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.lnd-faq-item.open { border-color: var(--accent); }

.lnd-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #e0e0f0;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.15s;
}
.lnd-faq-q:hover { color: #fff; }

.lnd-faq-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: #606078;
  transition: transform 0.25s;
}
.lnd-faq-item.open .lnd-faq-icon { transform: rotate(180deg); color: var(--accent); }

.lnd-faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: #606078;
  line-height: 1.7;
  padding: 0 22px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.lnd-faq-item.open .lnd-faq-a {
  max-height: 200px;
  padding: 0 22px 20px;
}

/* --- CTA banner --- */
.lnd-cta-section {
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0d18 0%, #111128 100%);
}

.lnd-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lnd-cta-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #f0f0ff;
  letter-spacing: -0.02em;
}

.lnd-cta-desc {
  font-size: 16px;
  color: #606078;
  max-width: 420px;
}

.lnd-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,110,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Footer --- */
.lnd-footer {
  background: #0a0a14;
  border-top: 1px solid #1e1e2e;
}

.lnd-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 24px;
  gap: 48px;
  flex-wrap: wrap;
}

.lnd-footer-brand { display: flex; flex-direction: column; gap: 8px; }
.lnd-footer-tagline { font-size: 13px; color: #404058; }

.lnd-footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.lnd-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lnd-footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #606078;
  margin-bottom: 4px;
}

.lnd-footer-col a {
  font-size: 14px;
  color: #606078;
  text-decoration: none;
  transition: color 0.15s;
}
.lnd-footer-col a:hover { color: #e0e0f0; }

.lnd-footer-bottom {
  border-top: 1px solid #1e1e2e;
  padding: 18px 24px;
  font-size: 13px;
  color: #404058;
}

/* ================================================================
   LANDING RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .lnd-features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lnd-feature-big {
    grid-column: span 2;
    grid-row: span 1;
  }
  .lnd-reviews-grid { grid-template-columns: 1fr 1fr; }
  .lnd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lnd-steps { flex-direction: column; }
  .lnd-step-arrow { transform: rotate(90deg); margin: 0 auto; margin-top: 0; }
}

@media (max-width: 640px) {
  .lnd-nav { display: none; }
  .lnd-header-actions { display: none; }
  .lnd-burger { display: flex; }
  .lnd-features-grid { grid-template-columns: 1fr; }
  .lnd-feature-big { grid-column: span 1; }
  .lnd-reviews-grid { grid-template-columns: 1fr; }
  .lnd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lnd-plan { width: 100%; }
  .lnd-hero { padding: 110px 0 60px; }
  .lnd-section { padding: 64px 0; }
  .lnd-footer-inner { flex-direction: column; gap: 32px; }
  .lnd-footer-links { gap: 32px; }
}

/* ================================================================
   LANG SWITCHER (landing header)
   ================================================================ */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid #3a3a52;
  color: #e0e0f0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.06); border-color: #5a5a72; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e1e2e;
  border: 1px solid #3a3a52;
  border-radius: 8px;
  padding: 4px;
  z-index: 200;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-dropdown.open { display: block; }

.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #c0c0d8;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}
.lang-dropdown button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-dropdown button.active { color: var(--accent); background: rgba(124,110,237,0.12); }

/* ================================================================
   SETTINGS MODAL (app pages)
   ================================================================ */
#settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.settings-box {
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  border-radius: 14px;
  padding: 32px 36px;
  min-width: 300px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.settings-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.settings-lang-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.settings-lang-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-align: left;
}
.settings-lang-btn:hover { background: var(--btn-hover); }
.settings-lang-btn.active { border-color: var(--accent); background: rgba(124,110,237,0.1); color: var(--accent); }

/* ---- TRUST BAR ---- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  padding: 10px 24px;
  background: rgba(124,110,237,0.07);
  border-bottom: 1px solid rgba(124,110,237,0.15);
  font-size: 12px;
  color: var(--text-dim);
}
.trust-bar span { white-space: nowrap; }
.trust-bar span::first-letter { color: var(--success); }

/* ---- TOOL FAQ ---- */
.faq-tool {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 24px 64px;
}
.faq-tool-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
.faq-tool-list { display: flex; flex-direction: column; gap: 4px; }
.faq-tool-item {
  border: 1px solid var(--sep);
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2a;
}
.faq-tool-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.faq-tool-q:hover { background: var(--btn-bg); }
.faq-arrow { font-size: 14px; flex-shrink: 0; transition: transform 0.2s; }
.faq-tool-item.open .faq-arrow { transform: rotate(180deg); }
.faq-tool-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.faq-tool-item.open .faq-tool-a { display: block; }

/* ---- RELATED TOOLS ---- */
.related-tools {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.related-tools-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.related-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: #1a1a2a;
  border: 1px solid var(--sep);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.related-tool-card:hover { border-color: var(--accent); background: rgba(124,110,237,0.08); color: var(--accent); }
.related-tool-card i { font-size: 24px; }

/* ================================================================
   MARKETING LANDING PAGES (lp-*)
   ================================================================ */

/* Nav */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--sep);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lp-nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.lp-nav-actions { display: flex; gap: 10px; align-items: center; }

/* Hero */
.lp-hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,110,237,0.12);
  border: 1px solid rgba(124,110,237,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.lp-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.lp-hero-gradient { background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.lp-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--sep);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(124,110,237,0.07); }

/* Features grid */
.lp-features {
  padding: 64px 24px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--sep);
  border-bottom: 1px solid var(--sep);
}
.lp-features-inner { max-width: 900px; margin: 0 auto; }
.lp-features-header { text-align: center; margin-bottom: 40px; }
.lp-features-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.lp-features-header p { color: var(--text-dim); font-size: 16px; }
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.lp-feature-card {
  background: #1a1a2a;
  border: 1px solid var(--sep);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.lp-feature-icon.accent { background: rgba(124,110,237,0.15); color: var(--accent); }
.lp-feature-icon.green  { background: rgba(52,211,153,0.12);  color: #34d399; }
.lp-feature-icon.blue   { background: rgba(96,165,250,0.12);  color: #60a5fa; }
.lp-feature-icon.orange { background: rgba(251,146,60,0.12);  color: #fb923c; }
.lp-feature-card h3 { font-size: 16px; font-weight: 600; }
.lp-feature-card p  { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* How it works */
.lp-how {
  padding: 64px 24px;
}
.lp-how-inner { max-width: 900px; margin: 0 auto; }
.lp-how-header { text-align: center; margin-bottom: 48px; }
.lp-how-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.lp-how-header p { color: var(--text-dim); font-size: 16px; }
.lp-how-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
}
.lp-how-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 24px 16px;
  background: #1a1a2a;
  border: 1px solid var(--sep);
  border-radius: 14px;
}
.lp-how-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}
.lp-how-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.lp-how-step p  { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.lp-how-arrow {
  color: var(--text-dim);
  font-size: 20px;
  margin-top: 48px;
  flex-shrink: 0;
}

/* CTA section */
.lp-cta {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,110,237,0.08) 0%, rgba(124,110,237,0.02) 100%);
  border-top: 1px solid rgba(124,110,237,0.2);
}
.lp-cta h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.lp-cta p  { font-size: 17px; color: var(--text-dim); margin-bottom: 28px; }

/* Responsive */
@media (max-width: 640px) {
  .lp-nav { padding: 12px 16px; }
  .lp-hero { padding: 48px 16px 40px; }
  .lp-how-steps { flex-direction: column; align-items: center; }
  .lp-how-arrow { display: none; }
  .lp-how-step { max-width: 100%; width: 100%; }
}

/* Feature card as link */
a.lnd-feature-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
a.lnd-feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
