*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; font-family: 'Figtree', system-ui, sans-serif; background: #0a1628; color: #fff; overflow-x: hidden; }

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --accent: #1A6FD4;
  --accent-light: #4a9eff;
  --bg-deep: #0a1628;
  --bg-mid: #0f2847;
  --bg-light: #163d6b;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-bg-strong: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border-strong: rgba(255,255,255,0.16);
  --text-dim: rgba(255,255,255,0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.ln-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.ln-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ln-nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.ln-nav-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.ln-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.ln-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.ln-nav-links a:hover { color: #fff; }

.ln-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn-sm { font-size: 13px; padding: 8px 18px; border-radius: 10px; }
.btn-md { font-size: 15px; padding: 12px 26px; border-radius: 12px; }
.btn-lg { font-size: 16px; padding: 15px 32px; border-radius: 14px; }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,111,212,0.35);
}
.btn-primary:hover {
  background: #1d7ee8;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,111,212,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

/* ── Landing panel ──────────────────────────────────────────────────────── */
#landing-panel {
  position: relative;
  transition: filter 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
#landing-panel.is-blurred {
  filter: blur(4px) brightness(0.7);
  transform: scale(0.98);
  pointer-events: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.ln-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.ln-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.ln-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.ln-hero-text { }

/* ── Hero brand logo ─────────────────────────────────────────────────────── */
.ln-hero-brand {
  display: block;
  height: 0;
  overflow: visible;
  margin-bottom: 0;
}
.ln-hero-logo {
  height: 320px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 28px rgba(26,111,212,0.4));
  position: relative;
  top: -260px;
  margin-bottom: 0;
}
.ln-hero-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.ln-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(26,111,212,0.15);
  border: 1px solid rgba(26,111,212,0.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ln-hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ln-hero-title {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  color: #fff;
}
.ln-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ln-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 460px;
}

.ln-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ln-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ln-hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: block;
}
.ln-hero-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

/* ── Hero two-column layout ─────────────────────────────────────────────── */
.ln-hero-content {
  grid-template-columns: 1fr 1.1fr;
}

.ln-hero-left {
  display: flex;
  flex-direction: column;
}

.ln-hero-brand-block {
  margin-bottom: 28px;
}

/* ── App mockup in hero ─────────────────────────────────────────────────── */
.ln-hero-mockup {
  position: relative;
  z-index: 2;
}
.ln-app-frame {
  background: rgba(12, 20, 38, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.ln-app-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ln-app-titlebar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ln-app-titlebar-dot:nth-child(1) { background: #ff5f57; }
.ln-app-titlebar-dot:nth-child(2) { background: #ffbd2e; }
.ln-app-titlebar-dot:nth-child(3) { background: #28ca42; }
.ln-app-titlebar-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-family: 'JetBrains Mono', monospace;
}

.ln-app-body {
  height: 300px;
  position: relative;
  background: #0d1f35;
}
.ln-app-sidebar {
  width: 160px;
  background: rgba(8,16,32,0.9);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 8px;
  flex-shrink: 0;
}
.ln-app-sidebar-section {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 8px 4px;
}
.ln-app-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  cursor: default;
  margin-bottom: 1px;
}
.ln-app-sidebar-item.is-active {
  background: rgba(26,111,212,0.2);
  color: var(--accent-light);
}
.ln-app-sidebar-dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(26,111,212,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Old toolbar (hidden) ───────────────────────────────────────────────── */
.ln-app-toolbar { display: none; }

/* ── Floating toolbar overlay ───────────────────────────────────────────── */
.mk-toolbar-float {
  position: absolute;
  top: 6px;
  left: 171px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 8px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 10;
}
.mk-toolbar-sep {
  width: 1px; height: 16px;
  background: rgba(0,0,0,0.1);
  margin: 0 4px;
  flex-shrink: 0;
}
.ln-app-tool {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E99A8;
  cursor: pointer;
  transition: all 0.15s;
}
.ln-app-tool:hover { background: #EBF3FF; color: #1A6FD4; }
.ln-app-tool.is-active { background: #EBF3FF; color: #1A6FD4; }
.ln-app-tool-sep { width: 1px; height: 16px; background: rgba(0,0,0,0.1); margin: 0 4px; }

/* ── Sidebar badge ──────────────────────────────────────────────────────── */
.ln-app-sidebar-badge {
  margin-left: auto;
  font-size: 8px;
  font-weight: 700;
  color: #4a9eff;
  background: rgba(26,111,212,0.2);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.5px;
}
.active-dot {
  background: rgba(26,111,212,0.4) !important;
}
.export-dot {
  background: rgba(16,185,129,0.25) !important;
  color: #10b981 !important;
}
.ln-app-export-btn { cursor: pointer; }
.ln-app-export-btn:hover { background: rgba(16,185,129,0.1); color: #10b981; }

/* ── Floating layer chip (top-right) ───────────────────────────────────── */
.mk-layer-chip {
  position: absolute;
  top: 6px; right: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 6px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  z-index: 12;
  font-family: 'JetBrains Mono', monospace;
}
.mk-layer-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.8);
  animation: chipPulse 2s ease-in-out infinite;
}
@keyframes chipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.mk-layer-chip-live {
  color: #4ade80;
  font-size: 7px;
  letter-spacing: 0.1em;
}

/* ── Status bar ─────────────────────────────────────────────────────────── */
.ln-app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background: rgba(8,16,32,0.9);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
}
.ln-app-status-right { color: rgba(74,158,255,0.5); }

/* ── Map tooltip ────────────────────────────────────────────────────────── */
.ln-map-tooltip {
  display: none;
  position: absolute;
  background: rgba(8,16,34,0.95);
  border: 1px solid rgba(26,111,212,0.4);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.ln-map-tooltip strong { color: #4a9eff; font-size: 12px; }

/* ── Export flash ───────────────────────────────────────────────────────── */
.ln-export-flash {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 5;
}

.ln-app-map {
  position: absolute;
  inset: 0;
  background: #0d1f35;
  overflow: hidden;
}
.ln-app-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ln-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ln-map-layer {
  opacity: 0.78;
  transition: opacity 0.4s;
}

/* ── Weather canvas in login panel ─────────────────────────────────────── */
#login-panel .login-weather-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#login-panel .ln-login-backdrop { z-index: 0; }
#login-panel .ln-login-back { z-index: 3; }
#login-panel .login-card { z-index: 2; }

/* ── Section base ───────────────────────────────────────────────────────── */
.ln-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.ln-section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.ln-section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}
.ln-section-title em {
  font-style: normal;
  color: var(--accent-light);
}
.ln-section-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

/* ── Section divider ────────────────────────────────────────────────────── */
.ln-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.ln-divider hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

/* ── Pain points ────────────────────────────────────────────────────────── */
.ln-pain {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}
.ln-pain-header {
  text-align: center;
  margin-bottom: 64px;
}
.ln-pain-header .ln-section-sub { margin: 0 auto; }
.ln-demo-section .ln-section-sub { margin: 0 auto; }

.ln-pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ln-pain-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.ln-pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.ln-pain-card:hover { background: var(--glass-bg-strong); transform: translateY(-4px); }
.ln-pain-card:hover::before { opacity: 1; }
.ln-pain-card.is-featured {
  background: rgba(26,111,212,0.12);
  border-color: rgba(26,111,212,0.3);
}
.ln-pain-card.is-featured::before { opacity: 1; }

.ln-pain-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(26,111,212,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.ln-pain-icon svg { width: 22px; height: 22px; }

.ln-pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.ln-pain-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ln-pain-card li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.ln-pain-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.ln-pain-card.is-featured li::before { opacity: 1; }

/* ── Engines ────────────────────────────────────────────────────────────── */
.ln-engines {
  background: var(--bg-mid);
}
.ln-engines-header {
  margin-bottom: 56px;
}

.ln-engines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ln-engine-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.ln-engine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.ln-engine-card-img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top left;
}

.ln-engine-card-body {
  padding: 28px;
  background: var(--glass-bg);
  flex: 1;
}
.ln-engine-card-body--soon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ln-engine-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.ln-engine-card-body p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 20px;
  line-height: 1.6;
}
.ln-engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.ln-engine-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(26,111,212,0.12);
  border: 1px solid rgba(26,111,212,0.2);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ── Broadcast "Coming Soon" card ────────────────────────────────────────── */
.ln-engine-card--soon {
  position: relative;
  height: 100%;
}
.ln-engine-card--soon:hover {
  transform: translateY(-6px);
}
.ln-engines-grid {
  align-items: stretch;
}

/* Preview area */
.ln-soon-preview {
  position: relative;
  width: 100%;
  min-height: 220px;
  flex: 1;
  background: linear-gradient(145deg, #0d1c35 0%, #0a1525 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

/* Animated scan line */
.ln-soon-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(26,111,212,0.03) 3px,
    rgba(26,111,212,0.03) 4px
  );
  pointer-events: none;
}
.ln-soon-preview::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(26,111,212,0.6), transparent);
  animation: soon-scan 2.8s ease-in-out infinite;
  top: 0;
}
@keyframes soon-scan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Mini cloud + drops */
.ln-soon-cloud-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.ln-soon-cloud {
  position: relative;
  width: 52px;
  height: 32px;
  background: #c8d8f8;
  border-radius: 16px;
  border: 1.5px solid rgba(26,111,212,0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: soon-cloud-float 3.2s ease-in-out infinite;
}
.ln-soon-cloud::before {
  content: '';
  position: absolute;
  top: -11px; left: 8px;
  width: 22px; height: 22px;
  background: #d4e3fb;
  border-radius: 50%;
  border: 1.5px solid rgba(26,111,212,0.2);
}
.ln-soon-cloud::after {
  content: '';
  position: absolute;
  top: -7px; left: 24px;
  width: 16px; height: 16px;
  background: #cad9f7;
  border-radius: 50%;
  border: 1.5px solid rgba(26,111,212,0.2);
}
@keyframes soon-cloud-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.ln-soon-eye {
  width: 8px; height: 8px;
  background: #1a6fd4;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  animation: soon-blink 4s ease-in-out infinite;
}
.ln-soon-eye-l { animation-delay: 0s; }
.ln-soon-eye-r { animation-delay: 0.15s; }
@keyframes soon-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(0.1); }
}
.ln-soon-pupil {
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
}

/* Rain drops */
.ln-soon-drops {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.ln-soon-drop {
  width: 2px;
  height: 8px;
  background: linear-gradient(180deg, #93c5fd, rgba(147,197,253,0));
  border-radius: 2px;
  animation: soon-rain 1.4s linear infinite;
}
.ln-soon-drop:nth-child(1) { animation-delay: 0s;    height: 10px; }
.ln-soon-drop:nth-child(2) { animation-delay: 0.28s; height: 7px; }
.ln-soon-drop:nth-child(3) { animation-delay: 0.56s; height: 12px; }
.ln-soon-drop:nth-child(4) { animation-delay: 0.14s; height: 8px; }
.ln-soon-drop:nth-child(5) { animation-delay: 0.42s; height: 9px; }
@keyframes soon-rain {
  0%   { opacity: 0;   transform: translateY(-4px); }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { opacity: 0;   transform: translateY(14px); }
}

/* Skeleton bars */
.ln-soon-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}
.ln-soon-skel-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(26,111,212,0.12) 0%,
    rgba(26,111,212,0.25) 50%,
    rgba(26,111,212,0.12) 100%
  );
  background-size: 200% 100%;
  animation: soon-shimmer 1.8s ease-in-out infinite;
}
.ln-soon-skel-bar:nth-child(2) { animation-delay: 0.2s; }
.ln-soon-skel-bar:nth-child(3) { animation-delay: 0.4s; }
.ln-soon-skel-bar:nth-child(4) { animation-delay: 0.6s; }
.ln-soon-skel-bar:nth-child(5) { animation-delay: 0.8s; }
@keyframes soon-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Center badge */
.ln-soon-badge-center {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.45);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 10px;
}

/* ── Features alternating ───────────────────────────────────────────────── */
.ln-features {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}
.ln-features-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.ln-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.ln-feature-row.is-flipped { direction: rtl; }
.ln-feature-row.is-flipped > * { direction: ltr; }

.ln-feature-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.ln-feature-img img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top left;
}

.ln-feature-text { }
.ln-feature-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.ln-feature-text h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.ln-feature-text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 24px;
}
.ln-feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ln-feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
}
.ln-feature-bullet-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-light);
}

/* ── Screenshots gallery ────────────────────────────────────────────────── */
.ln-gallery {
  background: var(--bg-deep);
}
.ln-gallery-header {
  text-align: center;
  margin-bottom: 48px;
}
.ln-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ln-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  cursor: pointer;
}
.ln-gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.ln-gallery-item img {
  width: 100%;
  display: block;
}
.ln-gallery-label {
  padding: 12px 16px;
  background: rgba(8,16,32,0.9);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

/* ── Demo Video ─────────────────────────────────────────────────────────── */
.ln-demo-section {
  background: var(--bg-deep);
}
.ln-demo-video-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  max-width: 960px;
  margin: 0 auto;
}
.ln-demo-video {
  width: 100%;
  display: block;
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.ln-pricing {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}
.ln-pricing-header {
  text-align: center;
  margin-bottom: 56px;
}
.ln-pricing-header .ln-section-sub { margin: 0 auto; }

.ln-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.ln-price-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.ln-price-card:hover { transform: translateY(-6px); }
.ln-price-card.is-featured {
  background: rgba(26,111,212,0.10);
  border-color: rgba(26,111,212,0.4);
  box-shadow: 0 0 0 1px rgba(26,111,212,0.2), 0 30px 80px rgba(26,111,212,0.1);
}

.ln-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.ln-price-tier {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.ln-price-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.ln-price-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

.ln-price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}
.ln-price-currency {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.ln-price-num {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}
.ln-price-per {
  font-size: 13px;
  color: var(--text-dim);
}
.ln-price-free {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 28px;
}

.ln-price-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0 0 24px;
}

.ln-price-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ln-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
}
.ln-price-features li svg {
  width: 16px; height: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 1px;
}
.ln-price-features li.is-muted {
  color: var(--text-dim);
}
.ln-price-features li.is-muted svg {
  color: rgba(255,255,255,0.2);
}

.ln-price-cta { width: 100%; }

/* ── Trust bar ──────────────────────────────────────────────────────────── */
.ln-trust-wrap {
  background: var(--bg-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ln-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.ln-trust-item {
  text-align: center;
}
.ln-trust-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  display: block;
}
.ln-trust-label {
  font-size: 13px;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}
.ln-trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.ln-final-cta {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  text-align: center;
  padding: 120px 40px;
}
.ln-final-cta .ln-section-title { margin: 0 auto 16px; max-width: 700px; }
.ln-final-cta .ln-section-sub { margin: 0 auto 40px; }
.ln-final-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ln-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 40px;
}
.ln-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ln-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ln-footer-logo { height: 24px; }
.ln-footer-copy { font-size: 13px; color: var(--text-dim); }
.ln-footer-links {
  display: flex;
  gap: 24px;
}
.ln-footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.ln-footer-links a:hover { color: #fff; }

/* ── Login Panel (slide-in) ─────────────────────────────────────────────── */
#login-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
  pointer-events: none;
}
#login-panel.is-open {
  transform: translateX(0);
  pointer-events: all;
}

.ln-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ln-login-back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.ln-login-back:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.ln-login-back svg {
  width: 16px; height: 16px;
}

/* Reuse login card styles from login.css but scoped */
#login-panel .login-card {
  position: relative;
  z-index: 2;
  animation: none;
}

/* ── Hero two-column layout ──────────────────────────────────────────────── */
.ln-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.ln-hero-headline {
  display: flex;
  flex-direction: column;
}

/* ── MacBook frame ───────────────────────────────────────────────────────── */
.ln-macbook-wrap {
  width: 100%;
}

.ln-macbook {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  box-shadow:
    0 56px 100px rgba(0,0,0,0.65),
    0 0 100px rgba(26,111,212,0.12);
  border-radius: 16px 16px 12px 12px;
}

.ln-macbook-lid {
  width: 100%;
  background: linear-gradient(175deg, #2d2f3d 0%, #1c1e28 100%);
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-bottom: 2px solid rgba(0,0,0,0.85);
  padding: 10px 10px 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.ln-macbook-camera-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2c36, #10121a);
  border: 1px solid rgba(0,0,0,0.6);
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

.ln-macbook-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #070c14;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6);
}

/* Override fixed height for app body inside MacBook screen */
.ln-macbook-screen .ln-app-body {
  height: auto;
  flex: 1;
  min-height: 0;
}

/* Block user interaction until animation completes */
.ln-macbook-screen.is-locked {
  pointer-events: none;
  cursor: default;
}

/* ── Logo splash inside MacBook screen ─────────────────────────────────── */
.mk-logo-splash {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #070c14;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}
.mk-logo-splash img {
  width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(26,111,212,0.5));
  animation: splash-breathe 1.8s ease-in-out infinite alternate;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes splash-breathe {
  from { opacity: 0.85; transform: scale(0.97); }
  to   { opacity: 1;    transform: scale(1.02); }
}
.mk-logo-splash.is-gone {
  opacity: 0;
  pointer-events: none;
}

.ln-macbook-chin {
  height: 22px;
  background: linear-gradient(180deg, #1c1e28 0%, #22242f 100%);
  border-top: 1px solid rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ln-macbook-chin::after {
  content: '';
  width: 56px; height: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.ln-macbook-keyboard {
  width: 90%;
  height: 26px;
  background: linear-gradient(180deg, #22242f 0%, #1a1c25 40%, #131520 100%);
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.ln-macbook-keyboard::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px; height: 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ── App titlebar right slot ─────────────────────────────────────────────── */
.ln-app-titlebar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ln-app-layer-chip {
  font-size: 9px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.22);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: all 0.3s;
}

/* ── Layer overlay label on map ──────────────────────────────────────────── */
.ln-layer-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #10b981;
  background: rgba(5,10,20,0.82);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 6px;
  padding: 3px 8px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s;
}

/* ── Clickable sidebar layer items ───────────────────────────────────────── */
.ln-app-sidebar-item[data-layer] { cursor: pointer; }

/* ══ Compact floating sidebar ════════════════════════════════════════════ */
.mk-sidebar {
  position: absolute;
  top: 6px; left: 6px; bottom: 6px;
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  font-family: 'Figtree', sans-serif;
}
.mk-sidebar-head {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(26,111,212,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.mk-sidebar-title {
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.mk-add-btn {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 5px;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms;
  flex-shrink: 0;
}
.mk-add-btn:hover, .mk-add-btn.is-active { background: rgba(255,255,255,0.35); }

.mk-sidebar-layers-card > .mk-layer-list {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.mk-layer-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
}
.mk-layer-list::-webkit-scrollbar { width: 3px; }
.mk-layer-list::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }

/* individual layer row */
.mk-layer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, box-shadow 120ms;
  animation: mk-row-in 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes mk-row-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.mk-layer-row:hover { background: #F5F7FA; border-color: #E8EAED; }
.mk-layer-row.is-selected {
  background: #EBF3FF;
  border-color: rgba(26,111,212,0.2);
  box-shadow: inset 3px 0 0 #1A6FD4;
}

.mk-layer-thumb {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #1a2634;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mk-layer-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.mk-layer-name {
  flex: 1;
  font-size: 9.5px;
  font-weight: 500;
  color: #1C2533;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.mk-layer-row.is-selected .mk-layer-name { color: #1A6FD4; font-weight: 600; }

/* basemap footer row — floating card at bottom */
.mk-basemap-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 120ms;
}
.mk-basemap-row:hover { background: rgba(255,255,255,0.95); }
.mk-basemap-thumb {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #E8EAED;
  background: #D8DCE4;
}
.mk-basemap-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-basemap-info { flex: 1; min-width: 0; }
.mk-basemap-sub { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.07em; color: #8E99A8; font-weight: 600; }
.mk-basemap-name { display: block; font-size: 10.5px; font-weight: 500; color: #1C2533; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══ Add popover ════════════════════════════════════════════════════════ */
.mk-popover {
  position: absolute;
  top: 46px; left: 172px;
  background: #fff;
  border: 1px solid #E8EAED;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding: 5px;
  display: flex;
  gap: 4px;
  z-index: 30;
  opacity: 0;
  transform: scale(0.88) translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.mk-popover.is-open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.mk-popover-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #1C2533;
  transition: background 120ms;
  font-size: 10px;
  font-weight: 600;
}
.mk-popover-item:hover { background: #EBF3FF; color: #1A6FD4; }
.mk-popover-item svg { color: #1A6FD4; }

/* ══ Add panel — vertical icon column, weather card expands inline ════════ */
.mk-picker {
  position: absolute;
  top: 6px; left: 130px; bottom: 6px;
  width: 36px;              /* icon column width */
  z-index: 25;
  transform: scale(0.94) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
  overflow: visible;
}
.mk-picker.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* The vertical column of cards */
.mk-ap-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

/* Each icon card */
.mk-ap-card {
  width: 30px;
  background: rgba(245,247,250,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* Weather card expands to show layer list */
.mk-ap-card--weather.is-open {
  width: 118px;
}

/* Icon button */
.mk-ap-icon-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 120ms;
  padding: 0;
}
.mk-ap-icon-btn:hover { background: rgba(26,111,212,0.07); }
.mk-ap-card--weather.is-open .mk-ap-icon-btn {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(26,111,212,0.06);
}

/* Layer list inside weather card */
.mk-ap-layers {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16,1,0.3,1);
  width: 118px;
}
.mk-ap-card--weather.is-open .mk-ap-layers {
  max-height: 160px;
  overflow-y: auto;
}
.mk-ap-layers::-webkit-scrollbar { width: 2px; }
.mk-ap-layers::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }

/* Individual layer row */
.mk-ap-layer-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 100ms;
  animation: mk-row-in 0.22s cubic-bezier(0.16,1,0.3,1) both;
  min-width: 0;
}
.mk-ap-layer-row:last-child { border-bottom: none; }
.mk-ap-layer-row:hover { background: #EBF3FF; }
.mk-ap-layer-row.is-adding { background: #dbeafe; transform: scale(0.98); }

.mk-ap-layer-thumb {
  width: 18px; height: 14px;
  border-radius: 3px;
  background: #1a2634;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
}
.mk-ap-layer-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.mk-ap-layer-name {
  flex: 1;
  font-size: 8.5px;
  font-weight: 500;
  color: #1C2533;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-ap-layer-plus {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: rgba(26,111,212,0.1);
  color: #1A6FD4;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* rain drop animation */
@keyframes mk-rain-fall {
  0%   { opacity: 0; transform: translateY(-2px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(4px); }
}
.mk-rain-1 { animation: mk-rain-fall 1.6s ease-in-out infinite 0s; }
.mk-rain-2 { animation: mk-rain-fall 1.6s ease-in-out infinite 0.25s; }
.mk-rain-3 { animation: mk-rain-fall 1.6s ease-in-out infinite 0.5s; }

/* ══ Ghost cursor ════════════════════════════════════════════════════════ */
.mk-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 100;
  transform: translate(-2px, -1px);
  opacity: 0;
  transition: left 0.55s cubic-bezier(0.16,1,0.3,1), top 0.55s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
}
.mk-cursor.is-visible { opacity: 1; }
.mk-ripple {
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #1A6FD4;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.mk-ripple.pop {
  animation: mk-ripple-pop 0.38s ease-out forwards;
}
@keyframes mk-ripple-pop {
  0%   { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ══ Ghost cursor ══════════════════════════════════════════════════════════ */
.ln-ghost-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  transform: translate(-4px, -2px);
  transition: left 0.6s cubic-bezier(0.16,1,0.3,1), top 0.6s cubic-bezier(0.16,1,0.3,1);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.ln-ghost-ripple {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(74,158,255,0.7);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.ln-ghost-ripple.is-clicking {
  animation: ghost-click 0.4s ease-out forwards;
}
@keyframes ghost-click {
  0%   { transform: scale(0); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ══ New sidebar card structure ════════════════════════════════════════════ */
.mk-sidebar-header-card {
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(26,111,212,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.mk-sidebar-header-row {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 34px;
}
.mk-sidebar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mk-btn-add, .mk-btn-del {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 5px;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms;
  flex-shrink: 0;
  padding: 0;
}
.mk-btn-add:hover, .mk-btn-add.is-active,
.mk-btn-del:hover { background: rgba(255,255,255,0.35); }
.mk-sidebar-layers-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ══ Disney cloud mascot ════════════════════════════════════════════════════ */
.cloud-char {
  position: absolute;
  top: -26px;
  right: 10px;
  width: 56px;
  z-index: 50;
  pointer-events: all;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cloud-float 3.8s ease-in-out infinite;
}

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

.cloud-body {
  position: relative;
  width: 52px;
  height: 33px;
  background: #eef3ff;
  border-radius: 18px;
  border: 1.5px solid rgba(26,111,212,0.18);
  box-shadow:
    0 4px 14px rgba(0,0,0,0.22),
    0 1px 4px rgba(0,0,0,0.12),
    inset 0 1px 3px rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cloud-body::before {
  content: '';
  position: absolute;
  top: -14px; left: 5px;
  width: 24px; height: 24px;
  background: #eef3ff;
  border-radius: 50%;
  border: 1.5px solid rgba(26,111,212,0.15);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.13);
}

.cloud-body::after {
  content: '';
  position: absolute;
  top: -9px; right: 7px;
  width: 17px; height: 17px;
  background: #eef3ff;
  border-radius: 50%;
  border: 1.5px solid rgba(26,111,212,0.12);
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
}

.cloud-eye-l,
.cloud-eye-r {
  width: 14px; height: 17px;
  background: white;
  border-radius: 50% 50% 45% 45%;
  border: 1.5px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  animation: cloud-blink 5.5s ease-in-out infinite;
}
.cloud-eye-r { animation-delay: 0.18s; }

@keyframes cloud-blink {
  0%, 85%, 100% { transform: scaleY(1); }
  88%            { transform: scaleY(0.07); }
  91%            { transform: scaleY(1); }
}

.cloud-pupil {
  width: 7px; height: 7px;
  background: #1a1a1a;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.07s ease-out;
}
.cloud-pupil::after {
  content: '';
  position: absolute;
  top: 1px; right: 1px;
  width: 2.5px; height: 2.5px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
}

.cloud-arms {
  display: flex;
  justify-content: space-between;
  padding: 0 7px;
  width: 100%;
  margin-top: 1px;
}

.cloud-arm-l,
.cloud-arm-r {
  width: 9px; height: 11px;
  background: #eef3ff;
  border-radius: 4px 4px 5px 5px;
  border: 1.5px solid rgba(26,111,212,0.18);
  box-shadow: 0 2px 5px rgba(0,0,0,0.16);
}

/* excited state — when cursor near CTA buttons */
.cloud-char.is-excited {
  animation: cloud-excited 0.35s ease-in-out infinite alternate;
}
@keyframes cloud-excited {
  0%   { transform: translateY(0px) rotate(-4deg) scale(1.05); }
  100% { transform: translateY(-8px) rotate(4deg) scale(1.1); }
}
.cloud-char.is-excited .cloud-eye-l,
.cloud-char.is-excited .cloud-eye-r {
  animation: none;
  transform: scaleY(1.15);
  border-color: #1A6FD4;
}

/* tickle state — one click */
.cloud-char.is-tickled {
  animation: cloud-tickle 0.18s ease-in-out 3 alternate !important;
}
@keyframes cloud-tickle {
  0%   { transform: translateX(-4px) rotate(-5deg); }
  100% { transform: translateX(4px) rotate(5deg); }
}

/* storm state — many clicks → float up, grow, rain + lightning, no mouse tracking */
.cloud-char.is-storming {
  animation: cloud-storm-rise 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards !important;
  transition: none !important;
}
@keyframes cloud-storm-rise {
  0%   { transform: translateY(0)    scale(1); }
  100% { transform: translateY(-22px) scale(1.6); }
}
.cloud-char.is-storming .cloud-eye-l,
.cloud-char.is-storming .cloud-eye-r {
  animation: eye-storm-wide 0.3s ease-out forwards !important;
  border-color: #93c5fd;
}
@keyframes eye-storm-wide {
  to { transform: scaleY(1.25) scaleX(1.1); }
}
.cloud-char.is-storming .cloud-pupil { background: #1d4ed8; }

/* ── Punch sequence states ───────────────────────────────────────────────── */
/* Angry: eyebrows-like squint, red tint */
.cloud-char.is-angry .cloud-body {
  background: #ffe4e4;
  border-color: rgba(239,68,68,0.4);
  box-shadow: 0 4px 14px rgba(239,68,68,0.25), inset 0 1px 3px rgba(255,255,255,0.9);
}
.cloud-char.is-angry .cloud-eye-l,
.cloud-char.is-angry .cloud-eye-r {
  transform: scaleY(0.55) translateY(1px);
  background: #ef4444;
}
.cloud-char.is-angry .cloud-pupil { background: #fff; }

/* Punching: lunge forward (scale X) */
.cloud-char.is-punching {
  animation: cloud-punch 0.18s ease-out !important;
}
@keyframes cloud-punch {
  0%   { transform: scale(1,1)    rotate(0deg); }
  40%  { transform: scale(1.35,0.75) rotate(-8deg); }
  70%  { transform: scale(0.85,1.15) rotate(4deg); }
  100% { transform: scale(1,1)    rotate(0deg); }
}

/* Impact ring spawned on punch hits */
.punch-impact {
  position: fixed;
  z-index: 10000;
  width: 0; height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.punch-impact::before,
.punch-impact::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: punch-ring 0.35s ease-out forwards;
}
.punch-impact::before {
  border: 2.5px solid rgba(239,68,68,0.7);
  animation-delay: 0s;
}
.punch-impact::after {
  border: 2px solid rgba(251,191,36,0.55);
  animation-delay: 0.06s;
}
@keyframes punch-ring {
  0%   { width: 0;    height: 0;    opacity: 1; }
  100% { width: 60px; height: 60px; opacity: 0; }
}

/* Mini cloud hit: shake + flash */
.ln-soon-cloud.is-hit {
  animation: soon-cloud-hit 0.2s ease-out !important;
}
@keyframes soon-cloud-hit {
  0%   { transform: translateX(0)   scale(1); }
  25%  { transform: translateX(-8px) scale(1.1); background: #fecdd3; }
  75%  { transform: translateX(6px)  scale(0.95); }
  100% { transform: translateX(0)   scale(1); background: #c8d8f8; }
}

/* Mini cloud dizzy: spin stars emoji replacement with CSS */
.ln-soon-cloud.is-dizzy {
  animation: soon-cloud-dizzy 1.2s ease-in-out !important;
}
@keyframes soon-cloud-dizzy {
  0%   { transform: rotate(0deg)   scale(1); }
  15%  { transform: rotate(-15deg) scale(1.1); }
  35%  { transform: rotate(12deg)  scale(0.95); }
  55%  { transform: rotate(-8deg)  scale(1.05); }
  75%  { transform: rotate(5deg)   scale(1); }
  100% { transform: rotate(0deg)   scale(1); }
}

/* SVG rain & lightning inside cloud body during storm */
.cloud-storm-fx {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  pointer-events: none;
  overflow: visible;
}

/* animated rain lines */
.cs-rain { animation: cs-rain-fall 0.55s linear infinite; }
.cs-rain:nth-child(2) { animation-delay: 0.18s; }
.cs-rain:nth-child(3) { animation-delay: 0.36s; }
@keyframes cs-rain-fall {
  0%   { transform: translateY(-4px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* animated lightning bolt */
.cs-bolt { animation: cs-bolt-flash 1.4s ease-in-out infinite; }
@keyframes cs-bolt-flash {
  0%, 70%, 100% { opacity: 0; }
  75%            { opacity: 1; }
  80%            { opacity: 0.3; }
  85%            { opacity: 1; }
}

/* teardrops — one per eye, come out of the eye bottom */
.cloud-tear {
  position: absolute;
  bottom: -2px;
  width: 5px; height: 8px;
  background: radial-gradient(ellipse at 40% 30%, #bfdbfe, #3b82f6);
  border-radius: 50% 50% 60% 60% / 40% 40% 60% 60%;
  opacity: 0;
  pointer-events: none;
  animation: tear-fall 0.65s ease-in forwards;
}
/* positioned relative to each eye */
.cloud-eye-l .cloud-tear { left: 50%; transform: translateX(-50%); }
.cloud-eye-r .cloud-tear { left: 50%; transform: translateX(-50%); }
@keyframes tear-fall {
  0%   { opacity: 0.95; transform: translateX(-50%) translateY(0) scaleY(0.7); }
  30%  { opacity: 0.9;  transform: translateX(-50%) translateY(3px) scaleY(1); }
  100% { opacity: 0;    transform: translateX(-50%) translateY(18px) scaleY(1.2); }
}


/* ══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE  ≤ 768px
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger button ──────────────────────────────────────────────────── */
.ln-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
}
.ln-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.ln-nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ln-nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ln-nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ─────────────────────────────────────────────────── */
.ln-mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-direction: column;
  padding: 20px 24px 24px;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.ln-mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ln-mobile-nav-link {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ln-mobile-nav-link:last-of-type { border-bottom: none; }
.ln-mobile-nav-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.ln-mobile-nav-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 768px) {

  /* ── Nav ── */
  .ln-nav { padding: 0 20px; }
  .ln-nav-links,
  .ln-nav-actions { display: none; }
  .ln-nav-hamburger { display: flex; }
  .ln-mobile-nav { display: flex; }

  /* ── Section base ── */
  .ln-section { padding: 64px 20px; }
  .ln-demo-section .ln-section { padding-top: 64px; padding-bottom: 64px; }

  /* ── Hero ── */
  /* overflow:clip prevents horizontal scroll without clipping box-shadows */
  .ln-hero { min-height: auto; padding-top: 64px; padding-bottom: 64px; overflow: clip; }
  .ln-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 20px 0;
  }
  .ln-hero-sub { max-width: 100%; font-size: 15px; }
  .ln-hero-stats { gap: 20px; flex-wrap: wrap; }
  .ln-hero-stat-num { font-size: 18px; }

  /* MacBook — full width, no transform, cloud room above lid */
  .ln-macbook-wrap { width: 100%; padding-top: 32px; }
  .ln-macbook {
    width: 100% !important;
    transform: none !important;
    overflow: visible;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .ln-macbook-lid { overflow: visible; }

  /* ── Pain section ── */
  .ln-pain-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── Demo video ── */
  .ln-demo-video-wrap { border-radius: 10px; }

  /* ── Engines ── */
  .ln-engines-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ln-engine-card-img { min-height: 160px; }

  /* ── How It Works (Features) ── */
  .ln-features-list { gap: 64px; }
  .ln-feature-row,
  .ln-feature-row.is-flipped {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
  .ln-feature-row.is-flipped > * { direction: ltr; }
  .ln-feature-img img { aspect-ratio: 16/9; }

  /* ── Pricing ── */
  .ln-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
  }
  /* Featured card first on mobile */
  .ln-price-card.is-featured { order: -1; }

  /* ── Final CTA ── */
  .ln-final-cta { padding: 64px 20px; }
  .ln-final-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .ln-final-cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* ── Footer ── */
  .ln-footer { padding: 28px 20px; }
  .ln-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .ln-footer-links { flex-wrap: wrap; gap: 16px; }

  /* ── Section headings ── */
  .ln-section-title { font-size: clamp(28px, 7vw, 40px); }
  .ln-hero-title { font-size: clamp(30px, 8vw, 46px); letter-spacing: -1px; }
  .ln-pain-header { margin-bottom: 36px; }
  .ln-engines-header { margin-bottom: 32px; }
  .ln-pricing-header { margin-bottom: 36px; }
  .ln-features-list { gap: 48px; }

  /* ── Dividers ── */
  .ln-divider { padding: 0 20px; }
}
