/* ====================================================================
   SUBEB Device Admin — Landing Page Styles
   Supports Dark and Light themes, compact responsive navbar with hamburger menu
   ==================================================================== */

/* ---------- theme CSS variables ---------- */

/* Dark theme (default) */
:root, html.dark {
  --ln-bg: #0b0f19;
  --ln-header-bg: rgba(11, 15, 25, 0.88);
  --ln-border: rgba(255, 255, 255, 0.08);
  --ln-text-title: #f8fafc;
  --ln-text-body: #cbd5e1;
  --ln-text-muted: #94a3b8;
  --ln-card-bg: rgba(255, 255, 255, 0.035);
  --ln-card-border: rgba(255, 255, 255, 0.08);
  --ln-card-hover-bg: rgba(255, 255, 255, 0.065);
  --ln-hero-glow: radial-gradient(ellipse, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.04) 40%, transparent 70%);
  --ln-btn-ghost-color: #cbd5e1;
  --ln-btn-ghost-border: rgba(148, 163, 184, 0.3);
  --ln-btn-ghost-hover: rgba(255, 255, 255, 0.08);
}

/* Light theme */
html.light {
  --ln-bg: #f8faf8;
  --ln-header-bg: rgba(248, 250, 248, 0.9);
  --ln-border: #e2e8f0;
  --ln-text-title: #0f172a;
  --ln-text-body: #334155;
  --ln-text-muted: #64748b;
  --ln-card-bg: #ffffff;
  --ln-card-border: #e2e8f0;
  --ln-card-hover-bg: #f1f5f2;
  --ln-hero-glow: radial-gradient(ellipse, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.03) 40%, transparent 70%);
  --ln-btn-ghost-color: #1e293b;
  --ln-btn-ghost-border: #cbd5e1;
  --ln-btn-ghost-hover: #e2e8f0;
}

/* ---------- foundation ---------- */
.landing-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--ln-bg);
  color: var(--ln-text-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

/* ---------- navbar ---------- */
.ln-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ln-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ln-border);
  transition: background-color .2s ease, border-color .2s ease;
}
.ln-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}
.ln-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ln-text-title);
}
.ln-logo:hover { text-decoration: none; }
.ln-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.ln-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ln-text-title);
}

.ln-nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ln-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--ln-border);
  color: var(--ln-text-body);
  cursor: pointer;
  transition: all .15s ease;
}
.ln-icon-btn:hover {
  background: var(--ln-btn-ghost-hover);
  color: var(--ln-text-title);
}

/* Theme toggle icon state */
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }
html.light .icon-sun { display: none; }
html.light .icon-moon { display: block; }

.ln-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ln-nav-link {
  color: var(--ln-text-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.ln-nav-link:hover {
  color: var(--ln-text-title);
  background: var(--ln-btn-ghost-hover);
  text-decoration: none;
}

/* Mobile Dropdown Menu */
.ln-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem 1.25rem;
  border-top: 1px solid var(--ln-border);
  background: var(--ln-header-bg);
}
.ln-mobile-menu.show {
  display: flex;
}
.ln-mobile-link {
  color: var(--ln-text-title);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  background: var(--ln-card-bg);
  border: 1px solid var(--ln-border);
}

/* ---------- buttons ---------- */
.ln-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  font-family: inherit;
}
.ln-btn:hover { text-decoration: none; }

.ln-btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}
.ln-btn-lg {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}
.ln-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff !important;
  border: 1px solid rgba(34, 197, 94, .3);
  box-shadow: 0 0 20px rgba(34, 197, 94, .18);
}
.ln-btn-primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 0 28px rgba(34, 197, 94, .28);
  transform: translateY(-1px);
}
.ln-btn-ghost {
  background: transparent;
  color: var(--ln-btn-ghost-color);
  border: 1px solid var(--ln-btn-ghost-border);
}
.ln-btn-ghost:hover {
  color: var(--ln-text-title);
  border-color: var(--ln-text-title);
  background: var(--ln-btn-ghost-hover);
}

/* ---------- hero ---------- */
.ln-hero {
  position: relative;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  overflow: hidden;
}
.ln-hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: var(--ln-hero-glow);
  pointer-events: none;
  z-index: 0;
}
.ln-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.ln-hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 999px;
  padding: 0.3rem 1rem 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}
html.dark .ln-hero-badge-top {
  color: #86efac;
}

.ln-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: ln-pulse 2s ease-in-out infinite;
}
@keyframes ln-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.ln-hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ln-text-title);
  margin: 0 0 1.2rem;
}
.ln-hero-highlight {
  background: linear-gradient(135deg, #16a34a 10%, #22c55e 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ln-hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ln-text-body);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}
.ln-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- features ---------- */
.ln-features {
  padding: 3.5rem 1.25rem 4.5rem;
}
.ln-features-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.ln-feature-card {
  background: var(--ln-card-bg);
  border: 1px solid var(--ln-card-border);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  transition: all .25s ease;
}
.ln-feature-card:hover {
  background: var(--ln-card-hover-bg);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.ln-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ln-text-title);
  margin: 1rem 0 0.45rem;
}
.ln-feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ln-text-body);
  margin: 0;
}

/* feature icons */
.ln-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.ln-icon-blue   { background: rgba(59, 130, 246, .12); color: #3b82f6; }
.ln-icon-green  { background: rgba(34, 197, 94, .12);  color: #22c55e; }
.ln-icon-amber  { background: rgba(245, 158, 11, .12); color: #d97706; }
.ln-icon-red    { background: rgba(239, 68, 68, .12);  color: #ef4444; }
.ln-icon-teal   { background: rgba(20, 184, 166, .12); color: #14b8a6; }
.ln-icon-purple { background: rgba(168, 85, 247, .12); color: #a855f7; }

/* ---------- footer ---------- */
.ln-footer {
  border-top: 1px solid var(--ln-border);
  padding: 2rem 1.25rem;
}
.ln-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.ln-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ln-text-muted);
}

/* ---------- responsive & compact ---------- */
.ln-menu-btn { display: none; }

@media (max-width: 900px) {
  .ln-hero-title {
    font-size: 2.2rem;
  }
  .ln-hero-subtitle {
    font-size: 0.98rem;
  }
  .ln-features-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ln-nav-actions {
    display: none;
  }
  .ln-menu-btn {
    display: inline-flex;
  }
  .ln-hero {
    padding: 3rem 1rem 2.5rem;
  }
  .ln-hero-title {
    font-size: 1.85rem;
  }
  .ln-hero-subtitle {
    font-size: 0.92rem;
  }
  .ln-hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .ln-btn-lg {
    width: 100%;
    justify-content: center;
  }
  .ln-features-inner {
    grid-template-columns: 1fr;
  }
}
