:root {
  --ls-bg: #080b12;
  --ls-bg-soft: #101827;
  --ls-card: rgba(255, 255, 255, .055);
  --ls-border: rgba(255, 255, 255, .12);
  --ls-text: #eef3ff;
  --ls-muted: #9aa7bd;
  --ls-accent: #54d6ff;
  --ls-accent-2: #7c5cff;
}

/* ---------- Navbar: keep Gitea's mobile behavior intact ---------- */
#navbar.ls-navbar-enterprise {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(6, 8, 13, .70);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

#navbar.ls-navbar-enterprise .item {
  color: #d7e3f8;
  font-weight: 650;
  letter-spacing: .01em;
}

#navbar.ls-navbar-enterprise .item:hover,
#navbar.ls-navbar-enterprise .item.active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  text-decoration: none;
}

#navbar.ls-navbar-enterprise .ls-navbar-logo {
  height: 40px;
  padding: 0 13px 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
}

#navbar.ls-navbar-enterprise .ls-navbar-logo:hover {
  background: rgba(255, 255, 255, .075);
}

#navbar.ls-navbar-enterprise .ls-navbar-logo img {
  display: block;
  width: 125px;
  height: 32px;
  object-fit: contain;
}

#navbar.ls-navbar-enterprise .ls-navbar-api {
  color: #eaf4ff !important;
  background: rgba(84, 214, 255, .10);
  border: 1px solid rgba(84, 214, 255, .34);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  border-radius: 11px;
}

#navbar.ls-navbar-enterprise .ls-navbar-api:hover,
#navbar.ls-navbar-enterprise .ls-navbar-api.active {
  color: #fff !important;
  background: rgba(84, 214, 255, .16);
  border-color: rgba(84, 214, 255, .58);
}

#navbar.ls-navbar-enterprise .navbar-right .ls-navbar-login {
  color: #eaf4ff !important;
  background: rgba(84, 214, 255, .10);
  border: 1px solid rgba(84, 214, 255, .34);
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  font-weight: 750;
}

#navbar.ls-navbar-enterprise .navbar-right .ls-navbar-login:hover,
#navbar.ls-navbar-enterprise .navbar-right .ls-navbar-login.active {
  color: #fff !important;
  background: rgba(84, 214, 255, .16);
  border-color: rgba(84, 214, 255, .58);
}

#navbar.ls-navbar-enterprise .ui.dropdown .menu {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

@media (min-width: 901px) {
  #navbar.ls-navbar-enterprise .navbar-left,
  #navbar.ls-navbar-enterprise .navbar-right {
    min-height: 58px;
    display: flex;
    align-items: center;
  }

  #navbar.ls-navbar-enterprise .ls-navbar-logo {
    margin-right: 18px;
  }

  #navbar.ls-navbar-enterprise .navbar-left > a.item:not(.ls-navbar-logo) {
    height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    margin-right: 4px;
    border-radius: 12px;
  }

  #navbar.ls-navbar-enterprise .navbar-right > a.item,
  #navbar.ls-navbar-enterprise .navbar-right > .dropdown.item {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    margin-left: 5px;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  #navbar.ls-navbar-enterprise {
    padding: 0 10px;
  }

  #navbar.ls-navbar-enterprise .ls-navbar-logo {
    max-width: 150px;
    margin-right: 8px;
  }

  #navbar.ls-navbar-enterprise .ls-navbar-logo img {
    width: 122px;
    height: 28px;
  }

  #navbar.ls-navbar-enterprise #navbar-expand-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #dbe7ff;
  }
}

/* ---------- Home ---------- */
.laysense-home-page {
  padding: 0 !important;
  overflow: hidden;
}

.laysense-home-page,
.laysense-home-page * {
  box-sizing: border-box;
}

.ls-hero {
  position: relative;
  min-height: 620px;
  padding: 88px 32px 72px;
  color: var(--ls-text);
  background:
    radial-gradient(circle at 16% 12%, rgba(80, 190, 255, .28), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(130, 96, 255, .22), transparent 30%),
    linear-gradient(135deg, #070a12 0%, #0d1524 46%, #07111d 100%);
}

.ls-hero-under-navbar {
  margin-top: -58px;
  padding-top: 146px;
}

.ls-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.ls-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.ls-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 28px;
}

.ls-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .065);
  color: #c9d8f5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .015em;
  backdrop-filter: blur(12px);
}

.ls-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ls-accent);
  box-shadow: 0 0 18px rgba(84, 214, 255, .8);
}

.ls-title {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 850;
}

.ls-subtitle {
  max-width: 700px;
  margin: 24px 0 0;
  color: #a8b6cf;
  font-size: 18px;
  line-height: 1.85;
}

.ls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ls-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}

.ls-btn:hover {
  transform: translateY(-1px);
  opacity: .94;
  text-decoration: none !important;
}

.ls-btn-primary {
  color: #04111f !important;
  background: linear-gradient(90deg, #54d6ff, #8f72ff);
  box-shadow: 0 16px 38px rgba(84, 214, 255, .18);
}

.ls-btn-secondary {
  color: #eef3ff !important;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .065);
}

.ls-btn-secondary:hover {
  border-color: rgba(255, 255, 255, .30);
}

.ls-hero-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .045));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.ls-terminal {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: #05070c;
}

.ls-terminal-head {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .065);
}

.ls-terminal-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}

.ls-terminal-body {
  max-width: 100%;
  padding: 22px;
  overflow-x: auto;
  white-space: nowrap;
  color: #d5e8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.95;
}

.ls-muted {
  color: #6f7f99;
}

.ls-card-meta {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 14px;
}

.ls-card-meta div {
  min-height: 88px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
}

.ls-card-meta strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.ls-card-meta span {
  color: #9faec8;
  font-size: 12px;
  line-height: 1.5;
}

.ls-section {
  padding: 70px 32px 88px;
  background: var(--color-body);
}

.ls-section-head {
  width: min(100%, 840px);
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
}

.ls-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.035em;
  font-weight: 800;
}

.ls-section-head p {
  margin: 14px auto 0;
  color: var(--color-text-light-2);
  font-size: 16px;
  line-height: 1.8;
}

.ls-feature-grid {
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ls-feature {
  padding: 26px;
  border: 1px solid var(--color-secondary);
  border-radius: 20px;
  background: var(--color-box-body);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .045);
}

.ls-feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #54bff7;
  background: rgba(84, 191, 247, .12);
}

.ls-feature h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 750;
}

.ls-feature p {
  margin: 0;
  color: var(--color-text-light-2);
  line-height: 1.75;
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ls-hero {
    min-height: auto;
    padding: 58px 18px 52px;
  }

  .ls-hero-under-navbar {
    margin-top: -58px;
    padding-top: 112px;
  }

  .ls-hero-inner {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .ls-hero-copy,
  .ls-hero-card,
  .ls-terminal,
  .ls-terminal-body,
  .ls-card-meta,
  .ls-feature-grid {
    min-width: 0;
    max-width: 100%;
  }

  .ls-title {
    max-width: 100%;
    font-size: clamp(42px, 14vw, 76px);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  .ls-subtitle {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.75;
  }

  .ls-hero-card {
    width: 100%;
    padding: 16px;
    border-radius: 22px;
  }

  .ls-terminal-body {
    width: 100%;
    font-size: 13px;
    line-height: 1.9;
  }

  .ls-card-meta,
  .ls-feature-grid {
    grid-template-columns: 1fr;
  }

  .ls-card-meta div {
    min-height: auto;
  }

  .ls-section {
    padding: 52px 18px 64px;
  }
}

@media (max-width: 560px) {
  .ls-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ls-logo {
    width: 148px;
    max-width: 70vw;
    margin-bottom: 22px;
  }

  .ls-eyebrow {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .ls-title {
    font-size: clamp(44px, 16vw, 62px);
    line-height: .98;
    letter-spacing: -.06em;
  }

  .ls-subtitle {
    font-size: 16px;
    line-height: 1.7;
  }

  .ls-actions {
    gap: 12px;
  }

  .ls-btn {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 13px;
  }

  .ls-terminal-body {
    padding: 18px;
    font-size: 12.5px;
  }

  .ls-section-head h2 {
    font-size: clamp(32px, 11vw, 44px);
    line-height: 1.08;
  }
}

/* Let homepage hero sit behind the glass navbar */

@media (min-width: 901px) {
  .laysense-home-page .ls-hero-under-navbar {
    margin-top: -58px !important;
    padding-top: 146px;
  }
}

@media (max-width: 900px) {
  .laysense-home-page .ls-hero-under-navbar {
    margin-top: -58px !important;
    padding-top: 112px;
  }
}
.laysense-home-page {
  margin-top: 0 ;
  padding-top: 0 !important;
}

.laysense-home-page .ls-hero {
  border-top: 0 !important;
}

#navbar.ls-navbar-enterprise {
  position: sticky;
  top: 0;
  z-index: 1000;
}
